Sunday, 30 May 2010

Kudremukh

 Kudremukh, located in the Chikkamagaluru district of Karnataka, India, is a trekker's paradise, nestled amidst lush greenery and rolling hills. Just 20 kilometers from Kalsa, it offers a perfect blend of natural beauty and adventure.

Our journey began early in the morning, reaching the turn-off point for Kudremukh around 6:30 AM. From here, private vehicles are prohibited, so we hired a rugged 4-wheel-drive jeep, essential for navigating the rough terrain. The jeep took us 20 kilometers closer to Kudremukh, where we arrived at our hotel at 7:30 AM, the farthest point accessible by vehicle.

After a brief rest and a hearty breakfast, we started our trek at 10:10 AM. The final stretch to Kudremukh's peak is a 10-kilometer hike, a thrilling journey through dense forests, open grasslands, and breathtaking landscapes. Trekkers must pack their lunch, as there are no shops or eateries at the peak. However, water is abundant and accessible every kilometer—a refreshing supply of pure, cold, and sweet flowing water.

We reached the summit, standing majestically at 1,894.3 meters above sea level, around 1:30 PM. The panoramic views from the top were simply mesmerizing. Surrounded by nature’s tranquility, the peak offered us a moment of pure joy and serenity, making the entire trek an unforgettable experience.

Kudremukh is truly a gem for nature lovers and adventure seekers alike—a perfect destination to connect with the wilderness and admire Karnataka’s pristine beauty











Friday, 28 May 2010

Pyramid Valley bangalore

 Pyramid Valley International: A Sanctuary of Peace and Meditation

Nestled amidst serene greenery near Harohalli in Kanakapura Taluk, just 35 kilometers from Bangalore along Kanakapura Road, Pyramid Valley International is a tranquil retreat for meditation enthusiasts and nature lovers. Known for housing the World’s Largest Meditational Pyramid, this destination blends spirituality with architectural marvel.

Reaching Pyramid Valley

Upon reaching the designated right turn from the main road, a 2-kilometer drive through picturesque surroundings brings you to the gates of this peaceful haven. The journey itself sets the tone for the serenity that awaits, away from the hustle and bustle of city life.

The Majestic Meditational Pyramid

At the heart of Pyramid Valley stands the iconic Pyramid, a towering structure 104 feet tall, constructed as a solid rock edifice. Designed with precise geometric symmetry, it provides a unique, energy-rich environment conducive to deep meditation. The pyramid can accommodate thousands of practitioners at once, making it a global hub for spiritual seekers.

  • Architecture and Purpose:
    The pyramid's design is inspired by ancient Egyptian pyramids and is believed to amplify meditative energies. The apex, known as the King’s Chamber, is the most powerful spot within the structure for meditation.

  • Vibrant Atmosphere:
    The tranquil ambiance of the Pyramid, coupled with its scientifically validated energy dynamics, makes it an ideal place to relax, rejuvenate, and practice mindfulness.

Accommodation and Facilities

Pyramid Valley offers comfortable accommodation facilities, allowing visitors to stay for a few days. This makes it perfect not only for day trips but also for extended retreats. Guests can immerse themselves in meditation workshops, spiritual discourses, and holistic healing practices, while also enjoying the scenic beauty of the surroundings.

A Place to Relax and Reflect

Whether you’re looking to escape the chaos of city traffic, reconnect with yourself, or simply spend a peaceful day with family, Pyramid Valley provides a refreshing change. Its lush green landscapes, quiet environment, and vibrant spiritual energy make it an excellent one-day picnic spot or a longer retreat destination.

Why Visit Pyramid Valley?

  • Experience meditation in a world-renowned energy space.
  • Relax and rejuvenate in the lap of nature.
  • Participate in workshops and learn mindfulness practices.
  • Enjoy a day of tranquility away from the fast-paced city life.

Overall, Pyramid Valley International is more than just a meditation center—it's a sanctuary where one can find inner peace and harmony amidst a serene natural setting. A visit here is an enriching experience for both the mind and soul.








Thursday, 20 August 2009

Export Crystal Report to PDF by using Java Program


Here I am using some crystal report which will connect to database and fetch the data to create report.
It will expect username and password from the calling function.
Also it will expect some parameter(Name) from the calling function. Below is the code
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Date;
import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
import com.crystaldecisions.*;
import com.crystaldecisions.sdk.occa.report.data.Connections;
import com.crystaldecisions.sdk.occa.report.data.Fields;
import com.crystaldecisions.sdk.occa.report.data.IConnection;
import com.crystaldecisions.sdk.occa.report.data.ParameterField;
import com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat;
public class ReportExport {
public static void main(String[] args) {
try {
String report_name = “D://path/crystalReportName.rpt”;
String exportFileName = “D://path/outputFileName.pdf”;
ReportClientDocument clientDoc =  new ReportClientDocument();
clientDoc.open(report_name, ReportExportFormat._PDF);
//Connecting Database through crystal report
clientDoc.getDatabaseController().logon(“user_name”, “password”);
//Passing Parameter(Name) to Crystal Report
clientDoc.getDataDefController().getParameterFieldController().setCurrentValue(“”, “Name”,”anand”);
//Writing into PDF file
ByteArrayInputStream bais = (ByteArrayInputStream) clientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
int size = bais.available();
byte[] barray = new byte[size];
FileOutputStream fos = new FileOutputStream(new File(exportFileName));
ByteArrayOutputStream baos = new ByteArrayOutputStream(size);
int bytes = bais.read(barray, 0, size);
baos.write(barray, 0, bytes);
baos.writeTo(fos);
clientDoc.close();
bais.close();
baos.close();
fos.close();
dbConn.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}

Friday, 24 July 2009

Spring Framework


Spring is standard in lightweight enterprise application framework. Layered architecture, which allows you to be selective about which of its components you use there are seven modules in Spring Frame work
I>  Spring Core:
Uses IOC pattern to separate the application configuration with dependency specification from the actual application code.
IOC (Inversion of control)
  • No creation of object but describe how to create
  • Not connect direct to components
  • Mention in conf file for which service which component
  • org.springframework.beans
Bean Factory
  • org.springframework.beans.factory.BeanFactory
  • Singletone mode: Shared instance
  • Prototype Mode: each retrieval result new object
  • Take care when to create objects and when to invoke the method
Java Beans -  POJO ()
  • No creation of object but describe how to create
II>  Spring Context:
  • Context Information
  • EJB, e-mail, internalization, validation, and scheduling functionality.
III>  Spring AOP (Aspect Oriented Programming):
  • Provides transaction management services for objects
  • Logging (declaratively to the components that required logging.)
IV> Spring DAO (Data Access Object):
  • managing the exception handling
  • error messages
  • opening and closing connections
V > Spring ORM
  • Including JDO, Hibernate, and iBatis SQL Maps.
VI>  Spring Web Module
  • The Web module also eases the tasks of handling multi-part requests and binding request parameters to domain objects.
VII > Spring MVC framework:
  • Numerous view technologies including JSP, Velocity, Tiles

Difference between Struts and Spring


Sl. No
Struts
Spring
1
Struts is a web framework
Spring is an application
framework
2
Using MVC pattern
spring MVC is one of the
modules
3
Hard code to use applications
like hibernate, JDBC
Inbuilt hibernate, JDBC etc
4
Struts allows only JSP
Support JSPs, Velocity,
Free maker etc.,
5
Struts is heavy weight
Spring is light weight
6
Struts is tightly coupled
Spring is loosely coupled.
7
Excellent support for
Tag Library
Not that Much
8
Easy to integrate with other
client side technologies
Not Easy.