Subscribe to Get Free Material Updates!
Visit my new blog WebData Scraping - Web Scraping Service provider company in India.

Google's New Year Doodle Of 2012


Google likes to wish new year to their users via Doodle,  on the occasion of new year Google released it’s new Doodle logo. The Doodle shows that five characters of Google, characters are  like five persons (or we can say google users) enjoying the new year celebration. The releasing of Doodle is not new concept because every one knows that Google releases its doodle on every occasion.

New Year Doodle
 

On the first day of 2012 Google has released it's new Doodle “Happy New Year”. In this Doodle we can see  a small calendar on right side which shows 1st date of the year 2012. In previous Doodle all characters are enjoying coming new year while in this Doodle every character doing different thing. When you click on this Doodle it shows the search result on "New Year's Day".

Google doodle


  1. The ‘G’ is listening music
  2. ‘O’ is dancing
  3. Second O is jumping to enjoy new year
  4. The small ‘g’ playing music in Guitar
  5. The ‘L’ is busy in reading
  6. The ‘e’ is cleaning the floor

On the left side of doodle, some words are written which says “Hello, Hi, Hola, Namaste (Similar to Hi), Bonjour and ahoj . All words are in different languages likes Hindi, Chines, Japanes says “Hi”.

The Google has started releasing its Doodle form 1998 and continue till 2012 and we will also expect more Doodle in next years. You can visit all previous year Doodle from this link.


Related Posts:
Google Searching Tricks
Number System Conversion Using Google Search Engine.

UNIX Shell Script Programming


When group of command is to be executed regularly, they should be stored in a file. This file is called Shell Script It is not mandatory to have .sh extension Vi editor is used to create shell script.  You can use any Unix based Operating System to run this script or you can also use UWIN (Unix like shell developed by Wipro)  program to execute Shell Script on Windows. Shell script is very sophisticated scripting language because white space also plays an important role in syntax grammar while in other languages like C and C++ or Java ignores white spaces.

For the practical purpose I am sharing this quick handy presentation which helps you to refreshing shell script syntax rules and various commands. I published this article to help students in MCA Unix Shell Script Programming. Download link is given at the end of this post. Also share this with all  GTU MCA students.

Unix script


Shell Script

You can Download This Presentation From This Link.

GTU Circular For Akash UbiSlate Tablet


Akash Tablet
College students of GTU (Gujarat Technological University) will soon be able to get the Aakash Ubislate Tablet PC.  The general price of Aakash tablet is Rs. 2,276 /- which are distributed to all GTU students in just Rs. 1,138 (50% Subsidy given by Government) . GTU students will be able to buy the Aakash tablet for Rs. 1,138 /- from their respective colleges, Circulars have already been issued  by GTU to all its affiliated colleges in Gujarat. The colleges  have been asked to send list of students who want tablet. To book your tablet contact your college admin staff and register your name to them quickly.



The Tablet Given By GTU Has Following Configurations:

Size & Weight
  • Dimensions : 115 (H) X 185 (W)  X(D) mm
  • Weight: 0.35 Kgs.
Display
  • 7” (15.5 cm.) LCD Resistive Touch Screen
  • 800x480 Pixels
  • 135 Pixels per inch
Processor
  • 366MHz with Graphics  accelerator and HD Video Processor
Memory
  • 256MB (RAM)
  • 2GB  Flash (Internal  Storage)
  • Micro SD Card (2GB Provided)  Supports up to 32GB (External Storage)
Networking & Wireless
  • WiFi (IEEE 802.11 a/b/g)
Input / Output
  • 2 x Standard Type A USB 2.0 ports
  • 1 x 3.5mm Audio-out  jack
  • 1 x 3.5mm Audio –in jack
Power and Battery
  • Built in 2100 mAh battery
  • Up to 180 Minutes (mixed use)
  • Ac Adapter 200-240V
Operating System
  • Android 2.2 (Froyo)
Productivity Application
  • Supported documents format : DOC, DOCX, PPT, PPTX, XLX, XLXS, ODT, ODP, 
  • PDF Viewer
  • Text Editor
Video
  • Image Formats: PNG, JPG, BMP and GIF
  • Video Codes: MPEG2, MPEG4, AVI, FLV
Audio Formats
  • MP3, AAC, AC3, WAV, WMA
Browser & Internet
  • xHTML 1.1 compliant, JavaScript 1.8 compliant  browser
  • Separate application for on-line YouTube video viewing
Safety & Manufacturing Standards
  • CE certification 
  • RoHS certification


Most probably students will be interested in  the improved version of aakash that is  UbiSlate 7, which is much faster  as compared to the tablet version which is distributed by GTU and supports GPRS. The Aakash UbiSlate 7 will be launched  by the end of January 2012. Human resource development ministry is also developing free online content (educational resources and softwares which can be installed in ubislate)  for postgraduate and under graduate students that will be available  for Aakash tablet users.

