Wednesday 7 December 2011

Guidelines for Stand-Up Meeting

Setup stand-up meeting for my team.

Purpose of this meeting is to improve communication among the team and promote team focus.

Rules for Stand-Up:

  • Arrive on time or early.
  • All team members attend and participate.
  • Last arrive speak first and choose who should speak next.
  • The meeting  duration is not more than 20 minutes. (1 -2 minutes person and 5 minutes for discussion).
  • Maintain your own task list and note the actions or tasks items you volunteer for.
  • Be prepared to present three topics and keep your report specific, precise and short in order to help the meeting end within 20 minutes.
    • Eg: Notes:
    • What did I do since the last meeting?
      -------------------------------------
      -- Designed new feature
      -- Implemented component X
      -- Fixed bug related to Y
      -- Updated confluence about support task Z
      -- X details communicated to FAL & RMS
      -- Read up on X API & ABC technologies
       
      What will I be doing until the next meeting?
      --------------------------------------------
      -- Project meeting related to XYZ
      -- Code review / Peer review
      -- Implement component XYZ
      -- Redactor code base  related ZYU
       
      What obstacles are blocking my progress & any issues?
      -----------------------------------------------------
      -- Item 1
      -- Item 2

  • Listen to other team member's status in case it might relate to your tasks or impact you.
  • Don't interrupt people when they are talking. Pay attention to other team members and note items that you¿ll need to cover in follow-up discussions.
  • Don't agree to decisions or action you don't understand. Ask questions and insist on answers when you need clarification.
  • If you raise an issue, blocker or question that can't be resolved in a minute, ask to discuss with the parties involved after the meeting
  • No story telling.
  • No problem solving.
  • Speak to the team.
  • Latecomers ???

References:


Friday 2 December 2011

Open Command Prompt here


1.Press WIN +E, Navigate to folder then Press ALT + D to select address bar and type cmd the enter.

2.In windows explore SHIFT + mouse right click , choose "open command window here" in context menu


http://lifehacker.com/5306401/open-a-new-command-prompt-from-explorer-with-a-hotkey?utm_expid=66866090-68.hhyw_lmCRuCTCg0I2RHHtw.0

Thursday 15 September 2011

Java File path difference between getPath(), getAbsolutePath(), and getCanonicalPath()




https://docs.oracle.com/javase/1.5.0/docs/api/java/io/File.html

public class FilePathTest {



 public static void main(String[] args) {



  try {







   File f = new File("test.xml");



   System.out.println("----------File set to :test.xml----------");



   System.out.println("getAbsolutePath:" + f.getAbsolutePath());



   System.out.println("getCanonicalPath:" + f.getCanonicalPath());



   System.out.println("getName:" + f.getName());



   System.out.println("getPath:" + f.getPath());



   System.out.println("getParent:" + f.getParent());



   System.out.println("getParentFile:" + f.getParentFile());



   if (f.getParentFile() != null) {



    System.out.println("getParentFile().getAbsolutePath():" + f.getParentFile().getAbsolutePath());



    System.out.println("getParentFile().getCanonicalPath():" + f.getParentFile().getCanonicalPath());



   }







   f = new File("D:\\eclipse-ws\\20130307_WEB\\TestJava\\test.xml");



   System.out.println("\n" + "----------File set to :D:\\eclipse-ws\\20130307_WEB\\TestJava\\test.xml----------");



   System.out.println("getAbsolutePath:" + f.getAbsolutePath());



   System.out.println("getCanonicalPath:" + f.getCanonicalPath());



   System.out.println("getName:" + f.getName());



   System.out.println("getPath:" + f.getPath());



   System.out.println("getParent:" + f.getParent());



   if (f.getParentFile() != null) {



    System.out.println("getParentFile().getAbsolutePath():" + f.getParentFile().getAbsolutePath());



    System.out.println("getParentFile().getCanonicalPath():" + f.getParentFile().getCanonicalPath());



    System.out.println("getParentFile().getName():" + f.getParentFile().getName());



    System.out.println("getParentFile().getPath():" + f.getParentFile().getPath());



    System.out.println("getParentFile().getParent():" + f.getParentFile().getParent());



   }







   f = new File("test\\..\\.\\test.xml");



   System.out.println("\n" + "----------File set to :test\\..\\.\\test.xml----------");



   System.out.println("getAbsolutePath:" + f.getAbsolutePath());



   System.out.println("getCanonicalPath:" + f.getCanonicalPath());



   System.out.println("getName:" + f.getName());



   System.out.println("getPath:" + f.getPath());



   System.out.println("getParent:" + f.getParent());



   if (f.getParentFile() != null) {



    System.out.println("getParentFile().getAbsolutePath():" + f.getParentFile().getAbsolutePath());



    System.out.println("getParentFile().getCanonicalPath():" + f.getParentFile().getCanonicalPath());



    System.out.println("getParentFile().getName():" + f.getParentFile().getName());



    System.out.println("getParentFile().getPath():" + f.getParentFile().getPath());



    System.out.println("getParentFile().getParent():" + f.getParentFile().getParent());



   }



  } catch (IOException e) {



   // TODO Auto-generated catch block



   e.printStackTrace();



  }



 }



}


