Chinmay

Learn C++ in Singing the Songs

C++ sings the following songs

* Null pointers
Mera jeevan kora kagaz kora hi reh gaya.

*Local variable
Mein pal do pal ka shayar hu, pal do pal meri kahani hai, pal do pal meri hasti hai

* Undeleted pointers
Maut bhi aati nahi jaan bhi jati nahi.

* Unused variables
Badi sooni sooni hai zindagi yeh zindagi

#include
Saathi haath bataana ek akela thak jayega milkar bojh uthana

* DO loop
Sau saal pehle, mujhe tumse pyaar tha Aaj bhi hai, aur kal bhi rahega

* IF THEN ELSE
Tum agar mujhko na chaaho to koi baat nahin Magar kisi aur ko chaahogi to mushkil hogi.

* RETURN statement
Aa laut ke aaja mere meet tujhe mere geet bulaate hain

* Procedure call
Aa aab lout chale

* malloc()
Yaad kiya dilne kahan ho tum?

* exit(), suspend
Ruk jaa o jaane waali ruk jaa

* for(;;), the infinite loop
Hum tum, yug yug se ye geet milan ke gaate rahe hain, gaate rahenge hum tum…

* #remote login:
Tumse kuchh kehna hai, agar tum kuch kehne do

* # network busy
suno – kaho, kaha – suna, kuch huwa kya? abhee to nahin…

* Two Recursive functions calling each other
Mujhe kuch kehna hein, muze bhi kuch kehna hein pehle tum, pehle tum…

* extern variable
hum hein rahee pyaar ke, phir milen chalte chalte

* static/local variable
Jeena yahaan, marna yahaan iske siwa jaana kahan

This entry was posted in Technology, Tutorials. Bookmark the permalink.

Folder Lock without any Software!!!

Many people have wished to lock folders without the use of any alternative software. So, here you go.

Lets Create a Batch file to do the Folder Lock and Unlock.

Open Notepad and copy the below code and save as locker.bat .
Don’t forget to change your password in the code it’s shown the place where to
Type your Password.

Now double click on locker .bat to run(execute) the file.
 
First time start it will create folder with Locker automatically for you.

Place the contents that you want to lock inside the Locker Folder.

Lock the folder:

Run locker.bat .

Are You Sure You Want To Lock The Folder(Y/N)
> Y

Press the enter

Your Folder is Locked Successfully.

After this the folder will be in hidden mode. and you can’t see this folder even if you set Show hidden files and folders at the  Tools -> Folder options.

Unlock the folder:
 
Run the
locker.bat again and give the password

It will show the Locker Folder.
 


Source Code
:

cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are You Sure You Want To Lock The Folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid Password. Please Try Again
goto CONFIRM
:LOCK
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder Locked
goto End
:UNLOCK
echo Enter Password to Unlock Folder
set/p “pass=>”
if NOT %pass%==Type your Password goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
echo Folder Unlocked Successfully
goto End
:FAIL
echo Invalid Password
goto end
:MDLOCKER
md Locker
echo Locker Created Successfully
goto End
:End

Security Tips:

  • Don’t open the locker.bat file or Type the Password to open the folder in front of any one.
  • Put it in the C:/ drive  and rename it.


This entry was posted in Technology, Tutorials and tagged , . Bookmark the permalink.

10 steps to recover Projects Localhost crashes.

10 steps to recover all your Projects, database and tables when server/localhost crashes.
——————————————————————————————————————

1. Before uninstalling the crashed server copy the full folder as backup of all previous data. (Example: Take backup of “C:wamp” folder)

2. Uninstall the Crashed server and install the new one.

3. Make sure your new server running and has no error.

4. If server is running make it Stop and Offline then close it.

5. Go to C:wampbinmysqlmysql5.0.45data

6. Its better to take a backup copy of this data folder.

7. Replace the files and folders with your previous server data.

8. Add your Previous Projects to the Root folder. (Example: “C:wampwww”)

9. Restart the server and check whether your previous tables and data are reflecting in the new server. (Example: Check it Out here http://localhost/phpmyadmin/)

10. Enjoy with your Old Projects at new server

This entry was posted in Technology, Tutorials. Bookmark the permalink.

ThinkFree Online Office : Its Completely Free!!!

ThinkFree is online office suite on the lines of Google Docs and Zoho Office with one difference – it costs money though some components of ThinkFree like “My Office” are available free of charge.

What’s unique about ThinkFree is that offer a desktop version of their Office suite as well so you can edit/write documents offline and they automatically get synced with the Online Office.

thinkfree-office

If you like to give ThinkFree a try, there’s no need to create another set of credentials as ThinkFree, like Zoho, now works with all Google Accounts.

Go to the Member portal and login using your existing Google Account. The Office suite also supports Office 2007 documents.

This entry was posted in General, Technology. Bookmark the permalink.

Spot the Running Train on Web

IndiaRail Info is an interesting Google Maps mashup that helps you visualize the current geographical location of any train in India. Just type train name or train number and check its exact location on the map.

indian train location
India Rail Info has a database of all trains and railway stations in India

For example, the Bandra Garib Rath Express (2910) has crossed Kota junction at 8:23pm IST. Unfortunately this site does not extrapolate this data to guess the location between two junctions, so the train is still shown at Kota. Thanks Info-Madness.

This entry was posted in General, Technology. Bookmark the permalink.