Posted in February 2013

Dev diary 28

Went into work dizzy, over tired I think. Got the url_for working. instead of doing the ?filter=available, it now does /available. There were no help on the documentation, but a SO post. Back button don’t work still. A generate_Url in the controller don’t work. Panic and had to ask. Now it works. But on Android … Continue reading

Development diary…

Today I arrived trying to finish the offline coupons pages by implementing suggested changes. Everything falls apart, panic. It took me a long time to figure out that app_ needed to be added before the sfConfig, by doing a global search. But it was good to figure out that my SQL is correct. At least … Continue reading

GrabOne job ad

Are you seeking a role where you can work with a group of highly successful, innovative and inspiring individuals with an outstanding background and reputation in the Australasian Online marketplace??? Well here is your opportunity!!! Reporting to the CTO we are seeking a senior PHP Developer to join our Development Team.  GrabOne was launched to … Continue reading

Interview thoughts..

Popular – talking about learning iphone programming. Talking about Django working with MS SQL database. Talking about finding a solution to solve our legacy system. Knowing about Stackoverflow. Various experiences of working on different systems. Impressive knowledge in the first few minutes (eg Symfony examples such as advanced features, to get them interested). When the … Continue reading

To be a better friend..

Take time, just 5 mins, to think about their problems and where they are in life. Step into their shoes, and see if I could be a resource to help. This is gonna make a big difference.

List of Yellow technologies

Haystack – Modular search for Django, a module that will work with the Apache SOLR, the index building utility.’ Fabric is a Python (2.5 or higher) library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. Geographic information system (GIS) is a system designed to capture, store, manipulate, analyze, manage, and present … Continue reading

Python-celery

This document describes Celery 3.0. For development docs, go here. First steps with Django Configuring your Django project to use Celery You need four simple steps to use celery with your Django project. Install the django-celery library: $ pip install django-celery Add the following lines to settings.py: import djcelery djcelery.setup_loader() Add djcelery to INSTALLED_APPS. Create the celery database tables. If you are … Continue reading

Django utility scripts

is a Web framework, but that doesn’t mean you can’t interact with it outside of a browser. In fact, one of the great things about Django being written in Python, as opposed to a Web-specific language, such as ColdFusion or PHP, is that it’s designed for use in a command-line environment. You can have periodic … Continue reading

Django template tag

import os import random import posixpath from django import template from django.conf import settings register = template.Library() def files(path, types=[“.jpg”, “.jpeg”, “.png”, “.gif”]): fullpath = os.path.join(settings.MEDIA_ROOT, path) return [f for f in os.listdir(fullpath) if os.path.splitext(f)[1] in types] @register.simple_tag def random_image(path): pick = random.choice(files(path)) return posixpath.join(settings.MEDIA_URL, path, pick)