February 2012
1 post
To Shalu
var b = document.body;var c = document.getElementsByTagName('canvas')[0]; var a = c.getContext('2d'); document.body.clientWidth; with(m=Math)C=cos,S=sin,P=pow,R=random;c.width=c.height=f=500;h=-250;function...
Feb 14th
July 2011
3 posts
2 tags
Shivling : Avoiding boilerplate in views in Django
I have been unable to find time to continue my Shiv series, however, a chat with a friend(@arihersh) who has just started learning django reminded me of a small piece of code I had written sometime back. The chat went something like this Ari Hershowitz: I’d like to have html “widgets” that have certain actions, without having to create an artificial url + view to...
Jul 25th
10 notes
2 tags
Shiv The Third - Return of Tutorial
Continuing from my previous posts on Shiv, Shiv - A wrapper over Django and Shiv - Part Deux, I will now try to explain about various components involved in Shiv. In this post we will talk about Media and Element. In later parts, we will explore Tabs, Boxes, Widgets, Pages, and Caching. An app using Shiv should have the following files 1. page.py: This will contain the definition for all Page...
Jul 6th
3 notes
2 tags
Shiv - Part Deux
After debating whether to release early or release well, I have settled for the former. I hope that once the code is out in the open and I get ridiculed for the lousy code quality, it will motivate me to find time more aggressively to correct and refine the framework. I will try to find some time to continue my little tutorial of Shiv with sample applications in the next installment. In the...
Jul 2nd
1 note
June 2011
1 post
2 tags
Shiv - A wrapper over Django
I joined LazyZach as the first hire back in 2009. I was already in love with Python by then and when it came to deciding which technology to use, the answer was quite obviously, Django. While Django does speed up development, I wanted something a bit more streamlined to my thought process. Having my “views” all over the place was definitely not the way I wanted to go. Plus, there was...
Jun 19th
1 note