Monday, February 20, 2017

Worth to Watch

 

Programming 

  •  How Do I Get A  Good  Programming Job Without Experience ? This Will Help You  To Enter Programming Career Strongly

       Watch Video

Life

  • There is no need to search; achievement leads to nowhere. It makes no difference at all, so just be happy now! Love is the only reality of the world, because it is all One, you see. And the only laws are paradox, humor and change. There is no problem, never was, and never will be. Release your struggle, let go of your mind, throw away your concerns, and relax into the world. No need to resist life, just do your best. Open your eyes and see that you are far more than you imagine. Live present moment .It' s all about be live  in  present  moment and work  hard   . Must Watch  Film  

    Peacefull warrior 

Motivation

Sunday, February 5, 2017

Reading a Text File , Using JSP

Step 1.....................................................

To read a  text file ,You can use  following  way .  First  create a  .txt  you want  to  read , Then  copy  the path to  your  text  file . 

Ex: "C:\Users\Roshan\workspace\ReadingFromTextFile\WebContent\quotes.txt"

Then reaname  it  as , this way 

"C:\\Users\\Roshan\\workspace\\ReadingFromTextFile\WebContent\\quotes.txt" 

(Used \\  ,instead  of  \  )

In   JSP file you  create , Replace your  text file location instead what  I have  used . 

Below  you  can see  text  file I have  used


 The mind is everything. What you think you become.........  Buddha
 Whatever the mind of man can conceive and believe, it can achieve.....Napoleon Hill
 I attribute my success to this: I never gave or took any excuse..........Florence Nightingale
 I've missed more than 9000 shots in my career. I've lost almost 300 games. 26 times I've been trusted to take the game winning shot and missed. I've failed over and over and over again in my life. And that is why I succeed. ...............Michael Jordan
 Twenty years from now you will be more disappointed by the things that you didn’t do than by the ones you did do, so throw off the bowlines, sail away from safe harbor, catch the trade winds in your sails.  Explore, Dream, Discover. ........Mark Twain
 Life is 10% what happens to me and 90% of how I react to it..........Charles Swindoll
 The best time to plant a tree was 20 years ago. The second best time is now.......Chinese Proverb
 Your time is limited, so don’t waste it living someone else’s life...........Steve Jobs

 

Step 2 ..................................................

Then lets  create JSP  file .You can use  following code for it .

<%@  page import ="java.io.*"%>
<%@  page language="java" contentType="text/html; charset=ISO-8859-1"
     pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head >
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title >Reading  a Text  File.............</title>
</head>
<body style="background-color:powderblue;">
    <h2> Famous  Quotes </h2>
    <%
        try
        {
           
            out.println("<ol>");
            BufferedReader in = new BufferedReader(new FileReader("C:\\Users\\Roshan\\workspace\\ReadingFromTextFile\\WebContent\\quotes.txt"));
           
            String  str ;
            while((str= in.readLine())!= null)
            {
                out.println("<li>"+ str + "</li>") ;
            }
            out.println("</ol>");
            in.close();
        }
         catch(IOException ioe)
        {
             out.println("An exception occured " + ioe)  ;
        }
    %>
</body>
</html>

 

Step 3................................................

Run  your JSP  file .You  will  able  get  a  output  like  this .

 

Saturday, January 14, 2017

Change Your Attitude ,Ready for Any Challenge

As  a programmer you  will find different new  problems , you have never faced earlier. Due to rapid changes in technology it  will happen  day to day programming  life  .Most of  time they will slow  down your process and  may be had to  spend 2, 3 days or  even weeks due to  that   problem and you  may be  feel  frustrated.
Don't feel bad  , Change your attitude  towards new problem , Take them as  challenge  not  as a problem  , Trust me if don't change your  mind , Those day to day  new challenges  will give  so  much  pain to  you and it will make your programming life bitter . So  my dear  friend be  ready for challenge those challenges that come to your day to  day  life .Your efforts , time that  sacrifice to  overcome those challenges will  be  worthwhile .
Finally don't forget  process that you have  taken  to  solve challenges that you have solved earlier  , Because  those  challenge  may be come again in next month , next  year .If  you have any notes or any thing about process that you  gone through to solve earlier ,Then  you don't  have to  wast  time , just  check them and  apply . This  will save  more time of you. 
So Change Your  Attitude  ,Ready for  Any Challenge :)
 

Friday, January 13, 2017

Jasper Reports Multiple Groups Headers,Keep It Together - Related Issues

In your  Jasper report , If you have multiple groups  with  their  headers and you want to use  Keep Together Option allso .But in most cases it will not work properly . 

So try this way , Add  all  the group headers to the innermost group and  apply   Keep Together Option to  that  group . Give minimum height to start new page  as 100  also .Hope you this way will work.

Some Useful links to learn

Java EE
  • Spring Boot   +  Angular 


Java SE
  •  Slidenerd
  •  Sun Cerified Programmer for Java  6 Study Guide Book   By kathy  Sierra and Bert Bates      (If  you  have  some  basic  knowledge read this )
  •  If  you  can find  those  videos  Java - SCJP Certification Package CBT Nuggets   , It will be very  good  material .

Android 
 GIT Basics 

Business Intelligence Reporting Tools  
    
      BIRT Tool


Common 
       Find the Best Programming Courses & Tutorials

About this Blog :)

Through this blog I  am trying to   share my programming  life experience,knowledge ,ideas ,lessons that learned and  important posts that  others wrote   ,  with  you . 

I should give my gratitude all  people who  have  shared their knowledge and experience ,because of them we were able sharp our knowledge and view.

Most of  posts  in this blog is modified  according to  iterative and incremental manner . 

 Hope   you   get  something from   this  blog.


Some interesting things to explore more

 Here  some  some  things  to  study  more ,     How Google Search works               https://developers.google.com/search/docs/fundamental...