-------------------OUTPUT------------------------------------ ----------File set to :test.xml---------- getAbsolutePath:D:\eclipse-ws\20130307_WEB\TestJava\test.xml getCanonicalPath:D:\eclipse-ws\20130307_WEB\TestJava\test.xml getName:test.xml getPath:test.xml getParent:null getParentFile:null ----------File set to :D:\eclipse-ws\20130307_WEB\TestJava\test.xml---------- getAbsolutePath:D:\eclipse-ws\20130307_WEB\TestJava\test.xml getCanonicalPath:D:\eclipse-ws\20130307_WEB\TestJava\test.xml getName:test.xml getPath:D:\eclipse-ws\20130307_WEB\TestJava\test.xml getParent:D:\eclipse-ws\20130307_WEB\TestJava getParentFile().getAbsolutePath():D:\eclipse-ws\20130307_WEB\TestJava getParentFile().getCanonicalPath():D:\eclipse-ws\20130307_WEB\TestJava getParentFile().getName():TestJava getParentFile().getPath():D:\eclipse-ws\20130307_WEB\TestJava getParentFile().getParent():D:\eclipse-ws\20130307_WEB ----------File set to :test\..\.\test.xml---------- getAbsolutePath:D:\eclipse-ws\20130307_WEB\TestJava\test\..\.\test.xml getCanonicalPath:D:\eclipse-ws\20130307_WEB\TestJava\test.xml getName:test.xml getPath:test\..\.\test.xml getParent:test\..\. getParentFile().getAbsolutePath():D:\eclipse-ws\20130307_WEB\TestJava\test\..\. getParentFile().getCanonicalPath():D:\eclipse-ws\20130307_WEB\TestJava getParentFile().getName():. getParentFile().getPath():test\..\. getParentFile().getParent():test\..

  • getPath() :will return the absolute or relative path of the File object, depending on which it was constructed with.
  • getAbsolutePath(): will return the current directory name concatenated with the file separator character and the path name of the file
  • getCanonicalPath(): will return a path name with the relative references resolved.




Monday 4 July 2011

Oracle Export : Using QUERY parameter in expdp/impdp

Oracle Export : Using QUERY parameter in expdp/impdp

expdp test/test directory=test_dir dumpfile=test.dmp query=emp:\"where salary\>10000\ order by salary" tables=emp

Easy a would be pass the query parameter through a file.

exp test@testdb tables=test_export parfile=test_query.par

Inside of test_query.par, it contains only one parameter query: 
Query=”where salary >10000  order by salary"


http://wiki.oracle.com/page/Oracle+export+and+import+
http://www.orafaq.com/wiki/Import_Export_FAQ

To verify user privileges:
select * from dba_sys_privs;
select * from dba_role_privs;
select * from dba_tab_privs;

select * from user_sys_privs;
select * from user_role_privs;
select * from user_tab_privs;

select * from all_sys_privs;
select * from all_role_privs;
select * from all_tab_privs;

select * from role_sys_privs;
select * from role_role_privs;
select * from role_tab_privs;

Friday 4 March 2011

Create Mule Project with Maven

Create Mule Project with Maven
        mvn org.mule.tools:mule-project-archetype:create -DartifactId=message-enricher-1 -DmuleVersion=3.1.1
or
Add "org.mule.tools" to setting.xml as pluginGroup and run following command
      mvn mule-project-archetype:create -DartifactId=CES-DataX -DmuleVersion=3.1.0

Monday 21 February 2011

Search a string in directory

Search a string in directory

Shell Script

for i in `ls *`
do
echo $i
cat $i | grep search-string
done

Tuesday 11 January 2011

Why HibernateSession.flush()


Reference:

http://docs.jboss.org/hibernate/core/3.3/reference/en/html/objectstate.html#objectstate-flushing

Default behavior:

Flushing the session forces Hibernate to synchronize the in-memory state of the session with the database but does not commit the changes to database.

Usage:


  • To force database validation (database constraints) and handle the error no need to wait until commit
  • To check duplicate (Force the row to be inserted)
  • To get an assigned id
  • To update the size of session