Sunday, 26 May 2013

All MNC'S Technical Interview Q&A ebook



Best Technical & HR Interview ebooks are made out of picking important and best tips,concepts and questions from MNC Interviews like TCS,INFOSYS,HCL etc.,
You surely get tons of benefit from this stuff friends !
No doubt in it gear up your Preparation !!

Download

75 interview questions and answers



75 interview questions and answers from 4career

This ebook includes 75 interview questions and answers sample, secrets to win every job interview, job interview checklist, types of interview questions,

Networking All-in-One For Dummies, 4th Edition

Networking All-in-One For Dummies, 4th Edition

Book Description
So you're in charge of a network? That's great - and a great big job! Let this book be your one-stop guide. You'll find out about network standards, popular network operating systems, servers, how to plan and set up a network, security secrets, troubleshooting recommendations, what to do with wireless and mobile networking variations, and much more!
Book Details
Publisher: Wiley
By: Doug Lowe
ISBN: 978-0-470-62587-3
Year: 2010
Pages: 912
Language: English
File size: 15 MB
File format: PDF

Download:Networking All-in-One For Dummies, 4th Edition

Beginning Programming with Java For Dummies, 3rd Edition

Beginning Programming with Java For Dummies, 3rd Edition

Book Description
One of the most popular beginning programming books, now fully updated.

Java is a popular language for beginning programmers, and earlier editions of this fun and friendly guide have helped thousands get started. Now fully revised to cover recent updates for Java 7.0, Beginning Programming with Java For Dummies, 3rd Edition is certain to put more first-time programmers and Java beginners on the road to Java mastery.

Beginning Programming with Java For Dummies, 3rd Edition offers an easy-to-understand introduction to programming through the popular, versatile Java 7.0 language.
Book Details
Publisher: Wiley
By: Barry Burd
ISBN: 978-0-470-37174-9
Year: 2012
Pages: 456
Language: English
File size: 21.7 MB
File format: PDF

Download:Beginning Programming with Java For Dummies, 3rd Edition

HTML5 for .NET Developers

HTML5 for .NET Developers

Book Description
HTML5 for .NET Developers teaches you how to blend HTML5 with your current .NET tools and practices. You'll start with a quick overview of the new HTML5 features and the semantic markup model. Then, you'll systematically work through the JavaScript APIs as you learn to build single page web apps that look and work like desktop apps. Along the way, you'll get tips and learn techniques that will prepare you to build "metro-style" applications for Windows 8 and WP 8.
Book Details
Publisher: Manning
By: Jim Jackson II, Ian Gilman
ISBN: 978-1-61729-043-5
Year: 2012
Pages: 416
Language: English
File size: 15.3 MB
File format: PDF

Download:HTML5 for .NET Developers

Programming Android, 2nd Edition

Programming Android, 2nd Edition

Book Description
Get thoroughly up to speed on Android programming, and learn how to create up-to-date user experiences for both handsets and tablets. With this book's extensively revised second edition, you'll focus on Android tools and programming essentials, including best practices for using Android 4 APIs. If you're experienced with Java or Objective-C, you'll gain the knowledge necessary for building well-engineered applications.
Book Details
Publisher: O'Reilly Media
By: Zigurd Mednieks, Laird Dornin, G. Blake Meike, Masumi Nakamura
ISBN: 978-1-44931-664-8
Year: 2012
Pages: 566
Language: English
File size: 7.7 MB
File format: PDF

Download:Programming Android, 2nd Edition

Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805

Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805


Book Description
Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805 is a concise, comprehensive, step-by-step, and one-stop guide for the Oracle Certified Professional Java SE 7 Programmer Exam. The first two chapters set the stage for exam preparation and let the reader get started quickly. The first chapter answers frequently asked questions about the OCPJP exam.

