Tuesday, December 27, 2011

Some fun google tricks

Type

do a barrel roll 

in google search and see what happens

another one

search for ascii art in google and see what happens


Sunday, December 25, 2011

Fix your booting problems with MbrFix.exe

Usage:



MbrFix /drive {/partition } { /yes } { /byte }

Requirements:


The program is made for Windows NT, Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7 and Windows PE. Both 32-bit and 64-bit x64 editions are supported.

You need administrative privileges to make it work!

Purpose:


Perform several Master Boot Record (MBR) tasks, like backing up, restoring, fixing the boot code in the MBR, etc. The utility should not be used for GUID Partition Table (GPT) disks. The utility now, by popular demand, also come in a x64-version running unde x64-editions of Windows and PE.

Commands:


MbrFix /drive driveinfo Display drive information


MbrFix /drive drivesize Returns drive size in MB as return value


MbrFix /drive listpartitions Display partition information


MbrFix /drive savembr Save MBR and partitions to file


MbrFix /drive restorembr Restore MBR and partitions from file


MbrFix /drive fixmbr {/vista
/win7} Update MBR code to W2K/XP/2003, Vista or Win7


MbrFix /drive clean Delete all partitions on the selected disk


MbrFix /drive readsignature {/byte} Read disk signature from MBR


MbrFix /drive writesignature Write disk signature to MBR


MbrFix /drive generatesignature Generate disk signature in MBR


MbrFix /drive readstate Read state from byte 0x1b2 in MBR


MbrFix /drive writestate Write state to byte 0x1b2 in MBR


MbrFix /drive readdrive


Save sectors from drive to file


MbrFix /drive /partition fixbootsector


Update Boot code in boot sector


MbrFix /drive /partition getpartitiontype


Get partition type


MbrFix /drive /partition setpartitiontype


Set partition type


MbrFix /drive /partition setactivepartition


Set active partition


MbrFix /drive getactivepartition Get active partition


MbrFix volumeinformation driveletter Get volume information for partition


MbrFix flush {driveletter(s)} Flush files to disk for partition


MbrFix listpartitiontypes List partition types

Drive numbering starts on 0.


Partition numbering starts on 1.

Commands restorembr, fixmbr, generatesignature, writestate, clean, setactivepartition and fixbootsector will ask for confirmation unless /yes is included. All these commands may lead to data loss if used incorrectly or without intention.

If the /byte option is given for the readsignature command, the signature is returned as a byte array instead of as a DWORD. Writesignature requires the new signature to be specified as 8 hex digits.

If /vista is used with the fixmbr command, a Windows Vista MBR is written, if /win7 is used, a Windows 7 MBR is written instead of the default Win2000/XP/2003 MBR. The Vista or Win7 MBR should work with the other OS'es.

When fixing boot sector of a chosen partition, the wanted OS version must be specified. For now, the only valid choices are WIN98, DOS5 and DOS6.


The purpose of the fixbootsector command is to insert boot code for loading DOS from a partition created and formatted as FAT using the Windows 2000/XP/2003 tools, since those tools inserts boot code for loading NTLDR.
Return codes:


The program reports an errorlevel as 0 for OK and other values for errors.


The exception to this is the ReadState, GetPartitonType and GetActivePartitions command which returns the state as a return code as well as printing to stdout. Any errors for this command are returned as negative values because of this. The DriveSize command returns the drive size in MB, and 0 in case of error.

Why do I need this utility?


Well, I was testing Windows Embedded XP using a virtual PC, and was booting Windows PE from a CD-ROM to partition a brand new harddisk (quite cheap, since it was virtual !). Using the diskpart.exe utility (found in Windows XP and Windows Server 2003, available as a download for Windows 2000), I created the partition, made it Active, assigned it a drive letter. I then used the format.exe utility to format it to NTFS (format C: /fs:ntfs).

DISKPART> detail part


Partition 1


Type: 07


Hidden: No


Active: Yes



Volume ### Letter Lable Fs Type Size Status Info.


---------- --- ----------- ----- ---------- ------- --------- --------


* Volume 1 C WinXP NTFS Partition 149 MB OK System

I then mounted a network drive to my physical computer and copied the boot.ini, ntldr, ntdetect.com, windows folder, program files folder, etc. from the Windows Embedded XP image directory. Everything to make it boot.
Well everything should be OK, so I rebooted the (virtual) computer and expected it to boot up Windows Embedded XP.

But not so! It just sat there with a nice black screen. No error message at all.

