C File Handling

Posted by Tushar Bedekar
Often it is not enough to just display the data on the screen.This is because if the data is large, only a limited amount of it can be stored in memory and only a limited amount of it can be displayed on the screen.It would be in appropriate to store this data in the memory for one more reason.Memory is volatile(RAM) an its contents are  lost once the program me is terminate. so if we need the same data again it would have t either entered through the key-board again or would have to regenerated pragmatically.obviously both these operations would be tedious.At such times it become necessary to store the data in the manner that can be later retrieved and displayed either in part or in whole.The medium is usually "file" or "disk".


Basic Introduction:- 

We frequently use files for storing information which can be processed by our programs. In order to store information permanently and retrieve it  we need to use files.

Files are not only used for data. Our programs are also stored in files.

The editor which you use to enter your program and save it, simply manipulates files for you.

The Unix commands cat, cp, cmp are all programs which process your files.

In order to use files we have to learn about File I/O i.e. how to write information to a file and how to read information from a file.

We will see that file I/O is almost identical to the terminal I/O that we have being using so far.

The primary difference between manipulating files and doing terminal I/O is that we must specify in our programs which files we wish to use.

As you know, you can have many files on your disk. If you wish to use a file in your programs, then you must specify which file or files you wish to use.

Specifying the file you wish to use is referred to as opening the file.

When you open a file you must also specify what you wish to do with it i.e. Read from the file, Write to the file, or both.

Because you may use a number of different files in your program, you must specify when reading or writing which file you wish to use. This is accomplished by using a variable called a file pointer.

Every file you open has its own file pointer variable. When you wish to write to a file you specify the file by using its file pointer variable.

You declare these file pointer variables as follows:


FILE  *fopen(), *fp1, *fp2, *fp3;


The variables fp1, fp2, fp3 are file pointers. You may use any name you wish.

The file <stdio.h> contains declarations for the Standard I/O library and should always be included at the very beginning of C programs using files.


Constants such as FILE, EOF and NULL are defined in <stdio.h>.

You should note that a file pointer is simply a variable like an integer or character.

It does not point to a file or the data in a file. It is simply used to indicate which file your I/O operation refers to.

A file number is used in the Basic language and a unit number is used in Fortran for the same purpose.

The function fopen is one of the Standard Library functions and returns a file pointer which you use  to refer to the file you have opened e.g.

            fp = fopen( “prog.c”,  “r”) ;

The above statement opens a file called prog.c for reading and associates the file pointer fp with the file.

When we wish to access this file for I/O, we use the file pointer variable fp to refer to it.


You can have up to about 20 files open in your program - you need one file pointer for each file you intend to use. 

For More Sessions Please visit the link Given below:-

                                                                                                                                                                                                                         

                                                           
Read More

Search Engine Optimization In Mobile Phone

Posted by Tushar
In the Present Era Due To the advancement in the technology such smart-phones many of the user make use of internet and are access the internet from their mobile phones and smart phones.so it become necessary for all the webdesigners to improve their Webpage design compatibile for all the mobile phones also i.e webpages must look good when they are being opened in the mobile phones.

Mobile sites not only use a different format from normal desktop sites, but the management methods and expertise required are also quite different. 
Verify that your mobile site is indexed by Search Engine
Search Engine Such As Google And Bing crawl your site before it can be included in our search index. If you just created the site, we may not yet be aware of it. If that's the case, create a Mobile Sitemap and submit it to Search Engine Such as Google And Bing to inform us of the site’s existence. A Mobile Sitemap can be submitted using Webmaster Tools, just like a standard Sitemap.
The crawler for mobile sites Would not Crawel. If you'd like your site crawled, please allow any User-agent to access your site.

Running desktop and mobile versions of your site
Redirect mobile users to the correct version. One of the most common problems for webmasters who run both mobile and desktop versions of a site is that the mobile version of the site appears for users on a desktop computer, or that the desktop version of the site appears when someone accesses it on a mobile device.
For the Solution of the above problem follow as listed below


(1) Redirect mobile users to the correct version
Google notices the relationship between the two versions of the URL and displays the standard version for searches from desktops and the mobile version for mobile searches.
(2) Switch content based on User-agent
Some sites have the same URL for both desktop and mobile content, but change their format according to User-agent. In other words, both mobile users and desktop users access the same URL (i.e. no redirects), but the content/format changes slightly according to the User-agent. In this case, the same URL will appear for both mobile search and desktop search, and desktop users can see a desktop version of the content while mobile users can see a mobile version of the content
Read More

Ram Booster For Android

Posted by Tushar Bedekar
Smart Booster - Free Cleaner - screenshot
The best optimization tool. This is former Smart RAM Booster.


