Pages

Tuesday, October 2, 2012

mJelajah (Android Apps)



Heyho! Now I just wanna share to you about a new app from my company =)
It's called "mJelajah". What is mJelajah? Let's find out!

Wednesday, November 23, 2011

Slim3: a Full-Stack MVC Framework

Certainly before you learn it you have to know about App Engine. What is it? Google will teach you, just visit this link: 

Ok! now what is slim3..
Slim3 is a low level API that easier to be learned than JDO or JPA. It is a kind plugin for eclipse. The concept of slim3 is MVC (model, view, controller). With slim3 we can access the data from the datastore more quickly than JDO/JPA. Why? Because slim3 does not use PersistenceManagerFactory/EntityManagerFactory which is known as a slow starter and avoids extra initializations carefully.
There are three parts of slim3 that i will try to explain:

Wednesday, April 27, 2011

Matlab Syntax Summary before UTS

Reading an image (jpg, bmp, png, tif):
image = imread (‘image.ext’);

Showing an image (jpg, bmp, png, tif):
imshow (‘image.ext’);

Showing some of image in one figure/screen:
subplot (m,n,p); imread(‘img.ext’);

%annotation:
%m = total row
%n = total column
%p = image position

Making a new screen/figure:
figure;

Sunday, April 10, 2011

Create a Digital Clock in Java

Digital Clock in Java
Digital Clock
Download DigitalClock.java
Digital Clock class:
/**
 * @author Eri Setiawan
 */

import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.Timer;

public class DigitalClock extends JLabel {
 private String pattern;
 private Timer timer;
 private int delay;

Friday, April 8, 2011

Write Comma Separated Value (CSV) from ResultSet

This code requires the use of the free library java CSV and MyCsvWriter.
. . .
MyCsvWriter csvWriter = new MyCsvWriter("File Name.csv");
try {
      csvWriter.writeColumnNames(rs);
      csvWriter.writeRecords(rs);
      csvWriter.flush();
      csvWriter.close();           
} catch (SQLException e) {
      System.out.println("Oops-> " + e.getMessage());
} catch (IOException e) {
      System.out.println("Oops-> " + e.getMessage());
}
. . .

Sunday, February 27, 2011

Running a Java Program

The Way Java Works
  1. Source
Create a source document in Java language.
  1. Compiler
Run the document through a source code compiler. The compiler checks for errors and won’t let us compile until it’s satisfied that everything will run correctly.
  1. Output Code
The compiler creates a new document, coded into Java bytecode. Any device capable of running Java will be able to interpret this file into something it can run. The compiled bytecode is platform-independent.
  1. Virtual Machines
The Virtual Machine reads and runs the bytecode.

Wednesday, February 23, 2011

Hello Java

What is Java technology?
1.     A Programming Language
As a programming language, java can create all kind of applications, desktop, web, and others, as created using other conventional programming language.
Java is an open source programming language and object-oriented programming (OOP) and can be run on various operating systems. Java development is not only focused on one operating system, but developed for different operating systems.
2.     A Development Environment
As a builder tools, Java technology provides many tools:  compiler, interpreter, compiler documentation, class packages and so forth.