Mirror/Clone existing websites from the internet

With Unix tool ‘wget‘, you can download the contents of the whole website and have a local copy.

wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL


  • mirror : turn on options suitable for mirroring.
  • p : download all files that are necessary to properly display a given HTML page.
  • convert-links : after the download, convert the links in document for local viewing.
  • P ./LOCAL-DIR : save all the files and directories to the specified directory.


Cloning, reusing and copying content from websites may be illegal.


Using Git

So, the things around the world are changing rapidly. We’re in the era where almost every person has a smartphone. People talk to others more online and less offline (it’s their fingers which talk, and not their tongue). This has hugely impacted the software industry. Software development and computing is shooting to the sky. More mobile phone variants, more computing platforms, more apps, and yet it still feels incomplete! Lots of competition, money spilling/grabbing and everyone wants a piece of it. It seems like the people are running faster and faster, day by day, and as they do so, the world to seems to be rotating faster to keep up the pace.

Almost every software organisation is now following Agile Software Development. When there’s agility, there’s cursing, blaming and hatred. People work in groups for building a software piece, a bunch of the guys collaborate to work on the same codebase. As they do so, one may mess up the work that the other guy in the group had done, it repeats several times and then emerges cold war (or even worse) amongst the group. This is where we make a switch to better code versioning/revisioning.

Git is a code revisioning tool/system which lets every person in a team to have their own copy of the code locally. So when changes are made to he code by one person, it doesn’t affect the others. The person can continue working on his local copy smoothly and when everyone’s code has to be put together, they all sit together, discuss and merge their code peacefully.

git init
echo "test" > hello.js
git add .
git commit -m "initial commit"
git push

Navigate to your project directory and initialize it for git:

cd /path/to/project/directory
git init

Now your project directory has been initialized, which means, you can now perform git operations on this directory.

If the project directory is empty and you haven’t added any code, you could add them first. If you already have added your project files, you can now add each of them for versioning:

 git add . 

By doing this, you’re telling git to add all the files of the directory for versioning. Git can then maintain revisions of each file.

Desktop Background Slideshow in Windows XP

You might have used the Windows 7’s Desktop Background Slideshow feature. By selecting the images, we can have the slideshow of those images set as desktop background, i.e., we can see the background image changing at regular intervals.
For those of you who are still running the old Windows builds like Windows XP, you don’t get the Slideshow feature. If you’d like to have a dynamic, ever-cycling wallpapers, here’s what you have to do:
Step 1: Create a directory named Autobg in c:\ (Drive C) and add some pictures into it.
Note that the images must be in Bitmap image format (.bmp extension) as the Windows operating system handles bitmap digital images to be set as desktop background.

Step 2: Now, you just have to write a code in any programming language to create a delay in displaying the images. The easiest and familiar one is ‘C’. Compile the following C code in a C-compiler to generate a executable file (.exe) which can be run on Windows platforms. Here’s the code:

void main()
    sleep(5); //The delay of 5 seconds. You can even give the desired value.

Save the code file as sleep.c and compile the code. Now the executable file sleep.exe is generated. Add this file to the directory you created in the Step 1, i.e., into c:\Autobg\

Step 3: Now, open a text editor and type the following Script:

cd c:\Autobg
dir /B /O *.bmp > c:\Autobg\pics.txt
FOR /F "eol=;" %%i in (pics.txt) do (
REG ADD "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "c:\Autobg\%%i" /f NULL
rundll32.exe user32.dll,UpdatePerUserSystemParameters )
goto loop

Save the script file as AutoBGChange.bat
You have to convert the .bat file to .exe file.
Click here to download the converter.
Run Bat_To_Exe_Converter.exefrom the downloaded archive.
In the Browse file field, browse and add the batch file AutoBGChange.bat
In the Save as field, type c:\Autobg\AutoBGChange.exe
Change the Visibility option to Invisible application and press the Compile button to generate the .exe fiile into the c:\Autobg\ directory.

Step 4: Open the text editor again and type the following Script:

REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v AutoBG /t REG_SZ /d "c:\Autobg\AutoBGChange.exe"  /f >NULL

Save the script file as Run.bat
You have to convert the .bat file to .exe file as you did in the previous step and save the .exe file as Run.exe into the c:\Autobg\ directory.

Step 5: Open command prompt and type c:\Autobg\Run.exe

Boom! Its done. Now you can see the desktop background change for every 5 seconds! If you want to add other images to the slideshow, convert the images to .bmp format and add them to c:\Autobg\ directory.