Most Students are confused to decide whether to buy current tablet with lower configuration given by Universities or to wait for latest version Ubislate 7!

Related Posts:
  1. Akash Ubislate tablet in Rs. 1100
  2. Configuration of an Akash Ubislate Tablet
  3. Presentation on Aakash Tablet
  4. Akash Tablet Launched In Gujarat
  5. Classpad Tablet Price Launched by Rohit Pande


GTU MCA Sem 3 Java Practical Programs

I posted this Java programs for practice purpose. The ten programs given below are the Java programs which were asked in previous year GTU MCA  Java practical examination organized at Ahemdabad and Gandhinagar.


Download PDF version of This Programs
     
  1.  Create a package "sales" with following items:
    • Create a class naming “Order” containing orderDate (type as java.util.Date), productName  (type as String) and quantity (type as int) as its member fields. SystemDate should be used as orderDate.
    • Create a class naming “OrderManagment”, which manages instances of Order. This class must provide following methods :
      • placeOrder: It should accept productName and quantity as its arguments, it should create a new Order instance using both arguments(productName and quantity) and adds it to TreeSet collection.
      • displayOrdersByDate:Displays all the orders placed by current customer order by orderDate.
      •  displayOrdersByName: Displays all the orders placed by current customer order by productName.
      • storeOrder: It should accept Order instance as its arguments. It stores that Order instance to the file called ordersinfo.txt. (Use Comparable and Comparator interface).


  2. Create an applet naming “timer”, which displays current time in middle of the applet screen in RED color once applet started. Provide a menu with two options: 
    • StartTimer – if user presses StartTimer then timer should start and showing updated time after each minute in random color.
    • StopTimer - if user presses StopTimer then timer should stop and display message to user that how many minutes/seconds have spent since user has started the timer.


  3. Create a menu driven application naming drawShape using GUI, which has menu option like Line, Rectangle, Oval, etc…
    • When user clicks on Line then ask user to enter line parameters using input dialog box and if parameters are proper then line should be drawn with BLUE color. Otherwise display proper error message.
    • When user clicks on Rectangle then ask user to enter rectangle parameters using input dialog box and if parameters are proper then rectangle should be drawn with RED color. Otherwise display proper error message.
    • When user clicks on Oval then ask user to enter oval parameters using input dialog box and if parameters are proper then oval should be drawn with GREEN color. Otherwise display proper error message.
    • At a time only one shape should be displayed by frame.


  4. Create a package “BankInfo” with following items
    • Create a class naming “Account” with accountId (type as int), balance (type as double) and accountType (type as char), creationDate (type as java.util.Date) as its member fields.
    • Create a class naming “Bank” class which manages a number of Account instances. Provide following methods 
      • OpenAccount (Account acc) - adds acc instance to HashSet collection.
      • CloseAccount (Account acc) – removes acc from collection.
      • ListAccOrderByBalance () – which displays all account information order by balance.
      • ListOrderByDate () - which displays all account information order by creationDate.
      • Store (File flName) – which stores all accounts info to a file flName provided as parameter.  (Note : Use Comparable and Comparator iterfaces).
    • Create a class naming “BankIntoTest” which tests above mentioned classes with main method.

  5. Design a module called NewBookEntry for LibraryManagement system using GUI.
      • This module manages information like bookId, category(MCA Sem -1, MCA Sem – 2, MBA Sem-3, ……..), title, author, edition, publication, IssueFlag (Y, N – Use checkbox).
      • Make a NewBookEntry form which allows user to enter above mentioned information and provide menu option like Save, New, Search.
      • Once user clicks Save option a unique bookId should be generated and all details along with bookId should be stored in a file called bookinfo.txt.
      • Once user clicks New than all entered details should be cleared from NewBookEntry form.
      • Once user clicks Search than whatever category user has selected, that category details should be searched in bookinfo.txt file created in option save, if details are available then display in TextArea field otherwise display proper message (eg. If user selects category MCA Sem-3 then searches this category details in file bookinfo.txt).

  6. Create a package called “residence” with following items:
    • Create a abstract class naming “Residency” which will be having an area (like 130 sq.yard, 180 sq.yard, etc..) and rate_peryard (like 20000, 18000, etc..) as its member fields and has following methods.
      • Provide necessary constructor, getter and setter methods for this class.
      • Provide one method called calculatePropertyPrice () which will return basic price (Hint : price = area * rate_peryard).
    • Create a class naming “Flat” which is inherited from Residency and having its own instance field as maintenanceCharge. Override the calculatePropertyPrice () method which will return price of a flat with maintenaceCharge.
      • Override necessary methods from Object class.
    • Create a class naming “Villa”, which is inherited from Residency and having its own instance field as furnitureCharge.Override the calculatePropertyPrice () method which will return price of a Villa with furnitureCharge.
      • Override necessary methods from Object class.
    • Create a class naming “TestResidency” which tests above mentioned classes with main method. This class creates an array of Residency type and has following method.
      • Int searchResidency (Residency res) – which searches a res instance in an array of Residency. If available then return index otherwise display proper message.
      • double totalMaintenancePrice (Residency[] houses) - which returns total of all residency’s maintenanceCharge.
      • Void DisplayOrderByPrice – which displays array of residencies order by their price (Note : Use Comparable and Comparator interfaces).

  7. Create a multiThreading application.
    • One thread will read char data from a file and print it to console (user has to create one file manually with char data separated by space).
    • Second thread called asciiVal will display ASCII value of char data read by first thread to console.
    • Use interThreadCommunication to generate following type of output.  (Assuming file has data like – T E C H N O L O G Y ……)
      • Char value : T
      • ASCII Value : 84
      • Char Value : E
      • ASCII Value : 69
      • Char value : C
      • ASCII Value : 67
      • Char Value : H
      • ASCII Value : 72

  8. Create a GUI application which calculates charges for stay in Hotel, which allows user to enter duration as start date and end date as period while user wants to book a hotelRoom and to select a particular roomType (Regular, Delux, Cottage, Family, etc… use list). After selecting a particular roomChoice, display the calculated charges with start date and end date to user in dialogBox for confirmation. If user says ok then store these details to file else just close the dialogBox. Regular rates per day are as per following table. If user start date is between April to June or October to November, then room charges increased by 15%.

  9. Create an applet naming “UnitConversion”, which allows user to select a particular conversion from following options.(Use list) 
    • Decimal to HexaDecimal [Use Inter.toHexString()]. 
    • Decimal to Octal [Use Inter.toOctalString()]. 
    • Feet to Centimeter.(1 feet = 30.48cm) 
    • Inches to Feet (1 feet = 12 inches) 
    • Once user selects particular conversion then show the converted value with proper formatted message in dialogBox.(Like if user selects Inches to Feet option and input value is 60 then message should be “60 inches is equal to 5 Feet”.) 
    • If user enters any wrong kind of input then prompt proper errorDialog and clear the entered value.

  10. Create a GUI application, which has one menu. MenuItems are ReverseOrder, UpperCase, LowerCase, ArrangeAlphabetically and Length. 
    • Once frame displayed it will display your full name in middle of screen. 
    • If user clicks on ReverseOrder then it will display your name in reverse order with random color.
    • If user clicks on LowerCase then it will display your name in lowercase with random color.
    • If user clicks on UpperCase then it will display your name in UpperCase with random color.
    • If user clicks on Arrange then it will display your name in alphabetical order in random color.(Like INDIA – will be as ADIIN).
    • If user clicks on Length then it will display length of your First name in random color.If length is greater than 9 then it will display message “Very Big Name” in MessageBox.

