JKhmerConverter

Leave a comment

JKhmerConverter
is able to convert legacy Khmer font to Khmer Unicode, and Khmer Unicode to legacy Khmer font.
I build this project in order to contribute with open source community in Cambodia, and sharevisionteam.
This project is converted from http://unicode.codeplex.com that built in C# 3.5 t, and due to there is no Khmer Unicode Converter, I have spent my free time to build it up and it’s developed in Java 6.

You can find the binary file and source code file at google code JKhmerConverter
And click here to download download JKhmerConverter

I’m so happy with my first contribute and I hope that it’s my help to society in IT.

Snippet code as below:



/**
 *
 * @author LEE
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String str = "eRs‘og";
        LegacyToUnicode legacyToUnicode = new LegacyToUnicode();
        System.out.println(legacyToUnicode.convert(str, "Limon S1"));
    }
}
Advertisements

Automatically login to DNN after registration

Leave a comment

Public Sub AutomaticLogin(ByVal userName As String)
Dim objUserInfo As UserInfo = UserController.GetUserByName(PortalId, userName)
UserController.UserLogin(PortalId, objUserInfo, PortalSettings.PortalName, Request.UserHostAddress, False)
Response.Redirect("/Home.aspx")
End Sub
Public Sub AutomaticLogin(ByVal userName As String)

Dim objUserInfo As UserInfo = UserController.GetUserByName(PortalId, userName)

UserController.UserLogin(PortalId, objUserInfo, PortalSettings.PortalName, Request.UserHostAddress, False)

Response.Redirect("/Home.aspx")

End Sub

iPad for every one

Leave a comment

Fix error when IIS install after .Net Framework

Leave a comment

Run this command : %Windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

Barcamp in Phnom Pen

Leave a comment

You are invited to join barcamp in Phnom pen on 3-4 October 2009 — 7:30AM – 5:00PM.
Barcamp Site
Barcamp Phnom Pen

J2EE Service Architecture

Leave a comment

Containers provide underlying services to their deployed components. As a developer, you can concentrate on implementing business logic rather than solving technical problems faced in enterprise applications. This pic shows you the services provided by each container. For example, web and EJB containers provide connectors to access EIS, but not the applet container or the ACCs. Java EE offers the following services:

  • JTA: This service offers a transaction demarcation API used by the container and the application. It also provides an interface between the transaction manager and a resource manager at the Service Provider Interface (SPI) level.
  • JPA: Standard API for object-relational mapping (ORM). With its Java Persistence Query Language (JPQL), you can query objects stored in the underlying database.
  • JMS: JMS allows components to communicate asynchronously through messages.It supports reliable point-to-point (P2P) messaging as well as the publish-subscribe (pub-sub) model.
  • Java Naming and Directory Interface (JNDI): This API, included in Java SE, is used to access naming and directory systems. Your application uses it to associate (bind) names to objects and then to find these objects (lookup) in a directory. You can look up datasources, JMS factories, EJBs, and other resources. Omnipresent in your code
    until J2EE 1.4, JNDI is used in a more transparent way through injection.
  • JavaMail: Many applications require the ability to send e-mails, which can be implemented through use of the JavaMail API.
  • JavaBeans Activation Framework (JAF): The JAF API, included in Java SE, provides a framework for handling data in different MIME types. It is used by JavaMail.
  • XML processing: Most Java EE components can be deployed with optional XML deployment descriptors, and applications often have to manipulate XML documents. The Java API for XML Processing (JAXP) provides support for parsing documents with SAX and DOM APIs, as well as for XSLT. The Streaming API for XML (StAX) provides a pull-
    parsing API for XML.
  • JCA: Connectors allow you to access EIS from a Java EE component. These could be databases, mainframes, or Enterprise Resource Planning (ERP) programs.
  • Security services: Java Authentication and Authorization Service (JAAS) enables services to authenticate and enforce access controls upon users. The Java Authorization Service Provider Contract for Containers (JACC) defines a contract between a Java EE application server and an authorization service provider, allowing custom authorization
    service providers to be plugged into any Java EE product.
  • Web services: Java EE provides support for SOAP and RESTful web services. The Java API for XML Web Services (JAX-WS), replacing the Java API for XML-based RPC (JAX-RPC), provides support for web services using the SOAP/HTTP protocol. The Java API for RESTful Web Services (JAX-RS) provides support for web services using the REST style.
  • Management: Java EE defines APIs for managing containers and servers using a special management enterprise bean. The Java Management Extensions (JMX) API is also used to provide some management support.
  • Deployment: The Java EE Deployment Specification defines a contract between deployment tools and Java EE products to standardize application deployment.

Install Chromium with Flash Player Plugin in Ubuntu

Leave a comment

Well its been a while since a wrote a howto for you guys and just stumbled across this which I am very excited about. We all know about google’s browser chrome, it is fast and sleek, and now is pretty much ready for beta, I have no problems whatsoever with Chromium any longer. I am now using it as my default browser in Ubuntu Jaunty! Here is the quickest way possible to install chromium and get it up and running with flash.

sudo gedit /etc/apt/sources.list

Add these two Lines:

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main

Between replace jaunty with intrepid if your still using that.

Now add the GPG Key:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5
sudo apt-get update ; sudo apt-get install chromium-browser

Now once installed Go to Applications->Internet->Chromium Browser and right click it, add to panel
Right click the new chromium icon and add the following where it says command:

chromium-browser --enable-plugins

Note: You’ll of course need flash installed for firefox first, to install that:

sudo apt-get install adobe-flashplugin

Now lets install flash before we launch this baby:

sudo cp /usr/lib/firefox/plugins/flashplugin-alternative.so /usr/lib/chromium-browser/plugins/flashplugin.so

Please enjoy flash with chromium with Angkor Wat History in youtube first.

Older Entries