Tuesday, January 1, 2008

Ein Brief für Schneeweiß

Ein Brief für Schneeweiß

Ich, diese Hütte,

Die Orangenfarbe des Himmel

Beschreib dein Gesicht

Wer bin ich

Nur ein kleine Heizelmännchen

In meinem Horde

Du bist mit deinem Prinze schon verwacht

Und nicht ich, der Prinze des Heizelmännchen

Nun

Deine Aufgabe ist schonfertig

Der Teil meines Herz

Bringst du

Diese Illusion versunkt in der See

Wische mein Traum ab

Für Prinze des Heizelmännchen

Spül die Wend einfach ab

Laß deine Beklemung los

Wenn du es bedenkst

Du willst erfinden

Was die Bedeutung ist

Wenn es jetzt sehr schmerzt

Vielleicht willst du morgen lächeln

Als du dieTrauer erinnerst

Villeicht willst du wieder finden

Schneewitzen, Aschenp

Schneewitzen, Aschenputtel oder Aurora

Deine Lauterkeit will eine schöne Prinzessin anlocken

Spül die Wend einfach ab

Laß deine Beklemung los

Eines Tages will die Vorsehung dir leiten

Glücklichkeit ist Traurigkeit, die die Maske offen

Powered by : 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29

Sunday, December 30, 2007

Where is Netbeans distribution ?

Netbeans can’t find at Sun official site. But you can find distribution from www.netbeans.org , include all latest news, patch, newest version, and even Java Development Kit. Size of Netbeans is about 150 Mb to below of 200 Mb. There are few OS platform for Netbeans, like Windows , Mac, and Linux. So, if in the past we have difficulties to IDE development in Linux Platform, now all the problems gone.

Develop Application in Java using Netbeans 5.5.1 ?

I’ve tried using Netbeans 5.5.1 and Netbeans 6. Why still using ver. 5.5.1 if newest version is released ? As long as I know ( as I’m a Drag and Click – o-holic) , I choose 5.5.1 that ver. 6 if I need to Create (generate) automatically JSF- JPA CRUD from Database Entity / Entity Class. In ver.6, I give up to find this generator code, in this version you just can use Example Source Code that using JSF – JPA. Do you have any comments ?

In ver. 5.5.1 we should install Enterprise Development Pack to integrate Glassfish and Derby Server into Basic IDE.

Netbeans 6 is all in one pack, that’s include Glassfish and Derby Server.

But using Glassfish is absorb large resources, comparing other Application Server like Tomcat. I have started Tomcat separately ( before loading Netbeans 6 ). Then, when using Netbeans , we can feel “Light” when Run Web Project.

Why Starting Java Using Netbeans ?

Netbeans is one of tools IDE development in Java Programming Technology. Another tools example is Eclipse , Intellej IDEA, Notepad (?), etc. Eclipse is very famous , popular IDE to Java Development with advantages : light, better support in code writer ( kind of auto complete , refactoring). Eclipse Project fund by Giant Vendor like IBM, of course don’t ask again about quality. Intellej IDEA is commercial version of Java Development that offer Develop with pleasure. Just need to mention that Intellej IDEA is commercial software. Eclipse is completely free. But is someone who needs to begin code in Java, using Eclipse maybe is little dizzy, insufficient of help. Primarily to Code Developer that switch Development environments from Visual Studio into Java World. Netbeans offering more support for Java Beginner, kind of Click and Drag, to entering Java World. Netbeans disadvantages is just need more resources in development, comparing to Eclipse as free development tools.

Traffic in related to Search Engine

Search Engine is services that deliver list of result based on our keywords that we give to them. Suppose we type “Breaking News” , then search engine try to find closest result that could be related to our hope. An URL can display in top position , depends on how many people keying “Breaking News”, then click to redirect its URL. In that condition we said that this URL has closest relationship with keyword “Breaking News”. You can prove it to find this blog by search keyword “PLTN” in Google (mainly in Indonesia geo-position), then this blog will be display in First Page.

What is benefits , an URL placed on Top Rank ? If your site is not only included within the search engine index but also occupies one of the top positions, you will attract a large amount of visitor traffic. Your target audience is motivated and defined. If they find highly relevant sites at the beginning of their search, they are far more likely to visit sites and buy goods or services.

Why we still need professional help for optimizing our site into top rank ?

Whether you have optimized your site for your principal keywords or not, it is recommended to hire a company that specializes in search engine optimization and web site marketing. Search engines change their algorithms (site recognition formula) all the time, which causes web site ranking to change. SEO companies track all these changes and are equipped to adjust client web sites accordingly.

Traficare is a seo specialist with a highly skilled team of seo expert who combine a
range of Internet skills: campaign management, design, information research, and marketing writing. This seo company provide professional helps to applying a range of optimization and promotional techniques. They develops a smart system for feeding focused and quality traffic to web sites. Focused means selected web site visitors who are directed to a specific target. So, the Ads or the site presented to the surfer is highly relevant according to the search terms that the used. Why Google become a winner Search engine defeating competitor? Because Google has smart algorithm to find specific topics needs by customer, people that using search engine.

Thursday, December 27, 2007

The Blog competition: Global Warming

Dear all,

