Heading

Wednesday, March 27, 2013

ABCDE × 4 = EDCBA



Number Theory: Reverse digits by multiplying by 4
Find two five-digit numbers such that
one is 4 times the other, and the digits
of the first are the reverse of the digits of the second.
In other words, ABCDE × 4 = EDCBA?

Since EDCBA is a 5-digit number, we know ABCDE is < 1/4 × 100000.
ABCDE < 25000, so A is 1 or 2.

But EBCDA is a multiple of 4, so it is even, so A = 2.
4 * ....E = ....2, so E is either 3 or 8.
But, 4 × 2nnnn cannot be 3nnnn so E is 8.

We have 2BCD8 * 4 = 8DCB2.
and therefore 4 × BCD + 3 = DCB.
Let's look at it case by case, for values of D:
D = 1, B = 7
D = 2, B = 1
D = 3, B = 5
D = 4, B = 9
D = 5, B = 3
D = 6, B = 7
D = 7, B = 1
D = 8, B = 5
D = 9, B = 9
D = 0, B = 3

But B cannot be greater than 2, or there would be a carry, and B cannot
be equal to 2, since A = 2 (and we assume each letter represents a
different number).
So, B = 1 and D = 2 or 7.
But again, A is already 2, so D = 7.

So we have 21C78 * 4 = 87C12
We now have 4 * C + 3 = C (mod 10)
3*C = 7 mod 10
and therefore C = 9

So the answer is 21978 * 4 = 87912

Tuesday, March 19, 2013

String Reverse in Java

public class StringRev {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        String s="Welcome";
        int s1=s.length();
        for(int i=s1-1;i>=0;i--)
        {
            System.out.print(s.charAt(i));
        }
        System.out.print("\n");
        System.out.println("length of the String"+s1);

    }

}

Letter occurances in a String in java

public class LetterCount {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
String str="this is bangalore";
char[] c=str.toCharArray();
int count=0,i=0,j=0,k=0,totalletters=0;
for(i=0;i<str.length();i++)
{
    boolean flag=true;
    for(k=0;k<i;k++)
    {
        if(c[k]==(str.charAt(i)))
                flag=false;
               
    }
    if(flag)
    {
        for(j=0;j<str.length();j++)
        {
            if(c[j]==c[i])
                count++;
        }
        System.out.println((str.charAt(i))+ " "+count);
        totalletters++;
    }
   
    count=0;
}
System.out.print("The total letters are:"+totalletters);
    }

}

Tuesday, February 26, 2013

NOBEL PRIZES

All Nobel Prizes
Between 1901 and 2012, the Nobel Prizes and the Prize in Economic Sciences were awarded 553 times to 863 people and organizations. With some receiving the Nobel Prize more than once, this makes a total of 835 individuals and 21 organizations. Below, you can view the full list of Nobel Prizes and Nobel Laureates.

2012
The Nobel Prize in Physics
Serge Haroche, David J. Wineland
The Nobel Prize in Chemistry
Robert J. Lefkowitz, Brian K. Kobilka
The Nobel Prize in Physiology or Medicine
Sir John B. Gurdon, Shinya Yamanaka
The Nobel Prize in Literature
Mo Yan
The Nobel Peace Prize
European Union (EU)
The Prize in Economic Sciences
Alvin E. Roth, Lloyd S. Shapley
2011
The Nobel Prize in Physics
Saul Perlmutter, Brian P. Schmidt, Adam G. Riess
The Nobel Prize in Chemistry
Dan Shechtman
The Nobel Prize in Physiology or Medicine
Bruce A. Beutler, Jules A. Hoffmann, Ralph M. Steinman
The Nobel Prize in Literature
Tomas Tranströmer
The Nobel Peace Prize
Ellen Johnson Sirleaf, Leymah Gbowee, Tawakkol Karman
The Prize in Economic Sciences
Thomas J. Sargent, Christopher A. Sims
2010
The Nobel Prize in Physics
Andre Geim, Konstantin Novoselov
The Nobel Prize in Chemistry
Richard F. Heck, Ei-ichi Negishi, Akira Suzuki
The Nobel Prize in Physiology or Medicine
Robert G. Edwards
The Nobel Prize in Literature
Mario Vargas Llosa
The Nobel Peace Prize
Liu Xiaobo
The Prize in Economic Sciences
Peter A. Diamond, Dale T. Mortensen, Christopher A. Pissarides
 
