Thursday, 27 September 2012

JAVA Program to send an e-mail


SAMPLE JAVA PROGRAM TO SEND AN EMAIL

The JavaMail API is not part of core Java SE, but an optional extension. In addition, it is required in Java Enterprise Edition. The JavaMail packages can be accessed in two ways:
  • by placing j2ee.jar in the classpath
  • or, by placing both mail.jar and activation.jar in the classpath
The javax.mail API uses a properties file for reading server names and related configuration. These settings will override any system defaults. Alternatively, the configuration can be set directly in code, using the JavaMail API.
In below example, I am sending mail using JavaMail API with GMail SMTP on Port 465.
package  com.mail.tutorial;

import java.io.InputStream;
import java.util.List;
import java.util.Properties;

import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMessage.RecipientType;

public class SendEmail {
  private  static Properties properties = null;

  static {
    // Load  the  properties file
    try  {
      properties = new Properties();
      InputStream  inputStream  = SendEmail.class.getClassLoader()
     .getResourceAsStream("mail.properties");
      properties.load(inputStream);
    } catch  (Exception e) {
      // Catching  the  exception as null condition  
   // is handled in the methods.
    }
  }

  public static void sendTextMail(String to, String from,  String subject,  
  String body) throws  Exception {

    if (properties.isEmpty()) {
      throw new Exception("Cannot  send mail. Host  data not available.");
    }

    // Authenticate  the  session  with username and password
    Session  session  = Session.getInstance(properties, new Authenticator(){
      protected PasswordAuthentication getPasswordAuthentication()
      {
        return new PasswordAuthentication(
  (String)properties.get("mail.login.username"), 
  (String)properties.get("mail.login.password"));
      }
    });

    // Create to and from addresses
    InternetAddress  fromAddress  = new InternetAddress(from);
    InternetAddress  toAddress =  new  InternetAddress(to);

    // Create the message instance 
 // and add the sender, recipient, subject and body.
    Message  msg  = new MimeMessage(session);
    msg.setFrom(fromAddress);
    msg.setSubject(subject);
    msg.setRecipient(RecipientType.TO, toAddress);
    msg.setContent(body, "text/plain");

    // Finally send  the  email
    Transport.send(msg);

    // Now,  the  mail would have  reached  the  recipients.  
 // Ask  them to  check their  inbox.
  }
}
 
Also you need to set the below properties in a properties file called mail.properties.
# Configuration file for javax.mail 
# If a value for an item is not provided, then 
# system defaults will be used. These items can 
# also be set in code. 

mail.smtp.host=smtp.gmail.com
mail.smtp.auth=true

mail.smtp.socketFactory.port=465
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback=false

# This is your login name and password not required. Instead of 
# hardcoding them in program, I have added here.
mail.login.username=abc@xyz.com
mail.login.password=*****


You need to download below jars to run the above example 
1. j2ee.jar 
or 
1. mail.jar and activation.jar

Wednesday, 26 September 2012

Freshers & Exp Recruitment For C++ Game Programmer (3d) @ “Gameloft Software” in Hyderabad


Freshers & Exp Recruitment For C++ Game Programmer (3d) @ “Gameloft Software” in Hyderabad
About Company
Name : Gameloft Software Pvt. Ltd
Website : www.gameloft.com 
Job Details
Education : B.Tech / B.E./ BCA /  B.Sc / MCA / M.Sc / M.Tech
Experience : 0 to 4 Years
Location : Hyderabad
Job Description
C++ Game Programmer (3d) 
- As a member of our engineering team, assist in the full cycle development of a 3D video games for mobile phones from start to finish.
- Day to day responsibilities include development, writing and debugging of code, integrating graphic, sound, and networking components.
Responsibilities
- Programming in the relevant languages (C++)
- Knowledge of OpenGL / DirectX/ Win 32
- Knowledgeable in 3D rendering algorithms 
- Experienced in 3D graphics engine programming in games
Skills : C, C++ Programming, Game Programming, Open GL, direct 3d, c++ development
Contact Details

Name : Sowjanya Konda