This book assumes that the reader is already familiar with Java fundamentals which is in line with the prerequisite of having a OCAJP certification.
Book Details
Publisher: Apress
By: S G Ganesh, Tushar Sharma
ISBN: 978-1-4302-4764-7
Year: 2013
Pages: 656
Language: English
File size: 6 MB
File format: PDF

Download:Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805

Learn Java for Android Development, 2nd Edition

Learn Java for Android Development, 2nd Edition

Android development is hot, and many programmers are interested in joining the fun. However, because this technology is based on Java, you should first obtain a solid grasp of the Java language and its foundational APIs to improve your chances of succeeding as an Android app developer. After all, you will be busy learning the architecture of an Android app, the various Android-specific APIs, and Android-specific tools. If you do not already know Java fundamentals, you will probably end up with a massive headache from also having to quickly cram those fundamentals into your knowledge base.
Book Details
Publisher: Apress
By: Jeff Friesen
ISBN: 978-1-4302-5722-6
Year: 2013
Pages: 780
Language: English
File size: 5.2 MB
File format: PDF

Download:Learn Java for Android Development, 2nd Edition

Wednesday, 22 May 2013

Object Oriented Programming using Java



Object Oriented Programming using Java
Download

Java: Graphical User Interfaces





Java: Graphical User Interfaces
An Introduction to Java Programming
David Etheridge

Download

The aptitude test workbook


Many organizations use psychometric testing to uncover candidates' abilities and assess their potential. The Aptitude Test Workbook will help readers prepare for these tests and give them an awareness of their strengths. A companion to Test Your Own Aptitude, it contains 16 tests with over 400 questions -- verbal, numerical, perceptual, and spatial.A' With two new tests -- Word Skills and Number Skills -- based on "real life" assessments, this revised edition will help readers improve key skills and find their career direction.

Principles of Distributed Database Systems

The C Answer Book: Solutions to the Exercises in 'The C Programming Language', Second Edition




1989 | 208 Pages | ISBN: 0131096532 , 7302027285 | PDF | 3 MB

Provides solutions to all exercises in Kernighan & Ritchie's new ANSI C book. Ideal for use with K&R in any course on C. Careful study of this answer book will help understand ANSI C and enhance programming skills. Tondo & Gimpel describe each solution and completely format programs to show the logical flow. 

Download

C# 3.0: The Complete Reference

Front Cover


Book Description
Publication Date: December 9, 2008 | ISBN-10: 0071588418 | ISBN-13: 978-0071588416 | Edition: 3
The Most Comprehensive C# Resource Available

With its support for Language-Integrated Query (LINQ), C# 3.0 has revolutionized C# programming, and bestselling author Herb Schildt has updated and expanded his classic programming reference to cover it. Using carefully crafted explanations, insider tips, and hundreds of examples, this book presents in-depth coverage of all aspects of C#, including its keywords, syntax, and core libraries. Of course, details on the new C# 3.0 features, such as LINQ, lambda expressions, implicitly typed variables, and anonymous types are included.

Essential for every C# programmer, this comprehensive guide is written in the clear, crisp, uncompromising style that has made Herb the choice of millions worldwide. Whether you are a novice programmer or a seasoned pro, the answers to all of your C# questions can be found in this definitive resource.

Download :C# Complete Reference

Java Cookbook, 2nd Edition

Java Cookbook, 2nd Edition


Book Description
You have a choice: you can wade your way through lengthy Java tutorials and figure things out by trial and error, or you can pick up Java Cookbook, 2nd Edition and get to the heart of what you need to know when you need to know it.

With the completely revised and thoroughly updated Java Cookbook, 2nd Edition, Java developers like you will learn by example, try out new features, and use sample code to understand how new additions to the language and platform work - and how to put them to work for you.
Book Details
Publisher: O'Reilly Media
By: Ian F. Darwin
ISBN: 978-0-59600-701-0
Year: 2004
Pages: 864
Language: English
File size: 7.9 MB
File format: PDF
eBook
Download: Java Cookbook, 2nd Edition

Head First Java, 2nd Edition

Head First Java, 2nd Edition




