Friday, 28 March 2014

Run Turbo C++ Fullscreen In Windows 7

Run Turbo C++ Fullscreen In Windows 7

When you try to run turbo c++ IDE on latest version of windows like Windows7 or Vista, you may get the error message that "The system does not support full screen mode. Choose close to terminate the application." The problem is that turbo C is very old DOS program. It's better to move on to an up to date compiler like visual c++ Express which is free and you certainly would have a better experience.
Anyway if you are up with turbo c++ and used to it, I have 3 tricks to run it full screen on windows7 and vista. The tricks can be simply classified based on which works on all versions of windows7 and one which only works under Windows 7 Enterprise, Windows 7 Professional, and Windows 7 Ultimate.

Technique 1:-
Log on to windows7 in safe mode. In safe mode the application running capabilities of an operating system is low and this mode is used as trouble fixing for OS. But this method is much simpler and you only need to log on to safe mode by pressing F8 on start up.
By summarizing the steps:
    1. Install turbo C++
    2. Start windows7 in safe mode.
    3.Execute turbo C++
Technique 2:-
By Disabling your graphics adapter.  This trick is done by just uninstalling the graphics driver. To do that
    1. Right click on My Computer, click Properties
    2. Select Device manager->Display Adapters
    3. Identify the display adapter of your computer, and uninstall.
You should try this trick only if you do not use your computer for Graphic related operations like playing multimedia games.By this trick graphics would look vulgar but you can run C++ in full screen.
Technique 3:-
By using DOSBox software. It is an  open source DOS emulator for BeOS, Linux, Mac OS X, OS/2, and Windows. This tool is primarily intended to play DOS games on windows7 but here we can use it run turbo C++ in Full screen mode.
    1. Download DOSBox frome here . (for windows)
    2. Install and run the DOSBox.
    3. Now a command prompt type window will appear. We need to mount TC folder.
              Just type “mount c: c:/tc” and press enter.
    Assumed that Turbo C++ is installed in C drive and TC folders located at C:\TC
    You may get a message that 'Drive C is mounted as local directory C:/TC\'
    Change the directory to C/BIN/tc.exe. To do that, please follow the steps as shown in the below screen shot.
Now the Turbo C++ will open in DOSBox. Press ALT+ENTER  to toggle between full screen and mini screen.
By applying the above 3 tricks, you can run C compiler on full screen mode in windows 7.

Monday, 10 March 2014

How To Solve: error: no such partition grub rescue in Ubuntu Linux

How To Solve: error: no such partition grub rescue in Ubuntu Linux

The other day I was trying to extend my root partition of Ubuntu which I dual boot with Windows 8. The partition extension was successful except that I screwed up the Grub configuration. When I booted in my laptop after the partition changes, I was welcomed by the Death Screen of Linux saying:
error: no such partition
grub rescue
After googling a bit, I found this mega thread on Ubuntu forum that helped me. But since it is a very complicated thread, I have re-written the tutorial so that one can follow it easily. So there are some assumption and some requirements to fix the error: no such partition grub rescue problem.

Requirements and presumptions:

  • You must have a live CD/DVD/USB of the same version of OS
  • You must have internet connection
  • You are dual booting Windows with Ubuntu (no Wubi installation)
  • You do not have a separate /boot partition
Now lets see how can we rescue the grub here.

How To Fix: error: no such partition grub rescue

We’ll be using chroot to rescue grub. The whole concept is that since grub configuration files have been deleted or corrupted, it needs to be re-installed. And using the live CD of exact OS version, we can install the grub configuration again. It will delete all the changes (if any) you have made to the grub.
Please follow these steps to easily fix grub rescue problem in Ubuntu (or other Linux distributions):

Step 1: Know you root partition

Boot from live CD, DVD or USB drive. Try Ubuntu from live disk. Open a terminal (Ctrl+Alt+T) and use the following command:
sudo su
fdisk -l
Here, you will see the drive name and partition number. It should look like sdXY. WhereX is the drive letter and Y is the partition number. Usually it should be like sdaY.  You have to recognize the partition where root has been installed.

