Aug 12 2008

How to Install Zend Optimizer in Xampp under windows

Tag: UncategorizedYogesh @ 6:31 am

Zend Optimizer is a package that supposedly optimizes the php runtime code for optimum performance,
However the actual reason it is used is, there is a package called as zend guard which encodes the php code so that no one can view the source of your code and the zend optimizer decodes it at runtime.

Installation:
1) download Zend optimizer for windows (its free but you may have to register)
2) install Zend
3) make sure the apache server is stopped
4) when it asks for the php.ini file select the php folder within your xampp installation folder
5) when it asks for the apache folder select the apache folder within xampp
6) complete the installation
7) now open the php.ini files in apache/bin and php/
8) search for [zend]
9) you should see entries like these

zend_extension_ts="C:\Program Files\Zend\ZendOptimizer-3.3.0\lib\ZendExtensionManager.dll"
zend_extension_manager.optimizer_ts="C:\Program Files\Zend\ZendOptimizer-3.3.0\lib\Optimizer-3.3.0"
zend_optimizer.enable_loader = 0
zend_optimizer.optimization_level=15

(make sure there is no ; at the start of these lines)

change zend_optimizer.enable_loader = 1 in both the files, restart the webserver

-fin


Jul 04 2008

Maven Installation Steps

Tag: UncategorizedSatya @ 6:12 am

The steps for Maven installations are as follows

How to install Maven?

1. Download Maven 2.0.8 from http://maven.apache.org/download.html

2. Extract zip file to MAVEN_DIR. MAVEN_DIR is extracted directory of Maven.

3. Set environment variable MAVEN_HOME to MAVEN_DIR. For ex. I have extracted zip file to E:\Softwares\apache-maven-2.0.8, So MAVEN_HOME is pointing to E:\Softwares\apache-maven-2.0.8

4. Apeend MAVEN_HOME\bin to path environment variable. For ex. My MAVEN_HOME is E:\Softwares\apache-maven-2.0.8, so I have added E:\Softwares\apache-maven-2.0.8\bin to path environment variable

5. Open commnad prompt and execute following command

Command>> mvn -version

It should display Maven version, JDK version and OS details. If you get these things then it menas you have sucessefully configured Maven

6. Deployment settings

Create a file named settings.xml at USER_HOME\.m2\settings.xml. For example. I have created settings.xml at C:\Documents and Settings\sarang_chalikwar\.m2\settings.xml

...

/path/to/local/repo/

true/false

repo1

repouser

<!-- other optional elements:

my_login_password

/path/to/identity (default is ~/.ssh/id_dsa)

my_key_passphrase

-->

...

...

For more details about proxy settings and setting up Mirror repository please go through http://maven.apache.org/guides/mini/guide-configuring-maven.html

How to create new project using Maven ?

1. Standard directory structure for project with one module

my-app

|-- pom.xml

`-- src

|-- main

| |-- java

| | `-- com

| | `-- mycompany

| | `-- app

| | `-- App.java

| `-- resources

| `-- META-INF

| `-- application.properties

`-- test

`-- java

`-- com

`-- mycompany

`-- app

`-- AppTest.java


May 15 2008

“Hibernate Dialect must be explicitly set” exception?

Tag: UncategorizedYogesh @ 7:06 am

check your hibernate xml, if it does not have an entry for dialect add it,

<property name="hibernate.dialect">

org.hibernate.dialect.OracleDialect

</property>


Next Page »