We love designing and developing websites, but what really drives us is solving problems and cultivating strong relationships with our clients
Seven reasons why you should switch to Vim
By : Javed
So you want a better IDE for developing django, huh? Why not give good old vim a try?
Use pathogen to maintain your vim plugins (and sanity).
Using this, you can clone the repositories listed here to .vim/bundle/ and start using them
right away.
Also, consider adding your .vimrc and .vim to a repository. Include .vimrc inside .vim and
symlink .vim/.vimrc to ~/.vimrc to version control your .vimrc.
My vim files can be found here. Also, here's an imgur album demonstrating these plugins in action.
1. Syntax highlighting for django templates
Starting from vim 7.1, syntax ...
more info..Importing wordpress
By : shabda
We now have a way to import wordpress to blogango, and all our old posts are on this blog.
Thanks for reading.
more info..Getting trending Github projects via YQL
By : shabda
Github.com/explore allows you to see the trending Github topics. They use repopular.com for this, which use twitter retweets to find out the popular Github repos.
Since neither Repopular, nor Github have a RSS of these trending repos, I wanted to get a list of these. Here is how easy it is with YQL.
How we do it
-
Go to YQL console. Give the SQL query to get the data from the webpage.
-
where url="repopular.com" and css="div.pad a"is the magic which select the webpage, and also what DOM elemenst we are interested in ...
Link Roundup for week ending 22/10/2010
By : thejaswi
- How DOM events work? Fantastic article by Jeremy Kahn of JupiterJS.
- django gets class based views. Thanks to everyone who contributed. Check the doc for more details and the migration guide.
- Search Engine Foo: Use DuckDuckGo to search the django and python docs from within your browser. Just use !django <search query> or a !python <search query> to search the docs. Check a django example search and python example search. DuckDuckGo has a lot of other goodies too.
- Wilson is a node.js web framework whose goal is to bring along the parts of django without tightly coupling them. Plate ...
Essential web-apps to run a software business.
By : shabda
We work on a variety of products and with people. We work in a highly distributed environment, with all of our clients working remotely from us. And while we work out of the same office, we are frequently working from other places as well. Here are the tools which help us stay productive, sane and working. :)
For our open source projects we use Github.
For our client and non OS projects, we use Unfuddle.
For our client code we need both SVN and Git, and we need tickets which can be assigned to people. Both ...
more info..Django is not flexible
By : shabda
Django is not flexible at all because you can not do simple
things like.
-
Using various authentication mechanisms.
You can authenticate via Username, emails, Facebook, Twitter or any combination of these. -
Using different database backends.
Use MySQL, PostgreSQL, Non-relational databases, more or a combination. -
Use different mail sending strategies.
Send mail via smtp, queue to database, log to files and more. -
Different file storage method.
Store locally, FTP, Amazon S3 or write your own. -
Store messages in Sessions, cookies or others.
-
Cache things in Files, DB, Memcache or just fake it.
-
Save sessions in files, DB, Memcache or cookies.
-
Use ...
Link Roundup for week ending 15/10/2010
By : thejaswi
This is the first in a series of posts where we share links aggregated from popular sources, tools we use, projects we work on, almost everything related to web development and more....
- Django's got HMAC signing: These set of changes prevent timing-based attacks and are fully backwards compatible unless you've a short SECRET_KEY.
- Django's got more committers and they are already hard at work!
- The django tests have been upgraded to use the unittest2 module. Phew! Lots of work has gone in the past couple of weeks. It just means one thing, the 1.3 alpha window ...
Testing webhooks in development platforms
By : Javed
Webhooks were popularized by PayPal and have become commonplace now a days. A typical webhook service fires a POST to a URL of your choice whenever something interesting happens. You handle this request and respond accordingly.
But you need to test webhooks regularly during development and it is a bit of a problem if your development server is inaccessible from the rest of the Internet. I have tried to solve this using ssh and nginx.
For this method to work you need:
- Development server (which can hopefully process the webhook at /webhook) lets call it (D)
- SSH accessible server (S ...
Ubuntu as a django development platform
By : Javed
Introduction:
Hi, I am Javed Khan, also known as tuxcanfly elsewhere on the internets. I have recently joined agiliq and am thrilled to be a part of the team.
This blog post covers the steps I took to convert a fresh ubuntu install to a full fledged django development platform.
Databases:
Mysql sudo apt-get install mysql-server mysql-client python-mysqldb Postgresql sudo apt-get install postgresql Sqlite sudo apt-get install sqlite python-sqlite
Version Control:
Git
need help setting up git with github?
sudo apt-get install git-core git-gui git-svn
Svn
sudo apt-get install subversion rapidsvn meld
meld is a diff/merge tool that can ...
Moving home
By : shabda
Tl;dr version:
We are moving our site from Uswaretech.com to Agiliq.com. Please update your book marks and the like.
Longer version:
We have moved. Our new, cool, and amazing site is Agiliq.com. Built with Django, pixie dust and pink unicorns, its is sure to amaze you. Please update your bookmarks.
Gory details:
- New url: http://agiliq.com/
- New Blog: http://agiliq.com/blog
- Twitter: http://twitter.com/agiliqdotcom
- Github: http://github.com/agiliq
If you are client of ours, the Unfuddle and billing details would be changing soon. (You should also have received an email from ...
more info..Great Indian Developer Summit 2010: A Review
By : lakshman
Great Indian Developer Summit, is the India's largest developer conference, held at Bangalore, India; in its third edition this year. The conference concluded last Friday. The summit had about a 1000 visitors on the first day and a comparable number on the other days.
The conference basically caters to the enterprises, and hence their focus on the .Net, Java and Flash. There were many star speakers.
I gave a talk on django, introducing it and then explaining the standard community conventions to make good reusable applications. Django, being a social software, developed by a community, it is important to ...
CSS Frameworks
By : saikiran - Designholik
A framework is a basic conceptual structure which you can use as a “scratch†for your web-projects. For instance, instead of defining global reset, consistent baseline, typographic rules or basic styles for forms over and over again — every time you work on a new project — you can prepare a default-style once and reuse it in all your future projects. This is what you call a CSS Framework. Major Advantages of CSS Frameworks
- Increase productivity.
- Cross Bowser Compatibility
- Clean, Well structured easy to maintain code base.
- Takes time to understand the CSS framework.
- You ...
Rails and Django commands : comparison and conversion
By : shabda
The most commonly used Rails commands and their Django equivalents
Rails | Django
rails console | manage.py shell
rails server | manage.py runserver
rake | None
rails generate | None
rails dbconsole | manage.py dbshell
rails app_name | django-admin.py startproject/manage.py startapp
rake db:create | manage.py syncdb
The salient points to note are,
- Django has all commands via
manage.py, Rails has it broken intorailsandrake. - Overall there are more Rails+Rake commands available than Django commands
- There is no one to one mapping between Rails and Django commands. Eg. There are no equivalent to rake doc:* or rake ...
The Rails and Django models layer Rosseta stone
By : shabda
Rails Active records and Django models are more similar than they are different. This is a quick guide to converting between Rails 3 and Django 1.2, and is available on github at http://github.com/uswaretech/Acts-as-Django
Defining models
Both Django and Rails keep the canonical database representation in ruby or python.
#Django
class Post(models.Model):
name = models.CharField(max_length = 100, )
slug = models.CharField(max_length = 100, )
body = models.TextField()
class Comments(models.Model):
post = models.ForeignKey(Post)
username = models.CharField(max_length = 100, )
comment = models.TextField()
#Rails
#db/schema.rb
ActiveRecord::Schema.define(:version => 20100319195739) do
create_table "comments", :force ...Doing things with Django models - aka - Django models tutorial
By : shabda
Django abstracts most of the actions you would be doing with the Database. What it doesn't abstracts, and doesn't try to abstract is the Database modelling part. This is a quick tutorial describing to how model your data in Django models.py, and how to access and modify them.
Consider a hypothetical HR department, which wants you to build an application to track and manage their processes. They have employees who work for a department, contractors who work for multiple department. Let's see how you you would do that in Django.
from django.db import models
class ...Wordpress and Django: best buddies
By : shabda
Summary: How to integrate a non Django database system in your Django code, using Wordpress as example. The completed code is available at github or you can see some screnshots
Though there are quite a few good Django blog applications, our blog is based on Wordpress. A number of plugin's make moving to a Django based app a bad decision for us, and not in the spirit of "best tools for the job".
We moved the other way, and decided to use Django to admin the Wordpress database. The completed code is available on Github
It is not too ...
more info..Doing things with Django forms
By : shabda
Forms are one of the best features of Django. (After models, admin, url routing etc :) ). Here is a quick tutorial describing how to do things with Django forms.
- Basic form
Prob. You want to show a form, validate it and display it.
Ans. Create a simple form.
class UserForm(forms.Form):
username = forms.CharField()
joined_on = forms.DateField()
This wil take care that the form is displayed with two text field, and a value for them are filled in, and the second field has correct formatting for a date.
2.
Prob. Create a form which has values populated depending upon a ...
more info..Tools of Pro Django developer - aka What powers dinette and almost every app we write.
By : shabda
There are some tools and apps which we use with almost all apps we write, and in particular which, we used for dinette. Here they are broken into useful during development, and (also) useful post development.
During Development
Ipython and ipdb
Ipython is a enhanced shell for python. Ipdb similarly add extra capacity to the builtin pdb debugger. It is extremely convenient to drop into a ipython shell right where a complex piece of code is being hit.
from IPython.Shell import IPShellEmbed
ipython = IPShellEmbed()
ipython()
Of course ...
more info..django-forum
By : shabda
twitter ready version:
We have released a Django forum application, with some cool features not in any other Django based forum. You can get it here or see it in action.
blog version
There are quite a few Django based forum applications, so why another? Its a bit of a rhetorical question, as the answer is "none of them met my needs exactly, so we created my own", as you might expect.
Without further ado here is a list of features. It is available on uswaretech.com/forum/.
- Based on, inspired by and ripped from PunBB. (Thanks!)
- PunBB like 3 ...
Django-buzz
By : shabda
We have updated the Django popular stories widget, which powers the widget in the side bar. It is now on Github.
Earlier the code used was hardcoded to only find Django stories, but now you can create arbitary topics from admin.
Get the code and create the widgets on your servers, (or let us know, and we will create it here if it is interesting). We created three we want to track. Databases, Python and Javascript
Databases
Python
Javascript
We build amazing web apps. Talk to us to discuss what we can do for you.
more info..Using bpython shell with django (and some Ipython features you should know)
By : lakshman
What is bpython?
bpython is a fancy interface to the Python interpreter for Unix-like operating system.
says the bpython home page. It provides syntax highlighting, auto completion, auto-indentation and such stuff.
Unlike iPython, which implements then entire shell functions and emulates the standard python shell, and adds enhancements, bpython just adds features on top of the existing python shell functionality, using the curses module.
The "killer feature" of bpython is, as you can see from the image above, the IDE like prompting of the function parameters and the doc string of the function dynamically. I have always thought, what IntellijIDEA ...
more info..Foss.in 2009: The best foss.in. Ever.
By : lakshman
There are technology conferences, and then there are gatherings of passionate technology enthusiasts. You will most likely not know what I am talking about, unless you saw that someone wrote a software for controlling a toy-car, using it's blue tooth module, from an Nokia phone, at the event. You will most likely not know what I am talking about, unless you were at Nimhans Convention center at Bangalore between 1st to 5th December 2009.
Foss.in had its beginnings 10 years ago, as linux bangalore, whose objective was the popularize free and open source software to local Indians. From ...
more info..Python metaclasses and how Django uses them
By : shabda
Foss.in is without doubt India's largest FOSS technology conference. Lakshman gave a talk today on "Python metaclasses and how Django uses them". Here are the slides from that talk.
[Edit]
Some reactions,
http://twitter.com/jaideep2588/status/6295483833
http://twitter.com/kunalbharati/status/6296572939
And the talk images, http://twitpic.com/rxhn7
You should follow us on twitter and Subscribe to our blog
more info..Django quiz
By : shabda
A quick django quiz. Answers available tomorrow. Get it as a text file (django-quiz) or on google docs or read below.
### Easy
1. You have a class defined as
class Post(models.Model):
name = models.CharField(max_length=100)
is_active = models.BooleanField(default=False)
You create multiple objects of this type. If you do
Post.objects.get(is_active=False),
what exceptions is raised?
a. MultipleObjectsReturned
b. ManyObjectsReturned
c. SyntaxError
d. MultipleModelReturned
e. ManyModelReturned
2. Where is the function render_to_response defined?
a. django.views
b. django.shortcuts
c. django.templates
d. django.contrib.templates
e. django.contrib.shortcuts
3. What is the ...- Test Driven Development in Python
- Deploying Django apps on Heroku
- Developing android applications from command line
- Deploy Django App in 5 Easy Steps
- Project Management Tools for Start-Ups
- Generating a pdf from an image using PIL and django
- Dynamically attaching SITE_ID to Django Caching
- Screencast: How to deploy Django on Heroku
- Deploying Django apps on Heroku
- How to use pep8.py to write better Django code
- rails
- django
- linkroundup
- django opinion
- opinion
- business
- API
- appengine
- python
- satire
- startup
- Uncategorized
- marketing
- personal
- rambling
- search
- interviews
- seo-interviews
- 5startupideas
- ideas
- seo
- tips
- forms
- paypal
- utilities
- datetime
- web2.0
- Amazon
- algorithms
- presentations
- products
- pinax
- satchmo
- ecommerce
- microsoft
- yahoo
- book
- tutorial
- models
- aggreagtion
- meta
- India
- apps
- about
- CSS
- Design
- wordpress
- test slug
- vim
- urls
- reviews
- javascript
- xmpp
- emacs
- Typography
- Grid Theory
- Color Theory
- iphone
- android
- titanium
- mobile applications
- CSS3
- Browser Compatibility
- mobile
- jobs
- lamson
- django setup
- files
- upload
- jsTree
- hierarchical view
- web page
- Treeview
- coffeescript
- request
- response
- South
- django south
- django migration
- --fake
- screencasts
- django caching
- SITE_ID prefix
- review
- code hosting
- comparison
- unfuddle
- fogbugz
- assembla
- github
- project management
- ticketing system
- gunicorn
- deploy
- nginx
- ubuntu
- vps
- android terminal
- terminal
- programming
- TDD
- Test Driven
- Development
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- October 2011
- September 2011
- July 2011
- June 2011
- April 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- June 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- November 2008
- October 2008
- June 2008
- May 2008
- April 2008
Link Roundup for week ending 5/11/2011
By : thejaswi
- Jacob Kaplan-Moss has a beautiful article on concrete inheritance vs abstract models for inheritance. Must read!
- Charles Leifer, the current maintainer of Django Snippets has an exhaustive blog post on setting up search using the Solr backend for Haystack.
- Chris Heilmann has an interesting video on "Reasons to be Cheerful: being a web developer is awesome!"
- Andy McKay defends the plain old non-reusable Django apps as they are easy to write, rapid to develop and have very little boilerplate code.
- Piotr Malinski has a blog post on how to use web based image editors within django apps.
- Derek Gathright shows ...
more info..