Highlights of Smart Booster:-

► Smart RAM Booster: small widget to adaptively boost RAM from anywhere 
Smart Booster - Free Cleaner - screenshot► Fast cache cleaner: one click to clean cache
► Quick SD Card cleaner: efficiently scan and clean junk created by million apps
► Advanced application manager: optimize your devices by hibernate, disable, auto-start apps



Basic Description:-

Smart RAM Booster
The most beautiful part of this app is a small, configurable widget that places on top of any app and one-click to RAM boost. 
Most of Android devices bundle with limited memory. Android task manager will selectively kill low priority tasks in order to 
reserve memory to higher priority task. That’s not always run at an appropriate time, causing low responsive apps, lagging, 
especially when you launch a new app after heavily browsing web pages. It causes a worse experience.

RAM Booster comes with auto-boost in 4 levels: aggressive, strong, medium, gentle.
☆ Aggressive: kill most of low priority apps
☆ Strong: Kill apps that is low priority as well as consume lightly below an “average”
☆ Medium: kill apps that consumes memory above an “average”
☆ Gentle: kill only apps that uses considerable memory


There are 5 ways to boost:-

☆ Auto-boost: boost automatically under RAM available & timing conditions
☆ Overlay widget – Enable RAM Booster overlay widget (on by default), adjust widget’s position, and tap on widget to boost anytime you want
☆ Home screen widget – one tap to boost (long-press your home screen>Widget to add RAM Booster widget)
☆ Notification bar – one tap to boost (toggle notification bar visibility in app’s setting)
☆ Boost Now – tap this button from app’s main screen

Fast cache cleaner
☆ 1-click to clean cache
Smart Booster - Free Cleaner - screenshot☆ Show detail internal cache and external cache
☆ Select apps that use most cache
Quick SD Card cleaner
☆ Show SD card partition
☆ Scan for junk folder, big files, orphaned files
☆ Nice photo cleaner, music cleaner
☆ Notify for low storage usage
Advanced application manager
☆ Easily backup, uninstall unused apps
☆ App2SD - recommend apps to move to sd card
☆ Hibernate rarely used apps to save battery
☆ Disable system apps
☆ Scan auto-start apps
☆ Manage backup (.apk) files
ram booster, memory booster, battery saver, ram manager, memory manager, boost, faster app, smart battery, task killer, ATK, fast reboot, one tap, 1-click clear cache, floating widget



                                                                                                                                                                                                                           
                                                           

Warning 

  • We are not responsible for any damages that may happened by using this Techniques. 
  • Use this guide at your own risk. We shall not have any liability or responsibility for whatever happens to you and your device by using the instructions in this guide.
  • The instructions provided in this tutorial for educational purpose only. There is no guarantee that these steps will work for your device.
  •  Applying this guide to any other device or any other model may produce many problems.
  • Read and Understand the whole tutorial first, before going to perform the steps.
  • At the same time this content is not to harm any one but it is only for educational purpose.

Source:- Google Play Store

Read More

How To Add Widgets,Apps And Links To The Google Crome

Posted by Tushar Bedekar
Now a days most of us make us of Google As a search Engine.But most of the people does not know about various features of the Google chrome. The Google Chrome now if we see  lots an lots of free and paid app that can be installed on or along with the Chrome Browser.So by installing these apps one can more optimize his PC. Moreover these apps are compatible with all the types of Operating Systems such as windows,Mac etc.
Web-based applications are programs that are designed to be used entirely within the browser. Using apps, you can do things like create documents, edit photos, and listen to music, without having to install complicated software.
These days, websites are capable of dynamic functionality that you expect from desktop applications on your computer. We call these robust sites web apps, or "apps" for short. If you use services like Gmail or Google Maps, you're already using apps! Apps have the following advantages over desktop applications:
  • Apps install in seconds, with one click of a button. You don’t even have to restart your browser or computer.
  • Your apps are always available. No matter what computer you’re using, you can always access your apps. Learn about syncing apps across multiple computers.
  • Apps are always up-to-date. Because apps are hosted on the web where they can be instantly updated, you can be sure you're always using the latest version of the app that's available.
  • Apps won’t crash your computer. If one app misbehaves, just close its tab in the browser. Your browser and computer won’t be affected.

Steps for installing free apps:-