Friday, 14 September 2012

Google Nexus 7 - The Complete Picture


Google Nexus 7 is the first Nexus-branded tablet and developed by ASUS and Google, it seems to be a bold move. Well, how bold, that you can judge from Google Nexus 7 review on this page. Clearly, Google Nexus 7has the benefit of running plain vanilla flavor Android, creative with manufacturer skins. Earlier, Google was relaxed about releasing Honeycomb to manufacturers but without their branding. But times have changed now.

The Design Aspect

Let us start Google Nexus 7 review with the designing and it looks a bit understated at first look. Although there is nothing here to really gloat about, but one enjoys a lot of function in the design choices.
The buttons and ports on Google Nexus 7 can be seen when looking at the device from the front. The buttons are placed closely and soon you will get pretty much used to them. They make a nice click when pressed. The power/wake button lies on the right side, and you’ll find the micro USB port as well as the 3.5mm jack on the bottom side. With 4 pogo pins on the left side, the entire top-side and the left edge are free.
The back side is completely bare except the speaker. The soft touch plastic almost feels like leather. However, you will definitely miss two features on Google Nexus 7 and one is the rear-facing camera and second, the notification light. The ASUS logo is engraved just above the speaker and the Nexus logo is at the top.

Screen

Google Nexus 7 gets its name partly from the 7”, back-lit IPS display in resolution of 1280×800, It is a great screen though not the biggest screen in terms of size and resolution. The higher resolution and relatively small size means that you can enjoy great color reproduction. The device works great as an e-reader and it offers some excellent viewing angles to watch videos. However, using it in sunlight is not a very pleasing experience, as per Google Nexus 7 review. But the screen offers great responses, with easy swipes, accurate touches and presses. The device measures 198.5mm x 120mm x 10.45mm and weighs 340g.

Sound

You will find the audio was loud enough in a small quiet room.   You can always fix in some headphones to get rid of the problem of low sound.

Cameras

With no rear-facing camera in Google Nexus 7, you will find even the camera application missing. But the gadget does have a rear-facing camera, what works just fine enough.

Battery life

You can manage to get well over 3 days of regular use out of Google Nexus 7. Read articles, watch videos, play games, for endless hours. The device managed to conjure up about 11 hours in the video looping test.

Software

Google Nexus 7 brings with it a new version of Android: 4.1, referred to as Jelly Bean that introduces some welcome additions.The homescreen UI is slightly different from other Android tablets and seems closer to the phone UI. The homescreen carries a shortcut bar at the bottom. A familiar pull down can access the notifications that take up only 3’4 of the screen.
What is there
  • a quad-core CPU clocked at 1.2GHz
  • 1GB of RAM
  • 8GB or 16GB of on-device storage
  • WiFi b/g/n and Bluetooth
What is not
  • no SD-slot for expandable storage
  • no 3G variant of the Nexus 7

Conclusion on Google Nexus 7 Review

Google Nexus 7 is without doubt an excellent tablet, available at an outrageously competitive price. It’s clearly one of the top Android tablet. Of course there are some downsides such as no rear-facing camera and no expandable storage. But still the low price makes up for any shortcomings.

Wednesday, 12 September 2012

Software Testing Tutorials << Video Tutorials and FAQ's


Software testing is an investigation conducted to provide stakeholders with information about the quality of the product or service under test.Software testing can also provide an objective, independent view of the software to allow the business to appreciate and understand the risks of software implementation. Test techniques include, but are not limited to, the process of executing a program or application with the intent of finding software bugs (errors or other defects).
Software testing can be stated as the process of validating and verifying that a software program/application/product:
  1. meets the requirements that guided its design and development;
  2. works as expected;
  3. can be implemented with the same characteristics.
  4. satisfies the needs of stakeholders (From Wikipedia)
Tutorials From guru99.com
What Next?

Read more at http://www.how2labs.info/2012/08/software-testing-video-tutorial.html#BkMUyZmrdYwqHwKu.99

Saturday, 1 September 2012

Cellphones to be less harmful from Saturday

