Skip to main content

Why blog?

A few days ago I was caught up in a discussion on this topic with one of my friends. Personally I was ( and still am ) somewhat against the idea of writing blogs. Naturally when I have set out writing my first blog, I've got to justify atleast myself why I am doing so.
I had been maintaining a tiny personal website on Googlepages. Coming to know about Google's decision to phase out their Googlepages service and replacing it with Google Sites, I started looking out for some other reliable but free host. I didn't find Google Sites very appealing. It doesn't allow hosting of custom HTML pages. Being a student shelling out bucks for paid hosting would have hurt my pocket a lot. Unfortunately most free webhosts will litter the page with crappy and tasteless ads. Yahoo! Geocities' free hosting was a good compromise.
Temporarily I moved my site to but was not very happy (somewhat happy to speak the truth) with it either as it didn't allow me to use my own domain.

It was at this time when the idea of using Blogger as a replacement for a personal website occurred to me. It was not too bad an idea, atleast experimenting with it won't hurt much. With this thought in mind I gave myself a big - GO AHEAD !


Popular posts from this blog

Force an application to use VPN, using iptables in Linux

Enforcing an application, for example a torrent client like Transmission, to always use the VPN interface or any particular network interface for that matter, is trivially simple using iptables on Debian, Ubuntu or any other GNU/Linux distro.
Personally, I am running Debian Sid on the Raspberry Pi. Occasionally I use it for downloading files ( legal stuff, seriously, believe me :D  ) using Transmission Bittorrent client over a VPN connection. Sometimes it happens that the VPN connection fails and doesn't reconnect for whatever reason and Transmission continues pulling stuff directly over my internet connection, which I would like to avoid. Fortunately it is very straightforward to enforce rules based on application owner UID. Transmission runs under the owner debian-transmission in Debian (use htop to check this) and the following two lines of iptables ensures that any process with owner having UID, debian-transmission, will not use any other network interface apart from the Open…

Some more fun with SSH port forwarding and socks proxy

Few days ago I made the following post:

Prologue: Our Institute has several nice Dual Core Machines deployed for the students. Unfortunately the machines are behind a NAT with no port forwarded for external SSH access. Student's hostel is a bit far off from the computational centre. As such if someone felt the need of accessing the machines during non-office hours, it was a wee bit difficult. The sysadmin would not have agreed to forward any ports. Something had to be done....

SSH has a very useful feature - Remote and Local Port Forwarding. We have an old rickety PIII running Ubuntu 8.04.1 in the Hostel, it is connected to the net and is accessible via SSH from the internet. Using a tiny little shell script running on one of the machines in the Institute, I managed to make the old PIII an intermediate gateway for gaining SSH access to the Institute's machines from anywhere in the internet. The script is of few lines, but nevertheless powerful enough to serve our purpose.


Rendering LaTeX in Blogger.

Rendering LaTeX in Blogger is pretty easy thanks to the JavaScript LaTeX equation render engine from
To enable LaTeX rendering go to the Blogger Dashboard --> Layout --> Edit HTML . Then add the line
<script> type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
just before <body/>. Half the job is now done.
Then, for example to render:
\int_{0}^{\pi}\frac{x^{4}\left(1-x\right)^{4}}{1+x^{2}}dx =\frac{22}{7}-\pi
Use the code:
<pre lang="eq.latex">
The LaTeX code will now be displayed as:
Ofcourse Javascript needs to be enabled in the Browser for the renderer to work.