2009
The Nobel Prize in Physics
Charles Kuen Kao, Willard S. Boyle, George E. Smith
The Nobel Prize in Chemistry
Venkatraman Ramakrishnan, Thomas A. Steitz, Ada E. Yonath
The Nobel Prize in Physiology or Medicine
Elizabeth H. Blackburn, Carol W. Greider, Jack W. Szostak
The Nobel Prize in Literature
Herta Müller
The Nobel Peace Prize
Barack H. Obama
The Prize in Economic Sciences
Elinor Ostrom, Oliver E. Williamson

WE CAN GET REMAINING DETAILS FROM
http://www.nobelprize.org/nobel_prizes/


Friday, August 24, 2012

INDIA IN Olympics 2012

India competed at the 2012 Summer Olympics in London, United Kingdom, from 27 July to 12 August 2012.

The Indian Olympic Association had sent a total of 83 athletes to compete in 13 sports making it the largest contingent India has ever sent to an Olympic Games.


Sushil Kumar was the flag bearer in the opening ceremony and Mary Kom was the flag bearer at the closing ceremony.

India has won 6 medals including 2 silver and 4 bronze which is by far the best performance by India in terms of number of medals won at any single Olympic games.

Medal Name Sport Event Date
 Silver Vijay Kumar Shooting Men's 25 m rapid fire pistol 3 August
 Silver Sushil Kumar Wrestling Men's 66 kg freestyle 12 August
 Bronze Gagan Narang Shooting Men's 10 m air rifle 30 July
 Bronze Saina Nehwal Badminton Women's singles 4 August
 Bronze Mary Kom Boxing Women's flyweight 8 August
 Bronze Yogeshwar Dutt Wrestling Men's 60kg Freestyle 11 August

Thursday, July 5, 2012

Olympic Games




The Olympic Games (French: les Jeux olympiquesJO), is a major international event featuring summer and winter sports, in which thousands of athletes participate in a variety of competitions. The Olympic Games are considered to be the world’s foremost sports competition and more than 200 nations participate. The Games are currently held every two years, with Summer and Winter Olympic Games alternating, although they occur every four years within their respective seasonal games. Originally, the ancient Olympic Games were held in Olympia, Greece, from the 8th century BC to the 4th century AD. Baron Pierre de Coubertin founded the International Olympic Committee (IOC) in 1894. The IOC has since become the governing body of the Olympic Movement, whose structure and actions are defined by the Olympic Charter.
                        Summer Sports
1) Aquatics
· Diving
· Swimming
· Synchronized Swimming
· Water polo
2) Archery                                       3) Athletics                                    4) Badminton
5) Basketball                                  6) Boxing
7) Canoe kayak
·Slalom
·Sprint
8) Cycling
·Cycling BMX
·Cycling Road
·Cycling Track
·Mountain Bike
9) Equestrian
·Dressage
·Eventing
·Jumping
10) Fencing                                        11) Football                                    12) Golf
13) Gymnastics
·Artistic Gymnastics
·Rhythmic Gymnastics
·Trampoline
14) Handball                                      15) Hockey                                   16) Judo
17) Modern pentathlon                     18) Rowing                                   19) Rugby
20) Sailing                                          21) Shooting                                 22) Table tennis
23) Taekwondo                                  24) Tennis                                    25) Triathlon
26) Volleyball
·Beach volleyball
·Volleyball
27) Weightlifting
28) Wrestling
·Greco-Roman
·Freestyle                                                                                                                                           
                        Winter Sports