Beginning Saturday, handsets manufactured in India will have to abide by the new radiation norms rolled out by the government.

According to the new cellphone radiation norms, cellphones should emit lower radiation and emissions from cellphone towers also should be cut to to one-tenth of the present level.

The norms will come into force on Sept. 1, according to which cellphones will have a specific absorption rate of 1.6 watts per kg averaged over one gram of human tissue as compared to the earlier limit of 2 watts per kilogram averaged over 10 gram of tissue.

The handsets which are already in the market have been given one year to be phased out while those which the consumers already possess will not be affected by these new norms.

Union telecom minister Kapil Sibal said the norms are more stringent than most countries.

Source : DC

Friday, 31 August 2012

Walk-in For PHP Developer Fresher & Exp @ “GR Infotech” in Chennai



About Company
Name : GR Infotech
Website : --
Job Details
Education : B.Tech / B.E / M.Sc / MCA / M.Tech / B.Sc
Experience : 0 to 3 years
Location : Chennai
Walk-in On 8th Sep 2012 @ Chennai
Job Description
The Web Developer is responsible for managing all aspects of web development.
The majority of Creative Saints sites are to be developed and managed on PHP/Mysql/Joomla/Wordpress! Content Management System.
2012 Passed out and exp (1-3 yrs) welcome.
Salary: INR Less Than 50,000 - 1,50,000 P.A
If interested forward your resumes
Contact Details
Name : Mr. Rajvinoth
Email Address : jobs@grinfotech.com
Reference Id : PHP-WD-08-12

Logic Systems Hiring Freshers For JAVA / .NET Developer @ Hyderabad


About Company
Name : Logic Systems
Job Details
Education : MCA/BTech/BE
Experience : Fresher 2011/12
Location : Hyderabad
Job Description
Candidate should have sound knowledge on java & .net
Qualification : MCA/BTech/BE (2011&2012)
Contact Details
Name : Mr.Vinay
Email Address : careers@programmer.net
Telephone : 040-40274843, 8143615322
Walk-in Address
Logic Systems
C-25, Ground Floor,
Shiva Sai Gayathri Nilayam,
Opp. Lane Vellanki Foods,
Madhura Nagar
Hyderabad

Wednesday, 29 August 2012

The People behind Google

Building great products depends on great people. There are more than 30,000 Googlers behind the tools that you use every day—from search to Chrome. Find out more about what it’s like to work at Google, where we work and who drives our company strategy below.

Executive Officers


Larry Page CEO

As Google’s chief executive officer, Larry is responsible for Google’s day-to-day-operations, as well as leading the company’s product development and technology strategy. He co-founded Google with Sergey Brin in 1998 while pursuing a Ph.D. at Stanford University, and was the first CEO until 2001—growing the company to more than 200 employees and profitability. From 2001 to 2011, Larry was president of products.
Larry holds a bachelor’s degree in engineering from the University of Michigan, Ann Arbor and a master’s degree in computer science from Stanford University. He is a member of the National Advisory Committee (NAC) of the University of Michigan College of Engineering, and together with co-founder Sergey Brin, Larry was honored with the Marconi Prize in 2004. He is a trustee on the board of the X PRIZE, and was elected to the National Academy of Engineering in 2004.

Eric E. Schmidt Executive Chairman

Since joining Google in 2001, Eric Schmidt has helped grow the company from a Silicon Valley startup to a global leader in technology. As executive chairman, he is responsible for the external matters of Google: building partnerships and broader business relationships, government outreach and technology thought leadership, as well as advising the CEO and senior leadership on business and policy issues.
From 2001-2011, Eric served as Google’s chief executive officer, overseeing the company’s technical and business strategy alongside founders Sergey Brin and Larry Page. Under his leadership, Google dramatically scaled its infrastructure and diversified its product offerings while maintaining a strong culture of innovation.
Prior to joining Google, Eric was the chairman and CEO of Novell and chief technology officer at Sun Microsystems, Inc. Previously, he served on the research staff at Xerox Palo Alto Research Center (PARC), Bell Laboratories and Zilog. He holds a bachelor’s degree in electrical engineering from Princeton University as well as a master’s degree and Ph.D. in computer science from the University of California, Berkeley.
Eric is a member of the President’s Council of Advisors on Science and Technology and the Prime Minister’s Advisory Council in the U.K. He was elected to the National Academy of Engineering in 2006 and inducted into the American Academy of Arts and Sciences as a fellow in 2007. He also chairs the board of the New America Foundation, and since 2008 has been a trustee of the Institute for Advanced Study in Princeton, New Jersey.

