• People

    Without them Technology is not possible

  • Gadgets

    Here you get the Latest gadget news,articles and reviews

  • Tips & Tricks

    Latest Tips and Tricks For Computer Freaks

  • Stay Tuned,Stay Updated

    Don't forget to follow us on Twitter,Facebook & Google+

India set to have the highest number of Facebook users

Facebook expects India will soon surpass the US and Indonesia to become its largest market in terms of users.
"India is our third largest market in terms of number of users and what we're excited about and why we're here is because some time in the future, we think that India will pass first Indonesia, which should happen soon, and then US," says Facebook's vice president for mobile partnerships and corporate development Vaughan Smith.
India has nearly 30 million Facebook users, while Indonesia has more than 45 million users. According to reports, more than three-fourth of all Facebook users are outside the US. The figures released by ComScore in June revealed that the number of Facebook users in India was growing at a phenomenal pace. According to the data, one out of three Internet users in India was a Facebook user.
Moreover, the Indian companies from various sectors including retail and hospitality are harnessing Facebook to reach out to their audience and promote their businesses. Smith highlights that more than half of Facebook users in India access the social network via their mobile devices.
With number of Internet users in India expected to touch 121 million by year end, Facebook's prospects look better in the country. According to the annual I-Cube report jointly published by IMRB and the Internet & Mobile Association of India (IMAI), India is likely to surpass the US, which has some 245 million Internet users, within two years.

Source:www.thinkdigit.com

Some e-Books for C#


I am uploading some e-books that might help you in your first year's project.
There are some good ebooks like Herbert Schildt.
Here is the link
http://www.4shared.com/file/Ox5XLh5R/C__EBOOKS.html?

In case you need some more do send me a mail using the Contact Us option in the toolbar given below.

Happy Coding !!!

AND DONT FORGET TO LIKE THE PAGE BY CLICKING THE LIKE BUTTON WHICH IS THERE ON THE FACEBOOK TAB ON THE RIGHT HAND SIDE

Difference Between Virus,Worms,Trojan and Spyware

 
WE HAVE ALL HEARD OF THESE TERMS
BUT DO WE REALLY KNOW THE DIFFERENCE BETWEEN THESE TERMS ??






Virus:-A virus is a self replicating program that attaches itself to an executable file (.exe file). It acts silently and damages your files on computer which can't be repaired unless and until you have a backup of those files.                                  
Worms:Worms are very similar to viruses but it does not require a executable file to run. It uses your internet connection extensively. They replicate themselves extensively, thus  infecting your computer. 
Trojan Horse:-A trojan horse is harmful program which may seem harmless to the user but it remote access to the computer.Trojan’s do not replicate themselves. It means the users data is not safe and can be stolen.
Spyware:  -A spyware is a program that secretly monitors and collects pieces of information.They are like virtual spy's spying on your files. 

NOKIA 500 (SPECIFICATIONS AND PRICE)

NOKIA 500

It looks to be a very good phone with a powerful processor of 1 Ghz.
For the first time Nokia has given the feature of changing the back covers.
Two additional Free covers with a vibrant matt finish are included in the box.


Have a look at the specifications
For more information please visit www.nokia.co.in

C Tutorial-File Handling (Videos)


HERE ARE SOME TUTORIALS FOR HANDLING FILES IN C#






C Tutorial-File Handling (2)



What is a File?

Abstractly, a file is a collection of bytes stored on a secondary storage device, which is generally a disk of some kind. The collection of bytes may be interpreted, for example, as characters, words, lines, paragraphs and pages from a textual document; fields and records belonging to a database; or pixels from a graphical image. The meaning attached to a particular file is determined entirely by the data structures and operations used by a program to process the file. It is conceivable (and it sometimes happens) that a graphics file will be read and displayed by a program designed to process textual data. The result is that no meaningful output occurs (probably) and this is to be expected. A file is simply a machine decipherable storage media where programs and data are stored for machine usage.
Essentially there are two kinds of files that programmers deal with text files and binary files. These two classes of files will be discussed in the following sections.

