Categories
Java

How to set debugging in Eclipse with Java Remote Application

There is a java application execute via shell script or deployed on application server like Tomcat, Jboss. How to set debugging manually for eclipse with Java remote application?

Categories
Android

android.process.acore has stopped while browsing facebook app

On Galaxy S2 with facebook app version 3.1, while browsing the timeline, the app was stuck and a few minutes later, the popup message is about: [..] android.process.acore has stopped [..] I don’t remember the full message. What could be the solution?

Categories
Apache Tomcat

Eclipse Tomcat Launcher plugin & Performance Configuration

Eclipse Tomcat Launcher plugin helps you: Starting and stopping Tomcat 4.x, 5.x, 6.x, 7.x Registering Tomcat process to Eclipse debugger Creating a WAR project (wizard can update server.xml file) Adding Java Projects to Tomcat classpath Setting Tomcat JVM parameters, classpath and bootclasspath Exporting a Tomcat project to a WAR File You can download the plugin…

Categories
Java

Sample layout pom.xml for Java project

To make you get into Maven 2 project easily, let’s have a look to pom.xml general layout for Java project, here it is: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.osify.training</groupId> <artifactId>sample-java-training</artifactId> <packaging>jar</packaging> <name>Osify Training Sample</name> <description>Osify Training Sample</description> <version>1.0.0-SNAPSHOT</version> <parent/> <prerequisites /> <repositories/> <scm/> <properties/> <dependencies> <dependency/> </dependencies> <build> <sourceDirectory>src/main/java</sourceDirectory> <outputDirectory>target/classes</outputDirectory>…

Categories
Apache Tomcat

Tomcat java.lang.OutOfMemoryError: PermGen space

In Java application, PermGem memory is very important, it is used to compile and optimize classes. You might also face this issue during deployment application in tomcat, in my case, I faced it with Tomcat 6 and 7 with message of: <code>java.lang.OutOfMemoryError: PermGen space</code> Solutions Increasing the PermGem memory in “catalina.bat” for windows or “catalina.sh”…

Categories
VBA

Declare and compare a variable with Khmer unicode string in VBA, excel

Khmer unicode character string is different from other unicode character, we can’t write it on VBA editor of Excel or MS Access.

Categories
Android

Insufficient storage available Android

SD still have remaining space but can’t update any app in my galaxy S2

Categories
Mobile

Configuration setting with mobile operators in Cambodia for 3G connection for iPad?

Please help to describe instruction for each mobile operators in Cambodia in order to configure 3G connection with iPad3. In Cambodia, we have following operator: CellCard Smart Mobile MetFone MFone Hello qb Excell etc. Thanks.

Categories
Apache Tomcat

GZip Compression on Web App Deployed with Tomcat

Performance is very important to save resource for visitors using our website. If you deploy your Java Web Application on Apache Tomcat and you feel it’s a bit slow, please check it out my experience on solving issue of gzip compression by changing configuration of Apache Tomcat. Result: Before/After Correction Solutions Edit file: apache-tomcat-xx\conf\server.xml change…

Categories
Tools

Maven 3.x warnings about build.plugins.plugin.version

During Maven build with maven 3.x version, I got following error: [WARNING] ‘build.plugins.plugin.version’ for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 299, column 16