Sergey Brin Co-Founder

Sergey Brin co-founded Google Inc. in 1998. Today, he directs special projects. From 2001 to 2011, Sergey served as president of technology, where he shared responsibility for the company’s day-to-day operations with Larry Page and Eric Schmidt.
Sergey received a bachelor’s degree with honors in mathematics and computer science from the University of Maryland at College Park. He is currently on leave from the Ph.D. program in computer science at Stanford University, where he received his master’s degree. Sergey is a member of the National Academy of Engineering and a recipient of a National Science Foundation Graduate Fellowship.
He has published more than a dozen academic papers, including Extracting Patterns and Relations from the World Wide WebDynamic Data Mining: A New Architecture for Data with High Dimensionality, which he published with Larry Page; Scalable Techniques for Mining Casual StructuresDynamic Itemset Counting and Implication Rules for Market Basket Data; and Beyond Market Baskets: Generalizing Association Rules to Correlations.


Nikesh Arora Senior Vice President and Chief Business Officer

Nikesh oversees all revenue and customer operations, as well as marketing and partnerships. Since joining Google in 2004, he has held several positions with the company. Most recently, he led Google’s global direct sales operations. He also developed and managed the company’s operations in the European, Middle Eastern and African markets and was responsible for creating and expanding strategic partnerships in those regions for the benefit of Google’s growing number of users and advertisers.
Prior to joining Google, he was chief marketing officer and a member of the management board at T-Mobile Europe. While there, he spearheaded all product development, terminals, brand and marketing activities of T-Mobile Europe. In 1999, he started working with Deutsche Telekom and founded T-Motion PLC, a mobile multimedia subsidiary of T-Mobile International. Prior to joining Deutsche Telekom, Nikesh held management positions at Putnam Investments and Fidelity Investments in Boston.
Nikesh holds a master’s degree from Boston College and an MBA from Northeastern University, both of which were awarded with distinction. He also holds the CFA designation. In 1989, Nikesh graduated from the Institute of Technology in Varanasi, India with a bachelor’s degree in electrical engineering.


David C. Drummond Senior Vice President, Corporate Development and Chief Legal Officer

David Drummond joined Google in 2002, initially as vice president of corporate development. Today as senior vice president and chief legal officer, he leads Google’s global teams for legal, government relations, corporate development (M&A and investment projects) and new business development (strategic partnerships and licensing opportunities).
David was first introduced to Google in 1998 as a partner in the corporate transactions group at Wilson Sonsini Goodrich and Rosati, one of the nation’s leading law firms representing technology businesses. He served as Google’s first outside counsel and worked with Larry Page and Sergey Brin to incorporate the company and secure its initial rounds of financing. During his tenure at Wilson Sonsini, David worked with a wide variety of technology companies to help them manage complex transactions such as mergers, acquisitions and initial public offerings.
David earned his bachelor’s degree in history from Santa Clara University and his JD from Stanford Law School.


Patrick Pichette Senior Vice President and Chief Financial Officer

Patrick Pichette is Google’s chief financial officer. He has nearly 20 years of experience in financial operations and management in the telecommunications sector, including seven years at Bell Canada, which he joined in 2001 as executive vice president of planning and performance management. During his time at Bell Canada, he held various executive positions, including CFO from 2002 until the end of 2003, and was instrumental in the management of the most extensive communications network in Canada and its ongoing migration to a new national IP-based infrastructure. Prior to joining Bell Canada, Patrick was a partner at McKinsey & Company, where he was a lead member of McKinsey’s North American Telecom Practice. He also served as vice president and chief financial officer of Call-Net Enterprises Inc., a Canadian telecommunications company.
Patrick has been a member of the board of directors of Amyris, Inc., a synthetic biology company, since March 2010, and serves on its Audit Committee and Leadership Development and Compensation Committee. He also serves on the board of Trudeau Foundation. Patrick earned a bachelor’s degree in business administration from Université du Québec à Montréal. He holds a master’s degree in philosophy, politics and economics from Oxford University, where he attended as a Rhodes Scholar.
Back to top

