Author: Binny V A

A philosopher programmer who specializes in backend development and stoicism.

Dynamic/Static/Strong/Weak Types

A dynamically typed language is a language where the type of a variable can be altered at any time. (It…

Command to make a CD/DVD ISO Image in Linux with dd

This command can be used to create an image of a CD/DVD/HDD. You can also use some GUI tool like…

Fetch columns of Output using Awk

One can use awk to get a specific column from a command output… First column of the command date|awk ‘{print…

Get the First Line of Command Output in Shell

Get just the first line of the output of a command… <command>|head -n1 ls -1|head -n1

Remove File Extension using sed

Get just the file title without the extension in a variable. file_name=1 file_title=`echo1|sed ‘s/\..\{3\}$//’`

Replace \n with another String

The command to convert all \n in a file to another string – very useful for list code generation. perl…

Remove Extension in Shell Scripting

This command will list all the files a folder without their extensions. Comes handy when doing shell scripting perl -e…

HTTP Digest Authentication with PHP

The code for using HTTP Digest Authentication with PHP. <?php realm = ‘Restricted area’; if (empty(_SERVER[‘PHP_AUTH_DIGEST’])) { header(‘HTTP/1.1 401 Unauthorized’);…

Find Element’s Position using JavaScript

Find the position of an element using javascript function findPos(obj) { var curleft = curtop = 0; if (obj.offsetParent) {…

Disable Password Prompt at Startup in Windows XP

Note: This post may be wrong. I’m getting a lot of complaints that this doesn’t work. See the Microsoft page…