Book Description
Head First Java delivers a highly interactive, multisensory learning experience that lets new programmers pick up the fundamentals of the Java language quickly. Through mind-stretching exercises, memorable analogies, humorous pictures, and casual language, Head First Java encourages readers to think like a Java programmer. This revised second edition focuses on Java 5.0, the latest version of the Java development platform.
Book Details
Publisher: O'Reilly Media
By: Kathy Sierra, Bert Bates
ISBN: 978-0-596-00920-5
Year: 2005
Pages: 720
Language: English
File size: 33.9 MB
File format: PDF
eBook
Download: Head First Java, 2nd Edition

C# 2008 Programmer's Reference

C# 2008 Programmer's Reference



 Book Description
The 2008 version of C# comes with the .NET Framework and boasts many new features that make it even more intuitive and powerful than previous iterations. Offering you a complete reference on the new 2008 release, this authoritative book is essential reading - no matter your level of experience.

You'll learn the C# language fundamentals and application development using C# as you gradually master the complex array of new language options and parameters that C# 2008 offers. Plus, you'll discover how to find the right options for best programming practices and results.
Book Details
Publisher: Wrox
By: Wei-Meng Lee
ISBN: 978-0-470-28581-7
Year: 2008
Pages: 840
Language: English
File size: 21.7 MB
File format: PDF
eBook
Download: C# 2008 Programmer's Reference

Sunday, 12 May 2013

Use a timer to create a simple alarm application


Introduction

When I work on the computer, I often get so absorbed that I glance up a minute later to find that three hours have passed without my even noticing it. So I've pulled together some C# skills I've learnt from some of the articles here at Code Project, to create a simple little application that uses a Timer object to count down the seconds towards a time set by a user, and then plays a looping wave sound file until the timer is reset.

I've tried to keep it simple, but I've added some extra functionality for a notify icon to appear in the status bar. I mainly added this functionality because I hate the idea of a simple application like this taking up space in the taskbar.

Basics of the Timer Object
The very first thing you need, is to access the necessary namespaces to use a Timer object.


using System.Threading;
using System.Timers;
Now I'll give you the basics for creating the Timer and setting an event delegate for the Timer object's public Elapsed event.

The creation of the Timer object comes first, I called my timer timerClock. Next I set the Elapsed event delegate, by specifying a delegate to be called when the event fires. I called my delegate OnTimer().

Next I set the Interval property, to the time in milliseconds that I wish the Elapsed event to be fired, which means that my delegate OnTimer()will be called every 1000 milliseconds, or every 1 second, if I set the Interval property to 1000 milliseconds.

Finally, I set the Enabled property to true so that the timer is active. Then it's just a simple matter of creating a delegate to be called when the Elapsed event is fired by the Timerobject. If you haven't used delegates before, then don't worry, they are very easy to use. Just create a method that receives the appropriate variables for the event you are capturing.

In the case of the Elapsed event, my delegate needs to receive a plain Object, and an ElapsedEventArgs object.

private System.Timers.Timer timerClock = new System.Timers.Timer();  
timerClock.Elapsed += new ElapsedEventHandler(OnTimer);
timerClock.Interval = 1000;
timerClock.Enabled = true;

public void OnTimer( Object source, ElapsedEventArgs e )
{
    //Your code here
}
Using the Timer in an Alarm Application
Okay, with the basics out of the way I can show you the code for the actual application. Note that I haven't included the code to play wave sounds or the code for displaying a notify icon, in the interests of keeping this simple. The full code is available in the demo project where you will see that, I have pretty much just cut and pasted the wave player functions straight from the article by jow Blow on "Low level audio players".

In the code below you will see that I have separated the instantiation of the Timer object into it's own initialization method named InitializeTimer() which is called from the class' constructor. I've also created two methods named inputToSeconds() and secondsToTime() which just process the time value from a string to an integer, and vice versa. These methods are just used to help display the time in the application's TextBox control and aren't actually very important in the big scheme of things. The rest of the code you will recognize as the standard Visual Studio.NET Boilerplate code for a Win Form.


