<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>netbeans &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/netbeans/</link>
	<description>Feed of posts on WordPress.com tagged "netbeans"</description>
	<pubDate>Sat, 28 Nov 2009 15:10:58 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[How to change the language on netbeans ]]></title>
<link>http://paulofaulstich.wordpress.com/2009/11/27/how-to-change-the-language-on-netbeans/</link>
<pubDate>Fri, 27 Nov 2009 01:01:46 +0000</pubDate>
<dc:creator>paulofaulstich</dc:creator>
<guid>http://paulofaulstich.wordpress.com/2009/11/27/how-to-change-the-language-on-netbeans/</guid>
<description><![CDATA[Hi everyone. I&#8217;m Brazilian I like of my netbean in English. For you change the language, go to]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hi everyone.</p>
<p>I&#8217;m Brazilian I like of my netbean in English.</p>
<p>For you change the language, go to file &#8220;netbeans root/etc/netbeans.conf&#8221; after that add a new parameter  ( -J-Duser.language=en -J-Duser.country=US ) in line: &#8220;netbeans_default_options&#8221;</p>
<p>Some thing like this:</p>
<p>netbeans_default_options=&#8221;-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true <strong>-J-Duser.language=en -J-Duser.country=US</strong>&#8220;</p>
<p>Done, restart the ide and take a look the new language.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Jazoon '10 | Call for Papers]]></title>
<link>http://nbguru.wordpress.com/2009/11/27/jazoon-10-call-for-papers/</link>
<pubDate>Thu, 26 Nov 2009 19:58:48 +0000</pubDate>
<dc:creator>Varun</dc:creator>
<guid>http://nbguru.wordpress.com/2009/11/27/jazoon-10-call-for-papers/</guid>
<description><![CDATA[After successful exhibitions in 2007 and 2008, Jazoon&#8217;09 drew a record 1,100 participants from]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><blockquote>
<p style="text-align:center;">After successful exhibitions in 2007 and 2008, Jazoon&#8217;09 drew a record 1,100 participants from 37 countries. Now, we&#8217;re currently seeking sponsors and exhibitors to take part in Jazoon&#8217;10.﻿</p>
</blockquote>
<h2>Indeed,</h2>
<p>Starting today the clock is running towards the submission deadline for the Jazoon&#8217;10 Call for Papers. Java and Open Source Experts from all over the world are called upon to actively participate in the steering of the program of Jazoon&#8217;10.</p>
<p>Proposals for short (20 minutes) and long talks (50 minutes) can be submitted within the scope of the <a href="http://jazoon.com/Conference" target="_blank">technical sessions</a> <strong>until 3 February 2010</strong>. Presentations can be held individually or together with a co-speaker. Speakers profit from preferential terms &#8211; details to be found <a href="http://jazoon.com/Conference" target="_blank">here</a>. Proposals for <a href="http://jazoon.com/Conference/Jazoon-Rookie" target="_blank">Jazoon Rookie</a> (20 minutes) can be submitted <strong>until 4 April 2010</strong>. Participating criteria and benefits can be found <a href="http://jazoon.com/Conference/Jazoon-Rookie" target="_blank">here</a>.</p>
<p style="text-align:center;"><span style="text-decoration:underline;"><strong>Other News</strong></span></p>
<p style="text-align:center;">I am <a href="http://bondprogrammers.blogspot.com/2009/11/going-back-to-basics.html" target="_blank">making a comeback</a> on this blog with this post, hope to continue doing, what I love doing..</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Tutorial Design GUI di Netbeans]]></title>
<link>http://budigunawan.wordpress.com/2009/11/26/tutorial-design-gui-di-netbeans/</link>
<pubDate>Thu, 26 Nov 2009 16:06:03 +0000</pubDate>
<dc:creator>Budi Gunawan Kusuma</dc:creator>
<guid>http://budigunawan.wordpress.com/2009/11/26/tutorial-design-gui-di-netbeans/</guid>
<description><![CDATA[Kalau anda adalah salah satu programmer Java yang berkonsentrasi di aplikasi Desktop, pasti mengenal]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Kalau anda adalah salah satu programmer Java yang berkonsentrasi di aplikasi Desktop, pasti mengenal apa yang dinamakan dengan Swing, dan apabila anda menggunakan IDE Netbeans pasti juga mengetahui betapa jengkelnya mendesign GUI di netbeans.</p>
<p>Baru saja di forum, Mas Deny Prasetyo melakukan reposting link-link dibawah untuk memudahkan proses design.</p>
<p><a href="http://netbeans. org/kb/trails/matisse.html">http://netbeans. org/kb/trails/matisse.html</a></p>
<p><a href="http://netbeans. org/kb/60/ java/quickstart- gui.html">http://netbeans. org/kb/60/ java/quickstart- gui.html</a></p>
<p>Semoga link diatas cukup membantu</p>
<p>&#160;</p>
<p>Terima Kasih</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to pack multiple JARs into one using ANT (and NetBeans)]]></title>
<link>http://frickelblog.wordpress.com/2009/11/25/how-to-pack-multiple-jars-into-one-using-ant-and-netbeans/</link>
<pubDate>Wed, 25 Nov 2009 20:29:35 +0000</pubDate>
<dc:creator>frickelblog</dc:creator>
<guid>http://frickelblog.wordpress.com/2009/11/25/how-to-pack-multiple-jars-into-one-using-ant-and-netbeans/</guid>
<description><![CDATA[Eines der Features, die ich bei NetBeans eine ganze Zeit lang nicht realisiert hatte war die Tatsach]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Eines der Features, die ich bei NetBeans eine ganze Zeit lang nicht realisiert hatte war die Tatsache, dass <a href="http://www.netbeans.org/">NetBeans</a> beim Compilieren automatisch ein ausführbares <a href="http://de.wikipedia.org/wiki/Java_Archive">JAR</a> erstellt, und JAR nebst Libraries in das &#8220;dist&#8221;-Verzeichnis im Projektordner kopiert. Das heißt das sieht dann so aus:<br />
<a href="http://frickelblog.wordpress.com/files/2009/11/nb-projecttree.png"><img class="aligncenter size-full wp-image-128" title="NB-ProjectTree" src="http://frickelblog.wordpress.com/files/2009/11/nb-projecttree.png" alt="" width="167" height="212" /></a></p>
<p>Coole Sache eigentlich. Nur &#8211; um die Applikation einfach so online zu stellen oder jemandem aufs Auge zu drücken (oder in den <a href="http://www.java.com/en/store/">Java Store</a> hochzuladen), wäre es doch fein, wenn man nur noch ein einziges JAR hätte und nicht noch zusätzlich die ganzen Libs aus &#8220;/dist/libs/&#8221; mitschicken muss (und das können schon einige sein &#8211; in meinem Mini-Projekt zB schon 19).</p>
<p>Viele Leute ziehen ein Jar zB einfach auf den Desktop um es direkt dort per Doppelklick zu starten. Das geht in dem Fall nicht mehr, da ja der libs-Ordner auch auf dem Desktop liegen müsste. Klar, eine Möglichkeit wäre, die Applikation woanders hin kopieren und eine Verknüpfung auf den Desktop legen &#8211; aber wir wollen dem User ja entgegenkommen.</p>
<p>Also:  ein einziges JAR muss her. Im <a href="http://developers.sun.com/index.jsp">Sun Developer Network</a> (SDN) findet sich dazu auch die passende Anleitung im Artikel: &#8220;<strong><a href="http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/">Use NetBeans IDE 6.7 to Combine JAR Files Into a Single JAR File</a></strong>&#8220;. Dort wird schön erklärt, wie man die <code>build.xml</code> ändern muss um genau das zu erreichen.</p>
<p>In diesem Sinne: Viel Erfolg beim ausprobieren.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Prepare to Program with Java :  The Folder and Path (Part 1)]]></title>
<link>http://javacabin.wordpress.com/2009/11/25/prepare-to-program-with-java-the-folder-and-path-part-1/</link>
<pubDate>Wed, 25 Nov 2009 04:26:18 +0000</pubDate>
<dc:creator>demitkecil</dc:creator>
<guid>http://javacabin.wordpress.com/2009/11/25/prepare-to-program-with-java-the-folder-and-path-part-1/</guid>
<description><![CDATA[Pramudya Yanuanto This article gives you very basic knowledge about how to prepare your environment ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="mailto:demitkecil@yahoo.com">Pramudya Yanuanto</a></p>
<p>This article gives you very basic knowledge about how to prepare your environment for Java, yet give you my experiences for using Java such a long time.</p>
<p>While we can program Java in Linux, most of this article talk about the process in Windows.</p>
<p>I assume that you may use many Databases, Editors (to take advantages of some features), and many versions of JDK (to maintain your old project without difficulties).</p>
<p style="text-align:center;"><a href="http://javacabin.wordpress.com/files/2009/11/folder-structures1.gif"><img class="size-full wp-image-18  aligncenter" src="http://javacabin.wordpress.com/files/2009/11/folder-structures1.gif" alt="Folder Structure" width="139" height="157" /></a></p>
<p>Yes, I put everything under folder Java since I program with more than 10 languages, so it will make me faster finding it. Beside, if you put some program under Windows Program File Folder, it will be to long to type it …</p>
<h2>JDKs Folder</h2>
<p>Lets start with JDKs Folder. Why should we need this folder?</p>
<p>I’ve used Java to program for quite a long time ago, so I have used the old JDK. If I have to maintain it (with tight budget from the customer), It will be better for me to used the old one rather than adjust anything with new JDK that may arise some new errors.</p>
<p>And if you a new Java programmer, may be you have to maintain old Java program that can not be upgarded (due to customer request) into a new JDK version.</p>
<p>Here is a link where you can find an old JDK:</p>
<p><a href="http://java.sun.com/javase/downloads/previous.jsp">http://java.sun.com/javase/downloads/previous.jsp</a></p>
<p style="text-align:center;"><a href="http://javacabin.wordpress.com/files/2009/11/old-jdk.png"><img class="alignnone size-full wp-image-28" title="old-jdk" src="http://javacabin.wordpress.com/files/2009/11/old-jdk.png" alt="" width="449" height="271" /></a></p>
<p>Sun still maintain such of JDKs and I personally thanks to all staff of Sun for such of generousity.</p>
<p>Here are the JDK and JRE that’s still reside in Sun</p>
<ul>
<li>JDK/JRE 1.1</li>
<li>JDK/JRE 1.2.1 update 4</li>
<li>JDK/JRE 1.2.2 update 4 – 17</li>
<li>JDK/JRE 1.3.0 initial until update 5</li>
<li>JDK/JRE 1.3.1 initial until update 25</li>
<li>JDK/JRE 1.4.0 initial until update 4</li>
<li>JDK/JRE 1.4.1 initial until update 7</li>
<li>JDK/JRE 1.4.2 initial until update 19</li>
<li>JDK/JRE 5 initial until update 21</li>
<li>JDK/JRE 6 initial until 16 (current is update 17)</li>
</ul>
<p>That’s such a very good service for a free perfect thing …</p>
<p>Now your folder may look like this :</p>
<p style="text-align:center;"><a href="http://javacabin.wordpress.com/files/2009/11/folder-jdk.gif"><img class="size-full wp-image-21 aligncenter" title="Folder JDK" src="http://javacabin.wordpress.com/files/2009/11/folder-jdk.gif" alt="" width="138" height="206" /></a></p>
<p>Notice that in JDK 6, I use 2 folders. I use that because I always use the update 6 and then will move it to the newest update but still want to test it for some time.</p>
<p>So I use all the JDK to make sure that we do the right ting. Upgrade can create undesirable effect if we have just a tight budget.</p>
<h2>Drivers Folder</h2>
<p>Yes as the name states, it will be used to store all of your database folders. Why bother? I use Oracle database back since version 5. Yes, oracle start using Java at version 8i. The problem is that oracle use the same name for jars for it’s drivers.</p>
<p>The name is always like these with a little bit varian (no matters the version is):</p>
<ul>
<li>classes111.jar</li>
<li>classes111_g.jar</li>
<li>classes12.jar</li>
<li>classes12dms.jar</li>
<li>classes12dms_g.jar</li>
<li>classes12_g.jar</li>
<li>javadoc.tar</li>
<li>nls_charset11.jar</li>
<li>nls_charset12.jar</li>
<li>ocrs12.jar</li>
<li>ojdbc14.jar</li>
<li>ojdbc14_g.jar</li>
</ul>
<p>It means that you can not keep them in the same folder.</p>
<p>In this folders you also see jTDS folder that contain driver for Microsoft SQL Server 6.5 to 2008 and  Sybase ASE version 10, 11, 12, 15. a very wonderful driver for very small size. We will discuss it in details when we cover the JDBC.</p>
<p>Our folder will look like this :</p>
<p style="text-align:center;"><a href="http://javacabin.wordpress.com/files/2009/11/folder-drivers.gif"><img class="size-full wp-image-22 aligncenter" title="Folder Drivers" src="http://javacabin.wordpress.com/files/2009/11/folder-drivers.gif" alt="" width="135" height="342" /></a></p>
<h2>Editor Folders</h2>
<p>Yes most of us fanatic with our editor. We are a kind of attached into our editors. As a hired programmers that sometime work into different company under some project leaders, I have to adjust my editor to conform to other project members.</p>
<p>Some editor also have features that more advance than other editors.</p>
<p>Here are my editor folders</p>
<p style="text-align:center;"><a href="http://javacabin.wordpress.com/files/2009/11/folder-editors.gif"><img class="alignnone size-full wp-image-23" title="Folder Editors" src="http://javacabin.wordpress.com/files/2009/11/folder-editors.gif" alt="" width="149" height="275" /></a></p>
<p>We will see how we can manage this complex structure easily on my next articleo</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[JavaME Library you might need]]></title>
<link>http://trinisoftinc.wordpress.com/2009/11/24/javame-library-you-might-need/</link>
<pubDate>Tue, 24 Nov 2009 08:22:43 +0000</pubDate>
<dc:creator>Akintayo Olusegun</dc:creator>
<guid>http://trinisoftinc.wordpress.com/2009/11/24/javame-library-you-might-need/</guid>
<description><![CDATA[I have this javame library I have been compiling for a while. It has a lot of small small code snipp]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have this javame library I have been compiling for a while. It has a lot of small small code snippets and classes I use often, there is a database part where I have tried as much as possible to encapsulate parts of the saving/retrieving parts of RMS, there is also the UI part, which is what I want to talk about today.</p>
<p>This part contains a TickerForm, which is a form that can show scrollable contents pulled from database or URL at intervals(I am yet to finish it) and the second thing is the Controllable form. This form has a Controller that you can use to service the form(just like posting a form through POST). You call the submit() method of the form and the service method of the controller is called. The service method stores the values of items of the form in a Properties object(which is basically a key-value pair). A code is worth more than a thousand words they say, so here we are</p>
<p><code>/*<br />
 * To change this template, choose Tools &#124; Templates<br />
 * and open the template in the editor.<br />
 */<br />
package com.trinisoft.atpay.forms;</p>
<p>import com.trinisoft.atpay.MainForm;<br />
import com.trinisoft.atpay.helpers.RecordStores;</p>
<p>import com.trinisoft.mlib.db.decorator.StoreDecorator;<br />
import com.trinisoft.mlib.login.LoginForm;<br />
import com.trinisoft.mlib.login.db.UserClass;<br />
import com.trinisoft.mlib.ui.Form;<br />
import com.trinisoft.mlib.util.Controller;<br />
import com.trinisoft.mlib.util.Properties;</p>
<p>import java.io.IOException;<br />
import javax.microedition.lcdui.Alert;<br />
import javax.microedition.lcdui.AlertType;<br />
import javax.microedition.lcdui.Command;<br />
import javax.microedition.lcdui.CommandListener;<br />
import javax.microedition.lcdui.Display;<br />
import javax.microedition.lcdui.Displayable;<br />
import javax.microedition.lcdui.TextField;<br />
import javax.microedition.rms.RecordStoreException;</p>
<p>/**<br />
 *<br />
 * @author trinisoftinc<br />
 */<br />
public class RegisterForm extends Form {</p>
<p>    TextField username, password, cpassword;<br />
    Command ok, cancel;<br />
    LoginForm loginForm;<br />
    RecordStores recordStores;<br />
    MainForm mainForm;<br />
    Display display;</p>
<p>    public RegisterForm(LoginForm loginForm, final RecordStores recordStores, MainForm mainForm, Display display) {<br />
        super("Register", new Controller() {</p>
<p>            public boolean service(Properties properties) {<br />
                String username = properties.getParameter("Username").toString();<br />
                String password = properties.getParameter("Password").toString();<br />
                String cpassword = properties.getParameter("Confirm Password").toString();</p>
<p>                if (password.equals(cpassword)) {<br />
                    UserClass userClass = new UserClass();<br />
                    userClass.setUsername(username);<br />
                    userClass.setPassword(password);<br />
                    try {<br />
                        new StoreDecorator(userClass).save(recordStores.getUserRecordStore());<br />
                        properties.setParameter("response-code", new Integer(200));<br />
                        properties.setParameter("response-text", "Password Mismatch");<br />
                    } catch (RecordStoreException ex) {<br />
                        ex.printStackTrace();<br />
                    } catch (IOException ex) {<br />
                        ex.printStackTrace();<br />
                    }<br />
                } else {<br />
                    properties.setParameter("response-code", new Integer(500));<br />
                    properties.setParameter("response-text", "Password Mismatch");<br />
                }<br />
                return true;<br />
            }<br />
        });<br />
        this.loginForm = loginForm;<br />
        this.recordStores = recordStores;<br />
        this.mainForm = mainForm;<br />
        this.display = display;<br />
        init();<br />
    }</p>
<p>    private void init() {<br />
        username = new TextField("Username", "", 255, TextField.ANY);<br />
        password = new TextField("Password", "", 255, TextField.PASSWORD);<br />
        cpassword = new TextField("Confirm Password", "", 255, TextField.PASSWORD);<br />
        ok = new Command("Submit", Command.OK, 0);<br />
        cancel = new Command("Quit", Command.EXIT, 0);</p>
<p>        append(username);<br />
        append(password);<br />
        append(cpassword);<br />
        addCommand(ok);<br />
        addCommand(cancel);</p>
<p>        setCommandListener(new CommandListener() {</p>
<p>            public void commandAction(Command c, Displayable d) {<br />
                if (c.equals(ok)) {<br />
                    submit();<br />
                    if(getResponseCode() == 200) {<br />
                        display.setCurrent(loginForm);<br />
                    } else {<br />
                        Alert l = new Alert("Error Occurred",getResponseText(),null,AlertType.ERROR);<br />
                        display.setCurrent(l,d);<br />
                    }<br />
                } else if (c.equals(cancel)) {<br />
                    mainForm.notifyDestroyed();<br />
                }<br />
            }<br />
        });<br />
    }<br />
}<br />
</code><br />
You should draw your attention to two places, the contructor and the commandAction in the init() method. In the super constructor, you pass in a Controller, the controller have a service method, which handles the forms submit() and stores response-code and reponse-text keys and values in the Properties passed to it. These keys are used in the commandAction to get the response code and value. Any other value(or object for that matter) that you want to send back as response can be stored in the Properties object.</p>
<p>I think this suite of classes would be useful for anyone interested in Java ME development. Try it out and let me know your feedbacks.</p>
<p>Code hosted at www.gitorious.org/~trinisoftinc</p>
<p>ciao</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Adding external jar or library to NetBeans java project]]></title>
<link>http://jsumon.wordpress.com/2009/11/24/adding-external-jar-or-library-to-netbeans-java-project/</link>
<pubDate>Tue, 24 Nov 2009 03:03:22 +0000</pubDate>
<dc:creator>sumon</dc:creator>
<guid>http://jsumon.wordpress.com/2009/11/24/adding-external-jar-or-library-to-netbeans-java-project/</guid>
<description><![CDATA[Steps of  adding external jar or folder in NetBeans project which I have followed: 1. Go to project ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Steps of  adding external jar or folder in NetBeans project which I have followed:</p>
<p>1. Go to project properties by right clicking on project.</p>
<p>2. Then click on Libraries tab, You will see Compile, Run, Compile Tests, Run Tests tabs.</p>
<p>3. Click on Compile tab</p>
<p>4. Click on Add JAR/Folder button at right</p>
<p>5. Then browse and select the jar files or folder which you want to include. Included jar files or libraries will show on  the following box of Compile tab.</p>
<p>6. Click on OK button.</p>
<p>7. Finished.</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Play - a Java framework for web applications]]></title>
<link>http://ksojkotech.wordpress.com/2009/11/23/play-a-java-framework-for-web-applications/</link>
<pubDate>Mon, 23 Nov 2009 16:49:41 +0000</pubDate>
<dc:creator>Karol Sójko</dc:creator>
<guid>http://ksojkotech.wordpress.com/2009/11/23/play-a-java-framework-for-web-applications/</guid>
<description><![CDATA[Not long ago i came across this cool Java framework for building your own web applications. Actually]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Not long ago i came across this cool Java framework for building your own web applications. Actually I think someone posted it at Twitter ( <a title="playframework" href="http://twitter.com/playframework">@playframework</a> ). At first i saw the invitational presentation which you can find <a href="http://vimeo.com/7087610">here</a> or at the framework&#8217;s <a title="playframework" href="http://www.playframework.org/">page</a>.﻿</p>
<p style="text-align:justify;"><a href="http://ksojkotech.wordpress.com/files/2009/11/zrzut_ekranu.png"><img class="aligncenter size-full wp-image-219" style="border:0;" title="playframework" src="http://ksojkotech.wordpress.com/files/2009/11/zrzut_ekranu.png" alt="playframework" width="484" height="213" /></a></p>
<h2 style="text-align:justify;">First Impression</h2>
<p style="text-align:justify;">This looked like fun and was very similar to what I&#8217;m used to in <a title="symfony" href="http://www.symfony-project.org">Symfony</a> based web applications. So I said &#8220;what the hell&#8221; and started off with the tutorial, most of the things seemed obvious and I was pleased with the concept of writing in Java and having the ability to use any Java library I would like to.</p>
<h2 style="text-align:justify;">IDE</h2>
<p style="text-align:justify;">But wait, it gets even cooler. The guys developing this framework prepared some tasks to make your project integrate with your preferable Java IDE. If it&#8217;s <a title="NetBeans" href="http://netbeans.org/">NetBeans</a>, like it was in my case, or <a title="eclipse" href="http://www.eclipse.org/">Eclipse</a> this is a matter of typing one command in your console.</p>
<h2 style="text-align:justify;">All the keys you need to use &#8230;</h2>
<p style="text-align:justify;">The coolest thing about it I think is that while developing a web application in <a title="playframework" href="http://www.playframework.org/">Play</a> you get to use all sorts of solutions like Hibernate, OpenId, JUnit, templates based on Groovy and integrate them easily with your project.</p>
<h2 style="text-align:justify;">Fresh prince</h2>
<p style="text-align:justify;">Although this framework seems to be a reasonably &#8220;fresh&#8221; thing on the web (version 1.0 wright now), it has quite a good looking portfolio to speak for itself. I think this will aspire to be an awesome lite Java framework for all agile projects and web applications. Good luck and congrats to the <a title="playframework" href="http://www.playframework.org/">Play</a> team.</p>
<p style="text-align:center;"><a href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fksojkotech.wordpress.com%2F2009%2F11%2F23%2Fplay-a-java-framework-for-web-applications%2F&#38;linkname=Play%20-%20a%20Java%20framework%20for%20web%20applications%20%23playframework%20%23Java%20%23J2EE"><img class="aligncenter" style="border:0;" src="http://static.addtoany.com/buttons/share_save_256_24.png" alt="Share" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Get Your Blog on Planet NetBeans]]></title>
<link>http://muhammadghazali.wordpress.com/2009/11/23/get-your-blog-on-planet-netbeans/</link>
<pubDate>Mon, 23 Nov 2009 07:47:14 +0000</pubDate>
<dc:creator>muhammadghazali</dc:creator>
<guid>http://muhammadghazali.wordpress.com/2009/11/23/get-your-blog-on-planet-netbeans/</guid>
<description><![CDATA[Just FYI, bagi teman-teman pecinta NetBeans dan suka membuat tulisan-tulisan yang bersangkutan denga]]></description>
<content:encoded><![CDATA[Just FYI, bagi teman-teman pecinta NetBeans dan suka membuat tulisan-tulisan yang bersangkutan denga]]></content:encoded>
</item>
<item>
<title><![CDATA[Websmiths recomanda JavaFX]]></title>
<link>http://myuglycreature.wordpress.com/2009/11/23/websmiths-recomanda-javafx/</link>
<pubDate>Mon, 23 Nov 2009 02:59:29 +0000</pubDate>
<dc:creator>csosoiu</dc:creator>
<guid>http://myuglycreature.wordpress.com/2009/11/23/websmiths-recomanda-javafx/</guid>
<description><![CDATA[Pentru viitorul site, echipa WebSmiths a trebuit sa aleaga o tehnologie care sa fie free in primul r]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Pentru viitorul site, echipa <em>WebSmiths</em> a trebuit sa aleaga o tehnologie care sa fie free in primul rand, si care sa fie cat mai ofertanta in development (cat mai rapid si usor) de aplicatii cat mai &#8220;glossy&#8221; de web. Am ales astfel <strong>JavaFX</strong> (fara sa stim prea multe detalii) ca si platforma <strong>RIA</strong>, din urmatoarele motive:</p>
<ul>
<li><strong>JavaFX</strong> ruleaza pe orice calculator si in orice browser care are instalat Java Runtime Environment</li>
<li>Fiind familiari cu <strong>Java</strong>, si cu IDE-urile <strong>NetBeans </strong>si<strong> Eclipse</strong>, am considerat ca ne-ar ajuta in invatarea acestei noi tehnologii</li>
<li> Este o <strong>tehnologie noua</strong> (aparuta prima data in 2008 si actualizata in iulie 2009) de realizare de aplicatii interactive web si desktop, care concureaza cu <strong>Flash </strong>si <strong>Silverlight</strong></li>
<li>Exista multe <strong>sample codes</strong> consistente cat si tutoriale pe site-ul de la Sun JavaFX, cat sa-ti faca pofta sa inveti o noua tehnologie <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>Dupa o experienta de a realiza cateva tutoriale de pe site-ul oficial, si &#8220;Pet-ul&#8221; (care este momentan o celula <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  draggable, si customizabila ca si culoare) de pe site-ul nostru(care este momentan beta) , am putea enunta cateva plusuri si minusuri pentru tehnologia aleasa:</p>
<p><strong>Pros:</strong></p>
<ul>
<li> Mediul de dezvoltare este foarte prietenos (<strong>Netbeans</strong>) si usor de folosit : se pot realiza functii grafice, precum rotatie, umbra, glow , cat si adaugare de componente (shape-uri, componente de interfatare) din cateva click-uri.</li>
<li>Limbajul este intuitiv in descrierea de animatie si grafica (scripting)</li>
<li>Sample-urile ce vin cu Netbeans, cat si cele de pe site, sunt cat se poate de relevante : prelucrari de imagini, slideshow, animatii, jocul pong implementat, draggable object</li>
<li>Se poate instala pachetul <strong>Production Suite,</strong> care faciliteaza lucrul intre programator si grafician/desenator, prin instalarea de plugin-uri in <strong>Adobe Photoshop si Illustrator</strong>, care convertesc un fisier Adobe (de genul psd), layered, intr-un fisier .fxd JavaFX, script ce descrie fiecare layer si ce imagine trebuie inserata in acestea</li>
<li>Aplicatiile JavaFX pot fi setate ca fiind <strong>Draggable</strong>, ceea ce inseamna ca un astfel de content poate fi tras din browser, si pus pe Desktop, el ruland independent</li>
<li>Se poate integra cod java fara probleme, mai ales daca nu stii cum sa implementezi ceva cu JavaFX Script</li>
<li>Are suport <strong>HttpRequest</strong>, ceea ce ne-a ajutat in lucrul cu serverul</li>
<li> Se poate integra lucrul cu baze de date, prin <strong>jdbc</strong></li>
<li> Este o alternativa pentru <strong>Ajax </strong></li>
</ul>
<p><strong>Cons:</strong></p>
<ul>
<li> Fiind o tehnologie noua, <strong>nu exista raspuns</strong> la orice problema pe Google <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , nici macar pe forumurile de pe site-ul oficial</li>
<li> O aplicatie JavaFX consta in <strong>3 fisiere</strong>, unul jar, si doua jnlp, care trebuie modificate manual pentru a seta calea jar-ului. Ne-am confruntat cu aceasta problema cand am urcat prima data o aplicatie JavaFX pe site si aceasta nu rula, pentru ca nu lua calea corect.</li>
<li> Nu are o <strong>&#8220;masa de lucru&#8221;</strong> grafica, pentru a modifica amplasarea obiectelor grafice cu mouse-ul, asa cum are Adobe Flash, ci totul este descris prin cod</li>
<li> Aplicatia &#8220;Pet&#8221;-ului de pe site, desi are doar 40K, se incarca destul de greu</li>
</ul>
<p>In concluzie, <strong>JavaFX </strong>este o tehnologie demna de incercat macar, avand capabilitati sa inlocuiasca cu brio (si e inca la inceput) aplicatiile<strong> Flash</strong>, ceea ce nu s-a reusit mult timp.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[JSF and Richfaces configuration in Netbeans 6.x]]></title>
<link>http://shunmugakrishna.wordpress.com/2009/11/22/jsf-and-richfaces-configurations-in-netbeans6-x/</link>
<pubDate>Sun, 22 Nov 2009 02:13:45 +0000</pubDate>
<dc:creator>shunmugakrishna</dc:creator>
<guid>http://shunmugakrishna.wordpress.com/2009/11/22/jsf-and-richfaces-configurations-in-netbeans6-x/</guid>
<description><![CDATA[Introduction: JSF (Java Server Faces) is an java based  framework  for developing web application . ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Introduction:</strong></p>
<p>JSF (Java Server Faces) is an java based  framework  for developing web application . Also component library can be easily incorporated in to the JSF Application. I have listed the most used components libraries by the developers in the below.</p>
<ul>
<li><a href="http://livedemo.exadel.com/richfaces-demo/index.jsp" target="_blank">JBoss Richfaces</a></li>
<li><a href="https://woodstock.dev.java.net/Documentation.htm" target="_blank">Woodstock</a></li>
<li><a href="http://www.icefaces.org/main/demos/" target="_blank">Icefaces</a></li>
<li><a href="http://myfaces.apache.org/tomahawk/index.html" target="_blank">MyFaces Tomahawk</a></li>
<li><a href="http://myfaces.apache.org/tobago/index.html" target="_blank">MyFaces Tobaco</a></li>
<li><a href="http://primefaces.prime.com.tr/en/" target="_blank">Prime Faces</a></li>
<li><a href="http://www.jscape.com/webgalileofaces/" target="_blank">WebGalileo Faces</a></li>
<li><a href="http://openfaces.org/" target="_blank">Open Faces</a></li>
<li><a href="http://vaadin.com/home">Vaadin</a></li>
</ul>
<p>But this articles explains the Installation guidelines of Richfaces with JSF in Netbeans 6.x. Additionally learn how to create a hello world application in JSF using Richfaces. I assume that you have the requirements which I had mentioned below</p>
<p><strong>Requirements:</strong></p>
<ul>
<li>IDE – Netbeans 6.x</li>
<li>Tomcat 6.x/Glassfish/Jboss</li>
<li>JDK 1.5 and above</li>
</ul>
<p><strong>Configuration Steps:</strong></p>
<p>Configuring Richfaces with JSF application in Netbeans6.x can be accomplished by 4 easy steps <!--more-->they are,</p>
<ol>
<li>Create the web application project</li>
<li>Required jars(Library)</li>
<li>Deployment descriptor configuration(web.xml)</li>
<li>Hello world JSP page</li>
</ol>
<p><strong>Create the web application project:</strong></p>
<p>First Let us create the web application project in JSF, by clicking the File in the menu and select New Project in the Netbeans6.x, I have stated an image for your clear understandings,</p>
<p><a href="http://shunmugakrishna.files.wordpress.com/2009/11/untitled1.jpg"><img title="Project Creation First Image" src="http://shunmugakrishna.files.wordpress.com/2009/11/untitled1.jpg?w=500&#038;h=342#38;h=342" alt="" width="500" height="342" /></a></p>
<p>Once this window appears choose web application and click next. Now you will have the window which I had mentioned below</p>
<p><a href="http://shunmugakrishna.files.wordpress.com/2009/11/projectname4.jpg"><img title="Project Creation Second Image" src="http://shunmugakrishna.files.wordpress.com/2009/11/projectname4.jpg?w=500&#038;h=342#38;h=342" alt="" width="500" height="342" /></a></p>
<p>In the preceding window, Let us name and location of the project. Since my article explains the creation of  Hello world Application I have given the Name as HelloWorld and then click next. Now you will have the window which I had mentioned below</p>
<p><a href="http://shunmugakrishna.files.wordpress.com/2009/11/chooseserver4.jpg"><img title="Project Creation Third Image" src="http://shunmugakrishna.files.wordpress.com/2009/11/chooseserver4.jpg?w=500&#038;h=342#38;h=342" alt="" width="500" height="342" /></a></p>
<p>In the preceding window, Let us select the server(Your favorite Server) and click next</p>
<p><a href="http://shunmugakrishna.files.wordpress.com/2009/11/framework-choosen1.jpg"><img title="Project Creation Fourth Image" src="http://shunmugakrishna.files.wordpress.com/2009/11/framework-choosen1.jpg?w=500&#038;h=342#38;h=342" alt="" width="500" height="342" /></a></p>
<p>In the preceding window, Let us select the JavaServerFaces framework from the check box and click finish. So far we had created a JSF web application project in Netbeans6.x and next let us configure the Jar files for our web application.</p>
<p><strong>Required jars(Library)</strong></p>
<p><a href="http://www.jboss.org/richfaces/download/archive.html" target="_blank">Click here</a> to download the following required latest richfaces jars</p>
<ul>
<li>richfaces-api-3.3.1.GA.jar</li>
<li>richfaces-impl-3.3.1.GA.jar</li>
<li>richfaces-ui-3.3.1.GA.jar</li>
</ul>
<p><strong>Deployment descriptor(DD) configuration(web.xml):</strong></p>
<pre class="brush: css;">

&#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62;
&#60;web-app version=&#34;2.5&#34; xmlns=&#34;http://java.sun.com/xml/ns/javaee&#34; xmlns:xsi=&#34;http://www.w3.org/2001/XMLSchema-instance&#34; xsi:schemaLocation=&#34;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&#34;&#62;
 &#60;context-param&#62;
 &#60;param-name&#62;com.sun.faces.verifyObjects&#60;/param-name&#62;
 &#60;param-value&#62;false&#60;/param-value&#62;
 &#60;/context-param&#62;
 &#60;context-param&#62;
 &#60;param-name&#62;com.sun.faces.validateXml&#60;/param-name&#62;
 &#60;param-value&#62;true&#60;/param-value&#62;
 &#60;/context-param&#62;
 &#60;context-param&#62;
 &#60;param-name&#62;javax.faces.STATE_SAVING_METHOD&#60;/param-name&#62;
 &#60;param-value&#62;client&#60;/param-value&#62;
 &#60;/context-param&#62;
 &#60;servlet&#62;
 &#60;servlet-name&#62;Faces Servlet&#60;/servlet-name&#62;
 &#60;servlet-class&#62;javax.faces.webapp.FacesServlet&#60;/servlet-class&#62;
 &#60;load-on-startup&#62;1&#60;/load-on-startup&#62;
 &#60;/servlet&#62;
 &#60;servlet-mapping&#62;
 &#60;servlet-name&#62;Faces Servlet&#60;/servlet-name&#62;
 &#60;url-pattern&#62;/faces/*&#60;/url-pattern&#62;
 &#60;/servlet-mapping&#62;
 &#60;session-config&#62;
 &#60;session-timeout&#62;
 30
 &#60;/session-timeout&#62;
 &#60;/session-config&#62;
 &#60;welcome-file-list&#62;
 &#60;welcome-file&#62;index.jsp&#60;/welcome-file&#62;
 &#60;/welcome-file-list&#62;

 &#60;!-- Rich Faces configuration --&#62;

 &#60;!-- Specify the skin name --&#62;
 &#60;context-param&#62;
 &#60;param-name&#62;org.ajax4jsf.SKIN&#60;/param-name&#62;
 &#60;param-value&#62;laguna&#60;/param-value&#62;
 &#60;/context-param&#62;

 &#60;!--Rich faces skin apply for the standard jsf component also--&#62;
 &#60;context-param&#62;
 &#60;param-name&#62;org.richfaces.CONTROL_SKINNING&#60;/param-name&#62;
 &#60;param-value&#62;enable&#60;/param-value&#62;
 &#60;/context-param&#62;

 &#60;filter&#62;
 &#60;display-name&#62;RichFaces Filter&#60;/display-name&#62;
 &#60;filter-name&#62;Ajax4jsf&#60;/filter-name&#62;
 &#60;filter-class&#62;org.ajax4jsf.Filter&#60;/filter-class&#62;
 &#60;/filter&#62;

 &#60;filter-mapping&#62;
 &#60;filter-name&#62;Ajax4jsf&#60;/filter-name&#62;
 &#60;servlet-name&#62;Faces Servlet&#60;/servlet-name&#62;
 &#60;dispatcher&#62;REQUEST&#60;/dispatcher&#62;
 &#60;dispatcher&#62;FORWARD&#60;/dispatcher&#62;
 &#60;dispatcher&#62;INCLUDE&#60;/dispatcher&#62;
 &#60;/filter-mapping&#62;

 &#60;!--End of rich Faces configuration --&#62;

&#60;/web-app&#62;
</pre>
<p>Setup process of Primefaces in Netbeans6.x has been completed and now let us create a hello world page using Richfaces UI components. The following code should be conjured to do so,</p>
<p><strong>Hello world JSP page:</strong></p>
<pre class="brush: css;">

&#60;%--
 Document   : helloWorld
 Created on : Nov 22, 2009, 4:07:09 PM
 Author     : shunmuga
--%&#62;

&#60;%@page contentType=&#34;text/html&#34; pageEncoding=&#34;UTF-8&#34;%&#62;
&#60;!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.01 Transitional//EN&#34;
 &#34;http://www.w3.org/TR/html4/loose.dtd&#34;&#62;

&#60;%@taglib uri=&#34;http://java.sun.com/jsf/html&#34; prefix=&#34;h&#34; %&#62;
&#60;%@taglib uri=&#34;http://java.sun.com/jsf/core&#34; prefix=&#34;f&#34; %&#62;
&#60;%@taglib uri=&#34;http://richfaces.org/a4j&#34; prefix=&#34;a4j&#34; %&#62;
&#60;%@taglib uri=&#34;http://richfaces.org/rich&#34; prefix=&#34;rich&#34;%&#62;

&#60;f:view&#62;
&#60;html&#62;
 &#60;head&#62;
 &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=UTF-8&#34;&#62;
 &#60;title&#62;JSP Page&#60;/title&#62;
 &#60;/head&#62;
 &#60;body&#62;
 &#60;h:form&#62;
 &#60;rich:panel style=&#34;position: relative; width: 400px;height: 150px;&#34;&#62;
 &#60;f:facet name=&#34;header&#34;&#62;
 &#60;h:outputText value=&#34;Hello world &#34;/&#62;

 &#60;/f:facet&#62;
 &#60;h:outputText value=&#34;Welcome to rich faces ...&#34;/&#62;
 &#60;/rich:panel&#62;
 &#60;/h:form&#62;

 &#60;/body&#62;
&#60;/html&#62;
&#60;/f:view&#62;
</pre>
<p>By invoking the above code, we had created a Hello World demo application which contains a Richfaces panel, Now let us have a look on the snap of our Hello World application.</p>
<p><strong>Screen Shot:</strong></p>
<p><a href="http://shunmugakrishna.wordpress.com/files/2009/11/sample2.jpg"><img class="alignnone size-full wp-image-70" title="sample" src="http://shunmugakrishna.wordpress.com/files/2009/11/sample2.jpg" alt="" width="417" height="168" /></a></p>
<p style="text-align:left;">If you find this article is useful to you dont forget to give your valuable comments. Have a joyous day.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[NetBeans IDE]]></title>
<link>http://devplanet.wordpress.com/2009/11/21/netbeans-ide/</link>
<pubDate>Sat, 21 Nov 2009 08:19:09 +0000</pubDate>
<dc:creator>smmdev</dc:creator>
<guid>http://devplanet.wordpress.com/2009/11/21/netbeans-ide/</guid>
<description><![CDATA[NetBeans IDE رایگان و متن باز Netbeans، محیطی است برای برنامه نویسی و توسعه نرم افزار که در آن تمامی]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_31" class="wp-caption alignright" style="width: 248px"><a href="http://devplanet.wordpress.com/files/2009/11/netbeanslogo.png"><img class="size-full wp-image-31" title="NetBeansLogo" src="http://devplanet.wordpress.com/files/2009/11/netbeanslogo.png" alt="NetBeans" width="238" height="129" /></a><p class="wp-caption-text">NetBeans</p></div>
<p>IDE رایگان و متن باز Netbeans، محیطی است برای برنامه نویسی و توسعه نرم افزار که در آن تمامی ابزار های مورد نیاز برای برنامه سازی حرفه ای Desktop، وب و موبایل و نرم افزار های Enterprise  با زبان های Java ، C/C++ و کلیه زبان های برنامه نویسی پویا مانند PHP ، Javascript، Groovy , Ruby موجود است.</p>
<p>این IDE روی کلیه سیستم های عامل قابل نصب بوده و نصب آن بسیار ساده است. از مزایای بسیار خوب این IDE حالت Integrated بودن آن است که در آن تقریبا همه Framework ها و Library های مورد استفاده رایج در Java مانند Hibernate، Strutsو EJB وجود دارد.</p>
<p>برای دانلود که نمی توان از سایت Sun و یا سایت Netbeans استفاده کرد ولی من از طریق Forum سایت Netbeans توانستم به لینکی دسترسی پیدا کنم که مربوط به سایت Netbeans بوده ولی قابل دسترس برای ما می باشد. من چون از سیستم عامل Linux استفاده می کنم لینک قبل از Download را در وبلاگ قرار می دهم:</p>
<p><a title="NetBeans IDE 6.7 M3 Download" href="http://bits.netbeans.org/download/6.7/m3/" target="_blank">دانلود NetBeans IDE 6.7 M3</a></p>
<p><a href="http://bits.netbeans.org/download/6.7/m3/bundles/netbeans-6.7_m3-linux.sh" target="_blank">دانلود برای Linux</a></p>
<p><a href="http://bits.netbeans.org/download/6.7/m3/bundles/netbeans-6.7_m3-windows.exe" target="_blank">دانلود برای Windows</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Pensando en Java otra vez: ¿Cómo configurar Netbeans para desarrollar con JSF y RichFaces en Ubuntu?]]></title>
<link>http://enfoquevirtual.wordpress.com/2009/11/20/pensando-en-java-otra-vez-%c2%bfcomo-configurar-netbeans-para-desarrollar-con-jsf-y-richfaces-en-ubuntu/</link>
<pubDate>Fri, 20 Nov 2009 05:31:11 +0000</pubDate>
<dc:creator>alatrista</dc:creator>
<guid>http://enfoquevirtual.wordpress.com/2009/11/20/pensando-en-java-otra-vez-%c2%bfcomo-configurar-netbeans-para-desarrollar-con-jsf-y-richfaces-en-ubuntu/</guid>
<description><![CDATA[Netbeans 6.7 En estos últimos días la verdad que he tenido que volver a desarrollar en Java después ]]></description>
<content:encoded><![CDATA[Netbeans 6.7 En estos últimos días la verdad que he tenido que volver a desarrollar en Java después ]]></content:encoded>
</item>
<item>
<title><![CDATA[Access to Tomcat server has not been authorized]]></title>
<link>http://pandazen.wordpress.com/2009/11/19/access-to-tomcat-server-has-not-been-authorized/</link>
<pubDate>Thu, 19 Nov 2009 09:24:56 +0000</pubDate>
<dc:creator>pandazen</dc:creator>
<guid>http://pandazen.wordpress.com/2009/11/19/access-to-tomcat-server-has-not-been-authorized/</guid>
<description><![CDATA[For the first time, when I try to deploy a project using Netbeans, i got this message, &nbsp; Deploy]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>For the first time, when I try to deploy a project using Netbeans, i got this message,</p>
<p>&#160;</p>
<div id="_mcePaste">Deployment error:</div>
<div id="_mcePaste">Access to Tomcat server has not been authorized. Set the correct username and password with the &#8220;manager&#8221; role in the Tomcat customizer in the Server Manager.</div>
<div id="_mcePaste">See the server log for details.</div>
<div></div>
<div>After I googling, the solution,</div>
<div>- edit the content of C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\conf\tomcat-users.xml file.</div>
<div>-make sure you have role = manager and user that have manager role, like this</div>
<div></div>
<div>&#60;tomcat-users&#62;<br />
&#60;role rolename=&#8221;manager&#8221;/&#62;<br />
&#60;role rolename=&#8221;standard&#8221;/&#62;<br />
&#60;user username=&#8221;admin&#8221; password=&#8221;pwd&#8221; roles=&#8221;standard,manager&#8221;/&#62;<br />
&#60;/tomcat-users&#62;</div>
<div></div>
<div>-save the file and restart Tomcat server</div>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[10 Very useful web design and web programming tools]]></title>
<link>http://kahrn.wordpress.com/2009/11/18/10-very-useful-webdesign-and-web-programming-tools/</link>
<pubDate>Wed, 18 Nov 2009 20:28:31 +0000</pubDate>
<dc:creator>kahrn</dc:creator>
<guid>http://kahrn.wordpress.com/2009/11/18/10-very-useful-webdesign-and-web-programming-tools/</guid>
<description><![CDATA[Web development today Web development today isn&#8217;t just HTML editing or basic php scripts. Web ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Web development today</strong></p>
<p>Web development today isn&#8217;t just HTML editing or basic php scripts. Web development and programming today is usually achieved with a wide set of tools &#8212; any popular website around today uses a wide set of tools. For example,</p>
<ul>
<li>reddit.com &#8212; reddit uses <a href="http://python.org" target="_blank">Python</a> and <a href="http://en.wikipedia.org/wiki/PostgreSQL" target="_blank">PostgreSQL</a>, which spit out html (of xhtml syntax), javascript and <a href="http://www.w3schools.com/css/css_intro.asp" target="_blank">CSS</a>.</li>
<li>slashdot.com &#8212; slashdot.com uses Perl and MySQL, sitting on top of Apache.</li>
<li>microsoft.com &#8212; microsoft.com uses a combination of ASP.NET, running on top of IIS. The output is html (xhtml syntax), css and javascript.</li>
</ul>
<h2>The tools</h2>
<h3>Web Developer / Firefox Extension</h3>
<p>Firefox Web Developer Extension is a useful tool for being able to disable various features on a page, manage cookies, view specific css information using a picker tool for any specific elements and being able to manager userstyles. You can also manage images and various other tools including the ability to view generated source.</p>
<p>You can download it at <a href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Mozilla Add-ons</a></p>
<h3>ColorZilla / Firefox Extension</h3>
<p><a href="http://kahrn.wordpress.com/files/2009/11/blogwebdevcolorzilla.png"><img src="http://kahrn.wordpress.com/files/2009/11/blogwebdevcolorzilla.png?w=300" alt="" title="Colorzilla Firefox Extension" width="125" height="119" class="alignright size-medium wp-image-246" /></a>ColorZilla is an extension to firefox that adds a color picker tool to the browser UI. It is then possible to return information for a given pixel on a website.</p>
<p>You can download it at the <a href="https://addons.mozilla.org/en-US/firefox/addon/271" target="_blank">Mozilla Add-ons</a> site.</p>
<h3>MeasureIT / Firefox Extension</h3>
<p><a href="http://kahrn.wordpress.com/files/2009/11/blogwebdevmeasureit.png"><img src="http://kahrn.wordpress.com/files/2009/11/blogwebdevmeasureit.png?w=150" alt="" title="MeasureIT Firefox Extension" width="150" height="83" class="alignright size-thumbnail wp-image-250" /></a>The measureIT Firefox extension adds a measuring tool that appears as an overlay on any webpage you need to use it on.</p>
<p>You can download measureIT at the <a href="https://addons.mozilla.org/en-US/firefox/addon/539" target="_blank">Mozilla Add-ons</a> site</p>
<h3>DOM Inspector / Firefox Extension</h3>
<p><a href="http://kahrn.wordpress.com/files/2009/11/blogwebdevdominspector.png"><img src="http://kahrn.wordpress.com/files/2009/11/blogwebdevdominspector.png?w=150" alt="" title="Firefox DOM Inspector" width="150" height="112" class="alignright size-thumbnail wp-image-253" /></a>The Document Object Model Inspector is a tool to inspect the DOM of any webpage. It often comes with the default install of firefox as an option.</p>
<p>You can download DOM Inspector at <a href="https://developer.mozilla.org/en/dom_inspector" target="_blank">https://developer.mozilla.org/en/dom_inspector</a></p>
<h3>Firebug / Firefox Extension</h3>
<p>Firebug is an extension which is useful for editing css, html or javascript elements within a webpage.</p>
<p>You can download Firebug at the <a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">Mozilla Add-ons</a> site.</p>
<h3>Google page speed / Firebug Extension</h3>
<p><a href="http://kahrn.wordpress.com/files/2009/11/blogwebdevgooglepagespeed11.png"><img src="http://kahrn.wordpress.com/files/2009/11/blogwebdevgooglepagespeed11.png?w=150" alt="" title="Google web page speed for Firebug" width="150" height="116" class="alignright size-thumbnail wp-image-255" /></a>Google page speed is a Firebug extension that is able to give you a wealth of information on the download speeds and execution time of your website. It can also give you tips on how to reduce overheads and improve code.</p>
<p>You can download the Google page speed Firebug extension at the <a href="http://code.google.com/speed/page-speed/download.html" target="_blank">google page speed</a> site.</p>
<h3>Notepad++</h3>
<p><a href="http://kahrn.wordpress.com/files/2009/11/blogwebdevnotepadplusplus1.png"><img src="http://kahrn.wordpress.com/files/2009/11/blogwebdevnotepadplusplus1.png?w=150" alt="" title="Notepad++" width="150" height="115" class="alignright size-thumbnail wp-image-259" /></a>Notepad++ is a tool I often use when working on smaller projects where I do not need a full IDE.</p>
<blockquote><p><strong>Notepad++</strong> is a free (as in &#8220;free speech&#8221; and also as in &#8220;free beer&#8221;) source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GPL</a> License.<br />
Based on a powerful editing component <a href="http://www.scintilla.org/" target="_blank">Scintilla</a>, Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size.</p></blockquote>
<p>You can download it over at the <a href="http://notepad-plus.sourceforge.net/uk/site.htm">notepad++ sourceforge</a> project site.</p>
<h3>Netbeans with PHP Development plugin</h3>
<p><a href="http://kahrn.wordpress.com/files/2009/11/blogwebdevnetbeans.png"><img src="http://kahrn.wordpress.com/files/2009/11/blogwebdevnetbeans.png?w=150" alt="" title="Netbeans with PHP Plugin" width="150" height="116" class="alignright size-thumbnail wp-image-260" /></a>Netbeans is a Java IDE developed by Sun. It supports various plugins &#8212; one being PHP development extensions. When working on large projects, Netbeans proves useful.</p>
<p>You can download it at the <a href="http://netbeans.org/">Netbeans</a> site.</p>
<h3>Visual SVN</h3>
<p>VisualSVN is a SVN server for Windows. It is quick and easy to use and requires little previous knowledge of server administration or svn experience, but it can also be quite powerful.</p>
<p>You can download it at the <a href="http://www.visualsvn.com/server/download/">VisualSVN Server</a> site. It is free for both personal and commercial use.</p>
<h3>Tortoise SVN</h3>
<p>TortoiseSVN is an SVN client that interfaces with Windows Explorer to interface with SVN.</p>
<p>You can download it at the <a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a> site.</p>
<h3>XAMPP</h3>
<p>XAMPP is a quick and easy way to get an apache server, MySQL daemon and PHP all running on Windows for a development environment. It also supports an FTP server and a few other things.</p>
<p>You can download it at the <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a> site.</p>
<p><strong>Forums</strong><br />
You can come and discuss web development, get website reviews and also SEO information at the <a href="http://tdlabs.co.uk/forums">Transcendental Labs</a> forum.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Environment Consistency - PHP (Apple Macintosh)]]></title>
<link>http://devinj2ee.wordpress.com/2009/11/18/environment-consistency-php/</link>
<pubDate>Wed, 18 Nov 2009 18:11:52 +0000</pubDate>
<dc:creator>Thomas Campbell</dc:creator>
<guid>http://devinj2ee.wordpress.com/2009/11/18/environment-consistency-php/</guid>
<description><![CDATA[We need to make our life easier by creating consistency for every machine. What this means is every ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>We need to make our life easier by creating consistency for every machine. What this means is every machine you try to use, whether it be yours or your colleagues, the environment will be the same when you sit down to help them with something. This is very important if you’re a Development Manager and you’re trying to help one of your staff.</p>
<p>This is one of several <a title="Environment Consistency" href="http://wp.me/pED03-D" target="_blank">posts</a> in regards to this subject.</p>
<p>Where I work, I&#8217;m asked to work on other technologies all the time.  My main focus is to work in JAVA/J2EE but sometimes I have to work in other programming languages.  PHP is one of those languages.</p>
<p>Today we&#8217;re going to set up our Apple Macintosh for working and debugging PHP in NetBeans.  I&#8217;ll show you how to set up PHP for Windows use in a later post.</p>
<p><em>In this file I&#8217;m going to refer to &#8220;&#60;username&#62;&#8221;.  This will be your username on your laptop similar to how mine is &#8220;thcampbell&#8221;</em></p>
<p>If you didn&#8217;t know it already, your Apple Macintosh already has an Apache HTTP web server on it.  You can get to it by going to &#8220;System Preferences&#8221; and then clicking on &#8220;Sharing&#8221;.  From there you&#8217;ll see something that says &#8220;Web Sharing&#8221; and it is probably off.</p>
<div id="attachment_214" class="wp-caption aligncenter" style="width: 680px"><img class="size-full wp-image-214" title="Web Sharing on Apple" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-10-17-18-am.png" alt="Web Sharing on Apple" width="670" height="550" /><p class="wp-caption-text">Web Sharing on Apple</p></div>
<p>Click on the check box next to the Web Sharing line to turn it on:</p>
<div id="attachment_215" class="wp-caption aligncenter" style="width: 679px"><img class="size-full wp-image-215" title="Web Sharing on Apple" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-10-17-35-am.png" alt="Web Sharing on Apple" width="669" height="552" /><p class="wp-caption-text">Web Sharing on Apple</p></div>
<p>After you&#8217;ve done that, click on the link that&#8217;s presented on this page or go to &#8220;http://localhost/~&#60;username&#62;&#8221; in your favorite browser.  You should see a screen like this:</p>
<div id="attachment_216" class="wp-caption aligncenter" style="width: 843px"><img class="size-full wp-image-216" title="Apache HTTP Web Server on Apple" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-10-19-39-am.png" alt="Apache HTTP Web Server on Apple" width="833" height="819" /><p class="wp-caption-text">Apache HTTP Web Server on Apple</p></div>
<p>Ok, we have the server running and believe it or not, PHP is <em>also</em> on your Apple Macintosh already.  We just have to enable it.  So start up a &#8220;Terminal&#8221; session and cd to the &#8220;/etc/apache2&#8243; directory.  Then execute (via sudo) the vi command to edit the file &#8220;httpd.conf&#8221;:</p>
<div id="attachment_218" class="wp-caption aligncenter" style="width: 740px"><img class="size-full wp-image-218" title="Edit httpd.conf using sudo/vi" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-06-40-pm.png" alt="Edit httpd.conf using sudo/vi" width="730" height="341" /><p class="wp-caption-text">Edit httpd.conf using sudo/vi</p></div>
<p>After you&#8217;re editing the file, find the line that looks like the following:</p>
<blockquote><p>#LoadModule php5_module libexec_apache2/libphp5.so</p></blockquote>
<p>and uncomment it (remove the # sign).  When you&#8217;re done the file will look like the following:</p>
<p style="text-align:center;">
<div id="attachment_217" class="wp-caption aligncenter" style="width: 643px"><img class="size-full wp-image-217 " title="Editing LoadModule line" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-10-23-09-am.png" alt="Editing LoadModule line" width="633" height="439" /><p class="wp-caption-text">Editing LoadModule line</p></div>
<p>Save it!</p>
<p>Now we need to restart our Apache HTTP web server.  Easy enough, go back to &#8220;System Preferences&#8221; and then &#8220;Sharing&#8221;, from there uncheck the check box for &#8220;Web Sharing&#8221; and then check it again.  This will stop and restart your server.</p>
<p>But how do we know PHP is running properly?</p>
<p>Go to your &#8220;Terminal&#8221; session and &#8220;cd ${HOME}/Sites&#8221;.  This will be the &#8220;Sites&#8221; directory under your username on the system.  In this directory create a file (using vi) called &#8220;phpinfo.php&#8221;.  In this file put the following line</p>
<blockquote><p>&#60;?php phpinfo(); ?&#62;</p></blockquote>
<p>Your file will look like this:</p>
<div id="attachment_219" class="wp-caption aligncenter" style="width: 738px"><img class="size-full wp-image-219" title="phpinfo.php" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-13-37-pm.png" alt="phpinfo.php" width="728" height="340" /><p class="wp-caption-text">phpinfo.php</p></div>
<p>Save it.</p>
<p>Now go to your browser at &#8220;http://localhost/~&#60;username&#62;/phpinfo.php&#8221; and you should see a screen that looks like the following:</p>
<div id="attachment_220" class="wp-caption aligncenter" style="width: 989px"><img class="size-full wp-image-220" title="http://localhost/~&#60;username&#62;/phpinfo.php" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-10-25-59-am.png" alt="http://localhost/~&#60;username&#62;/phpinfo.php" width="979" height="794" /><p class="wp-caption-text">http://localhost/~/phpinfo.php</p></div>
<p>The next thing we need to do is set up PHP so that we can debug our software easily.  We do this by using Xdebug.  Get the Xdebug source files from <a title="XDebug Download Site" href="http://www.xdebug.org/download.php" target="_blank">http://www.xdebug.org/download.php</a>.  You want to get the latest source and download it to your machine.  After you&#8217;ve done that, go to a &#8220;Terminal&#8221; session and go to the directory where you downloaded the files.  (More than likely ${HOME}/Downloads)  Now run gunzip and tar on the file like so:</p>
<div id="attachment_221" class="wp-caption aligncenter" style="width: 823px"><img class="size-full wp-image-221" title="gunzip and tar xvf xdebug" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-24-12-pm.png" alt="gunzip and tar xvf xdebug" width="813" height="243" /><p class="wp-caption-text">gunzip and tar xvf xdebug</p></div>
<p>After you&#8217;ve done that, you need to cd into the directory where the sources are kept.  In the case of the file I downloaded they are in &#8220;xdebug-2.0.5&#8243; and from here I&#8217;m going to run &#8220;sudo phpize&#8221; and &#8220;./configure &#8211;enable-Xdebug&#8221; like so:</p>
<div id="attachment_222" class="wp-caption aligncenter" style="width: 823px"><img class="size-full wp-image-222" title="phpize and configure of xdebug" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-28-02-pm.png" alt="phpize and configure of xdebug" width="813" height="242" /><p class="wp-caption-text">phpize and configure of xdebug</p></div>
<p>and finally I&#8217;m going to run make:</p>
<div id="attachment_223" class="wp-caption aligncenter" style="width: 822px"><img class="size-full wp-image-223" title="make xdebug" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-28-46-pm.png" alt="make xdebug" width="812" height="241" /><p class="wp-caption-text">make xdebug</p></div>
<p>Now we should have a file in the modules subdirectory called xdebug.so:</p>
<div id="attachment_224" class="wp-caption aligncenter" style="width: 821px"><img class="size-full wp-image-224" title="xdebug.so" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-30-01-pm.png" alt="xdebug.so" width="811" height="241" /><p class="wp-caption-text">xdebug.so</p></div>
<p>We need to copy this file to our extensions directory.  Where is that at?  We go back to our phpinfo program that we ran in the browser at &#8220;http://localhost/~&#60;username&#62;/phpinfo.php&#8221;.  The information displayed in the browser should have a section labeled Core which should have an entry for &#8220;extension_dir&#8221;.</p>
<div id="attachment_225" class="wp-caption aligncenter" style="width: 837px"><img class="size-full wp-image-225" title="Core and extension_dir in phpinfo.php" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-31-56-pm.png" alt="Core and extension_dir in phpinfo.php" width="827" height="882" /><p class="wp-caption-text">Core and extension_dir in phpinfo.php</p></div>
<p>We want to put the &#8220;xdebug.so&#8221; file in this directory.  We&#8217;ll do this using &#8220;sudo&#8221; like so:</p>
<div id="attachment_226" class="wp-caption aligncenter" style="width: 821px"><img class="size-full wp-image-226" title="Move xdebug.so into extension_dir" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-34-04-pm.png" alt="Move xdebug.so into extension_dir" width="811" height="242" /><p class="wp-caption-text">Move xdebug.so into extension_dir</p></div>
<p>We now need to edit our &#8220;php.ini&#8221; file.  But where is it?  Well PHP doesn&#8217;t have to have a php.ini file to run and on our Apple Macintosh there&#8217;s not one.  If you again, look at the phpinfo program that we ran in the browser at &#8220;http://localhost/~username/phpinfo.php&#8221; you&#8217;ll notice a line that says &#8220;Configuration File (php.ini) Path&#8221;.  Mine says &#8220;/etc&#8221; and if you look in &#8220;/etc&#8221; for &#8220;php.ini&#8221; the file is not there.  But there is a file called &#8220;php.ini.default&#8221;.  Just copy it (using &#8220;sudo&#8221;) and then we&#8217;ll edit it (using &#8220;sudo vi&#8221;) like so:</p>
<div id="attachment_227" class="wp-caption aligncenter" style="width: 823px"><img class="size-full wp-image-227" title="cp php.ini.default to php.ini" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-38-36-pm.png" alt="cp php.ini.default to php.ini" width="813" height="242" /><p class="wp-caption-text">cp php.ini.default to php.ini</p></div>
<p>At the bottom of this file we want to put the following lines:</p>
<blockquote><p>; Xdebug config for Mac OS X and NetBeans IDE<br />
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so<br />
xdebug.remote_enable=on<br />
xdebug.remote_handler=dbgp<br />
; xdebug.remote_mode=req<br />
xdebug.remote_host=localhost<br />
xdebug.remote_port=9000<br />
; xdebug.idekey=</p></blockquote>
<p>and our file will look like this (the lines we added are highlighted):</p>
<div id="attachment_228" class="wp-caption aligncenter" style="width: 822px"><img class="size-full wp-image-228" title="php.ini file edited with xdebug information" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-39-49-pm.png" alt="php.ini file edited with xdebug information" width="812" height="244" /><p class="wp-caption-text">php.ini file edited with xdebug information</p></div>
<p>Now, we need to stop and restart our server again.  Again, this is done by going to &#8220;System Preferences&#8221;, &#8220;Sharing&#8221; and unchecking and checking the box next to &#8220;Web Sharing&#8221;.</p>
<p>Now, how do we know if our debug mode is ready?  Again, we go to &#8220;http://localhost/~&#60;username&#62;/phpinfo.php&#8221; and in this file there should be a section title &#8220;XDebug&#8221; like so:</p>
<div id="attachment_229" class="wp-caption aligncenter" style="width: 844px"><img class="size-full wp-image-229" title="XDebug in phpinfo.php" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-42-11-pm.png" alt="XDebug in phpinfo.php" width="834" height="588" /><p class="wp-caption-text">XDebug in phpinfo.php</p></div>
<p>Ok, now we&#8217;ve got PHP running, in debug mode, but we want to be able to create and debug programs in NetBeans.  This is pretty simple to do as well, let&#8217;s do a test.</p>
<p>Click on File and New Project and the following dialog box should come up</p>
<div id="attachment_230" class="wp-caption aligncenter" style="width: 733px"><img class="size-full wp-image-230" title="New PHP Project" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-15-44-pm.png" alt="New PHP Project" width="723" height="503" /><p class="wp-caption-text">New PHP Project</p></div>
<p>Click Next and you may see the following dialog box as well:</p>
<div id="attachment_231" class="wp-caption aligncenter" style="width: 732px"><img class="size-full wp-image-231" title="Activating PHP" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-10-30-32-am.png" alt="Activating PHP" width="722" height="500" /><p class="wp-caption-text">Activating PHP</p></div>
<p>I had some problems with this on the Apple Macintosh (it just stayed on this screen).  Give it a few minutes and then hit the &#8220;&#60; Back&#8221; button.  Everything seemed to be OK for me when I did this.</p>
<p>So, now (if we had to, we clicked on File and New Project again) we should see the following dialog box where we will enter &#8220;TestPHPProject&#8221; in as the &#8220;Project Name&#8221; and &#8220;/NetBeansProjects/TestPHPProject&#8221; as the &#8220;Sources Folder:&#8221;</p>
<div id="attachment_232" class="wp-caption aligncenter" style="width: 733px"><img class="size-full wp-image-232" title="TestPHPProject" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-46-07-pm.png" alt="TestPHPProject" width="723" height="499" /><p class="wp-caption-text">TestPHPProject</p></div>
<p>Now, click &#8220;Next &#62;&#8221; and you&#8217;ll see this dialog box:</p>
<div id="attachment_233" class="wp-caption aligncenter" style="width: 710px"><img class="size-full wp-image-233" title="PHP Project Configuration" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-48-31-pm.png" alt="PHP Project Configuration" width="700" height="394" /><p class="wp-caption-text">PHP Project Configuration</p></div>
<p>Change the Project URL to be &#8220;http://localhost/~&#60;username&#62;/TestPHPProject&#8221;</p>
<p>Click on the &#8220;Copy files from Sources Folder to another location&#8221; button and then click the &#8220;Browse&#8221; button.  You want to browse to &#8220;/Users/&#60;username&#62;/Sites&#8221;.  The resulting dialog box will look like the following:</p>
<div id="attachment_234" class="wp-caption aligncenter" style="width: 710px"><img class="size-full wp-image-234" title="TestPHPProject Edited Configuration" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-50-33-pm.png" alt="TestPHPProject Edited Configuration" width="700" height="396" /><p class="wp-caption-text">TestPHPProject Edited Configuration</p></div>
<p>After that&#8217;s done, NetBeans will open up the &#8220;index.php&#8221; file for your Project.  Put the following line</p>
<blockquote><p>phpinfo();</p></blockquote>
<p>in this file so that it looks like this:</p>
<div id="attachment_235" class="wp-caption aligncenter" style="width: 776px"><img class="size-full wp-image-235" title="index.php in NetBeans with phpinfo();" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-52-52-pm.png" alt="index.php in NetBeans with phpinfo();" width="766" height="537" /><p class="wp-caption-text">index.php in NetBeans with phpinfo();</p></div>
<p>Now, you&#8217;re ready to go.  In NetBeans, click on &#8220;Debug&#8221; and then &#8220;Debug Project (TestPHPProject)&#8221; and the program should start and it will stop at the first line like so:</p>
<div id="attachment_236" class="wp-caption aligncenter" style="width: 775px"><img class="size-full wp-image-236" title="NetBeans index.php file being debugged" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-12-at-12-55-54-pm.png" alt="NetBeans index.php file being debugged" width="765" height="537" /><p class="wp-caption-text">NetBeans index.php file being debugged</p></div>
<p>You can now step through this file or any other PHP file you create.</p>
<p>I&#8217;d like to credit the following articles that I used for research in regards to creating this post:</p>
<p><a title="Configuring PHP, Apache, MySQL, and Xdebug for PHP development in MAC OS X" href="http://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html" target="_blank">Configuring PHP, Apache, MySQL, and Xdebug for PHP development in MAC OS X</a></p>
<p><a title="Debugging PHP Source Code in the NetBeans IDE for PHP Editor" href="http://netbeans.org/kb/docs/php/debugging.html" target="_blank">Debugging PHP Source Code in the NetBeans IDE for PHP Editor</a></p>
<p><a title="Using Apache and PHP on Mac OS X" href="http://www.devarticles.com/c/a/Apache/Using-Apache-and-PHP-on-Mac-OS-X/" target="_blank">Using Apache and PHP on Mac OS X</a></p>
<p><a title="Working with PHP 5 in Mac OS X 10.5 (Leopard)" href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/" target="_blank">Working with PHP 5 in Mac OS X 10.5 (Leopard)</a></p>
<p><a title="Where is php.ini under MAC OSX" href="http://www.wellho.net/forum/Writing-PHP/Where-is-php-ini-under-Mac-OSX.html" target="_blank">Where is php.ini under MAC OSX</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java ME EA on MAC]]></title>
<link>http://trinisoftinc.wordpress.com/2009/11/18/java-me-ea-on-mac/</link>
<pubDate>Wed, 18 Nov 2009 14:20:46 +0000</pubDate>
<dc:creator>Akintayo Olusegun</dc:creator>
<guid>http://trinisoftinc.wordpress.com/2009/11/18/java-me-ea-on-mac/</guid>
<description><![CDATA[This is my experience with the JavaME EA for MAC OS. I am using 10.5.8(Leopard). At first it was a G]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This is my experience with the JavaME EA for MAC OS. I am using 10.5.8(Leopard).</p>
<p>At first it was a God sent that we now have a tool from sun. Using Netbeans and mpp-sdk kinda sucks, but it was all I have got. After the download, which went without incidents, I ran the EA for the first time and it blew all the whistles and knock all the bells. I immediately opened a sample app and run it, It ran well without incidents. Then out of the blue, I got the first error.</p>
<p>When trying to run ANY application, it will return with an exception/error message that it can not connect to device 0, or any of the devices I used at that. I googled and all the responses were not helping me at all. At last I did the unthinkable, guess what that is? I restarted my MAC. I have not done that in a looooooong while so it took some time before the system actually finished the restarting process and voila, my EA was back online. But not for long!</p>
<p>Next, EA takes it upon itself to just DIE for no reason. I run an app, and the next thing is the EA has stopped working un-expectedly. I also tried googling, but no result. So I started fooling around. I went to tools and refresh the SDK under platforms and voila again, EA stops dying. But again, that was not all.</p>
<p>Next I noticed that after running an app for about 6 to 10 times, EA will stop working saying it has run of memory. I tried to close all applications while running EA but, duh! after about 6 to 10, sometimes 15 runs, it will stop working with the same out of memory error. The annoying thing is, it won’t even quit. I will have to use force quit(windows version of CTRL + ALT + DEL).</p>
<p>I am yet to solve this problem, and I don’t think I will ever solve it until the next version comes out. Looking back however to the days of mpp-sdk and Netbeans, I think I still prefer the EA, At least I can do Bluetooth without having to buy some licence from some people.</p>
<p>All in all, I give Sun +1 on this. It is really something all MAC developers have been asking for since time immemorial. All that remains is perfection. And if I remember correctly, in software, attaining perfection is an eternal process. No software is perfect until it is dead.</p>
<p>One thing I will give kudos to the EA guys for again is that, all projects created on Netbeans also works perfectly on EA, be it from windows or linux. +1 to you guys again on that.</p>
<p>Finally, EA is a good product. If you are a MAC J2ME developer, you will enjoy this IDE.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[NetBeans mit mehr RAM starten]]></title>
<link>http://frickelblog.wordpress.com/2009/11/16/netbeans-mit-mehr-ram-starten/</link>
<pubDate>Mon, 16 Nov 2009 19:34:19 +0000</pubDate>
<dc:creator>frickelblog</dc:creator>
<guid>http://frickelblog.wordpress.com/2009/11/16/netbeans-mit-mehr-ram-starten/</guid>
<description><![CDATA[Gerade eine Frage auf der NetBeans Mailinglist die Frage gelesen, wie man NetBeans mit mehr Ram star]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Gerade eine Frage auf der <a href="http://netbeans.org/community/lists/">NetBeans Mailinglist</a> die Frage gelesen, wie man NetBeans mit mehr Ram starten könne.</p>
<p>Eine <a href="http://www.google.de/search?q=netbeans+ram+Xmx">Google-Anfrage</a> später die <a href="http://www.jguru.com/faq/view.jsp?EID=1303659">Antwort</a>:<br />
Eine entsprechende Einstellung lässt sich in  [NetBeans Installationspfad]/etc/netbeans.conf vornehmen.<br />
Aber .. welche Größe hat NetBeans denn nun per Default? Ein Blick in eben genannte Conf zeigt:</p>
<pre># Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.
</pre>
<p>Aha. [Userverzeichnis]/.netbeans/6.7/var/log/messages.log soll also Auskunft geben &#8211; und tut es auch. Dort steht bei mir (unter anderem)  &#8220;-Xmx407m&#8221;.</p>
<p>Fragt sich, wann dieser Wert gesetzt wird. Zum Installationszeitpunkt hatte ich 1024Mb Ram verbaut &#8211; später auf 2048Mb erweitert. Auf meinem Arbeitsrechner (2048Mb Ram) steht der Wert auf &#8220;-Xmx409m&#8221; &#8211; also fast gleich. Die Vermutung liegt nahe, dass die Einstellung beim Start automatisch angepasst wird.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Mempercepat Proses Load Data di Java Menggunakan Cache]]></title>
<link>http://eecchhoo.wordpress.com/2009/11/15/mempercepat-proses-load-data-di-java-menggunakan-cache/</link>
<pubDate>Sun, 15 Nov 2009 12:38:24 +0000</pubDate>
<dc:creator>Eko Kurniawan Khannedy</dc:creator>
<guid>http://eecchhoo.wordpress.com/2009/11/15/mempercepat-proses-load-data-di-java-menggunakan-cache/</guid>
<description><![CDATA[Motivasi sebelum saya bahas tentang mempercepat proses load data di java menggunakan cache, saya aka]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h2>Motivasi</h2>
<p>sebelum saya bahas tentang mempercepat proses load data di java menggunakan cache, saya akan bahas dahulu tentang apa saja manfaat yang akan didapat setelah mambaca artike ini. secara sederhana anda akan mengetahui :</p>
<ul>
<li>cara mempercepat proses load menggunakan cache.</li>
<li>bagaimana cara kerja cache sehingga dapat mempercepat proses laod data.</li>
<li>cara menerapkan cache pada sistem anda.</li>
<li>framework yang dapat digunakan sebagai cache.</li>
</ul>
<p>sekarang jika anda sekiranya tidak tertarik dengan manfaat artikel ini, anda bisa tidak melanjutkan membacanya, namun jika tertarik anda dapat meneruskan untuk membaca artikel ini.<!--more--></p>
<h2>Apa itu Cache?</h2>
<p>sebelum tahu bagaimana cara mempercepat proses load data menggunakan cache, tentulah anda harus mengetahui dulu tentang apa itu cache.</p>
<blockquote><p><em><span style="color:#ff0000;"><span style="color:#3366ff;">Cache</span> adalah kumpulan dari duplikasi data yang disimpan di suatu media. dimana data orisinil dari duplikasi tersebut membutuhkan biaya yang mahal untuk diakses, seperti waktu yang lama, ataupun proses yang memakan resource processor banyak.</span></em></p></blockquote>
<p>sekarang yang jadi pertanyaan, data yang bagaimana yang bagus untuk dibuat cache-nya, dan dimanakan kita harus menyimpan cache tersebut?</p>
<p>sudah tidak bisa dipungkiri lagi jika setiap sistem pasti membutuhkan media penyimpanan, dan kebanyakan media penyimpanan tersebut adalah disk. misal seperti database, ataupun file biasa. ataupun biasanya sistem menyimpan data dalam memori. biasanya data yang disimpan dalam memori itu bukanlah data yang bersifat permanen, biasanya jika datanya bersifat permanen, maka diharuskan disimpan dalam disk.</p>
<p>anggap saja saat ini kita sedang menggunakan sistem yang berbasis database. artinya kita menggunakan database sebagai media penyimpan datanya. dan hal ini berarti data tersebut disimpan dalam disk. (kecuali menggunakan database berbasis memori seperti HSQLDB, anggap saja kita sekarang menggunakan database yang datanya disimpan dalam disk).</p>
<p>perlu diketahui juga kalo proses disk io yang dilakukan oleh database, baik itu ketika menyimpan data ataupun meload data bukanlah proses yang gampang. proses tersebut meruapkan proses yang mahal. kenapa bisa dibilang proses yang mahal? karena ada proses yang lebih murah dari proses tersebut <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>yup! proses yang lebih murah tersebut adalah memori io, yang artinya pengaksesan data dari disk itu lebih mahal dari pada pengaksesan data dari memori. mengakses data dari file akan membutuhkan waktu yang lama dimandingkan mengakses data dati memori. dan mengakses data dari disk membutuhkan resource processor lebih besar dari pada mengakses data dari memori. (<span style="color:#ff0000;">makanya harga memori lebih mahal dari harga hardisk <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </span> )</p>
<blockquote><p>gak percaya kalo memori lebih cepat dari disk? coba tanya ke orang teknik komputer <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p></blockquote>
<p>sekarang yang menjadi pertanyaannya adalah, <strong>bagaimana cara kita meyimpan cache dalam memori?</strong></p>
<h2>Arsitektur Menggunakan Cache</h2>
<p>sebelum menggunakan cache, biasanya kita membuat sistem berbasis database seperti dibawah ini :</p>
<p style="text-align:center;"><img class="aligncenter" src="http://eecchhoo.files.wordpress.com/2009/11/before.png?w=500" alt="Before" /></p>
<p>dimana biasanya aplikasi langsung terkoneksi ke database, sehingga proses insert, update, delete, dan select akan langsung dilakukan ke database. namun seperti yang dibahas sebelumnya, karena proses disk io dalam database itu prosesnya cukup mahal, maka adabaiknya kita menggunakan cache untuk menggulangi masalah tersebut. dimana kita akan menggunakan memori sebagai media penyimpanan cache tersebut. sehingga arsitekturnya akan seperti ini :</p>
<p style="text-align:center;"><img class="aligncenter" src="http://eecchhoo.files.wordpress.com/2009/11/after.png?w=500" alt="After" /></p>
<p><strong>lho kenapa tetap menggunakan database? </strong></p>
<p>tentu saja, karena sifat memori yang akan menghapus data ketika sumber daya mati, maka kita tidak bisa menggunakan memori sebagai media penyimpanan utama. jadi tetap walaupun kita menyimpan cache di memori, tetapi tetap data original harus ada dalam database, sehingga saat sistem mati, data tetap ada.</p>
<h2>Implementasi Dalam Java</h2>
<p>sekarang pertanyaannya, &#8220;<strong>bagaimana cara mengimplementasikan cache di java?</strong>&#8220;</p>
<p>seperti biasa, biasanya orang java selalu menggunakan konsep yang namanya Data Access Object saat membuat sistem berbasiskan database. anggap saja misal kita memiliki entitas Manusia, maka biasanya dibuatlah data access object untuk entitas tersebut :</p>
<pre class="brush: java;">
package echo.khannedy.cacheload.mapper;

import echo.khannedy.cacheload.entity.Manusia;

public interface ManusiaMapper {

	void saveManusia(Manusia manusia);

	void updateManusia(Manusia manusia);

	void deleteManusia(Long id);

	Manusia getManusia(Long id);

}
</pre>
<blockquote><p>jika anda belum mengerti tentang konsep dao, anda bisa membacanya disini :</p>
<ul>
<li>p<a href="http://eecchhoo.wordpress.com/2009/08/06/pengenalan-data-access-object-1/">engenalan data access object 1 intro</a></li>
<li>p<a href="http://eecchhoo.wordpress.com/2009/08/10/pengenalan-data-access-object-2-implementasi-dalam-jdbc/">engenalan data access object 2 implementasi dalam jdbc</a></li>
<li><a href="http://eecchhoo.wordpress.com/2009/08/11/pengenalan-data-access-object-3-implementasi-dalam-jpa/">pengenalan data access object 3 implementasi dalam java persistence api</a></li>
<li><a href="http://eecchhoo.wordpress.com/2009/08/12/pengenalan-data-access-object-4-implementasi-dalam-hibernate/">pengenalan data access object 4 implementasi dalam hibernate</a></li>
<li><a href="http://eecchhoo.wordpress.com/2009/08/12/pengenalan-data-access-object-5-kesalahan-membuat-dao/">pengenalan data access object 5 kesalahan membuat dao</a></li>
<li><a href="http://eecchhoo.wordpress.com/2009/08/12/pengenalan-data-access-object-6-outro/">pengenalan data access object 6 outro</a></li>
</ul>
</blockquote>
<p>dan biasanya kita membuat implementasi dao tersebut seperti ini :</p>
<pre class="brush: java;">
package echo.khannedy.cacheload.implement;

import echo.khannedy.cacheload.entity.Manusia;
import echo.khannedy.cacheload.mapper.ManusiaMapper;

public class ManusiaMapperImpl implements ManusiaMapper {

	@Override
	public void deleteManusia(Long id) {
		// mulai transaksi
		database.beginTransaction();

		// hapus data yang ada di database
		database.deleteById(Manusia.class, id);

		// commit transaksi
		database.commit();
	}

	@Override
	public Manusia getManusia(Long id) {
		// mulai transaksi
		database.beginTransaction();

		// load data yang ada dalam database
		Manusia manusia = database.getById(Manusia.class, id);

		// commit transaksi
		database.commit();

		return manusia;
	}

	@Override
	public void saveManusia(Manusia manusia) {
		// mulai transaksi
		database.beginTransaction();

		// simpan data ke database
		database.save(Manusia.class, manusia);

		// commit transaksi
		database.commit();
	}

	@Override
	public void updateManusia(Manusia manusia) {
		// mulai transaksi
		database.beginTransaction();

		// ubah data di database
		database.update(Manusia.class, manusia);

		// commit transaksi
		database.commit();
	}

}
</pre>
<p>nah sekarang bagaimana membuat cache? seperti pada penjelasannya bahwa cache itu adalah kumpulan duplikasi data, artinya cache ini berisikan data. sehingga dengan demikian kita bisa menggunakan collection untuk dijadikan cache tersebut. namun yang menjadi permasalaan adalah, bagai mana kita tahu jika ada data yang kita mau dalam cache?</p>
<p>untuk mengatasi masalah tersebut, kita harus menggunakan identitas untuk tiap object dalam cache. sehingga collection yang mensupport pengidentitasan menggunakan id adalah java.util.Map, dimana jika kita menggunakan java.util.List, maka kita hanya bisa menyimpan object tanpa memberi identitas.</p>
<p>dan karena pada kasus ini kita menggunakan entitas Manusia, jadi kita buat juta cache untuk entitas Manusia dengan nama ManusiaCache :</p>
<pre class="brush: java;">
package echo.khannedy.cacheload.cache;

import java.util.HashMap;
import java.util.Map;

import echo.khannedy.cacheload.entity.Manusia;

public class ManusiaCache {

	// buat collection dari map
	private Map&#38;lt;Long, Manusia&#38;gt; map = new HashMap&#38;lt;Long, Manusia&#38;gt;();

	/**
	 * metode ini bisa digunakan untuk menambah data ke cache ataupun mengubah
	 * data di cache
	 *
	 * @param manusia
	 */
	public void put(Manusia manusia) {
		// simpan data ke map
		map.put(manusia.getId(), manusia);
	}

	/**
	 * metode ini digunakan untuk menghapus data di cache
	 *
	 * @param id
	 */
	public void delete(Long id) {
		map.remove(id);
	}

	/**
	 * metode ini digunakan untuk mendapatkan data di cache
	 *
	 * @param id
	 * @return manusia atau null jika tidak terdapat data manusia dengan id
	 *         tersebut
	 */
	public Manusia get(Long id) {
		return map.get(id);
	}

}
</pre>
<p>dengan demikian kita ubah juga data access object Manusia menjadi seperti dibawah ini :</p>
<pre class="brush: java;">
package echo.khannedy.cacheload.implement;

import echo.khannedy.cacheload.cache.ManusiaCache;
import echo.khannedy.cacheload.entity.Manusia;
import echo.khannedy.cacheload.mapper.ManusiaMapper;

public class ManusiaMapperImpl implements ManusiaMapper {

	private ManusiaCache cache = new ManusiaCache();

	@Override
	public void deleteManusia(Long id) {
		// mulai transaksi
		database.beginTransaction();

		// hapus data yang ada di database
		database.deleteById(Manusia.class, id);
		// hapus data di cache
		cache.delete(id);

		// commit transaksi
		database.commit();
	}

	@Override
	public Manusia getManusia(Long id) {
		// load data di cache
		Manusia manusia = cache.get(id);

		// cek apakah data tidak ada dalam cache
		if(manusia == null){
			// jika data tidak ada dalam cache, maka load dari database

			// mulai transaksi
			database.beginTransaction();

			// load data di database
			manusia = database.getById(Manusia.class, id);
			// simpan data ke cache
			cache.put(manusia);

			// commit transaksi
			database.commit();
		}

		return manusia;
	}

	@Override
	public void saveManusia(Manusia manusia) {
		// mulai transaksi
		database.beginTransaction();

		// simpan data ke database
		database.save(Manusia.class, manusia);
		// simpan data ke cache
		cache.put(manusia);

		// commit transaksi
		database.commit();
	}

	@Override
	public void updateManusia(Manusia manusia) {
		// mulai transaksi
		database.beginTransaction();

		// ubah data di database
		database.update(Manusia.class, manusia);
		// ubah data di cache
		database.put(manusia);

		// commit transaksi
		database.commit();
	}

}
</pre>
<p>dengan demikian saat terjadi proses load data maka proses ini yang akan dilakukan :</p>
<ul>
<li>load data dari cache</li>
<li>cek apakah data di cache ada</li>
<li>jika data ada maka proses selesai</li>
<li>jika data tidak ada dalam cache maka load data yang ada didatabase</li>
<li>setelah data yang ada didatabase diload, simpan data tersebut di cache</li>
<li>selesai</li>
</ul>
<p><em><span style="color:#ff6600;">dengan demikian saat sistem melakukan load data yang ada dicache dan ditemukan, maka sistem sama sekali tidak menyentuh database untuk meload data. dan hal ini tentu akan menjadikan proses load data lebih cepat.</span></em></p>
<p><em><span style="color:#3366ff;">namun jika data tidak ada dalam cache, maka data akan diload dari database, dan setelah itu data tersebut akan disimpan dalam cache. dengan ini proses selanjutnya maka load akan dilakukan ke cache tanpa harus ke database lagi <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </span></em></p>
<p>pada artikel ini, kita telah membuat cache secara manual, artinya kita membuat cache sendiri. namun jika anda ingin menggunakan cache yang lebih powerfull anda dapat menggunakan framework-framework cache yang telah ada seperti :</p>
<ul>
<li><a href="http://ehcache.org/">EhCache</a></li>
<li><a href="http://www.opensymphony.com/oscache/">OsCache</a></li>
<li><a href="http://www.jboss.org/jbosscache/">JBoss Cache</a></li>
</ul>
<p>terima kasih telah membaca artikel ini, semoga ilmu anda dan saya semakin bertambah <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[NetBeans: The Definitive Guide]]></title>
<link>http://toebook.wordpress.com/2009/11/15/netbeans-the-definitive-guide/</link>
<pubDate>Sun, 15 Nov 2009 02:55:00 +0000</pubDate>
<dc:creator>cnapagoda</dc:creator>
<guid>http://toebook.wordpress.com/2009/11/15/netbeans-the-definitive-guide/</guid>
<description><![CDATA[In NetBeans: The Definitive Guide, you&#8217;ll find out how to use this IDE to its fullest, making ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://i37.tinypic.com/sgsb5j.jpg"><img src="http://i37.tinypic.com/sgsb5j.jpg" alt="" border="0" /></a>
<div style="text-align:center;">
<div style="text-align:justify;">
<div style="text-align:center;"></div>
<p>In <i>NetBeans: The Definitive Guide</i>, you&#8217;ll find out how to use this IDE to its fullest, making your Java programming more efficient and productive than ever before. You&#8217;ll understand the basics of the IDE, and quickly be utilizing the various editor and explorer windows. You&#8217;ll also master many of NetBeans advanced features, and be working with XML documents, CVS repositories, Javadoc trees, and web applications, all within the NetBeans framework.</div>
<p><b><b>Tim Boudreau &#8220;NetBeans: The Definitive Guide&#8221;<br />English &#124; ISBN-0-596-00280-7 &#124; 556 Pages &#124; PDF</p>
<p><a href="http://rapidshare.com/files/306989541/Netbeans_The_Definitive_Guid.pdf"><span style="color:rgb(51,51,255);">Download</span></a><br /></b></b></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Eclipse 3.6 Helios Milestones 3 Telah Release]]></title>
<link>http://eecchhoo.wordpress.com/2009/11/14/eclipse-3-6-helios-milestones-3-telah-release/</link>
<pubDate>Sat, 14 Nov 2009 13:46:19 +0000</pubDate>
<dc:creator>Eko Kurniawan Khannedy</dc:creator>
<guid>http://eecchhoo.wordpress.com/2009/11/14/eclipse-3-6-helios-milestones-3-telah-release/</guid>
<description><![CDATA[Mungkin belum pada tahu kalo sekarang Eclipse 3.6 sudah masuk versi milestones 3, soalnya memang tid]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Mungkin belum pada tahu kalo sekarang Eclipse 3.6 sudah masuk versi milestones 3, soalnya memang tidak di beritahukan langsung di website Eclipse nya. Pada artikel ini saya akan bahas tentang fitur-fitur baru di Eclipse helios ini.</p>
<p style="text-align:center;"><a href="http://picasaweb.google.com/echo.khannedy/EclipseHelios36IsRelease#5403888196437117986"><img class="aligncenter" title="Eclipse" src="http://lh5.ggpht.com/_GWjtLM4OrEs/Sv53rwKPjCI/AAAAAAAABqs/eZQsUaUafFY/eclipse-helios.jpg" alt="" width="451" height="288" /></a></p>
<p>berbeda dengan versi sebelumnya (Eclipse 3.5 Ganymede), pada Eclipse Helios ini, hampir seluruh fasilitasnya bisa digunakan untuk JDK-7 sama JEE-6. Contohnya saat ini dengan Eclipse helios, anda bisa membuat project JPA 2. Dimana jika kita menggunakan Eclipse Galileo, kita hanya diberi fasilitas untuk pembuatan JPA 1.2 atau JPA 1.1 :<!--more--></p>
<p style="text-align:center;"><a href="http://picasaweb.google.com/echo.khannedy/EclipseHelios36IsRelease#"><img class="aligncenter" title="JPA" src="http://lh5.ggpht.com/_GWjtLM4OrEs/Sv53shBUunI/AAAAAAAABqw/S-x5J2KGzqw/s512/Screenshot-New%20JPA%20Project%20.jpg" alt="" width="438" height="512" /></a></p>
<p>Selain itu kita juga dapat membuat project Enterprise Java Beans versi 3.1 , seperti terlihat pada gambar dibawah ini :</p>
<p style="text-align:center;"><a href="http://picasaweb.google.com/echo.khannedy/EclipseHelios36IsRelease#"><img class="aligncenter" title="Enterprise Java Beans" src="http://lh6.ggpht.com/_GWjtLM4OrEs/Sv53udWezPI/AAAAAAAABq4/s_7xv3tAIDE/s512/Screenshot-New%20EJB%20Project%20.jpg" alt="" width="430" height="512" /></a></p>
<p>Seperti yang sebelumnya dibilang, kalo Eclipse Helios ini support JEE 6. Saat membuat sebuah Enterprise Application, kita bisa mengubah versi aplikasinya menjadi JEE 6 :</p>
<p style="text-align:center;"><a href="http://picasaweb.google.com/echo.khannedy/EclipseHelios36IsRelease#"><img class="aligncenter" title="Enterprise Application" src="http://lh4.ggpht.com/_GWjtLM4OrEs/Sv53vStECNI/AAAAAAAABq8/NUOZwUYbt1I/s512/Screenshot-New%20Application%20Client%20Project%20.jpg" alt="" width="373" height="512" /> </a></p>
<p>Selain itu, Eclipse Helios juga sudah support Servlet versi 3, seperti yang terlihat pada gambar dibawah ini :</p>
<p style="text-align:center;"><img class="aligncenter" title="Servlet" src="http://lh5.ggpht.com/_GWjtLM4OrEs/Sv53wTllaeI/AAAAAAAABrA/qLeesIK6HCA/s512/Screenshot-New%20Dynamic%20Web%20Project%20.jpg" alt="" width="396" height="512" /></p>
<p>Namuun yang disayangkan, Eclipse Helios ini belum support JSF 2. tapi mungkin tar saat versi releasenya Eclipse Helios dah support JSF 2 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p style="text-align:center;"><img class="aligncenter" title="JSF" src="http://lh6.ggpht.com/_GWjtLM4OrEs/Sv53yDCLkZI/AAAAAAAABrI/96c_oWa2Rnc/s576/Screenshot-Project%20Facets%20.jpg" alt="" width="576" height="464" /></p>
<p>silahkan download disini kalo dah gak sabar <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<blockquote><p><a href="http://www.eclipse.org/epp/download.php">http://www.eclipse.org/epp/download.php</a></p></blockquote>
<p>enjoy <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Développement php]]></title>
<link>http://paulcorner.wordpress.com/2009/11/14/developpement-php/</link>
<pubDate>Sat, 14 Nov 2009 10:34:18 +0000</pubDate>
<dc:creator>paulcana</dc:creator>
<guid>http://paulcorner.wordpress.com/2009/11/14/developpement-php/</guid>
<description><![CDATA[Depuis quelque temps je me suis mis au développement en PHP. Pour l&#8217;instant mon seul outil de ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Depuis quelque temps je me suis mis au développement en PHP. Pour l&#8217;instant mon seul outil de développement se limite à <a href="http://sourceforge.net/projects/notepad-plus/" target="_blank">Notepad ++</a>.</p>
<p>Mais Notepad ++ n&#8217;a rien d&#8217;un veritable IDE. A part la coloration syntaxique et l&#8217;autocomplétion que je n&#8217;ai jamais reussi à faire fonctionner correctement &#8230;</p>
<p>Je me suis donc mis en chasse d&#8217;un IDE plus complet permettant notamment de gérer de véritables projets de développement, l&#8217;interface avec une base de données et <strong>UN DEBUGGER!!</strong></p>
<p>Après une rapide recherche sur le Net 2 noms revenaient sans cesse : Eclipse et Netbeans.</p>
<p>Je suis donc allé télécharger ces IDE pour les tester et voir si cela correspondait à mes besoins.</p>
<p><a href="http://www.zend.com/en/community/pdt" target="_blank">Eclipse développement PHP chez Zend</a></p>
<p><a href="http://www.netbeans.org/features/php/index.html" target="_blank">Netbeans PHP</a></p>
<p>En plus ces sites sont une mine d&#8217;information sur le développement en PHP avec des tutoriels en pagaille. Voir sur ce lien la série de tutoriaux <a href="http://devzone.zend.com/node/view/id/627" target="_blank">PHP 101</a>.</p>
<p>Je vais aller installer ces 2 IDE et lire quelques tutos, j&#8217;espère que ma productivité en développement PHP en sera améliorée</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Developing Web Application using Spring Framework and Hibernate in NetBeans]]></title>
<link>http://szypulski.wordpress.com/2009/11/13/developing-web-application-using-spring-framework-and-hibernate-in-netbeans/</link>
<pubDate>Fri, 13 Nov 2009 22:14:21 +0000</pubDate>
<dc:creator>mszypulski</dc:creator>
<guid>http://szypulski.wordpress.com/2009/11/13/developing-web-application-using-spring-framework-and-hibernate-in-netbeans/</guid>
<description><![CDATA[In this article I am  showing how to apply Hibernate annotations to develop real-world applications.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">In this article I am  showing how to apply Hibernate annotations to develop real-world applications. With the combination of Hibernate annotation and Spring MVC, developers can drastically reduce the time at the configuration level. No more artless mapping files, no more klutzy XDoclet tags &#8211; life becomes so easy! This article describes a step-by-step procedure of how to build, deploy, and run a J2EE-based Web application using the above-mentioned technologies.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[LOAD IMAGES DYNAMICALLY INTO JASPER REPORTS]]></title>
<link>http://gilbertadjin.wordpress.com/2009/11/13/load-images-dynamically-into-jasper-reports/</link>
<pubDate>Fri, 13 Nov 2009 11:38:00 +0000</pubDate>
<dc:creator>Gilbert Adjin Frimpong</dc:creator>
<guid>http://gilbertadjin.wordpress.com/2009/11/13/load-images-dynamically-into-jasper-reports/</guid>
<description><![CDATA[If you want to insert images from the file system (e.g. C:\images folder) into jasper reports at run]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>If you want to insert images from the file system (e.g. C:\images folder) into jasper reports at runtime, for example changing a logo depending on user selection or simply allowing the user to browse for his or her image to be displayed&#160; in the report then here is a simple process of doing that.</p>
<p>Let start with the report design using ireport. In this instance the picture will be passed to the report as a parameter.</p>
<p>So let’s create a parameter in our report and call it “photo”</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/11/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/11/image_thumb.png?w=367&#038;h=210" width="367" height="210" /></a> </p>
<p>As shown in the picture above, the data type of our parameter should be “java.lang.Object”</p>
<p>After this, drag the image , from the tool bar, on to your report.Right click on the image and choose “Properties” from the menu</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/11/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/11/image_thumb1.png?w=343&#038;h=203" width="343" height="203" /></a> </p>
</p>
<p>Under the image tab of the dialog box, make sure you select “java.awt.image” for the Image Expression Class. Once this is done, you are done with the report design</p>
<p>Lets go to netbeans , do some coding and connect our designed report to a java application.</p>
<p>First we need to declare a variable of type image,</p>
<p>Image photo;</p>
<p>Also we create a method , which on click of a button, loads a picture from the file system and initializes the “photo: variable.</p>
<p>JFileChooser fc = new JFileChooser();</p>
<p>private void getPicture() {</p>
<p>fc.setFileFilter(new FileNameExtensionFilter(&#34;Images&#34;, &#34;jpg&#34;, &#34;gif&#34;, &#34;bmp&#34;));</p>
<p>if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {</p>
<p>fc.setCurrentDirectory(fc.getCurrentDirectory());</p>
<p>ImageIcon icon = new ImageIcon(fc.getSelectedFile().getAbsolutePath());</p>
<p>icon = new ImageIcon(icon.getImage().getScaledInstance(350, 350, Image.SCALE_DEFAULT));</p>
<p>photo = icon.getImage();</p>
<p>}</p>
<p>After getting our picture, create an instance of the Map class and pass our “variable” as a parameter.</p>
<p>Map&#60;String, Object&#62; param = new HashMap&#60;String, Object&#62;();</p>
<p>param.put(&#34;photo&#34;, photo); //the “photo” should be the same name as the parameter name in our report</p>
<p>We then create a method that passes our created parameter to the report and we are done. below is the method that does the job.</p>
<p>private void generateReports(String name, Map param) {</p>
<p>try {</p>
<p>String source = &#34;C:/sabonay/jasperreports/&#34; + name + &#34;.jrxml&#34;;</p>
<p>if (new File(source).exists() == false) {</p>
<p>xputils.showMessage(&#34;Please&#160; report Source does not exist&#34;);</p>
<p>return;</p>
<p>}</p>
<p>JasperReport jasperReport = JasperCompileManager.compileReport(source);</p>
<p>JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, param, new <b>JREmptyDataSource()</b>);</p>
<p>JasperViewer.viewReport(jasperPrint, false);</p>
<p>//the false parameter makes sure the application does not close on closing the report</p>
<p>} catch (Exception e) {</p>
<p>System.out.println(&#34;reports Error &#34; + e.toString());</p>
<p>}}</p>
<p>Make sure to reference the necessary jasper jar files in your application</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