ASCII Text files

A text file can be a stream of characters that a computer can process sequentially. It is not only processed sequentially but only in forward direction. For this reason a text file is usually opened for only one kind of operation (reading, writing, or appending) at any given time.
Similarly, since text files only process characters, they can only read or write data one character at a time. (In C Programming Language, Functions are provided that deal with lines of text, but these still essentially process data one character at a time.) A text stream in C is a special kind of file. Depending on the requirements of the operating system, newline characters may be converted to or from carriage-return/linefeed combinations depending on whether data is being written to, or read from, the file. Other character conversions may also occur to satisfy the storage requirements of the operating system. These translations occur transparently and they occur because the programmer has signalled the intention to process a text file.

Binary files

A binary file is no different to a text file. It is a collection of bytes. In C Programming Language a byte and a character are equivalent. Hence a binary file is also referred to as a character stream, but there are two essential differences.
  1. No special processing of the data occurs and each byte of data is transferred to or from the disk unprocessed.
  2. C Programming Language places no constructs on the file, and it may be read from, or written to, in any manner chosen by the programmer.
Binary files can be either processed sequentially or, depending on the needs of the application, they can be processed using random access techniques. In C Programming Language, processing a file using random access techniques involves moving the current file position to an appropriate place in the file before reading or writing data. This indicates a second characteristic of binary files.
They a generally processed using read and write operations simultaneously.
For example, a database file will be created and processed as a binary file. A record update operation will involve locating the appropriate record, reading the record into memory, modifying it in some way, and finally writing the record back to disk at its appropriate location in the file. These kinds of operations are common to many binary files, but are rarely found in applications that process text files.

Creating a file and output some data

In order to create files we have to learn about File I/O i.e. how to write data into a file and how to read data from a file. We will start this section with an example of writing data to a file. We begin as before with the include statement for stdio.h, then define some variables for use in the example including a rather strange looking new type.
/* Program to create a file and write some data the file */
#include 
#include 
main( )
{
     FILE *fp;
     char stuff[25];
     int index;
     fp = fopen("TENLINES.TXT","w"); /* open for writing */
     strcpy(stuff,"This is an example line.");
     for (index = 1; index <= 10; index++)
      fprintf(fp,"%s Line number %d\n", stuff, index);
     fclose(fp); /* close the file before ending program */
}
The type FILE is used for a file variable and is defined in the stdio.h file. It is used to define a file pointer for use in file operations. Before we can write to a file, we must open it. What this really means is that we must tell the system that we want to write to a file and what the file name is. We do this with the fopen() function illustrated in the first line of the program. The file pointer, fp in our case, points to the file and two arguments are required in the parentheses, the file name first, followed by the file type.
The file name is any valid DOS file name, and can be expressed in upper or lower case letters, or even mixed if you so desire. It is enclosed in double quotes. For this example we have chosen the name TENLINES.TXT. This file should not exist on your disk at this time. If you have a file with this name, you should change its name or move it because when we execute this program, its contents will be erased. If you don’t have a file by this name, that is good because we will create one and put some data into it. You are permitted to include a directory with the file name.The directory must, of course, be a valid directory otherwise an error will occur. Also, because of the way C handles literal strings, the directory separation character ‘\’ must be written twice. For example, if the file is to be stored in the \PROJECTS sub directory then the file name should be entered as “\\PROJECTS\\TENLINES.TXT”. The second parameter is the file attribute and can be any of three letters, r, w, or a, and must be lower case.

Reading (r)

When an r is used, the file is opened for reading, a w is used to indicate a file to be used for writing, and an a indicates that you desire to append additional data to the data already in an existing file. Most C compilers have other file attributes available; check your Reference Manual for details. Using the r indicates that the file is assumed to be a text file. Opening a file for reading requires that the file already exist. If it does not exist, the file pointer will be set to NULL and can be checked by the program.
Here is a small program that reads a file and display its contents on screen.
/* Program to display the contents of a file on screen */
#include 
void main()
{
   FILE *fopen(), *fp;
   int c;
   fp = fopen("prog.c","r");
   c = getc(fp) ;
   while (c!= EOF)
   {
     putchar(c);
  c = getc(fp);
   }
   fclose(fp);
}