using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Threading;
using System.Timers;
using System.IO;
using System.Reflection;


namespace timerAlarm
{
    public class TimerForm : System.Windows.Forms.Form
    {
        //Controls and Components
        private System.Windows.Forms.TextBox timerInput;
        private System.Windows.Forms.Button StartButton;
        private System.Windows.Forms.Button ResetButton;
        private System.ComponentModel.IContainer components;
        //Timer and associated variables
        private System.Timers.Timer timerClock = new System.Timers.Timer();
        private int clockTime = 0;
        private int alarmTime = 0;

        public TimerForm()
        {
            InitializeComponent();
            InitializeTimer();
        }

        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose( disposing );
        }

        #region Windows Form Designer generated code
        /// <SUMMARY>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </SUMMARY>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.Resources.ResourceManager resources = new System.
                Resources.ResourceManager(typeof(TimerForm));
            this.timerInput = new System.Windows.Forms.TextBox();
            this.StartButton = new System.Windows.Forms.Button();
            this.ResetButton = new System.Windows.Forms.Button();
            this.SuspendLayout();
            //
            // timerInput
            //
            this.timerInput.Location = new System.Drawing.Point(12, 13);
            this.timerInput.Name = "timerInput";
            this.timerInput.Size = new System.Drawing.Size(50, 20);
            this.timerInput.TabIndex = 0;
            this.timerInput.Text = "00:00:00";
            //
            // StartButton
            //
            this.StartButton.FlatStyle = System.Windows.Forms.
                FlatStyle.System;
            this.StartButton.Location = new System.Drawing.Point(75, 11);
            this.StartButton.Name = "StartButton";
            this.StartButton.TabIndex = 1;
            this.StartButton.Text = "Start";
            this.StartButton.Click += new System.EventHandler
                (this.StartButton_Click);
            //
            // ResetButton
            //
            this.ResetButton.FlatStyle = System.Windows.Forms.
                FlatStyle.System;
            this.ResetButton.Location = new System.Drawing.Point(161, 11);
            this.ResetButton.Name = "ResetButton";
            this.ResetButton.TabIndex = 2;
            this.ResetButton.Text = "Reset";
            this.ResetButton.Click += new
                System.EventHandler(this.ResetButton_Click);
            //
            // TimerForm
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(247, 46);
            this.Controls.AddRange(new System.Windows.Forms.Control[] {
                  this.ResetButton,
                  this.StartButton,
                  this.timerInput});
            this.FormBorderStyle = System.Windows.Forms.
                FormBorderStyle.FixedSingle;
            this.Icon = ((System.Drawing.Icon)(resources.
                GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.Name = "TimerForm";
            this.StartPosition = System.Windows.Forms.
                FormStartPosition.CenterScreen;
            this.Text = "Alarm Timer";
            this.Resize += new System.EventHandler(this.
                TimerForm_Resized);
            this.ResumeLayout(false);

        }
        #endregion

        public void InitializeTimer()
        {
            this.timerClock.Elapsed += new ElapsedEventHandler(OnTimer);
            this.timerClock.Interval = 1000;
            this.timerClock.Enabled = true;
        }

        [STAThread]
        static void Main()
        {
            Application.Run(new TimerForm());
        }

        private void TimerForm_Resized(object sender, System.EventArgs e)
        {
            if( this.WindowState == FormWindowState.Minimized )
            {
                this.Hide();
            }
        }

        private void StartButton_Click(object sender, System.EventArgs e)
        {
            this.clockTime = 0;
            inputToSeconds( this.timerInput.Text );
        }

        private void ResetButton_Click(object sender, System.EventArgs e)
        {
            try
            {
                this.clockTime = 0;
                this.alarmTime = 0;
                this.timerInput.Text = "00:00:00";
            }
            catch( Exception ex )
            {
                MessageBox.Show("ResetButton_Click(): " + ex.Message );
            }
        }

        public void OnTimer(Object source, ElapsedEventArgs e)
        {
            try
            {
                this.clockTime++;
                int countdown = this.alarmTime - this.clockTime ;
                if( this.alarmTime != 0 )
                {
                    this.timerInput.Text = secondsToTime(countdown);
                }

                //Sound Alarm
                if( this.clockTime == this.alarmTime )
                {
                    MessageBox.Show("Play Sound");
                }
            }
            catch( Exception ex )
            {
                MessageBox.Show("OnTimer(): " + ex.Message );
            }      
        }

        private void inputToSeconds( string timerInput )
        {
            try
            {
                string[] timeArray = new string[3];
                int minutes = 0;
                int hours = 0;
                int seconds = 0;
                int occurence = 0;
                int length = 0;

                occurence = timerInput.LastIndexOf(":");
                length = timerInput.Length;

                //Check for invalid input
                if( occurence == -1 || length != 8 )
                {
                    MessageBox.Show("Invalid Time Format.");
                    ResetButton_Click( null, null );
                }
                else
                {
                    timeArray = timerInput.Split(':');

                    seconds = Convert.ToInt32( timeArray[2] );
                    minutes = Convert.ToInt32( timeArray[1] );
                    hours = Convert.ToInt32( timeArray[0] );

                    this.alarmTime += seconds;
                    this.alarmTime += minutes*60;
                    this.alarmTime += (hours*60)*60;
                }
            }
            catch( Exception e )
            {
                MessageBox.Show("inputToSeconds(): " + e.Message );
            }
        }

        public string secondsToTime( int seconds )
        {
            int minutes = 0;
            int hours = 0;

            while( seconds >= 60 )
            {
                minutes += 1;
                seconds -= 60;
            }
            while( minutes >= 60 )
            {
                hours += 1;
                minutes -= 60;
            }

            string strHours = hours.ToString();
            string strMinutes = minutes.ToString();
            string strSeconds = seconds.ToString();

            if( strHours.Length < 2 )
                strHours = "0" + strHours;
            if( strMinutes.Length < 2 )
                strMinutes = "0" + strMinutes;
            if( strSeconds.Length < 2 )
                strSeconds = "0" + strSeconds;

            return strHours + ":" + strMinutes + ":" + strSeconds;
        }
    }
}