Step 2: Mount the root partition

Once we have got the partition where root has been installed, we’ll mount the root partition where Ubuntu has been installed. Use the following commands to mount it:
sudo mkdir /mnt/temp
sudo mount /dev/sdXY /mnt/temp
Replace XY with appropriate values.

Step 3: Be the CHROOT

Once we have the partition mounted, next step is to mount certain items in preparation of the chroot. Run the following commands one by one:
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt/temp$i;  done
sudo cp /etc/resolv.conf /mnt/temp/etc/resolv.conf
sudo chroot /mnt/temp
If the above commands ran successfully, you’ll see root@ubuntu:/# in the terminal indicating that you are in chroot mode.

Step 4: Purge Grub 2 packages

Now when we are in chroot environment (you can think of it as if we are behaving as root for the mounted partition)., time to get rid of the Grub 2 packages but before that lets update the repository.
apt-get update
apt-get purge grub grub-pc grub-common
While removing the grub, you’ll see a strange screen asking if you want to remove Grub 2 packages. Press TAB to select Yes. It will be highlighted once selected. Press enter to proceed.
Solving Error no such partition grub rescue in Ubuntu

Step 5: Re-install Grub packages

As we deleted the previous Grub, we deleted the messed up settings as well as any favourite settings stored in it. Now we’ll install a new and fresh Grub. Few things to keep in mind before you go on with the command to install the Grub.
  • While installing the new Grub, it will ask you to add extra kernel options. Just press TAB to go to OK and press enter to continue.
  • It will bring you the installation notes. Press Tab to OK followed by enter and continue.
  • When it presents with you the device option (to ask on which partition should it install Grub), choose the option in the format of sdX. DO NOT select the drive partition in 4 letter format i.e. sda4 etc. When you select the partition,  it should have an asterisk (*) before it like [*] sdX. If it does not, highlight (with tab) and press SPACE to select it. Tab OK and press enter.
It should look like this:
Solve Error no such partition grub rescue in Ubuntu
Now when you taken all those things in mind, use the command below to install the Grub.
apt-get install grub-common grub-pc
Update the grub and exit the chroot:
update-grub 
exit

Step 6: Unmount the partition:

We mounted something at the start, didn’t we? Well lets just unmount them.
for i in /dev/pts /dev /proc /sys; do sudo umount /mnt/temp$i ; done
That’s it. Reboot your system and you should see the good old Grub boot screen as before. I hope this tutorial helped you to get rid of error: no such partition grub rescueproblem and the tutorial was easy to follow. Any question, suggestions or a word of thanks is always welcomed. Stay tuned for more Linux tutorials.

Sunday, 9 March 2014

Troubleshooting Most Common WIndows Problem's



Blue Screen Error in Windows..
Windows 8 Blue Screen


Blue Screens are one of the most common errors that people think of when a system crashes. The screen will appear if an error causes windows to cease operating, and either shut down or reboot. The BSOD error houses two important information (windows 8 has only one of those);

The first of which is at the top of the error;

Is known to most as a bug check. This will state the problem that has caused the error, most times listing a file that caused the problem. When fixing a BSOD error, this is the first thing you’ll use.

Houses what is called the STOP code. The first part of the information is called the Bugcheck code (what is written above, but with numbers/letters). The second part of this section, which is the stuff that is in brackets, are the paramaters. When browsing for support on the issue, you might come across a Microsoft page with the code listed in a table. In this table it will list paramaters and the error behind each parameter. Each set of code in the bracket is a parameter (parameter 1, 2, 3 etc..). Without this piece of information, it is very hard to fix an error.

So how do I fix it

There is not one method to fix a blue screen. As the blue screen itself only provides a means to determine what has caused the error in the first place. If you missed the error code, or never bothered to write it down, then there is a nifty program called BluescreenView to help you;