1) Biathlon
2) Bobsleigh
·Bobsleigh
·Bobsleigh Skeleton
3) Curling                                    4) Ice Hockey                                    5) Luge
6) Skating
·Figure skating
·Short Track Speed Skating
·Speed Skating
7) Skiing
·Alpine Skiing
·Cross Country Skiing
·Freestyle Skiing
·Nordic Combined
·Ski Jumping  
LONDON--------------2012
SOCHI------------------2014
RIO---------------------2016

For More Details:



Sunday, July 1, 2012

Latest versions of languages

JAVA:-

If Java is working, you will see a pink rectangle above with one line of text that says something like:
Java Version 1.7.0_05 from Oracle Corporation     or
Java Version 1.6.0_30 from Sun Microsystems Inc.  or
Java Version: 1.5.1 from Apple Computer, Inc.
Version 1.7.x (a.k.a Java 7)
  • As of June 12, 2012 the latest version of Java 7 is Update 5 which fixes a ton of bugs.
  • As of April 27, 2012 the latest version of Java 7 is Update 4.   Download
    According to Oracle: "This release includes bug fixes and performance improvements, including a new JVM, Mac OS X support ... and more!" No security patches.
  • As of February 14, 2012 the latest version of Java 7 is Update 3
    According to Oracle, "This release contains fixes for security vulnerabilities"
  • As of December 13, 2011 the latest version of Java 7 is Update 2   (Download)
    This release fixes security vulnerabilities.
  • As of October 20, 2011 the latest version of Java 7 is Update 1
  • On July 28, 2011 Oracle released version 7 of Java.
 HTML:-

What is HTML5?

HTML5 will be the new standard for HTML.
The previous version of HTML, HTML 4.01, came in 1999. The web has changed a lot since then.
HTML5 is still a work in progress. However, the major browsers support many of the new HTML5 elements and APIs.

How Did HTML5 Get Started?

HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).
WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML.
Some rules for HTML5 were established:
  • New features should be based on HTML, CSS, DOM, and JavaScript
  • Reduce the need for external plugins (like Flash)
  • Better error handling
  • More markup to replace scripting
  • HTML5 should be device independent
  • The development process should be visible to the public

The HTML5 <!DOCTYPE>

In HTML5 there is only one <!doctype> declaration, and it is very simple:
<!DOCTYPE html>


Minimum HTML5 Document

Below is a simple HTML5 document, with the minimum of required tags:
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html> 
 
CSS :-

CSS 4

W3C started drafting CSS 4 on Sep 29, 2009.However, it is currently not supported by any major web browser.
One of the new proposed selectors is :matches().

CSS 2.1 is currently the standard with 3.0 in discussion.

PHP:-

6.0.0
The development of PHP 6 has been delayed because the developers have decided the current approach to handling of instance unicode is not a good one, and are considering alternate ways in the next version of PHP. The updates that were intended for PHP 6 were added to PHP 5.3.0 (namespace support, late static bindings, lambda functions, closures, goto) and 5.4.0 (traits, closure rebinding) instead.

PHP 5.4.4 (Current stable)

Complete Source Code


JAVASCRIPT
:-

Using JavaScript 1.7

In order to use some of the new features of JavaScript 1.7, you need to specify that you wish to use JavaScript 1.7. In HTML or XUL code, use:
  1. <script type="application/javascript;version=1.7"/>  
When using the JavaScript shell, you need to set the version you wish to use using the -version 170 switch on the command line or using the version() function:
  1. version(170);  
The features that require the use of the new keywords "yield" and "let" require you to specify version 1.7 because existing code might use those keywords as variable or function names. The features that do not introduce new keywords (destructuring assignment and array comprehensions) can be used without specifying the JavaScript version.

STRUTS :-

12 May 2012 - Struts 2.3.4 General Availability Release

The latest production release of Struts 2 is Struts 2.3.4, which was promoted to "General Availability" (or "Ready for Primetime") on 24 May 2012. The version notes are available online.