Writing (w)

When a file is opened for writing, it will be created if it does not already exist and it will be reset if it does, resulting in the deletion of any data already there. Using the w indicates that the file is assumed to be a text file.
Here is the program to create a file and write some data into the file.
#include 
int main()
{
 FILE *fp;
 file = fopen("file.txt","w");
 /*Create a file and add text*/
 fprintf(fp,"%s","This is just an example :)"); /*writes data to the file*/
 fclose(fp); /*done!*/
 return 0;
}

Appending (a)

When a file is opened for appending, it will be created if it does not already exist and it will be initially empty. If it does exist, the data input point will be positioned at the end of the present data so that any new data will be added to any data that already exists in the file. Using the a indicates that the file is assumed to be a text file.
Here is a program that will add text to a file which already exists and there is some text in the file.
#include 
int main()
{
    FILE *fp
    file = fopen("file.txt","a");
    fprintf(fp,"%s","This is just an example :)"); /*append some text*/
    fclose(fp);
    return 0;
}

Outputting to the file

The job of actually outputting to the file is nearly identical to the outputting we have already done to the standard output device. The only real differences are the new function names and the addition of the file pointer as one of the function arguments. In the example program, fprintf replaces our familiar printf function name, and the file pointer defined earlier is the first argument within the parentheses. The remainder of the statement looks like, and in fact is identical to, the printf statement.

Closing a file

To close a file you simply use the function fclose with the file pointer in the parentheses. Actually, in this simple program, it is not necessary to close the file because the system will close all open files before returning to DOS, but it is good programming practice for you to close all files in spite of the fact that they will be closed automatically, because that would act as a reminder to you of what files are open at the end of each program.
You can open a file for writing, close it, and reopen it for reading, then close it, and open it again for appending, etc. Each time you open it, you could use the same file pointer, or you could use a different one. The file pointer is simply a tool that you use to point to a file and you decide what file it will point to. Compile and run this program. When you run it, you will not get any output to the monitor because it doesn’t generate any. After running it, look at your directory for a file named TENLINES.TXT and type it; that is where your output will be. Compare the output with that specified in the program; they should agree! Do not erase the file named TENLINES.TXT yet; we will use it in
some of the other examples in this section.
Reading from a text file
Now for our first program that reads from a file. This program begins with the familiar include, some data definitions, and the file opening statement which should require no explanation except for the fact that an r is used here because we want to read it.
#include 
   main( )
   {
     FILE *fp;
     char c;
     funny = fopen("TENLINES.TXT", "r");
     if (fp == NULL)
  printf("File doesn't exist\n");
     else {
      do {
       c = getc(fp); /* get one character from the file
       */
         putchar(c); /* display it on the monitor
       */
       } while (c != EOF); /* repeat until EOF (end of file)
     */
     }
    fclose(fp);
   }
In this program we check to see that the file exists, and if it does, we execute the main body of the program. If it doesn’t, we print a message and quit. If the file does not exist, the system will set the pointer equal to NULL which we can test. The main body of the program is one do while loop in which a single character is read from the file and output to the monitor until an EOF (end of file) is detected from the input file. The file is then closed and the program is terminated. At this point, we have the potential for one of the most common and most perplexing problems of programming in C. The variable returned from the getc function is a character, so we can use a char variable for this purpose. There is a problem that could develop here if we happened to use an unsigned char however, because C usually returns a minus one for an EOF – which an unsigned char type variable is not
capable of containing. An unsigned char type variable can only have the values of zero to 255, so it will return a 255 for a minus one in C. This is a very frustrating problem to try to find. The program can never find the EOF and will therefore never terminate the loop. This is easy to prevent: always have a char or int type variable for use in returning an EOF. There is another problem with this program but we will worry about it when we get to the next program and solve it with the one following that.
After you compile and run this program and are satisfied with the results, it would be a good exercise to change the name of TENLINES.TXT and run the program again to see that the NULL test actually works as stated. Be sure to change the name back because we are still not finished with TENLINES.TXT.

C Tutorial-File Handling (1)


Introduction

Part of any useful computer program is often going to be manipulation of external data sources. The file is the basic unit of storage for many operating systems, from Unix to Mac. Any C development environment on these platforms will include functions allowing the programmer to:
  • Open & Close files;
  • Read from & Write to files;
  • Delete files.
Commands for all of the above are found in the stdio.h header file.

Opening & Closing Files

The basic command used to open a file is:

FILE * fopen(char * filename, char * mode)
The value returned is a handle to a file, defined in stdio.h, as FILE *. A null pointer is returned and can be tested for in case the call fails. So, the following is a good test for presence of a file:
FILE * hFile;
hFile = fopen( filename, "r");
if (hFile == NULL)
{
// Error, file not found
}
else
{
// Process & close file
fclose(hFile);
}
The mode value in the above example is set to 'r', indicating that we want to read from the file. Other possible values are:
  • w - write to the file, overwriting existing data
  • a - append to an existing file
  • r+ - read and write to a file
Using 'r+' means that all writing will take place at the end of the file, and that reading is sequential. The fclose function closes a valid file handle.

Reading & Writing Data

Once a file is open, we can read from it in one of two ways. We can use the standard printf functions for formatted output, or we can use the 'binary' file functions:


int fread(void * buffer, int size, int num, FILE * hFile)
int fwrite(void * buffer, int size, int num, FILE * hFile)
Both of these can accept any variable that can be cast internally in the first parameter. Be aware, however, that if it is not a pointer type (int *, char * etc.), then it will need to be passed by reference (&nNumber, for example). This will create the appropriate cast to the variable being passed. So, to read a number, we would use:
int nRead = fread(&nNumber, sizeof(int), 1, hFile);
In this example, we have provided the size of an integer (since we don't know the platform that we are compiling for), and a count of 1. This will cause the program to read the appropriate amount of data. We can also write the data back out using:
int nWritten = fwrite(&nNumber, sizeof(int), 1, hFile);
Of course, if we were to have a string that needed to be written to the file, so long as it is null terminated, we can use fwrite as follows:
int nWritten = fwrite(szString, sizeof(char), strlen(szString), hFile);
This will write out the string, but not the null terminator. Care, therefore, must be taken when using this function.
If we want to read the data back in, without knowing the length of the string, we need to perform two operations for each file access:
int nStrLen = strlen(szString);
int nWritten = fwrite(&nStrLen, sizeof(int), 1, hFile);
int nWritten = fwrite(szString, sizeof(char), nStrLen, hFile);
We can then read the variable length string back in as follows:
int nStrLen;
int nRead = fread(&nStrLen, sizeof(int), 1, hFile);
int nRead = fread(szString, sizeof(char), nStrLen, hFile);
szString[nStrLen] = '\0'; // Append null terminator
This trick can be used for any data types, including user defined data types, such as structs.

Deleting Files

The command to delete a file is:
remove (char * szFileName);
This will simply delete the file, with no way to get it back again without an external program.

TRAI raises SMS limit to 200 per day per SIM


After drawing flak from all corners, the Telecom Regulatory Authority of India (TRAI) has reportedly decided to raise the limit of 100 SMS per day per SIM to 200 SMS per day per SIM. The new cap comes into effect from today. The monthly limit of sending SMS has also been raised from 3,000 to 6,000 per month.
It may be recalled that the TRAI had restricted the number of SMS to 100 per day per SIM. The regulatory body then said the move would help prevent pesky promotional calls and text messages. TRAI's restriction move, however, came under heavy criticism."The authority has received representations from some of the service providers and consumers to increase the limit of 100 SMS per day per SIM. The authority has considered these representations and decided to increase the limit of 100 SMS per day per SIM to 200 SMS per day per SIM," reports quote the TRAI as saying. The regulatory body also said that it had received a number of requests from the service and telecom operators to increase the limit of SMS.
The TRAI gave its subscribers the option to choose “Fully Blocked” category and “Partial Blocked” category, under which subscribers are allowed to receive SMS from certain categories. It also launched National Customer Preference Registry, previously known as "National Do Not Call Registry". 

C-Free (C Compiler)


C-Free is an Integrated Development Environment (IDE) for C and C++ programming language. With this environment you can edit, build, run, and debug your program freely. Both C and C++ learners and masters will find many impressive functions on it, and enjoy themselves with it.
Whether used as a C/C++ editor or as a stand-alone programming environment, C-Free provides programmers a tool to create, modify, and debug code faster and more accurately.

Support Multi-compilersNow support other compilers besides MinGW as following:
  • MinGW 2.95/3.x/4.x/5.0
  • Cygwin
  • Borland C++ Compiler
  • Microsoft C++ Compiler
  • Intel C++ Compiler
  • Lcc-Win32
  • Open Watcom C/C++
  • Digital Mars C/C++
  • Ch Interpreter
Powerful Code Navigation
Symbol Tree is provided. Jump to Definition, Jump to Declaration and Find Reference, with these commands, navigate your code as you wish.

DOWNLOAD

package name:C-Free 5.0 Professional
size:14517 KB
download:
Main Site Local Download
Main Site C-Free at Download.com
 
description:Latest Build 5.0.0.3314
see What's new.
see Features

Note well that C-Free is subject to the License Agreement.
 
package name:C-Free 4.0 Standard (Last updated: Apr 20th, 2008)
size:6905 KB
download:Main Site Local Download
description:free versionCompare Standard edition with Professional edition
Download

C-Free Packages
 
package name:C-Free 5.0 Professional
size:14517 KB
download:
Main Site Local Download
Main Site C-Free at Download.com
 
description:Latest Build 5.0.0.3314
see What's new.
see Features

Note well that C-Free is subject to the License Agreement.
 
package name:C-Free 4.0 Standard (Last updated: Apr 20th, 2008)
size:6905 KB
download:Main Site Local Download
description:free versionCompare Standard edition with Professional edition


Ubuntu 10.1 vs Windows 8


When Microsoft announced Windows 8 and released the developer version, it created a lot of buzz around the Internet. With all the new Metro UI and Cloud integration, Windows 8 has certainly taken a huge step in the world of computing. However, the buzz that Windows 8 created was all diverted towards Ubuntu 11.10, when the folks at Canonical released it few days back.
Microsoft’s Windows has managed to lead the competition in the Desktop OS market with 91.9 percent market share, while the Mac OS has a 6.9 percent market share. However, now the popularity of Ubuntu is rising, and Microsoft has a new level of competition in the OS market. Ubuntu is the next big challenge for Microsoft and it might prove Microsoft wrong, which once thought that Linux was over and done with.
When I had my first glimpse at the Microsoft Windows 8 developer version, I was totally impressed with its looks and features. However, I was more captivated and fascinated towards Ubuntu 11.10, and just like a small kid, I was excited about it. And certainly, Ubuntu kept up to my expectations by bringing in vast improvements and many awaited features.

Let’s take a close comparison between Ubuntu vs Windows 8.
Ubuntu vs Windows

I must admit, both Ubuntu and Windows 8 have an extraordinarily beautiful design with highly refined glass effect and high resolution icons. Windows 8 will be using the Metro UI, while Ubuntu sports the Unity Interface.
The Windows 8 interface supports gestures, snap, pin, cloud applications, sharing of apps and services, hidden task bar on the right of the screen and so on. The Metro UI is a huge step taken towards design and UI by Microsoft, and is certainly far more striving than any other UI we have seen before. This also fits in with tablets, as Microsoft demonstrated the OS running on tablets from Samsung and Lenovo.
Ubuntu’s UI on the other hand has an improved Unity Interface with richer set of “Scopes and Lenses”, instead of the old “Places” function. Since users were confused and didn’t know what to click on, Canonical decided to integrate Ubuntu icons with the Dash and Unity launcher, for providing more visibility.
Widows vs Ubuntu - Design
Clicking the Dash (or the Ubuntu logo on the left) will bring up a glossy set of icons, which are most commonly used – Browse the Web, View Photos, Check Email or Listen to Music. It comes with a search bar which will be frequently used by users. It’s not just easy to search, but it is blazingly fast. The left panel consists of applications which are most commonly used, and users have the option to add an application by simply dragging it in or remove it.

All of us have used Windows and we all know that Windows mainly lacked the social networking feature. From the Windows 8 version onwards, Microsoft has decided to integrate essential social media features in its desktop. Ubuntu on the other hand, has always included social media features in its default desktop. Gwibber has been Ubuntu’s default social media client, and with the release of Ubuntu 11.10 aka Oneiric Ocelot, Gwibber has been revamped which is faster, lighter and prettier than its previous version.

Cloud Services

Windows 8 and Ubuntu 11.10 will both be integrated with the cloud. This will enable the OS to download photos and apps from the cloud, share with friends and upload them on the go. Additionally, Ubuntu 11.10 will support the Ubuntu One, a free online backup service with 5 GB of cloud storage. You can avail more space by pay plans – $2.99/month or $29.99/year.

Ubuntu 11.10 comes with free photo editing tool called Gimp, and Open Office for word processing. However, for Windows 8 you need to purchase a licensed version of MS Office. The free applications that Windows 8 comes with are Windows Live messenger and Internet Explorer 10.
Apart from that, Windows 8 will have a Windows Store, similar to Apple’s App Store, enabling users to download and purchase new application for their desktop. Ubuntu on the other hand has always offered an App Store-like ability to add or remove open-source applications. With Ubuntu 11.10, the Software Centre is more shopper-friendly, with reviews and ratings and is much faster than it was before. This makes app discovery a lot easier.

In terms of speed and booting, Ubuntu wins the race. The boot time of Ubuntu is quicker than Windows 8, and there’s no doubt about it. Ubuntu is light and designed in a way to perform faster. It is faster on both old and new hardware configurations, while Windows boots faster than Windows Vista on old hardware.

Ubuntu has the LightDM as the new default login screen. LightDM brings easy customization and can be tweaked with a tool called LightDM Manager. This will allow you to change the background as well as the logo of Ubuntu 11.10 login screen.
Windows vs Ubuntu - Login Screen
The Windows 8 lock screen is similar to the Windows Phone lock screen, displaying the date/time, scheduled appointments and unread message summaries. You can personalize the login screen by changing the background to something of your own. Windows 8 supports the traditional password login or the new picture password tool, where you can select a picture to use as a reference grin to create a three-point pass gesture.

Ubuntu has always been free, and continue to remain free. You can customize the OS to the maximum level possible, and the only cost involved is the download time and nothing else. Windows 8 and its earlier versions have to be purchased and cannot be customized whatsoever.
Ubuntu 11.10 is available for free download and can be procured from the Ubuntu website. You can also download the Windows Installer from here, and follow the step-by-step guide to install it.

Download Link for Ubuntu 11.10:
[Direct Download] Download Ubuntu 11.10 Desktop Edition (x86 version)
[Direct Download] Download Ubuntu 11.10 Server Edition (x86 version)
[Direct Download] Download Ubuntu 11.10 Desktop Edition (x64 version)
[Direct Download] Download Ubuntu 11.10 Server Edition (x64 version)
Alternatively, Users currently running Ubuntu 11.04 on a desktop can upgrade in place via the command update-manager -d.
Windows 8 is currently released under beta version, and the developer preview can be obtained from the Microsoft website. Here’s the direct download link for Windows 8 Developer Preview:
[Direct Download] Windows 8 Developer Preview with developer tools English, 64-bit (x64) (4.8 GB)
[Direct Download] Windows 8 Developer Preview English, 64-bit (x64) (3.6 GB)
[Direct Download] Windows 8 Developer Preview English, 32-bit (x86) (2.8 GB)
 
The Techiebyte © 2012 | Designed by Pranav Talwar