Desinerd : Dipankar's Blog

Multiple views using bottle.py

Published: in Personal, , , , , , , , , , by . Leave a Comment on Multiple views using bottle.py.

I have been using the micro-framework called bottle.py, and starting to write fairly complicated applications on top of it. So I have been able to put together a relatively clean structure based that serves my maintainability issues This setup uses redis, memcached, and mako as the templating language. Lets assume the application name is project. […]

Python, Passenger phusion and dreamhost

Published: in @Work, , , , by . Leave a Comment on Python, Passenger phusion and dreamhost.

Well, had to setup some stuff on dreamhost. Turns out that they are fairly bad on django hosting. Here is a working passenger_wsgi.py that is possibly much better than the default. Please not that you must have paste [http://pythonpaste.org/]  installed for this to work correctly. This has python2.7 locally installed in your account, with all […]

Listing all your blogposts

Published: in Technical, , , , , , , by . Leave a Comment on Listing all your blogposts.

So here is a quick snapshot at how to get all your wordpress blogposts using python [or wordpresslib to be specific] — #!/usr/bin/env python import wordpresslib import tinyurl wordpress = raw_input(‘Wordpress URL:’) user = raw_input(‘Username:’) password = raw_input(‘Password:’) # prepare client object wp = wordpresslib.WordPressClient(wordpress, user, password) # select blog id wp.selectBlog(0) posts = wp.getRecentPosts(100) […]

Jailed in FreeBSD

Published: in Technical, , , , , , , by . 2 Comments on Jailed in FreeBSD.

Well, working on freeBSD right now some immediate learnings for most linux users Ports is as good as apt-get [and i would say much better, when i started installing stuff] You will need to start with installing vim and bash to make your life a lot easier So the target was to install python and […]

obsessing about bdb, queues

Published: in Personal, , , , , , , , by . Leave a Comment on obsessing about bdb, queues.

So my nightmares do no cease to end, still debating queue solutions and databases. After spending a lot of time thinking about how to handle 100 million entries , concurrency and a lot of jazz here are some conclusions that I have reached. Tokyo Tyrant needs some testing personally. Can it work well within a […]

bangalore, h1n1 and queues

Published: in Personal, , , , , , , , , , , , by . Leave a Comment on bangalore, h1n1 and queues.

So for that last one week a major area of work has been queues and here are the various queues that i encountered memqueuedb – a speedy message queue based upon the memcached client protocol. The idea was to use it to cache certain objects in a system. JMS – Seems to be an integral […]

Twitter background generator version 0.1

Published: in Technical, , , , , , , , , , by . Leave a Comment on Twitter background generator version 0.1.

Working on a very basic twitter background generator, right now focusing on how to get the sidebar width right. It is very much under use at my twitter handle @dipankarsarkar (http://twitter.com/dipankarsarkar). The core idea is to be abe to communicate more information about what i do as a person using the background image. Some features […]

Nginx + django fcgi lessons

Published: in Technical, , , , , , , , , , , , by . 2 Comments on Nginx + django fcgi lessons.

Today was a good day as i learned some valuable lessons about django and nginx. ALWAYS close the database cursor in django, it can lead to some pretty wierd memory issues going forward. FIND the most optimal number of database connections you initialize for you connection pooling. This will let you optimize on memory going […]