04 Dec 2008 - Struts 1.3.10 General Availability Release

The latest production release of Struts 1 is Struts 1.3.10, which was promoted to "General Availability" (or "Ready for Primetime") on 04 Dec 2008.
HIBERNATE :-
Hibernate ORM 4.1.4 Release
Hibernate ORM version 4.1.4 has just been released. This is a minor bug fix release containing 37 bug fixes.
Download bundles are available from SourceForge in both ZIP and TGZ formats.
Download latest version Hibernate 4.0.1 in Zip format
Download latest version Hibernate 4.0.1 in TGZ format

ORACLE:- 

Oracle Introduces Latest Versions of Oracle User Productivity Kit, User Productivity Kit Professional and Oracle Tutor to Improve Workforce Effectiveness

Oracle User Productivity Kit 3.6.1 Offers Feature-rich Sound Capabilities and Oracle Tutor 12.2 Provides Enhanced User Experience

MYSQL:- 

MySQL 5 is latest version. Please read if your version is older than 4.1

The lastest full production release of MySQL is version 5.

Some hosts do not support version 5 yet but most should be supporting version 4.1.

If your version is older than 4.1 please note that in any new threads you start. This is because older versions do not support things like GROUP_CONCAT and subqueries among other things.

If you happen to still be on MySQL 3.x then you won't even have the ability to use UNION.

If you note that you are using an older version, then when someone is composing a solution to help you, they will give you a version that you can use on your particular release of MySQL.

Thursday, June 14, 2012

Keltron require Engineers June-2012


Keltron jobs at http://www.sarkariNaukriBlog.comKerala State Electronics Development Corporation Ltd. (KELTRON)
Keltron House, Vellayambalam, Thiruvananthapuram - 695033, Kerala

 

The pioneering Kerala State Electronics Development Corporation Ltd. (KELTRON) a Rs. 170 crore Government of Kerala undertaking is on its revival path. KELTRON is on the lookout for Engineers on contract basis for marketing activities outside Kerala :
  • Engineers : B.Tech (Electronics & Communication/Electronics & Instrumentation/IT)
How to Apply : Interested candidates may apply online upto 22/06/2012 at Keltron website.
Please visit  http://keltron.org/careers_hr_corp_81.php for details and online submission of application.

Indian Coast Guard Navik 01 of 2013 Batch Entry

Coast Guard jobs at http://www.SarkariNaukriBlog.com
Indian Coast Guard
(Ministry of Defence) 
Coast Guard Headquarters, National Stadium Complex, New Delhi - 110001 


Navik (General Duty - GD/ Domestic Branch - DB) Batch 01/2013 entry

Applications are invited from male Indian Nationals possessing educational qualifications and age as prescribed below, for recruitment to the post of Naviks (General Duty)/ Navik (Domestic Branch) in the Indian Coast Guard  :
  • Navik (General Duty)  in the Pay Scale : Rs. 5200 - 20200 with Rs.2000 Grade Pay, Qualification: 10+2 with Maths and Physics from an education board recognised by central/ state government.,  Age: Born between 01 February 1991 and 31 January 1995.
  • Navik (Domestic Branch) (Cook & Steward)  in the Pay Scale : Rs. 5200 - 20200 with Rs.1900 Grade Pay, Qualification: Matriculate / 10th/ High School, Age: Born between 01 April 1991 and 31 March 1991.
How to Apply : Apply Online at Coast Guard website http://www.joincoastguard.org from 08/06/2012 to 30/06/2012 only. Take printout of the system generated application form and send it to designated address on or before 09/07/2012 (For far-flung areas, the last date is 13/07/2012)

Saturday, June 9, 2012

ISRO Results for Assistant and Junior Personal Assistant

 Centralised Recruitement to the Post of Assistant and Junior Personal Assistant
  Advertisement Number:ISRO HQ:ICRB:03:2011 dated 22-11-2011


You can get yhe details in the below link
 
http://www.isro.org/scripts/job.aspx