Categories
Khmer Unicode

iText can render for Khmer Unicode

I just implement to put the render of Khmer Unicode in iText 5.5.4-SNAPSHOT and try, I could produce the PDF with the right display as following image. iText is a core pdf writer in most of the opensource library for outputting report or rendering text but unfortunately, it’s not working with Khmer Unicode as I…

Categories
Tools

Easy Way to Migrate CSS Bootstrap 2.x to 3.x, Font Awesome v3 to v4

The old web app uses CSS Bootstrap 2 and the new CSS Bootstrap 3 have a lot of things different, we need to aware: Get into the issue/concept: http://stackoverflow.com/questions/17974998/updating-bootstrap-to-version-3-what-do-i-have-to-do http://getbootstrap.com/migration/ My Working Tool There is already an existing tool written in Python (b2tob3) but for me, it’s working only for HTML (extension .html) files and…

Categories
Website

TinyMCE – Incorrect function. l.setActive [IE11]

If you meet an error with your TinyMCE as Incorrect function. setActive on IE11, it seemly, you are using one of an old version of TinyMCE in 2013, there are some places already raised the error in their old product such as: https://core.trac.wordpress.org/ticket/25281 https://github.com/tinymce/tinymce/commit/cd01160b037cab69c2f45866d9443e09851cf839 http://www.tinymce.com/develop/changelog/?type=tinymce That would explain the issue. So, please upgrade your TinyMCE…

Categories
Java Tools

Update Eclipse failed – Can not remove : eclipse.exe

Use Eclipse Update and got fail An error occurred while uninstalling session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86_64 1.0.0.v20130521-1847 –> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). Backup of file D:\Apps\eclipse\eclipse.exe failed. Can not remove : D:\Apps\eclipse\eclipse.exe The issue links to permission on file system. According to the post here, two solutions raised but for me, only following solution, the best to…

Categories
Java

Verify Your Java/JDK 1.8 Environment

As developer, sometimes, you need to know quickly if your environment is ready for a JDK after switch or something. Here I take a basic way to check in general, I think most of new developer always want that so I take my Windows environment as example. You need to check your JRE and JAVA_HOME…

Categories
Java

It’s time to move to JDK 1.8

Early morning, I got this error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project center-core: Compilation failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] javac: invalid target release: 1.8 [ERROR] Usage: javac <options> <source files> [ERROR] use -help for a list of possible options [ERROR] -> [Help 1] Yeah, it’s…

Categories
Khmer Unicode

[Khmer Unicode] Google Chrome, Display Box Instead of Character

It has been long time that I though to write this post when my brother faced issue on his Google Chrome could not see the Khmer character (Khmer Unicode) and in fact all other Unicode characters such Chinese or Thai. We first say, it’s because of Khmer Unicode issue on Chrome but in fact, it…

Categories
Java

Java: No compiler is provided in this environment [Maven]

Project created via the archtype and got error could not built mvn archetype:generate -DgroupId=com.dmsys.frmk -DartifactId=frmk -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Java Maven Project, pom.xml <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.dmsys.frmk</groupId> <artifactId>frmk</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>frmk</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <version>2.5.0</version> <type>pom</type> </dependency> </dependencies> </project> Error Message: No compiler is provided in…

Categories
Windows

[Windows] Copy Long File Path Error, Internet Exporer

You copy from a location to another location and got error as describe as following message and picture: The file name(s) would be too long for the destination folder…. I got the error on my Windows 7, SP1. Of course, you can have the same issue on Windows 8. I use Windows Explorer to try…

Categories
Java

Error: Could not create the Java Virtual Machine [Vaadin]

Vaadin built and received an error as error log: [INFO] Using com.vaadin:vaadin-client-compiler version 7.2.7 [INFO] Error occurred during initialization of VM [INFO] Could not reserve enough space for object heap [ERROR] Error: Could not create the Java Virtual Machine. [ERROR] Error: A fatal exception has occurred. Program will exit. [ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:7.2.7:update-widgetset…