WWF and Digital Studio held the BLOG COMPETITION the national level with the theme of GLOBAL WARMING! Tagline him “HOT BLOG FOR COOL EARTH”. The competition had a reward of the total belasan million rupiah this was open for the student the SD, SMP, of SMA, the student until the public's community.

So that this Competition information cans be heard evenly from Aceh to Merauke, we asked for help of friends at the same time to in a volunteer manner help WWF to spread this Competition poster in your city. The poster could stamp in the SD, SMP, SMA, the campus, the office building, the place of the course, the place fitnes or places of the other public.

For that was interested, please sent the email to: Nmariza@wwf.or.id (Nazla) my email was accompanied by the complete name and the address sent that was clear with the postcode.
Mention also you needed how many posters and would ditempel anywhere.

We were waiting for friends's email at the same time. Thank you for your help driving the competition and this campaign to success.

Greetings

WWF-Indonesia
Kantor taman A9, Unit A-1
Jl. Mega Kuningan Lot 8-9/A9
Mega Kuningan
Jakarta 12950
Phone: +62 21 5761070 Ext. 606
Fax: +62 21 5761080


Wednesday, December 19, 2007

Fastest Steps to CRUD(Create,Read,Update,Delete) Database using JPA in Netbeans 6 for Super Duper Dummies

Using JPA is very easy , I mean we can using simple instruction ( just essential / basic ) only. I just try help somebody that extremely unfamiliar in Java environment. This step maybe makes 'expert' boring to hear, but I think , I have rensponsibility to help other.
In this topics, no step needed to access database directly. Creating Table handled automatically. All you need is using Netbeans 6.

PREPARATION
First, create Java Application Project. Create New Project -> Categories : Java , Project : Java Application -> Project Name : JavaApp (whatever you want to named).
Leave checked option in : Set As Main Project, and, Create Main Class : javaapp.Main
Finished create Project.

Let's start Database (Derby) ,using : Tools -> Java DB Database -> Start Server.

Now, Create Entity.
At the Project Tab , choose JavaApp project, right click, choose : New -> Entity Class.

At The bottom of Modal Windows, you can see button : Create Persistance Unit. Please click this.
On the "Database Connection" please choose databse connection :
jdbc:derby://localhost:1527/sample[app on APP].

Leave Generation strategy : Create.

Then click Button "Create".

Fill Class Name, in example : Persons.
Package, for example : mypackage.


Change Primary Key Type from : Long , into : int.

Click Finish.

Now, we will add Derby driver.
From the Left Panel, Right Click Java App project, Choose: Properties.

Choose Categories : Libraries.
On the Right panel, Add Library -> Java DB Driver. Then click Add Library Button.
On the Modal windows of Project Properties, click OK.

Now , in this step mean, we have Derby driver to make connection to Derby Server.

CODING in ACTION.
Load Person.java with double click Button,

You will see :
@Entity
public class Persons implements Serializable {

Just insert below @Entity with : @Table, so the code become :
@Entity
@Table
public class Persons implements Serializable {

If eror exist, then : Right Clik anywhere, choose Fix Import, it will importing :
import javax.persistence.Table;

Before : private int id; please add : @Column, so the code become :

@Column
private int id;

If error happen, Just Right Click, and Fix Import.
If Error happend again, I think this class need : Follow assist (click th Error Sign, Right side of code)
Choose Unify field access.

Now , for example, we Add column: firstName, write code :
private String firstName;

Double click at the firstName , Rhight clik , it will shown pop up , Choose : Insert Code -> Getter And Setter.
Check the property (firstName) then CLick : Generate.

Like Step before, we add annotation : @Column before property, then code like this :
@Column
private String firstName;


Now we load Main.java from package : javaapp. Just double click Main.java on the Left Panel (Project Tab).

We looking code :
public static void main(String[] args) {

Then, just Enter.
Right Click between bracket, we'll see : Persistance -> Use Entity Manager.

You can see, that Editor add this code :
public void persist(Object object) {
...
..

CREATE
Now, back to the Main Method, let's code :

Persons pers = new Persons();
pers.setId(1);
pers.setFirstName("bagusalfa");

persist(pers);

If error happen, because persist Method is not static,then add "static" keyword,
changed into :
public static void persist(Object object) {

Now, Run Main Project ...

Well done, you've got CREATE operation with JPA.

READ
now , add this code (just copy paste from "persist" Method) :

EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("JavaAppPU");
EntityManager em = emf.createEntityManager();

Now, we are doing Find object :
Persons findPersons=(Persons) em.find(Persons.class, pers.getId());
System.out.println(findPersons.getFirstName());

Well done,you've got READ operation.


UPDATE
now we will change Name persons.
// TODO code application logic here
Persons pers = new Persons();
pers.setId(1);
pers.setFirstName("bagusalfa");

persist(pers);
EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("JavaAppPU");
EntityManager em = emf.createEntityManager();

Persons findPersons=(Persons) em.find(Persons.class, pers.getId());
System.out.println(findPersons.getFirstName());

pers.setFirstName("alvax");
em.getTransaction().begin();
em.merge(pers);
em.getTransaction().commit();

DELETE
We will delete Person object:
EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("JavaAppPU");
EntityManager em = emf.createEntityManager();

Persons findPersons=(Persons) em.find(Persons.class, pers.getId());
System.out.println(findPersons.getFirstName());


em.getTransaction().begin();
em.remove(pers);
em.getTransaction().commit();