Securing the WordPress Login page
Of late I have seen quite a lot of brute force attempts to login into the admin account of this blog. The source IPs are wide and varied, ranging from Istanbul, Germany, Greece, US and more. In fact according to ArsTechnica article this has been happening for sometime now on a huge scale. I see a [...]
Configure your Belkin N150 router for BSNL broadband
Login to your router dashboard. It should usually be at http://192.168.2.1. Now under “Inertnet WAN” click on “Connection Type”. Here select “PPPoE” and click on Next. Provide your BSNL username and password. Leave the “Service Name” field blank. For “VPI/VCI” field provide 0 and 35 as values. For “Encapsulation” field choose “LLC”. Leave all other [...]
Calculate Root of Any Whole Number in Java
The following Java program can find any root of a whole number. The logic is simple. Start by guessing some number and check if that is the correct value. If that overshoots then subtract some from the guess number else add to it. We added or subtracted some fixed constant. If that constant is too [...]
The Emperor’s Old Clothes
This is a republication from ACM’s archive of Prof. C. A. R. Hoare‘s lecture at 1980 ACM Turning Award. Prof. Hoare is popularly known for inventing QuickSort. The original piece can be found as PDF here. The primary reason for republishing this is the source PDF’s fonts. The PDF fonts are too horrible to read. [...]
Quick bash command to mass rename files in numbered sequence
Just a quick bash command to rename all files in a directory in a numbered sequence. This is going to rename all jpg files in the directory to 1.jpg, 2.jpg, 3.jpg and so on.


Recent Comments