Senior Leadership


Alan Eustace

Senior Vice President, Knowledge

Amit Singhal

Senior Vice President and Google Fellow

Andy Rubin

Senior Vice President, Mobile and Digital Content

Dennis Woodside

Senior Vice President

Jeff Huber

Senior Vice President, Geo and Commerce

Kent Walker

Senior Vice President and General Counsel

Laszlo Bock

Senior Vice President, People Operations

Rachel Whetstone

Senior Vice President, Communications and Public Policy

Salar Kamangar

Senior Vice President, YouTube and Video

Shona Brown

Senior Vice President, Google.org

Sridhar Ramaswamy

Senior Vice President, Engineering

Sundar Pichai

Senior Vice President, Chrome and Apps

Susan Wojcicki

Senior Vice President, Advertising

Urs Hoelzle

Senior Vice President, Technical Infrastructure, and Google Fellow

Vic Gundotra

Senior Vice President, Engineering
Back to top







Board of Directors

Larry Page, CEO – read Larry's profile
Sergey Brin, Co-Founder – read Sergey's profile
Eric E. Schmidt, Executive Chairman – read Eric's profile
L. John Doerr has served as a member of our board of directors since May 1999. John has been a General Partner of Kleiner Perkins Caufield & Byers, a venture capital firm, since August 1980. John has also been a member of the board of directors of Amyris, Inc., a synthetic biology company, since May 2006, and serves on its nominating and governance committee. John was previously a director of Amazon.com, Inc., an internet retail company, from 1996 to 2010; Intuit Inc., a provider of business and financial management solutions, from 1990 to 2007; and Move, Inc., a provider of real estate media and technology solutions, from 1998 to 2008. John holds a Master of Business Administration degree from Harvard Business School, and a Master of Science degree in electrical engineering and computer science, and a Bachelor of Science degree in electrical engineering from Rice University.
More about L. John Doerr »
Diane B. Greene has served as a member of our board of directors since January 2012. Diane has also been a member of the board of directors of Intuit Inc., a provider of business and financial management solutions, since August 2006 and serves on its audit and risk committee and nominating and corporate governance committee. Diane co-founded VMware, Inc., a provider of virtualization and virtualization-based cloud infrastructure solutions, in 1998 and took the company public in 2007. She served as Chief Executive Officer and President of VMware from 1998 to 2008, as a member of the board of directors of VMware from 2007 to 2008, and as an Executive Vice President of EMC Corporation, a provider of information infrastructure and virtual infrastructure technologies, solutions and services, from 2005 to 2008. Prior to VMware, Diane held technical leadership positions at Silicon Graphics Inc., a provider of technical computing, storage and data center solutions, Tandem Computers, Inc., a manufacturer of computer systems, and Sybase Inc., a global enterprise software and services company, and was Chief Executive Officer of VXtreme, Inc., a developer of streaming media solutions. Diane is also a member of The MIT Corporation, the governing body of the Massachusetts Institute of Technology. Diane holds a Master of Science degree in computer science from the University of California, Berkeley, a Master of Science degree in naval architecture from the Massachusetts Institute of Technology, and a Bachelor of Arts degree in mechanical engineering from the University of Vermont.
John L. Hennessy has served as a member of our board of directors since April 2004, and as Lead Independent Director since April 2007. John has served as the President of Stanford University since September 2000. From 1994 to August 2000, John held various positions at Stanford, including Dean of the Stanford University School of Engineering and Chair of the Stanford University Department of Computer Science. John has also been a member of the board of directors of Cisco Systems, Inc., a networking equipment company, since January 2002, and serves on its nominating and governance committee and acquisition committee. John co-founded and served as the chairman of the board of directors of Atheros Communications, Inc., a wireless semiconductor company, from 1998 to 2010. John holds a Doctoral degree and a Master of Science degree in computer science from the State University of New York, Stony Brook, and a Bachelor of Science degree in electrical engineering from Villanova University.
More about John L. Hennessy »
Ann Mather has served as a member of our board of directors since November 2005. Ann has also been a member of the board of directors of: Glu Mobile Inc., a publisher of mobile games, since September 2005; MGM Holdings Inc., a motion picture and television production and distribution company, since December 2010, and serves on its compensation committee; MoneyGram International, Inc., a global payment services company, since May 2010; Netflix, Inc., an internet subscription service for movies and television shows, since July 2010, and serves on its audit committee; and Solazyme, Inc., a renewable oil and bioproducts company, since April 2011, and serves as chair of its audit committee. Ann has also been an independent trustee to the Dodge & Cox Funds board of trustees since May 2011. Ann was previously a director of Central European Media Enterprises Group, a developer and operator of national commercial television channels and stations in Central and Eastern Europe, from 2004 to 2009. From 1999 to 2004, Ann was Executive Vice President and Chief Financial Officer of Pixar, a computer animation studio. Prior to her service at Pixar, Ann was Executive Vice President and Chief Financial Officer at Village Roadshow Pictures, the film production division of Village Roadshow Limited. Ann holds a Master of Arts degree from Cambridge University in England and is a chartered accountant.
Paul S. Otellini has served as a member of our board of directors since April 2004. Paul has served as the Chief Executive Officer and President of Intel Corporation, a semiconductor manufacturing company, since May 2005. Paul has been a member of the board of directors of Intel since 2002. He also served as Intel’s Chief Operating Officer from 2002 to May 2005. From 1974 to 2002, Paul held various positions at Intel, including Executive Vice President and General Manager, Intel Architecture Group, and Executive Vice President and General Manager, Sales and Marketing Group. Paul holds a Master of Business Administration degree from the University of California, Berkeley, and a Bachelor of Arts degree in economics from the University of San Francisco.
More about Paul S. Otellini »
K. Ram Shriram has served as a member of our board of directors since September 1998. Ram has been a managing partner of Sherpalo Ventures, LLC, an angel venture investment company, since January 2000. From August 1998 to September 1999, Ram served as Vice President of Business Development at Amazon.com, Inc., an internet retail company. Prior to that, Ram served as President at Junglee Corporation, a provider of database technology, which was acquired by Amazon.com in 1998. Ram was an early member of the executive team at Netscape Communications Corporation. Ram is also on the board of trustees of Stanford University. Ram holds a Bachelor of Science degree in mathematics from the University of Madras, India.
More about K. Ram Shriram »
Shirley M. Tilghman has served as a member of our board of directors since October 2005. Shirley has served as the President of Princeton University since June 2001. From August 1986 to June 2001, she served as a Professor at Princeton University, and from August 1988 to June 2001, as an Investigator at Howard Hughes Medical Institute. In 1998, she took the role as founding director of Princeton’s multi-disciplinary Lewis-Sigler Institute for Integrative Genomics. Shirley holds a Doctoral degree in biochemistry from Temple University, and a Bachelor of Science degree with honors in chemistry from Queen’s University.
More about Shirley M. Tilghman »

Apple targets to ban the sales of 8 Samsung phones



Apple wants to keep eight of Samsung's smartphones off store shelves in the U.S. as a result of last week's high-profile jury verdict.

(Credit: James Martin/CNET)
Following last week's court ruling in the trial between it and Samsung, Apple this morning laid out which Samsung devices it wants banned from sale in the U.S.
There are eight in total out of the 28 that were included in the case. Those include:
In its filing, Apple outlined the specific patents the devices were found to infringe in the trial, which went on for a month and wrapped up last week. The device with the most infringements is the Galaxy S 4G. It was found to infringe two of Apple's design patents, three utility patents, and two claims of trade dress: