Do not limit your challenges.. Challenge your limits

BTemplates.com

Search This Blog

Powered by Blogger.

About Me

My photo
kathmandu, Bagmati, Nepal
I am Software developer based on Nepal.I have started coding since mid of 1995 with QBasic.My interest in software development covers a broad range of technologies from assembly to the Microsoft .NET platform to Java, Linux to Windows, Windows Mobile to Android, desktop to web to mobile, and many others. But from 2007 I am just working on Java mainly working on Java EE platform and decided just to go with it. I really like to learn new stuff and share things with others which is my main objective in creating this blog.

ArchUnit : Java architecture test library

Finally I have found the required library which will enforce architecture patterns . ArchUnit  . Currently I am exploring it and will upd...

Friday, July 24, 2015

Using Postgres driver on Glassfish 4 / Payara




Installing Driver

  1. Download Postgres JDBC driver
  2. Copy the driver to GLASS_FISH_HOME/domains/YOUR_DOMAIN/lib , for example /opt/java_tools/payara41/glassfish/domains/domain1/lib/
  3. Restart Server 


Creating Connection Pool

  1. Goto Resource >> JDBC >> JDBC Connection Pools
  2. Press New Button
  3. Give Pool Name say TEST_POOL
  4. Select Resource Type to  javax.sql.ConnectionPoolDataSource
  5. Select Vendor as Postgres
  6. Press Next
  7. Goto Additional Properties 
  8. Select all and remove
  9.  Add  properties as shown below





   
    10.  Press Finish
    11.  Select Pool
    12.  Click on Ping . If everything is correctly entered, it shows Ping Succeeded
Adding JDBC Resources

  1. Click " New "
  2. Give JNDI Name say "jdbc/TEST"
  3. Select Pool Name which is created earlier " TEST_POOL " 
  4. Press OK
Now, JDBC datasource is created . 

Happy Coding...

Sunday, May 3, 2015

Some Interesting Videos


Professional Software Design



Practical Cross-Platform Mobile C++ Development



Why Software Development is an Engineering Discipline



An Introduction to Docker






Breaking Up a Monolithic Application





Architect Enterprise Applications with Domain-Driven Design




The 7 Deadly Sins of Dependency Injection



Unblocking Developer Creativity



Building a Stronger Coding Culture





Kicking the Complexity Habit in Software Development




The 5 Stages of Software Development




Build Modern Web Applications with the Single Responsibility Principle





GeeCON 2014: MichaƂ Ostruszka - SRP applied - building modern web applications from GeeCON Conference on Vimeo.


Functional Programming: What? Why? When?




Robert C. Martin - Functional Programming: What? Why? When?


The Why, When & How of Software Design






Efficiency and Happiness Combining Software Development Methodologies



Tuesday, April 7, 2015

Some useful commands for Ubuntu


To Remove Package:

1. To see list of installed packages in chronological order 


 grep install /var/log/dpkg.log  

2. Pick what you wish to uninstall and execute 


 sudo apt-get remove package-name  

3. Clean up package from archives

 sudo apt-get clean  

To Install Gnome Classic:


sudo apt-get update; sudo apt-get install gnome-session-fallback

Tuesday, March 24, 2015

Version management with multi module maven project


In order to manage version in maven multi module project , need to do following step :

1. Add version plugin Maven Version Plugin

 <plugin>  
         <groupId>org.codehaus.mojo</groupId>  
         <artifactId>versions-maven-plugin</artifactId>  
         <version>2.1</version>  
  </plugin>  
2. From terminal use below command to set version


mvn versions:set -DnewVersion=2.1.1



3. Save Changes using below command



    mvn versions:commit