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. […]
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 […]
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) […]
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 […]
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 […]
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 […]
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 […]
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 […]