Java - Opening a URL in new window from an applet

This Applet example demonstrate how to open any URL in new browser page. The applet has Text Field  in which user  enters web URL and when user press Go button the specified URL will open in new browser window.
applet


Create an applet which has a Text Field to accept a URL string, and displays the document of the URL string in a new browser window. When user enters http://www.google.com and clicks on Go button the applet will opens the url in new window and this is accomplished by getAppletContext.showDocument(url, target) method of the AppletContext.

Open_URL.Java
-----------------------------------------------------------------------------------------------
/* Applet program which takes URL from user into textfield and opens the url in new page */
/* Use applet in browser to get it run*/
import java.applet.*;
import java.awt.*;
import java.net.*;
import java.awt.event.*;

public class Open_URL extends Applet implements ActionListener
{
String link = "";
TextField tf;

public void init()
{
   
   Button b = new Button("Go");
   tf=new TextField("http://www.google.com");
 b.addActionListener(this);
 add(tf);
   add(b);
}

public void actionPerformed(ActionEvent ae)
{
   //get the link entered by user from textbox
  link= tf.getText();
        
   try
   {
    AppletContext a = getAppletContext();
    URL url = new URL(link);
    a.showDocument(url,"_blank"); // Opens the url in new window

         //a.showDocument(url,"_self");    _self to open url in same window  

   }
  
 catch (Exception e)
   {
     System.out.println(e.getMessage());
   }
   
}


}
Applet.html
-------------------------------------------------------------------------------------------
<html> 
<head>
         <title> Open URL in new page Using Java Applet</title>
</head>
<body>
         <applet code="Open_URL.class" height=300 weight=300></applet>
</body>
</html>

Related Posts Plugin for WordPress, Blogger...

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes