We love designing and developing websites, but what really drives us is solving problems and cultivating strong relationships with our clients
Real time applications with Django, XMPP and StropheJS
By : Javed
TL;DR:
- django-pubsub allows you to create Twitter like real-time updates for your models with Admin like ease.
- Demo at http://chat.agiliq.com/pubsub/
- Code at https://github.com/agiliq/django-pubsub
Introduction:
PubSub is a XMPP extension which allows publishing and subscribing to events. This is useful when you instantly want to notify many clients about something interesting happening on your server.
Quoting the authors of PubSub specs:
The protocol enables XMPP entities to create nodes (topics) at a pubsub service and publish information at those nodes; an event notification (with or without payload) is then broadcasted to all ...
Link Roundup for week ending 19/11/2010
By : Javed
- policystat writes about shifting seamlessly from PHP to Django
- allbuttonspressed has come up with part 2 of their tutorial on using django-mediagenerator to power an offline HTML5 canvas app.
- No surprise. TextCaptchaBreaker breaks TextCaptcha with amazing accuracy. It's on github too.
- If you know a bit of jQuery and are looking to learn YUI3, you might be interested in this Rosetta Stone
- Essential JavaScript & jQuery Design Patterns For Beginners might be a good weekend read. Looking forward to it.
- Django core devs discuss the future of with and include templatetags
- Firesheep steals authenticated sessions by sniffing network packets with ...
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..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 ...
- 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
Django: csrf error on non-existent urls
By : Javed
While testing out a API from another django site, I came across a seemingly common error.
403 Forbidden CSRF verification failed. Request aborted. Help Reason given for failure: No CSRF or session cookie.Posting the data to the api endpoint returned
more info..403 Forbiddenwith the standard csrf failure error page. I cross checked that the view wascsrf_exemptedand thatCsrfViewMiddlewarewas not enabled. The view had some other unrelated decorators which I guessed could be the cause of the problem. According to this bug, not all decorators play nice with thecsrf_exemptdecorator. Even with that fixed, there was ...