Saturday, 11 May 2013

C program to find ncr and npr


C program to find nCr and nPr: This code calculate nCr which is n!/(r!*(n-r)!) and nPr = n!/(n-r)!

C program to find nCr using function
#include<stdio.h>

long factorial(int);
long find_ncr(int, int);
long find_npr(int, int);

main()
{
   int n, r;
   long ncr, npr;

   printf("Enter the value of n and r\n");
   scanf("%d%d",&n,&r);

   ncr = find_ncr(n, r);
   npr = find_npr(n, r);

   printf("%dC%d = %ld\n", n, r, ncr);
   printf("%dP%d = %ld\n", n, r, npr);

   return 0;
}

long find_ncr(int n, int r)
{
   long result;

   result = factorial(n)/(factorial(r)*factorial(n-r));

   return result;
}

long find_npr(int n, int r)
{
   long result;

   result = factorial(n)/factorial(n-r);

   return result;


long factorial(int n)
{
   int c;
   long result = 1;

   for( c = 1 ; c <= n ; c++ )
      result = result*c;

   return ( result );
}

Output of program:

C hello world program

C hello world program: c programming language code to print hello world. This program prints hello world, printf function is used to display text on screen, '\n' places cursor on the beginning of next line, stdio.h header file contains declaration of printf function. The code will work on all operating systems may be its Linux, Mac or any other and compilers. To learn a programming language you must start writing programs in it and may be your first c code while learning programming.


C hello world example

#include <stdio.h>
 
int main()
{
  printf("Hello world\n");
  return 0;
}