Monday, 13 May 2013

USING C++ IN WINDOWS 7/8

Since windows 7 or 8 and even vista don't support full screen mode for command prompt it creates difficulty for programmers using turbo c++ .
here are some easy solutions-

DEV C++ - 


You can download the latest version of dev c++  .I myself use dev c++ 5.3.0.3 which works absolutely fine with windows 8.It also supports standard template library (STL) which makes programming a lot easier by including algorithms and classes like vector and string and also these features are not supported by turbo c++.

TURBO C++-


However if you are well acquainted with Turboc++  and not ever used namespaces then you might get
stuck while using Dev c++ .So you can still use Turboc++ with DOSBOX . You can download it from here .But it also has some issues like after running your program for first time your mouse cursor will stop working which is sometimes very irritating.

CODE::BLOCKS-

Setting up it can be little annoying in the beginning (so I am giving a full step by step tutorial )  but after setting up you will find it very easy to use even for any type of programming you can use it.
You can download code blocks for different operating systems from here ( be careful to download the file with mingw-setup )

INSTALLING CODE::BLOCKS

  • Run the downloaded setup
  • click next several times to follow default installation( I will assume default installation while setting up code::blocks ) 



  •  You may also change the default directory above

  • And click on finish when code block installation completes 


SETTING UP CODE::BLOCKS

The following window will come up when you start code::blocks

Click on create a new project 
following window appears


Click on "Console Application" and press "Go" button.
Code::Blocks will then prompt you with where you'd like to save the console application: 
I'd recommend you put it in its own folder, as it may create several files
 (this is especially true if you create other types of projects). 
You will need to give your project a name, anything will be fine. 
click next


click on finish