You need a Google Account in order to install apps from the Chrome Web Store. A Google Account gives you a single username and password that you can use to access Google products and services. Don’t have an account? Create onein minutes.
  1. Visit the store at http://chrome.google.com/webstore. You can also reach it by clicking the Web Store icon icon in the Apps section of the New Tab page.
  2. Browse or search for the app you’d like to install.
  3. Free apps show an Add to Chrome button on their details page. Click the button to install the app. See a Buy for [price] button instead? 
  4. The app automatically installs and its icon appears in the “Apps” section of the New Tab page. You'll see a prompt that points you to the new tab icon at the top of the browser window to open the New Tab page. To use the app later, go to the Apps section in the New Tab page and click on the app icon. You can also go to the item's details page in the store to click the Launch app button.
Some developers may offer free versions of their paid apps. If a free trial is available, you‘ll see a Try now button on the app’s details page. Click the button to install the trial. 

After installation:-

  • Find and open your apps in a few different ways.
  • Sync your apps to save your apps to your Google Account. This way, you can easily access them no matter what computer you’re using. 
  • Uninstall an app: Open up a New Tab page and go to the Apps section. Drag the app into the "Remove from Chrome" button at the lower right corner. You can also right-click on the app and select Remove from Chrome.
Read More

Java Basic Introduction

Posted by Tushar Bedekar 3 Comments

  What is JAVA:-


Java is a computer programming language that is concurrentclass-basedobject-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another. Java applications are typically compiled tobytecode (class file) that can run on any Java virtual machine (JVM) regardless of computer architecture. Java is, as of 2014, one of the most popular programming languages in use, particularly for client-server web applications, with a reported 9 million developers. Java was originally developed by James Gosling at Sun Microsystems (which has since merged into Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them.


History:-

  1. Java was designed by Sun Microsystems in the early 1990s.
  2. Basic aim of java was to solve the problem of connecting many household machines together.
  3. Project was unsuccessful because no one wanted to use it.
  4. Earlier Name of Java : OAK
  5. Creator of Java :  James Gosling  (the father of Java)
  6. As there was another language called Oak , they decided to rename OAK. New name was given to OAK , OAK was renamed Java in 1994
  7. Java was publicly released on : May 27, 1995
  8. Java was targeted at :  Internet development
  9. Applets Had early support from companies :Netscape Communications

Versions:-

Major release versions of Java, along with their release dates:
  • JDK 1.0 (January 21, 1996)
  • JDK 1.1 (February 19, 1997)
  • J2SE 1.2 (December 8, 1998)
  • J2SE 1.3 (May 8, 2000)
  • J2SE 1.4 (February 6, 2002)
  • J2SE 5.0 (September 30, 2004)
  • Java SE 6 (December 11, 2006)
  • Java SE 7 (July 28, 2011)
  • Java SE 8 (March 18, 2014)


5 Principles of JAVA:-




  • It should be "simple, object-oriented and familiar"
  • It should be "robust and secure"
  • It should be "architecture-neutral and portable"
  • It should execute with "high performance"
  • It should be "interpreted, threaded, and dynamic"


Sources:-


                  wikipedia

http://www.c4learn.com/java/java-history-2/

Warning 

  • This is provided for educational purpose only.  
  • Though we have collected the contents from the above specified sources in the aim of providing the readers all the information at one place. 

Read More

What Is Compilier

Posted by Tushar

  • A program that translates an executable 
  • program in one language into an executable program in another language.
  • we expect the program produced by the 
  • compiler to be better, in some way, than the original




Role of Compilers:


High-level programming languages provides following advantages -

  • increase programmer productivity 
  • better maintenance
  • portable
but we require following Low-level machine details too! 
  • instruction selection 
  •  addressing modes
  •  pipelines
  •  registers & cache
  • instruction-level parallelism


The Structure of a Compiler:




Multiple Phases
Modern compilers contain two (large) parts, each of which is often subdivided. These two parts are the front end, shown in green on the right and the back end, shown in pink.

The front end analyzes the source program, determines its constituent parts, and constructs an intermediate representation of the program. Typically the front end is independent of the target language.

The back end synthesizes the target program from the intermediate representation produced by the front end. Typically the back end is independent of the source language.


Advantage of  front/back end division 

This front/back division very much reduces the work for a compiling system that can handle several (N) source languages and several (M) target languages. Instead of NM compilers, we need N front ends and M back ends. For gcc (originally standing for Gnu C Compiler, but now standing for Gnu Compiler Collection), N=7 and M~30 so the savings is considerable.

The front and back end are themselves each divided into multiple phases. The input to each phase is the output of the previous. 
Sometime a phase changes the representation of the input.
For example, the lexical analyser converts a character stream input into a token stream output. 

Sometimes the representation is unchanged. 
For example, the machine-dependent optimizer transforms target-machine code into (hopefully improved) target-machine code.

Conceptually, there are three phases of analysis with the output of one phase the input of the next. The phases are called lexical analysis or scanningsyntax analysis or parsing, and semantic analysis
Read More
back to top