Recently I started using IRC a lot. As I was doing some django, PyQT and KDE/C++ development. Yes, its lot of development. And then whenever I want to ask some question on IRC, I have to use pastebin/dpaste. ( dpaste is developed upon django framework.
). Now, to dpaste any code, I have to switch to Firefox, I have to use mouse as well. I have to copy paste the link to xchat. This was tedious task for me. So, I started making a plugin for xchat so that I could easily paste my code. Fortunately XChat has python plugin interface.
(more…)
So, I had to change the feedparser code to run it behind proxy. Basically the idea is that python by default doesn’t user environment variables http proxy. You have to specify it in the python code.
(more…)
For last few days, I have been talking to people (mainly IITK students) about different events we have in FOSSKriti. I found people pretty enthusiastic about different events. I am pointing out those events here:
(more…)
Remember I once said that C is better than C++, so, I know I am completely biased. But I simply like C. I am a fan of its simplicity. And of course C has to be faster than C++ (which was never distinguishable in the type of programming I have done till now
). So, today I got another material to support the point that C is better than C++. Checkout here. I will keep calling Linux Linux, not GNU/Linux
.
So, you are a geek. You want to write lot of technical things on your wordpress blog. And since you are a geek you want to write technical things in Latex. How do you do? One way is that you write latex code, make pdf, take screenshot, pick the desirable part, and use that image on blog. Ofcourse thats inconvenient and surely doesn’t go with your nerd personality. You want to write Latex code in your blog post. Here are 2 solutions. One is that you use wp-latex plugin. Using this plugin you will be able to write proper Latex code in your blog using <latex></latex> tags. But the problem is that this plugin uses Latex, which is not usually supported by web hosts, including Bluehost. And installing tetex locally is painful. So, here comes the second solution. Use mimetex. Checkout http://www.forkosh.dreamhost.com/mimetex.cgi?l_2 . Similarly you can get other latex output by replacing l_2. One guy used this property and made a plugin. Using this plugin you can use latex code, basically mimetex (which is a bit different from Latex) with <tex></tex> tags. I couldn’t get it working. Another guy changed this script and made it working with \[tex\]\[\/tex\] tags. It didn’t work as well. This new plugin downloads this image and stores in wp-content/cache folder. But it downloads this image every time someone opens the post. Of course it consumes lot of server and bandwidth. So, I made a small tweak in it. I replaced it’s 15 lines with 1 line.
Basically, now instead of downloading the image, it puts src as http://www.forkosh.dreamhost.com/mimetex.cgi? blah blah. And see I am able to use latex code.
(more…)
I never liked C++. It is complex and has nothing special as compared to C. I anyways don’t like OO languages. They are slow and complex. Though I always heard people saying that C++ is better than C. Rather my friends ( those who do not use Java) use C++. I always try to use C. At least when the choice is between C and C++, I prefer C. Sometimes, when I am doing projects with other guys, they will prefer C++ and I will say lets use C and for this favor I end up doing more coding, but its better than touching C++. C is simple and fast. No stupid complexity.
(more…)