You can now open the main.cpp file on the left: 


 (You may need to expand the contents of the "Sources" folder if you don't see main.cpp.)

At this point, you will have your main.cpp file, which you can modify if you like. For now, it just says "Hello World!", so we can run it as is. Hit F9, which will first compile it and then run it.
You now have a running program! You can simply edit main.cpp and then hit F9 to compile it and run it again



Saturday, 11 May 2013

VIRTUAL BOX AND GUEST OPERATING SYSTEM


Are you using windows and also want to use features of ubuntu or linux or any 
other operating system without actually installing it here is the solution .

VirtualBox is a powerful x86 and AMD64/Intel64 virtualisation product for enterprise 
as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available 
as Open Source Software
Presently, VirtualBox runs on Windows, Linux, Macintosh, and Solaris hosts and 
supports a large number of guest operating systemsincluding but not limited to 
Windows (NT 4.0, 2000, XP, Server 2003, Vista, Windows 7), DOS/Windows 3.x, 
Linux (2.4 and 2.6), Solaris and OpenSolaris, OS/2, and OpenBSD.
How to install it ->
You can simply download setup depending on your operating system from its website 
www.virtualbox.org 
How to use it  ->
you need an iso file for the guest operating system you want to use. For ubuntu or linux you can get the iso file over net . now you need to mount this iso file with the help of virtual box and
 now can setup your virtual machine by giving it some name and specifying space and ram it will use .



WANNA CHANGE YOUR WINDOWS EXPERIENCE INDEX

Here is the trick to change your windows experience index which is applicable in both windows 7 and windows 8


  1. Go to C:\Windows\Performance\WinSAT\DataStore .
  2. Find the file named like ***Formal.Assessment**.xml it will be largest (in size) of all.
  3. We need to change this file so copy it to some easily accessible location .(like desktop)
  4. Now open the copied file in notepad .
  5. Towards the end of first line you will start finding tags like <systemscore>x</systemscore> or diskscore which you can change by yourself to a desired value (upper limit for win7 is 7.9 and for win8 is 9.9)
  6. Now you need to replace this file with the original file by copying it there .It may require administrator privilege .
  7. You are done go to system properties to check your score

SOLVING ERRORS LIKE MISSING MSVCR*.DLL OR D3DX10.DLL OR D3DX10_33.DLL OR 43.DLL



A lot of people will tell you to download the dll from some external link and put it in your game folder, however, this should not be done as:
If there is a security fix for the dll by microsoft, you will not be notified of an update.
Future programs that require this dll will not be able to access it.
The legitimacy of the files can not always be verified.
Simple problems come with simple solutions.
An asterisk (*) indicates a wildcard.

Missing MSVCR*.dll files

These are known as the Microsoft Visual C++ Runtime libraries. There are different versions available for the different versions of Visual Studio that produce exes/dlls.
The number at the end of the file indicates what version of MSVC produced the program, and what version of the runtime libraries that you need to install.
Here are a quick rundown of versions
Microsoft Visual C++ 2005 - MSVCR*8*.dll
Microsoft Visual C++ 2008 - MSVCR*9*.dll
Microsoft Visual C++ 2010 - MSVCR*10*.dll
You can easily download required Microsoft Visual c++  by going to
 http://www.microsoft.com/en-us/download/details.aspx?id=5555  for 32 bit
and
http://www.microsoft.com/en-us/download/details.aspx?id=14632 for 64 bit

Missing d3d*.dll files

You could also download the DirectX End-User Runtime Webinstaller from http://www.microsoft.com/downloads/details.aspx?FamilyID=2da43d38-db71-4c1b-bc6a-9b6652cd92a3&displayLang=en . Even if only updates for "DirectX 9.0c and previous versions" are mentioned, updates for DX 10 and 11 are contained, too (the web installer won't change your current DX installation, only add missing files). Whatever you do, look into your Windows\System32 folder. The following D3DX10xxx.dll's should be present:
 D3DX10.dll (2006),
 D3DX10_33 (2007) up to D3DX10_43.dll (2010).
Also as these errors arise while installing games you might find the required setup of Directx and Microsoft Visual c++ present in games setup folder . It will be better to install it from here as it will contain the required versions of both.

RETRIEVING A DELETED FILE

If you have deleted an important file accidently
and now you need to restore it
you can check your recycle bin
but if your lucky enough to have the file deleted from recycle bin also
then there is very less chance of recovering it.
But it is possible because even after deletion of a file from recycle bin.
 It remains on hard disk until it is overwritten by any other files .
So there are are soft-wares available that can recover lost files

like Recover My Files OR Restoration 3.2.13

you can try any one of the software to recover your deleted file
however chances are very less.


HOW TO SPEED UP A SLOW COMPUTER


If  your computer is slowing down since you have purchased it
here are the things you should check for
HARD DRIVE-
hard drive filling up is important and lot of people don't realize that you must definitely
get rid of stuff that you are not using any more. now you can do that by-


disk cleanup-(  in  old windows start ->all programs->accessories->system tools->disk clean up
                        in win 8 simply search for disk cleanup would be easier     )

it lets you clean up lot of stuff you are not using anymore
CCleaner-
to download it click here
it is far more better than disk cleanup and cleans a lot of space .
also it fixes registry issues making your computer much faster
 (however you should be careful while dealing with registry )


You may also go for buying an external hard disk to keep all movies ,
games kind of stuff to make your hard disk cleaner.
Emptying recycle bin is also important.
As operating system runs from that drive more filled up
 the drive will be more time it will take to load

RAM also plays a significant role in the speed of a computer
and if you brought a computer many years ago then ram might need to be increased
as the current version of all programs would require higher ram than the old ones.
so you should go for increasing your computer's RAM.
also at last I would recommend windows 8 since it is very fast
 and if your half time is wasted in just opening and shutting down your pc
 then you definitely should go for windows 8 if possible

EASY VIRUS TRICKS USING VB SCRIPT


CD/DVD CONTINUOUS EJECTION

This code snippet will eject your cd drive continuously.
You just need to copy it in a notepad and save with extension .vbs .
You can also change its icon to something familiar so that no one knows what it is.
To kill this virus you just need to go to task manager , go to processes tab click on "wpscript.exe"
 and click on end process
Here is the code
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >=1 then
do
For i=0 to colCDROMs.COunt -1
colCDROMs.item(i).Eject
Next 'cdrom'
loop
End If
For i=0 to colCDROMs.COunt -1       //If you add these (3) lines in coding again it would decrease the 
colCDROMs.item(i).Eject                  // time between loading and ejection half  i.e the speed would 
Next 'cdrom'                                        //double.you can add these three lines as many times as you want

CRAZY LIGHTS

you can also make your keyboard lights (num lock,caps lock,scroll lock) go mad.they will light up and go down as fast as and in the order as you want.just copy the code given below(remember that this will make lights go crazy and also it makes your typing crazy with upper case and lower case shuffles)

Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
wshshell.sendkeys "{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
loop

now change the value 50 as you want.it will change the interval between lights flashing time.and also u can change the lighting up order just by changing the order in last 3 rows of the code except looping line



Friday, 10 May 2013

RUNNING TORRENT IN CYBEROAM AND SIMILAR TYPES OF FIREWALL

You just need to follow these steps to make torrent run beside cyberoam
  •  Open torrent file in utorrent.
  • Right click on it and select properties.
  • Add the following list of tracker in the provided space ,as depicted, separate tiers with an empty line.




  •  On menu bar click OPTIONS-PREFERENCES-BitTorrent.
Choose protocol encryption outgoing as 'FORCED' and enable dht network
as shown below

Right click on currently downloading torrent file and Click on Update Trackers

trackers list


udp://tracker.publicbt.com:80/announce

udp://tracker.torrent.to:2710/announce

http://exodus.1337x.org/announce

udp://tracker.ccc.de:80/announce

udp://tracker.istole.it:80/announce

udp://tracker.openbittorrent.com:80/announce

udp://tracker.publicbt.com:80/announce

http://tracker.zokio.net/announce

EFFICIENT WAY TO BYPASS CYBEROAM AND SIMILAR TYPES OF FIREWALLS

COCOON

Easiest and best way is using cocoon. you might be thinking what the heck is that . okay it is a plugin of Mozilla firefox .so  what you need to do is

  • download latest version of Mozilla firefox and install it
  • download cocoon plugin from https://getcocoon.com
  • install the plugin
  • you also need to create an account with cocoon
  • now start firefox enter your username and password and start browsing seamlessly

 OWN PROXY SERVER

Here’s one such proxy site that you can build for your friends in China or even for your personal use (say for accessing blocked sites from office). This is created using Google App Engine and, contrary to what you may think, the setup is quite simple.
1: Go to appengine.google.com and sign-in using your Google Account.
2: Click the “Create an Application” button. Since this is your first time, Google will send a verification code via SMS to your mobile phone number. Type the code and you’re all set to create apps with Google App Engine.
3: Choose a sub-domain* that will host your proxy server. Make sure the domain is available, agree to the Google Terms and click save. The sub-domain is also your App ID that will uniquely identify your proxy application.
For this example, we’ll use iloveproxy as the App ID though you are free to choose any other unique name.
4: OK, now that we have reserved the ID, it’s time to create and upload the proxy server application to Google App Engine. Go to python.org, download the 2.6.4 MSI Installer and install Python.(downloading latest version sometimes causes some issues)
5: Once Python is installed, go to code.google.com, download the Google App Engine SDK for Python and install it.
6: Download this zip file and extract it to some folder on your desktop. The zip file, for the curious, contains a couple of text files (written in HTML and Python) that you can read with notepad.
7: Start the Google App Engine Launcher program from the desktop and set the right values under Edit – > Preferences (see screenshot above).
8. Click File – > Add Existing Application under the Google App Launcher program and browse to the directory that you created in Step 6. Click the Edit button and replace “YOUR_APP_ID” with the ID (sub-domain) that you reserved in Step 3.
9: Click Deploy and your online proxy server is now ready for use

you can open any website with it ,it causes some issues in playing videos ,so I have another method for it

SECURE MODE

You can also simply type https://www.youtube.com (donot follow any link just type it) and this way you can open almost any site without any restrictions
There are many more methods about which  I will talk later

Thursday, 9 May 2013

CAN WE MAKE MORE THAN THREE PARTITIONS WITH WINDOWS 7/8

Yeah we can always number of partitions even after installing windows .If you bought a computer and got only one or two partitions , which is generally the case as two of my friends bought laptop and the shopkeeper simply refused by saying that windows 8 doesn't support more than two partitions and by the way I already had 5 partitions on my laptop running windows 8 . I will show you how to do that.

for windows 7


  • Click on the start button and then choose Control Panel Click on the System and Security link.

  • In the System and Security window, click on the Administrative Tools heading located near the bottom of the window.

  • In the Administrative Tools window, double-click on the Computer Management icon

  • for windows 8

    • go to computer . now at top you will find 'manage' just below system properties and after control panel icon(easy to find in windows 8)
    after finding computer management
    • in it click on disk management in sidebar
    • shrink your c: drive(or drive in which windows is installed )
    • delete rest drive(s) (except any drive of importance in future which can be identified by its small size that may contain any backups etc.)
    • now you will get a lot of unpartitioned space
    • right click on it and create new volume of desired size
    • you can easily now create as many partitions as you require of deired size

    the partitions created this way (if more than 3) will be treated as logical drive
     but this will not have any effect. another way of doing this is by making partitions before installing  windows 7/8 like with windows xp and than installing windows 7/8 which practically isn't possible any many cases

    MAKING BOOTABLE PEN DRIVE FOR INSTALLING WINDOWS VISTA/7/8

       1. Plug in your USB Flash Drive
       2. Open a command prompt as administrator (Right click on Start > All Programs > Accessories > Command Prompt and select “Run as administrator”
       3. Find the drive number of your USB Drive by typing the following into the Command Prompt window:
          diskpart
          list disk
          The number of your USB drive will listed. You’ll need this for the next step.  I’ll assume that the USB flash drive is disk 1.
       4. Format the drive by typing the next instructions into the same window. Replace the number “1” with the number of your disk below.
          select disk 1
          clean
          create partition primary
          select partition 1
          active
          format fs=NTFS
          assign
          exit
          When that is done you’ll have a formatted USB flash drive ready to be made bootable.
    Step 2: Make the Drive Bootable
    Next we’ll use the bootsect utility that comes on the Vista or Windows 7 disk to make the flash drive bootable.  In the same command window that you were using in Step 1:
       1. Insert your Windows Vista / 7/8 DVD into your drive.
    (if you have an iso file you can mount it using a software like 'Daemon tools lite' available here http://www.daemon-tools.cc/eng/products/dtLite)
       2. Change directory to the DVD’s boot directory where bootsect lives:
          d:
          cd d:\boot
       3. Use bootsect to set the USB as a bootable NTFS drive prepared for a Vista/7 image. I’m assuming that your USB flash drive has been labeled disk G:\ by the computer:
          bootsect /nt60 g:
       4. You can now close the command prompt window, we’re done here.
    Step 3: Copy the installation DVD to the USB drive
    (using power iso if you have an iso file of windows  vista /7/8 to copy setup files to pen drive)
    The easiest way is to use Windows explorer to copy all of the files on your DVD on to the formatted flash drive.  After you’ve copied all of the files the disk you are ready to go.
    Step 4: Set your BIOS to boot from USB
    This is where you’re on your own since every computer is different. Most BIOS’s allow you to hit a key at boot and select a boot option.


    PURPOSE OF THIS BLOG

    The sole purpose of this blog is to help people who face problems in day to day computing ,as I have seen people struggling with computer and not knowing what to do when struck in middle of something . I never hesitate in helping anyone so this idea struck into my mind couple of days before that ,since internet has a wider reach so I should create a blog that could provide answers to simple day to day problems related to computers . Don't ever hesitate to ask any question regarding computer in comments .I will try my best to answer them .