Some investigation later on the Internet, I found this very informative page by Daniel B. Sedory: http://thestarman.narod.ru/asm/mbr/index.html, containing a wealth of MBR info. The info on one of the pages states that the MBR code is installed on the drive when the Windows setup program runs and no MBR code exists already. Hmm.., seemed to be right on the mark.

I searched further on the Internet, but the only utilities I found which could install MBR code was for other operating systems, like FDISK.exe /MBR for DOS (but I wouldn't boot to DOS...) or the fixmbr command in the Windows 2000/XP/2003 Recovery Console. Didn't want that either. Wanted something to work on a Windows 32 bit platform, to be able to fix the problem in other cases when using Win PE and just plain copying in the operating system files. So, then I was left to make the utility myself!
Problem solved: After booting up Windows PE from CD again, the command MBRFix /drive 0 fixmbr /yes solved it all. Embedded XP booted like a charm.
Samples:
C:\> MbrFix /drive 0 listpartitions
# Boot Size (MB) Type
1 Yes 151001 6 DOS 3.31+ 16-bit FAT (over 32M)
2 1623 12 WIN95 OSR2 32-bit FAT, LBA-mapped
3 0 0 None
4 0 0 None
C:\> MbrFix /drive 0 savembr Backup_MBR_0.bin
C:\> MbrFix /drive 0 restorembr Backup_MBR_0.bin
You are about to Restore MBR,
are you sure (Y/N)? Y
C:\> MbrFix /drive 0 fixmbr /yes
C:\> MbrFix /drive 0 fixmbr /vista /yes
C:\> MbrFix /drive 0 /partition 2 fixbootsector WIN98 /yes
C:\> MbrFix /drive 0 /partition 2 setpartitiontype 14 /yes
C:\> MbrFix flush (flush all drives)
C:\> MbrFix flush cde (flushes C:, D: and E:)
C:\> mbrfix readsignature
C:\> mbrfix writesignature 473d4f07

Readstate and Writestate:


The commands readstate and writestate use a byte at offset 0x1b2 to store state. This was changed from offset 0x1b0 used in earlier versions to be compatible with Windows Vista MBR. These commands are only useful in a scenario where you use Windows PE to roll out other MS operating systems, and you have no other place to store information about where you are in the installation process. This location in the MBR is unused as far as known, from the days of DOS 3.30 until Vista.


Download







Friday, December 23, 2011

How to prevent the infamous facebook video link virus to spread

You just need to remove an Extension installed on your browser Named “YouTube Premium“.


Google Chrome Users: Tools > Extensions and remove the “YouTube Premium” from there.
Mozilla Firefox Users: Go to Tools > Ad-dons > and remove the “YouTube Premium” from there.



That’s it. You might need to restart your browser to see the effect. After removal whenever you see this status update, just click report spam to the update.

Friday, December 16, 2011

Drive (2011)



Drive (2011)

"Get in. Get out. Get away."

A Hollywood stunt performer who moonlights as a wheelman discovers that a contract has been put on him after a heist gone wrong.

IMDB Rating 8.2/10

Sourav Bhattacharya

Wednesday, December 14, 2011

To remove the read only property stuck folder

Possible Solution

1.Start Registry Editor (Regedit.exe).

2.Locate the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Explorer3.On the Edit menu, point to New, click DWORD Value, and then type the following registry value name:

UseSystemForSystemFolders

4.Right-click the new value, and then click Modify.

5.Type 1, and then click OK.

6.Quit Registry Editor.

7.After you make this change to the registry, you must change the Read-Only attribute for all affected folders by using the attrib command at a command prompt (Command.com or Cmd.exe). Type attrib /? at the command prompt to view the syntax for the attrib command. For example, to change the Read-Only attribute to System for the C:\Test folder, use the following command:

attrib -r +s c:\test

Good Night, and Good Luck.


Good Night, and Good Luck.(2005)

"In A Nation Terrorized By Its Own Government, One Man Dared to Tell The Truth"

Broadcast journalist Edward R. Murrow looks to bring down Senator Joseph McCarthy.

IMDB Rating 7.6/10

Sourav Bhattacharya

Final Destination 5(2011)


Final Destination 5(2011)

"This Summer, death decides how... fate decides when."

Survivors of a suspension-bridge collapse learn there's no way you can cheat Death.

IMDB Rating 6.2/10

Sourav Bhattacharya

11:14(2003)


11:14(2003)

"For even the devil disguises himself as the angel of light."

The events leading up to an 11:14 PM car crash, from five very different perspectives

IMDB Rating 7.3/10

Sourav Bhattacharya

Possible solution to activate the numlock before the user log in

To enable NUM LOCK before a user logs on, follow these steps:

Run Registry Editor.

Move to

HKEY_USERS\.Default\Control Panel\Keyboard


Change the value for InitialKeyboardIndicators from 0 to 2.

Monday, October 31, 2011

Install and enable acl in Ubuntu

sudo apt-get install acl



vi /etc/fstab


put a comma after errors=remount -ro
and then write acl


save the file


if acl is enabled


you should see


acl after a comma after errors=remount - ro


then mount and remount the filesystem which needs acl to be turned on


in my case


mount -o remount /


now create a file and use the command setfacl or getfacl



Wednesday, October 19, 2011

Install wine using command line in Ubuntu


sudo add-apt-repository ppa:ubuntu-wine/ppa





Then update APT's package information by running 'sudo apt-get update'. You can now install Wine by typing 'sudo apt-get install wine1.3'.

Source:
http://www.winehq.org/download/ubuntu

Monday, October 3, 2011

A must read book for voice professionals,voice over ip fundamentals 2nd edition


voice over ip fundamentals 2nd edition

I have been in the voice technology field for years,I didn't have any background in voice,for people like me this book is a great introduction,it really made the complex topics quite easy for me.

Friday, September 16, 2011

Some useful commands in linux





ls -F


The -F option is to display a slash after each working directory and an asterix after each executable file


 to create a directory under a directory in one command


mkdir -p


for example


 mkdir -p sourav/sourav2/sourav3 


cd when using without arguement takes you to the home of current working directory


for example


pwd


/home/sourav


mkdir sourav3


cd sourav3


pwd


/home/sourav/sourav3


cd


pwd


/home/sourav


copy a file using relative pathname


pwd 


/home/sourav


mkdir -p sourav3/sourav4


cd sourav3


cat > sourav1.txt


Hello how are you


ctrl+z


cp sourav1.txt ..


ls ..


sourav1.txt will be shown in the home direc


cd ~


cat > sourav2.txt


Hello how are you


ctrl+z


cp sourav2.txt sourav3/sourav4


ls sourav3/sourav4


sourav2.txt will be shown
cp sourav2.txt


to add a new user


$ sudo useradd username -m -s /bin/bash 
$ sudo passwd username 


to login as a different user in terminal


sudo -i -u





Sunday, September 11, 2011

Solving missing gnome-panel in ubuntu

Just two commands are  needed


pkill gnome-panel


gnome-panel

Upgrading the kernel in Ubuntu


Upgrade of the kernel in Debian or Ubuntu Linux


Use apt-get command. First find your kernel version:
 uname -r


Next find available kernel images:


 apt-cache search linux-image


Now install kernel by explicitly specifying version number:
 apt-get install linux-image-x.x.x-xx


OR


 sudo apt-get install linux-image-x.x.x-xx


Search for kernel  header version (must to use in Vmware)


 apt-cache search linux-headers-$(uname -r)
Install linux-header package


 sudo apt-get install linux-headers-$(uname -r)


Let's now configure all packages that are still unconfigured :
 sudo dpkg --configure -a

First things to do after installing Fedora

i
yum -y update kernel

yum -y install kernel-devel kernel-headers dkms gcc gcc-c++

To enable root login in gui

    su -c gedit /etc/pam.d/gdm

Comment the following line  'auth required pam_succeed_if.so user !=root quiet'

    # auth required pam_succeed_if.so user != root quiet

Do the same for /etc/pam.d/gdm-password

Save the file and logout from GUI. Now you can login as root 

Some useful excel tips


tab for horizontal moving


enter for vertical moving


shift + tab for  backing horizontally


shift + enter for backing vertically


ctrl + home to go to A1


home to reach the first row of the selected column


to navigate vertically faster


press the page down key


to go up faster


press the page up key


to navigate horizontally faster


alt+shift+page down


to go back


alt+shift+page up


to change or delete the content of a cell you need to select the cell and start typing


to use the clipboard click the x sign of the clipboard bar at the left upper corner


now you can have multiple values in your clipboard as


click and highlight any cell and click the copy button in the clipboard area,the value of the cell will be copied in the clipboard,now if you select any cell and clik one of the stored value in the clipboard the value will be put on the selected cell


undo=ctrl+z


redo=ctrl+y


to select adjacent group of cells


ctrl+shift+down arrow for vertical group of cells until it encounters an empty cell


ctrl+shift+right arrow for horizontal group of cells until it encounters an empty cell


to select non adjacent cells use ctrl + left click


current region=adjacent cells those have data


to select current region ctrl+shift+space


to select the entire worksheet


ctrl +a or the triangle sign at the right corner

Thursday, August 11, 2011

Modify speed and duplex settings in ubuntu

apt-get install ethtool

ethtool -s eth0 autoneg off speed 10 duplex half

ethtool eth0

Some basic networking commands in ubuntu

ifconfig eth0 Ip

ifconfig eth0 netmask subnetmask

route add default gw gatewayip

ifconfig eth0 up

/etc/init.d/networking restart

gedit  /etc/resolv.conf

nameserver dnsserverip

/etc/init.d/networking restart

Monday, July 11, 2011

Change permission of all the files at once in windows 7

Well migrating from XP to windows 7 it is a huge pain to work with files sometimes,because the permission of the files changed automatically and and need to be changed to be used properly,taking the ownership of the file also help,but I didn't know how to change the permission of all the files at once as whenever you select multiple files and right click on them the security bar do not appear unlike XP,here is the 2 command that can do the job for you(for me the last one worked like a magic).



Use takeown from the command prompt to take ownership a folder and all subfolders & files recursively:

takeown /f "c:\folder\subfolder" /r

You can use CACLS from the command prompt:

cacls "C:\path\to\folder" /E /T /C /G "Administrator":F

The /T switch allows it to function recursively. Replace Administrator with the user you wish to give permissions to.

Source:http://superuser.com/questions/116625/recursively-change-owner-windows-7

Sunday, July 3, 2011

Alien 3 (1992)


Alien 3(1992):3 times the suspense. 3 times the danger. 3 times the terror

IMDB Rating 6.3/10

Ripley continues to be stalked by a savage alien, after her escape pod crashes on a prison planet.

Sourav Bhattacharya
Kolkata



Art School Confidential(2006)


Art School Confidential(2006):Who said anything about talent?

IMDB Rating 6.3/10

Starting from childhood attempts at illustration, the protagonist pursues his true obsession to art school. But as he learns how the art world really works, he finds that he must adapt his vision to the reality that confronts him. 

Sourav Bhattacharya
Kolkata

Friday, July 1, 2011

Martyrs(2008)


Martyrs(2008):They did not finish to be alive...

IMDB Rating 7.0/10

A young woman's quest for revenge against the people who kidnapped and tormented her as a child leads her and a friend, who is also a victim of child abuse, on a terrifying journey into a living hell of depravity.

Sourav Bhattacharya
Kolkata

L'affaire Farewell(2009)


L'affaire Farewell(2009):Secrets have the power to change the course of history.

IMDB Rating 7.1/10

The French intelligence service alerts the U.S. about a Soviet spy operation during the height of the Cold War, which sets off an unfortunate chain of events.

Sourav Bhattacharya
Kolkata

Kaminey(2009)

Sourav Bhattacharya Kolkata IT

Kaminey(2009):Thif monfoon. Difcover your mean fide.

IMDB Rating 7.5/10

Guddu and Charlie are identical twins born and raised in the slums of Mumbai. They dream of leaving the squalor behind and moving into a life of prosperity and dignity...

Sourav Bhattacharya
Kolkata

True Grit(2010)


True Grit(2010):Punishment comes one way or another

IMDB Rating 7.9/10

A tough U.S. Marshal helps a stubborn young woman track down her father's murderer.

Sourav Bhattacharya
Kolkata

Ripley's Game(2002)

sourav seo kolkata ccna mcse


Ripley's Game(2002):The talented Mr Ripley is back. Older. Wiser. More dangerous

IMDB Rating 6.7/10

Tom Ripley persuades a man to commit a murder for a large sum of money. The situation goes out of control, and that man must escape trouble.

 Sourav Bhattacharya
Kolkata

Zodiac(2007)


Zodiac(2007):Based on the true story of America's most notorious serial killer.

IMDB Rating 7.8/10

A San Francisco cartoonist becomes an amateur detective obsessed with tracking down the Zodiac killer.

Sourav Bhattacharya
Kolkata

Tuesday, June 21, 2011

Restore the Cisco IOS to a router



Have you ever accidentally wiped out the IOS on your router?If you're working quickly and not paying attention, it can be an easy mistaketo make. All it takes is making a typo in the destination filename when you'retrying to save a change.

Here's an example:

router# copy running-config startp-configDestination filename [startp-config]? Erase flash: before copying? [confirm]Erasing the flash filesystem will remove all files!
Continue? [confirm]

Hitting [Enter] a couple of times out of habit can all tooquickly wipe out the IOS. If you don't realize the mistake in time, rebootingthe router means the IOS is gone for good, and the router won't boot up.

Losing the IOS can also happen when upgrading the flash onthe router. As the Cisco IOS grows larger, having to upgrade your flash is a verycommon task. But when you install the new flash, it has no IOS, leaving you inthe same position as if you had accidentally erased the flash.

Unfortunately, if you're like many people, when you wipe outthe IOS, you may not have a backup copy of the IOS. Or, you may not have accessto the Cisco IOS download site or have the time to download the somewhat largeIOS file.

And if you're looking for the same IOS on all of yourrouters, it can be difficult to locate it on the Cisco IOS download site. Manytimes, it's much easier to take the IOS from an existing router and restore iton the router that's missing its IOS.

Let's look at the step-by-step process for restoring theCisco IOS to a router using this method.
Install a TFTP server

First you need to install a (TFTP) server. I recommend theTftpd32 server, which you can download from theWeb. This is a great TFTP server, without a lot of the fluff that most ofthe others have. At less than 1 MB, it's very small and has no installapplication.
Run the TFTP server on a PC

If you've just pulled the working router off a shelf, youcan connect the PC to the router with a reverse Ethernet cable. Configure therouter and PC on the same network. Make sure that you can ping the router and thatthe router can ping you.

If your working router is up on your network, you can just downloadthe IOS over the network directly using instructions in the next section.
Copy the IOS from the working router to the PC

Here's an example of how to accomplish this:

copy c2600-12-3.xxxx.bin tftp://10.253.15.72

Replace 10.253.15.72 with the IP address of your PC, andreplace c2600 with the name of your IOS. (You can locate the name of the IOS onthe working router using the show flashcommand.)

This saves the IOS on the PC in the directory configured bythe TFTP server. Figure A shows anexample of what it looks like while downloading. Make sure to note thedirectory in which you'll save the IOS.
Download the IOS to the nonworking router

The best way to accomplish this is via Ethernet. Thealternative—using XMODEM through the console—will be very slow, even if youincrease the serial port baud rate to the maximum. So, instead, connect thePC's reverse Ethernet cable to the nonworking router (or use twonormal/straight-through Ethernet cables and a switch).

Without an IOS, the nonworking router will boot up in ROMmonmode. The prompt will look like this:

rommon>

Verify the necessary settings

On the console of the nonworking router while in ROMmonmode, use the set command to displaythe current settings, which the program will use to download the IOS via TFTP. (Fora Cisco example of these steps, check out this Ciscodocumentation.)

For example, here are the settings you must set for the tftpdnld command to work:

rommon> setIP_ADDRESS=10.253.100.126IP_SUBNET_MASK=255.255.0.0TFTP_SERVER=10.253.15.72DEFAULT_GATEWAY=10.253.1.1TFTP_FILE={the name of the IOS that is saved on the PC}

However, your settings may not contain any of the requiredvariables for the tftpdnld command.By default, it may look something like this:

rommon 9 > setPS1=rommon ! > BSI=0RET_2_RUTC=0RET_2_RTS=?=1

If this is the case, set the required variables. While itmight seem obvious to use the setcommand to set the variables, you can actually set the variables simply by enteringthe name of the variable, the equal sign [=], and the value.

For example, to set the IP address of the broken router, youwould use the following:

IP_ADDRESS=10.253.100.126

Final steps

After setting your values, run the tftpdnld command, which will replace the IOS. Listing A provides an example of how I restored a router.
An alternate approach to the tftpdnld command

However, if the tftpdnldcommand doesn't work for some reason, you can use the xmodem command to send the IOS over the serial console line. (Forinstructions for this process, checkout this Cisco documentation.) However, if you decide to take this route,it's a good idea to change the baud rate on the console and your PC to 115,200so it doesn't take more than four hours for an 8-MB IOS file to transfer overthe 9600-baud console.

On a final note, keep in mind that different models of Ciscorouters and different Cisco firmware versions respond differently. For example,these commands performed on a 2600 series router may not work on a 3600 seriesrouter. However, the basic process remains the same.

By David "Davis CCIE, MCSE+I, SCSA"
March 24, 2005, 8:00am PST