Download link

This program scans the minidump, to where windows will log the error, and display it in a table. It will also show you the files involved within the error, and list the results for easy fixing. You can also view the Blue screen itself if it makes it easier.

Now once you have found the bug check, files involved and the parameters to the bug check, you can start fixing. But as there are thousands of errors, there are also thousands of problems.

About.com has a really nice list with all of the codes listed. Link Here.

You have two options to fix your problem, you can either google your BugCheck code, from there (using the paramaters) pinpoint the problem and google it to find the fix. If that doesn’t work for you, or you are unsure as to how to fix the problem, you’re more than welcome to make a thread in this section, and someone will help you out!

Thursday, 6 March 2014

What is Piconet

Piconet
Definition - What does Piconet mean?
A piconet is a network of devices connected using Bluetooth technology. The network ranges from two to eight connected devices. When a network is established, one device takes the role of the master while all the other devices act as slaves.

Piconet gets its name from the word "pico", which means very small. This very small network is so called because the number is limited to seven devices, plus the master, which limits network and data sharing capability. Data transfer rates vary from 200 to 2,100 kbps at the application.

A piconet is sometimes called a personal area network (PAN) because the range of optimal operation for Bluetooth is 10 meters, about the size of a living room.
Techopedia explains Piconet
A piconet is usually implemented with small mobile devices or home devices that need to communicate with each other.


A good example of a piconet is the Playstation 3 (PS3) console gaming system. Instead of having wired controllers, the PS3 implements Bluetooth technology to connect up to four controllers at the same time. The main console acts as the master and the controllers act as slaves. Newer home appliances are also able to communicate through Bluetooth.

Basic Primary Partition,Extended Partition and Logical Partition

Primary Partition, Logical Partition and Extended Partition (Disk Partition Basic)
A disk partition is a defined storage space on a hard drive. All Windows operating systems can let users divide a hard disk into multiple partitions, in this way, making one physical hard disk into several smaller logical partitions. To store classified data, multiple partitions on a disk can organize his data more effectively. On Microsoft Windows system, the OS was installed in one partition and other some partition is created to store user data, documents or games. This benefit is when a problem occurs with Windows system; the OS partition can be totally destroyed and reinstalled, but this does not affect the data partition.
Some users may split a hard disk into multiple partitions because smaller partitions offer smaller cluster sizes. A cluster size is the smallest chunk of data which a partition can store. A large partition might have a cluster size of 64KB. This means that a file with one word in it will occupy 64KB of space on the disk. In a smaller partition, that file might only require 2KB to store. This is a useful policy if you need to save a large number of small files.
You can create, delete and format partition through using the diskpart.exe command. Many operating systems also have graphical tools which accomplish the same task such as Partition Assistant. The Partition Assistant is a free partition manager. It not only can partition on a disk, but also resize/move a partition to adjust the size of the partition to optimize disk space usage.

The following is Disk Partition Related Glossary
Primary Partition and Active Partition:
A primary partition is in which an Operating System can be installed. One hard disk may contain a maximum of 4 primary partitions. An active partition is based on primary partition. Any one of the 4 primary partitions can be set as active partition. Since there can be 4 primary partitions with 4 different Operating Systems installed, one of the partition that is marked active is used for the initial booting. The active partition contains the boot loader (such as ntldr or bootmgr) to load operating systems from a disk.
Extended Partition and Logical Partition:
Because the primary only can be created four maximum, this need to use extended partition to break the limitation of 4 partitions. In an Extended Partition you can create unlimited logical partition. You can store data in the logical partitions similar with primary partition, but the extended partition is not used to store data, because the Extended Partition is used to hold logical partitions, at the same time, there is one extended partition on a disk.
Partition Table:

Partition Table is a storage space which records some information about primary, extended and logical partitions. Further, the create/delete/resize of any partition all will modify the partition table to reflect the changes permanently. If partition table is crashed by virus or other stuffs, you partition will lost, so the table is extremely important.