<?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://wordpress.com/tag/netbeans/</link>
	<description>Feed of posts on WordPress.com tagged "netbeans"</description>
	<pubDate>Sat, 11 Oct 2008 06:59:39 +0000</pubDate>

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

<item>
<title><![CDATA[aplikasi phonebook menggunakan Java]]></title>
<link>http://eecchhoo.wordpress.com/2008/10/10/aplikasi-phonebook-menggunakan-java/</link>
<pubDate>Fri, 10 Oct 2008 15:28:18 +0000</pubDate>
<dc:creator>echo</dc:creator>
<guid>http://eecchhoo.fr.wordpress.com/2008/10/10/aplikasi-phonebook-menggunakan-java/</guid>
<description><![CDATA[ Setelah sukses dulu dengan eMovieRental , sekarang saya buat lagi aplikasi yang bernama ePhoneBook ]]></description>
<content:encoded><![CDATA[<p><img style="border-width:0;" height="175" alt="phonebook java" src="http://eecchhoo.files.wordpress.com/2008/10/image.png" width="250" align="left" border="0"> Setelah sukses dulu dengan <a href="http://eecchhoo.wordpress.com/2008/07/14/cara-penggunaan-emovierental-di-netbeans/" target="_blank">eMovieRental</a> , sekarang saya buat lagi aplikasi yang bernama ePhoneBook :D</p>
<p><em>Tau dari mana Sukses :D</em></p>
<p>Yup dari data download eMovieRental yang ada di Box.net</p>
<p>Saat tulisan ini dibuat download eMovieRental udah lebih dari 4700 download :D</p>
<p><!--more-->
<p>Agak kurang percaya juga sich :</p>
<p><a href="http://eecchhoo.wordpress.com/2008/07/14/cara-penggunaan-emovierental-di-netbeans/" target="_blank"><img style="border-width:0;" height="60" alt="image" src="http://eecchhoo.files.wordpress.com/2008/10/image1.png" width="373" border="0"></a> </p>
<p>Diatas itu screen shoot statistik download. Padahal itu diupload tanggal 14 Juli sedangkan sekarang baru akhir Agustus. Hmm baru hampir 2 bulang, ternyata statistik downloadnya bener-bener gede :D</p>
<p>Kembali ke topik! </p>
<p>Sekarang saya buat sebuah aplikasi yang bernama ePhoneBook. Aplikasi ini merupakan aplikasi PhoneBook menggunakan Java. Jadi aplikasi ini gak sekomplek <a href="http://eecchhoo.wordpress.com/2008/07/14/cara-penggunaan-emovierental-di-netbeans/" target="_blank">eMovieRental</a>.</p>
<p>Jadi kalo anda gak akan terlalu pusing buat memahami alur program yang saya buat ini :D</p>
<p><img style="border-width:0;" height="338" alt="image" src="http://eecchhoo.files.wordpress.com/2008/10/image2.png" width="450" border="0"> </p>
<p><img style="border-width:0;" height="338" alt="image" src="http://eecchhoo.files.wordpress.com/2008/10/image3.png" width="450" border="0"> </p>
<p><img style="border-width:0;" height="338" alt="image" src="http://eecchhoo.files.wordpress.com/2008/10/image4.png" width="450" border="0"> </p>
<p>Kalo udah penasaran, silahkan download projectnya disini :</p>
<p><a href="http://www.box.net/shared/vcdejnh1so" target="_blank">http://www.box.net/shared/vcdejnh1so</a>&#160;</p>
<p>untuk penggunaannya hampir sama dengan <a href="http://eecchhoo.wordpress.com/2008/07/14/cara-penggunaan-emovierental-di-netbeans/" target="_blank">eMovieRental</a></p>
<p>Semoga Berguna </p>
<p>:D </p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Manejo de Sesiones con Servlets en NetBeans 6.1]]></title>
<link>http://nachxs.wordpress.com/?p=299</link>
<pubDate>Thu, 09 Oct 2008 22:23:31 +0000</pubDate>
<dc:creator>nachxs</dc:creator>
<guid>http://nachxs.fr.wordpress.com/2008/10/09/manejo-de-sesiones-con-servlets-en-netbeans-61/</guid>
<description><![CDATA[Regularmente cuando realizaba pequeños proyectos web y trabajaba con sesiones siempre todo lo manej]]></description>
<content:encoded><![CDATA[<p style="text-align:justify;">Regularmente cuando realizaba pequeños proyectos web y trabajaba con sesiones siempre todo lo manejaba en archivos JSP, pero esta vez decidi probar un servlet para el manejo de sesiones y mostrar lo facil que puede resultar. Lo que comunmente hacemos es trabajar con el famoso cuadro de logueo, en donde colocamos el usuario y el password para luego ser validado y crear la sesion. Bueno lo primero que tenemos hacer es crear el proyecto dentro de <a href="http://www.netbeans.org/">NetBeans</a> (ya saben como aplicativo web) y luego escribir algo de código basico HTML dentro del archivo "index.jsp" creando el cuadro de logueo mas o menos quedando asi:</p>
<p style="text-align:justify;"><a href="http://nachxs.files.wordpress.com/2008/10/sessiones_1.png"><img class="aligncenter size-medium wp-image-300" title="sessiones_1" src="http://nachxs.wordpress.com/files/2008/10/sessiones_1.png?w=300" alt="" width="300" height="163" /></a></p>
<p style="text-align:justify;"><a href="http://nachxs.files.wordpress.com/2008/10/sessiones_1.png"></a>El diseño queda a disposicion de ustedes, ahora hay un sin fin de herramientas que permiten realizar este tipo de trabajo, esto es solo para uso didactico. obviamente esta tabla de logueo lo mantendremos dentro de un "form" dado que utilizaremos el metodo POST y en el action colocaremos el Servlet al cual llamaremos "GeneraSession".</p>
<p style="text-align:justify;"><a href="http://nachxs.files.wordpress.com/2008/10/session_1.png"><img class="aligncenter size-medium wp-image-305" title="session_1" src="http://nachxs.wordpress.com/files/2008/10/session_1.png?w=300" alt="" width="300" height="248" /></a></p>
<p style="text-align:justify;">Una vez hecho esto, creamos el archivo "principal.jsp" el cual nos servira para mostrar el resultado luego de realizar el logueo.</p>
<p style="text-align:justify;">Luego creamos nuestra clase que actuara como servlet. Hacemos click derecho sobre nuestro proyecto y elejimos New --&#62; Servlet, le damos el nombre (GeneraSession.java) y se nos mostrara un cuadro en donde nos dice que este nombre del servlet sera añadido al archivo de configuración "web.xml" el cual servira para poder ubicarlo y luego le damos click en terminar</p>
<p style="text-align:justify;"><a href="http://nachxs.wordpress.com/files/2008/10/session_2.png"><img class="aligncenter size-medium wp-image-301" title="session_2" src="http://nachxs.wordpress.com/files/2008/10/session_2.png?w=300" alt="" width="300" height="206" /></a></p>
<p style="text-align:justify;">Una vez hecho esto solo quedaria agregar el codigo dentro del metodo "processRequest", quedando algo como esto:</p>
<p style="text-align:justify;"><a href="http://nachxs.files.wordpress.com/2008/10/session_3.png"><img class="aligncenter size-medium wp-image-302" title="session_3" src="http://nachxs.wordpress.com/files/2008/10/session_3.png?w=300" alt="" width="300" height="194" /></a></p>
<p style="text-align:justify;">Podemos observar que estamos obteniendo los datos del formulario mediante el request para ser validado y asi poder generar la sesion, para luego enviarnos a la pagina principal. Ahora esto no quedaria alli; en la pagina "principal.jsp" que ha sido creada tendriamos que realizar tambien la validacion de la sesion, dado que como sabemos las sesiones tienen un tiempo de vida, si sobrepasa este tiempo la sesion automaticamente se destruye (a no ser que personalize el tiempo de vida), entonces en la pagina "principal.jsp" tendriamos algo como esto:</p>
<p style="text-align:justify;"><a href="http://nachxs.files.wordpress.com/2008/10/session_4.png"><img class="aligncenter size-medium wp-image-303" title="session_4" src="http://nachxs.wordpress.com/files/2008/10/session_4.png?w=300" alt="" width="300" height="156" /></a></p>
<p style="text-align:justify;"><a href="http://nachxs.files.wordpress.com/2008/10/session_4.png"></a>De esta forma validamos si la sesion persite, en caso contrario te enviaria a la pagina de inicio para volver ha realizar el logueo.</p>
<p style="text-align:justify;">Como veran es una forma practica de trabajar con sesiones mediante un servlet; obviamente esto tendria que mejorarse, pero esto puede ser un punto de partida para muchos.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Rails 2 tutorial]]></title>
<link>http://bradaczynski.wordpress.com/?p=20</link>
<pubDate>Thu, 09 Oct 2008 10:22:48 +0000</pubDate>
<dc:creator>bradaczynski</dc:creator>
<guid>http://bradaczynski.fr.wordpress.com/2008/10/09/rails-2-tutorial/</guid>
<description><![CDATA[W ramach zabawy z railsami (nie żeby to był pierwszy raz, jak się stykam z rails) natknąłem si]]></description>
<content:encoded><![CDATA[<p>W ramach zabawy z <a href="http://www.rubyonrails.org/">railsami</a> (nie żeby to był pierwszy raz, jak się stykam z rails) natknąłem się na <a href="http://akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial">bardzo dobry tutorial do rails 2.0</a>.</p>
<p>Przy okazji lista najbardziej użytecznych rzeczy do rails:</p>
<ol>
<li>netbeans (na linuchu amd64 jest problem z maszyną wirtualną javy -&#62; rozwiązanie <a href="http://www.nabble.com/Netbeans-on-Linux,-need-help...-td18499573.html">tutaj</a>), z debuggerem (na linuchu jest również problem -&#62; rozwiązanie <a href="http://wiki.netbeans.org/RubyDebugging">tutaj</a></li>
<li><a href="http://api.rubyonrails.org/">rails  api docs</a></li>
<li>tutorial wymieniony powyżej</li>
</ol>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Hello World, Java!]]></title>
<link>http://dedygunanto.wordpress.com/?p=86</link>
<pubDate>Thu, 09 Oct 2008 05:15:48 +0000</pubDate>
<dc:creator>dedygunanto</dc:creator>
<guid>http://dedygunanto.fr.wordpress.com/2008/10/09/hello-world-java/</guid>
<description><![CDATA[Assalamu&#8217;alaikum Wr.Wb.
Hmm.. setelah anda mengetahui cara download dan menginstall java + net]]></description>
<content:encoded><![CDATA[<p><strong>Assalamu'alaikum Wr.Wb.</strong></p>
<p>Hmm.. setelah anda mengetahui cara download dan menginstall java + netbeans pada tulisan sebelumnya, sekarang anda bersiap-siap untuk memulai membuat program Hello World, Java pertama kali. Buat project baru dengan mengikuti langkah-langkah di bawah ini:</p>
<ol>
<li>Pada menu IDE netbeans, pilih menu <strong>File</strong> -&#62; <strong>New Project</strong>.</li>
<li>Pada jendela New Project, pilih <strong>Java</strong> pada kotak Categories, dan pilih <strong>Java Application</strong> pada kotak Projects. Klik tombol <strong>Next</strong>.</li>
<li>Ketikkan nama "<strong>Tutorials</strong>" pada kotak Project Name, dan sesuaikan lokasi project anda pada kotak Project Location dan project Folder.</li>
<li>Hilangkan tanda centang pada pilihan Create Main Class dan Set As Main Project. Dan klik tombol Finish.<a href="http://dedygunanto.files.wordpress.com/2008/10/gambar-layar-new-java-application.png"><img class="alignnone size-medium wp-image-88" title="Jendela New Java Application" src="http://dedygunanto.wordpress.com/files/2008/10/gambar-layar-new-java-application.png?w=300" alt="" width="300" height="187" /></a></li>
<li>Kemudian klik kanan pada jendela Projects, dan pilih <strong>New</strong> -&#62; <strong>Java Class</strong>.</li>
<li>Ketikkan "<strong>HelloWorld</strong>" pada kotak Class Name, dan klik tombol Finish.</li>
<li>Selanjutnya, anda bisa mengetikkan kode program berikut ini:
<pre><span style="color:#0000ff;">public class HelloWorld {   
    public static void main(String[] args){
        System.out.println("Hallo Dunia!\n"); 
    }
}</span></pre>
</li>
<li>Kemudian tekan tombol Shift+F6 untuk mengkompile.</li>
<li>Hasilnya bisa anda lihat pada jendela Output, atau bisa juga anda masuk ke terminal, masuk pada lokasi project anda, misalnya : "<strong>/home/dedygunanto/NetBeansProjects/Tutorial/build/classes</strong>". Dan ketikkan pada perintah
<pre><span style="color:#0000ff;">shell &#62; java HelloWorld</span></pre>
</li>
<li>Hasilnya bisa anda lihat pada gambar di bawah ini:<a href="http://dedygunanto.files.wordpress.com/2008/10/helloworldjava.png"><img class="alignnone size-full wp-image-89" title="Hello World Java" src="http://dedygunanto.wordpress.com/files/2008/10/helloworldjava.png" alt="" width="453" height="115" /></a></li>
<li>Selesai.</li>
</ol>
<p><strong>Wassalamu'alaikum Wr.Wb.</strong></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Download dan Install JavaSE SDK 1.6 + Netbeans 6.1]]></title>
<link>http://dedygunanto.wordpress.com/?p=83</link>
<pubDate>Thu, 09 Oct 2008 04:50:58 +0000</pubDate>
<dc:creator>dedygunanto</dc:creator>
<guid>http://dedygunanto.fr.wordpress.com/2008/10/09/download_install_netbeans_dan_java/</guid>
<description><![CDATA[Assalamu&#8217;alaikum Wr.Wb.
Untuk anda yang ingin belajar tentang Java dan Netbeans, dan anda bing]]></description>
<content:encoded><![CDATA[<p><strong>Assalamu'alaikum Wr.Wb.</strong></p>
<p>Untuk anda yang ingin belajar tentang Java dan Netbeans, dan anda bingung belum tau bagaimana cara awal memulainya, berikut ini adalah tulisan untuk memulai dari awal semuanya. Sebagai catatan (Penulis menggunakan sistem operasi Ubuntu 8.04 Hardy Heron):</p>
<ol>
<li>Download dahulu Java Compiler (jdk_6u7_linux.bin)  atau jika anda tidak ingin pusing, silakan download jdk+netbeans dalam satu paket, Misalnya: <strong>jdk-6u7-nb-6_1-linux-ml.sh</strong> untuk Linux di situs <a title="Tempat download java compiler" href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">http://java.sun.com/javase/downloads/index.jsp</a></li>
<li>Setelah selesai anda download, sekarang persiapan untuk menginstall nya.</li>
<li>Masuk ke terminal, dan kemudian masuk ke folder tempat anda meletakkan hasil download anda.</li>
<li>Ketikkan perintah :
<pre><span style="color:#0000ff;">shell &#62; ls -l</span></pre>
<p>untuk mengetahui nama jelas dan atribut dari file jdk anda. Kemudian ubah modenya agar bisa di eksekusi:</p>
<pre><span style="color:#0000ff;">shell &#62; chmod +x jdk-6u7-nb-6_1-linux-ml.sh</span></pre>
</li>
<li>Selanjutnya adalah menjalankan installer tersebut, dengan mengetikkan perintah:
<pre><span style="color:#0000ff;">shell &#62; sudo sh jdk-6u7-nb-6_1-linux-ml.sh </span>
<span style="color:#0000ff;">[sudo] password for user: </span>
<span style="color:#0000ff;">Configuring the installer...</span>
<span style="color:#0000ff;">Searching for JVM on the system...</span>
<span style="color:#0000ff;">Preparing bundled JVM ...</span>
<span style="color:#0000ff;">.....</span></pre>
</li>
<li>Ikuti perintah dari installer tersebut. Dan selesai.</li>
<li>Untuk membuka netbeans anda, silakan anda menuju menu Aplikasi -&#62; Pemrograman -&#62; Netbeans [Versi punya anda], Ini contoh dari layar Netbeans punya saya.
<p><a href="http://dedygunanto.files.wordpress.com/2008/10/gambar-layar-tutorial-netbeans-ide-65-beta.png"><img class="alignnone size-medium wp-image-84" title="Jendela Netbeans 6.5 Beta" src="http://dedygunanto.wordpress.com/files/2008/10/gambar-layar-tutorial-netbeans-ide-65-beta.png?w=300" alt="" width="300" height="191" /></a></li>
<li>Selesai, Moga bermanfaat.</li>
</ol>
<p><strong>Wassalamu'alaikum Wr.Wb.</strong></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Into the Java world...]]></title>
<link>http://rahuldowlath.wordpress.com/?p=129</link>
<pubDate>Wed, 08 Oct 2008 15:29:06 +0000</pubDate>
<dc:creator>Rahul</dc:creator>
<guid>http://rahuldowlath.fr.wordpress.com/2008/10/08/into-the-java-world/</guid>
<description><![CDATA[So, along with CTAs being new for me this week, is my re-entry into the Java programming world. Two ]]></description>
<content:encoded><![CDATA[<p>So, along with CTAs being new for me this week, is my re-entry into the Java programming world. Two years ago, after my success at producing some small, rather useless programs (although they were my ticket into the world of coding), I decided to learn Java - mainly as a way of getting to develop for mobile platforms (such as cell phones and PDAs).</p>
<p>Now, because of my <a href="http://rahuldowlath.wordpress.com/2008/07/02/my-new-venture/">new venture</a>, and after brainstorming new product ideas, I decided to have a mobile side to this service (by the way, my new venture has yet to go live, as I am experiencing technical difficulties). Of course, in order to go mobile in the programming world means learning the mobile development techniques of Symbian, Android, iPhone OS, Windows Mobile, or, of course, if you want to target most of them, <strong>Java. </strong></p>
<p>Why I chose to learn Java is also because, with this language, I'll be able to (hopefully) write cross-platform ports of my current programs, which are right now tied-down to the Windows platform, because they use the .NET Framework.</p>
<h3>The Simplicity of Java</h3>
<p>I have started out from the beginning in a Java book I bought two years ago (<em>Getting Started in Java </em>by Owen Bishop - Babani Books), with the famous "Hello World" program.</p>
<p>When I first started with Java (and then gave it up for C#) two years ago, I found it a bit difficult to grasp the language, as I was coming from a strong Visual Basic background. But now, after becoming quite proficcient in C#, I have found it quite cool to write in Java, since the two share a very similar syntax.</p>
<h3>Tools</h3>
<p>At the moment, I'm using an IDE called JCreator for writing, compiling and running Java apps that I write. It resembles Visual Studio strikingly (with the exception of a GUI designer), and is great for helping me learn the langauge. It has syntax highlighting, automatic insertion of braces, and an overall clean UI.</p>
<p>However, I have been checking the Netbeans site out recently, and am amazed at how far they've gone from when I first attempted Java. I will be downloading the new Netbeans IDE with Mobility Pack, as this has GUI design - something I'm in great need of right now concerning Java! ;)</p>
<p>Alright, back to Java coding and then... research and prep for tomorrow's CTAs...</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Netbeans PHP Code Template List]]></title>
<link>http://abechik.wordpress.com/2008/10/08/netbeans-php-code-template/</link>
<pubDate>Wed, 08 Oct 2008 02:45:51 +0000</pubDate>
<dc:creator>fadli</dc:creator>
<guid>http://abechik.fr.wordpress.com/2008/10/08/netbeans-php-code-template/</guid>
<description><![CDATA[I have just tried NetBeans again. Last time I tried, it didn&#8217;t caught my intention much. May b]]></description>
<content:encoded><![CDATA[<p>I have just tried NetBeans again. Last time I tried, it didn't caught my intention much. May be that day, Eclipse serve me enough. But last night I tried the NetBeans again, and I quite impressed with the software.</p>
<p>There is code templates for PHP language, I tried to search on Internet for the code templates lists but I can't found anything that can helped. It will really helpful if we have a cheat sheet for that.</p>
<p>So I listed the code templates here. Maybe someone will found it helpful.</p>
<table style="height:1538px;" border="1" cellspacing="0" cellpadding="0" width="639">
<tbody>
<tr>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top" bgcolor="grey">
<p class="MsoNormal">Abbrevation</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top" bgcolor="grey">
<p class="MsoNormal">Expanded Text</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">cln</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">$$${new_obj} = clone $$${variable};</p>
<p class="MsoNormal">${cursor}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">cls</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">class ${class_name} {</p>
<p class="MsoNormal">function ${class_name}() {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">eco</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">echo("${message}");</p>
<p class="MsoNormal">${cursor}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">elif</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">elseif (${condition}) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">els</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">else {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">fnc</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">function ${function_name}() {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">fore</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">foreach ($$${array_variable} as $$${variable}) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">forek</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">foreach ($$${array_variable} as $$${number_variable} =&#62;   $$${variable}) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">if</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">if (${condition}) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">inst</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">if ($$${variable} instanceof ${class}) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">itdir</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">$$${dirh} = opendir(${dirname});</p>
<p class="MsoNormal">if ($$${dirh}) {</p>
<p class="MsoNormal">while ($$${dir_element} = readdir($$${dirh})) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal">unset($$${dir_element});</p>
<p class="MsoNormal">closedir($$${dirh});</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">iter</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">for ($$${number_variable} = 0 ; $$${number_variable} &#60;   count($$${array_variable}) ; $$${number_variable}++) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">my_fa</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">while ($$${row} = mysql_fetch_array($$${query})) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">My_fo</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">while ($$${row} = mysql_fetch_object($$${query})) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">My_fr</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">while ($$${row} = mysql_fetch_row($$${query})) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">My_gc</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">ob_start();</p>
<p class="MsoNormal">
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">
<p class="MsoNormal">$$${contents} = ob_get_contents();</p>
<p class="MsoNormal">ob_end_clean();</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">pclon</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">parent::__clone();</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">pcon</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">parent::__construct();</p>
<p class="MsoNormal">${cursor}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">pr</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">print ${message};</p>
<p class="MsoNormal">${cursor}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">prln</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">print ${message}."\n";</p>
<p class="MsoNormal">${cursor}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">prs</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">print "${message}";</p>
<p class="MsoNormal">${cursor}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">prv</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">print("\$$${variable} = ". $$${variable});</p>
<p class="MsoNormal">${cursor}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">swi</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">switch ($$${variable}) {</p>
<p class="MsoNormal">case ${value}:</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">break;</p>
<p class="MsoNormal">
<p class="MsoNormal">default:</p>
<p class="MsoNormal">break;</p>
<p class="MsoNormal">}</p>
</td>
</tr>
<tr>
<td style="width:45pt;padding:0 5.4pt;" width="60" valign="top">
<p class="MsoNormal">while</p>
</td>
<td style="width:423pt;padding:0 5.4pt;" width="564" valign="top">
<p class="MsoNormal">while (${condition}) {</p>
<p class="MsoNormal">${cursor};</p>
<p class="MsoNormal">}</p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">
]]></content:encoded>
</item>
<item>
<title><![CDATA[iniParser : memparsing file dengan ekstensi *.ini]]></title>
<link>http://maleskoding.wordpress.com/?p=68</link>
<pubDate>Tue, 07 Oct 2008 14:06:02 +0000</pubDate>
<dc:creator>petra</dc:creator>
<guid>http://maleskoding.fr.wordpress.com/2008/10/07/iniparser-memparsing-file-dengan-ekstensi-ini/</guid>
<description><![CDATA[INI file adalah sebuah format file yang digunakan untuk menampung konfigurasi. Ekstensi INI berasal ]]></description>
<content:encoded><![CDATA[<p>INI file adalah sebuah format file yang digunakan untuk menampung konfigurasi. Ekstensi INI berasal dari kata "initialization". Biasanya memang digunakan untuk menampung konfigurasi inisialisasi dari sebuah aplikasi.</p>
<p>Format datanya adalah seperti ini</p>
<pre>[section]
name = value ; comment</pre>
<p>Untuk mengolah file seperti ini pada lingkungan pemrograman C, sudah terdapat banyak library yang dapat digunakan untuk melakukan parsing, mengedit, serta mengambil dan mengeset nilai pada file tersebut. Salah satu dari library tersebut adalah <a href="http://ndevilla.free.fr/iniparser/">iniParser</a>. Library sangat baik untuk digunakan karena cukup lengkap dan simpel.</p>
<p><!--more--></p>
<p>Supaya dapat menggunakannya source code dapat langsung didownload dari <a href="http://ndevilla.free.fr/iniparser/iniparser3.0b.tar.gz">situsnya</a>. Kemudian tinggal mengeksekusi perintah "<em>Make</em>" pada terminal. (Pastikan sudah ada <em>gcc</em> dan <em>libc6-dev</em>). Pengeksekusian ini akan menghasilkan sebuah file yakni <em>libiniparser.a</em> yakni sebuah <em><a href="http://en.wikipedia.org/wiki/Statically_linked_library">static library</a> </em>yang telah berisi fungsi-fungsi yang dapat digunakan.<br />
Kali ini lagi-lagi untuk memudahkan akan digunakan pada <em>IDE</em> <a href="http://www.netbeans.org/">Netbeans</a>.</p>
<ol>
<li>Copy file<em> dictionary.h</em> dan <em>iniparser.h </em>ke folder projectnya secara manual.</li>
<li>Kemudian klik kanan pada <em>virtual folder</em> <em>Header Files</em> pada <em>Window Project</em>nya lalu pilih <em>Add Existings Items... </em>Kemudian pilih <em>dictionary.h</em> dan <em>iniparser.h </em>serta set <em>store path</em> sebagai <em>relative</em>. Ini akan memudahkan jika nanti projectnya akan dikerjakan di lain tempat.</li>
<li>Copy file<em> libiniparser.a</em> ke direktori <em>project</em> secara manual. Lebih baik jika dibuatkan sebuah sub folder "lib"</li>
<li>Klik kanan pada <em>project</em>nya kemudian pilih <em>Properties</em>.</li>
<li>Pilih bagian <em>Linker</em>, dan kemudian pilih pada bagian <em>Libraries</em>.</li>
<li>Pilih <em>Add Library File, </em>dan kemudian pilih file <em>libiniparser.a </em>yang tadi telah diadd. <em>Path</em>nya diset ke <em>relative</em>.</li>
</ol>
<p>Untuk mencobanya, kita buat sebuah file ini. Isinya</p>
<pre>[section1]
nama1 = data3 ; ini komentar
nama3 = data2 ; ini komentar juga

[section3]
nama1 = data1
nama2 = data2</pre>
<p>Kemudian kita simpan ke /tmp/config1.ini</p>
<p>[sourcecode language="c"]<br />
#include <stdio.h><br />
#include <stdlib.h><br />
#include "dictionary.h"<br />
#include "iniparser.h"</p>
<p>int main(int argc, char** argv) {<br />
    dictionary * config;<br />
    config = iniparser_load("/tmp/config1.ini");<br />
    char * nama1 = iniparser_getstring(config, "section1:nama1", "halo2");<br />
    printf("%s\n", nama1);<br />
    return (EXIT_SUCCESS);<br />
}<br />
[/sourcecode]</p>
<p>Fungsi <em>iniparser_load</em> berguna untuk membuka file yang dipilih (<em>/tmp/config1.ini</em>) dan menyimpan handlenya ke pointer <em>config</em>.<br />
Kemudian nilai-nilai yang disimpan dapat diambil dengan menggunakan fungsi <em>iniparser_getstring</em> atau fungsi lain seperti <em>iniparser_getint</em> dengan menyebutkan <em>section</em> serta nama dari nilai yang ingin diambil.</pre>
<p>Aplikasi dapat langsung dijalankan dan dilihat hasilnya.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Menggunakan MySQL C API pada Netbeans]]></title>
<link>http://maleskoding.wordpress.com/?p=60</link>
<pubDate>Tue, 07 Oct 2008 06:10:45 +0000</pubDate>
<dc:creator>petra</dc:creator>
<guid>http://maleskoding.fr.wordpress.com/2008/10/07/menggunakan-mysql-c-api-pada-netbeans/</guid>
<description><![CDATA[Belakangan gw sering banget menggunakan Netbeans sebagai IDE utama untuk ngoding aplikasi dengan bah]]></description>
<content:encoded><![CDATA[<p>Belakangan gw sering banget menggunakan <a href="http://www.netbeans.org/">Netbeans</a> sebagai <a href="http://en.wikipedia.org/wiki/Integrated_development_environment">IDE</a> utama untuk ngoding aplikasi dengan bahasa C. Penggunaan <a href="http://www.netbeans.org/features/cpp/">Netbeans C/C++ Development</a> adalah salah satu fitur yang sangat menyenangkan bagi para <em>programmer</em> C/C++. Salah satu fitur yang menyenangkannya adalah kemudahan untuk mengkonfigurasi kode seperti penambahan <em>library</em> dan <em>include folder</em>.</p>
<p>Sebagai contoh kemudahannya adalah saat gw ingin menggunakan <a href="http://dev.mysql.com/doc/refman/5.0/en/c.html">MySQL C API</a> untuk aplikasi yang sedang gw kembangkan. Tahap-tahapnya adalah</p>
<ol>
<li>Instalasi libmysqlclient.<br />
Caranya sangat mudah. Untuk Ubuntu tinggal ketik pada terminal</p>
<pre>#sudo apt-get install libmysqlclient15-dev</pre>
</li>
<li>Include header mysql.<br />
Tinggal mengetikkan [sourcecode language="c"]<br />
#include <mysql/mysql.h><br />
[/sourcecode]</p>
<p>Dapat dilihat fitur <a href="http://en.wikipedia.org/wiki/Intellisense">intellisense</a> pada Netbeans langsung bekerja.<br />
<a href="http://maleskoding.wordpress.com/files/2008/10/1.png"><img class="alignnone size-full wp-image-62" title="1" src="http://maleskoding.wordpress.com/files/2008/10/1.png" alt="" width="429" height="166" /></a></li>
<li>Tambahkan library libmysql pada linker.<br />
Tanpa melakukan ini fungsi-fungsi yang akan digunakan tidak dapat dilink. Caranya adalah klik kanan pada project yang sedang dikerjakan, pilih Properties. Kemudian pilih menu Linker &#62; Libraries. Pilih Add Library. Kemudian masukkan /usr/lib/libmysqlclient.a</li>
<li>Setelah itu penulisan kode dapat dengan mudah dilakukan karena ada fitur intellisense.<br />
<a href="http://maleskoding.wordpress.com/files/2008/10/2.png"><img class="alignnone size-medium wp-image-63" title="2" src="http://maleskoding.wordpress.com/files/2008/10/2.png?w=300" alt="" width="348" height="46" /></a></p>
<p>Dan pembangunnya juga dapat tinggal dilakukan dengan fungsi Build pada Netbeans.</li>
</ol>
<p>Gampang jadinya ^_^</p>
<p>Referensi lebih lengkap mengenai fungsi-fungsi yang disediakan, ada pada dokumentasi resmi MySQL C API di <a href="http://dev.mysql.com/doc/refman/5.0/en/c.html">sini</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Mudando o idioma do Netbeans 6.1]]></title>
<link>http://paulocassiano.wordpress.com/?p=348</link>
<pubDate>Mon, 06 Oct 2008 19:11:04 +0000</pubDate>
<dc:creator>Paulo Cassiano</dc:creator>
<guid>http://paulocassiano.fr.wordpress.com/2008/10/06/mudar-alterar-idioma-netbeans/</guid>
<description><![CDATA[Não sei quanto a você, mas eu estou acustumado a usar ferramentas de desenvolvimento em inglês. N]]></description>
<content:encoded><![CDATA[<p>Não sei quanto a você, mas eu estou acustumado a usar ferramentas de desenvolvimento em inglês. Não quero entrar no mérito se assim elas são melhores, porém no mínimo isso é uma questão de custume.</p>
<p>Para minha surpresa, ao istalar a <a href="http://www.netbeans.org/community/releases/61/index.html" target="_blank">última versão</a> do <a href="http://www.netbeans.org/" target="_blank"><strong>Netbeans</strong></a>, <strong>mesmo tendo escolhido o idioma inglês</strong> na hora de baixar, ele "pegou" o idioma padrão de meu sistema (Português) e definiu que a IDE estaria em português... Vai entender...</p>
<p>Após muito apanhar, finalmente encontrei uma forma de <strong>trocar o idioma da IDE Netbeans para o português</strong>, e gostaria de compartilhar isso aqui:</p>
<p>Com o Netbeans fechado,</p>
<p><strong></strong></p>
<p><span style="color:#008000;"><strong>1)</strong> Acesse o diretório <strong>/etc</strong> (ou <strong>\etc</strong> se estiver no Windows. <strong>Você precisa ter permissões de leitura e escrita (ou Controle Total) na pasta - e nas subpastas - do Netbeans</strong></span></p>
<p><span style="color:#008000;"><strong>2)</strong> Abra o arquivo <strong>netbeans.conf</strong></span></p>
<p><span style="color:#008000;"><strong>3) </strong>Procure pela linha <strong>que termina com <span class="postbody">useScreenMenuBar=true</span></strong></span></p>
<p><span style="color:#008000;"><strong>4) </strong>Ao final desta linha, acrescente (exatamente desse jeito):</span></p>
<p><span style="color:#008000;"><strong><span class="postbody">-J-Duser.language=en -J-Duser.region=US</span></strong></span></p>
<p><span style="color:#008000;"><strong>5)</strong> Salve o arquivo e... finito!</span></p>
<p>Agora abra o Netbeans e comprove. ;-)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[taT | Open Projects w/o Browsing]]></title>
<link>http://nbguru.wordpress.com/?p=933</link>
<pubDate>Mon, 06 Oct 2008 12:55:08 +0000</pubDate>
<dc:creator>Varun</dc:creator>
<guid>http://nbguru.fr.wordpress.com/2008/10/06/tat-open-projects-wo-browsing-10/</guid>
<description><![CDATA[Its been 2 months, and I have not written any taT&#8217;s since then  Anyways, its time to move on, ]]></description>
<content:encoded><![CDATA[<p>Its been <strong>2</strong> months, and I have not written any <a href="http://feeds.feedburner.com/nbguru-tat" target="_blank"><strong>taT's</strong></a> since then :&#124; Anyways, its time to move on, and try out another cool trick :)</p>
<h4><a href="http://blogs.sun.com/geertjan/entry/a_different_way_of_starting" target="_blank">A different way of starting the IDE</a></h4>
<p><strong>Geertjan</strong> once blogged this entry, and said, "Drag and drop a desktop icon of a file onto the NetBeans desktop icon......and the IDE will start up, with the specified file open in the editor. That's always been possible, but is [as far as I am aware] completely unknown."</p>
<p>There are several such observations, which could be made, but it generally happens accidentally :P</p>
<h4>Opening Projects..</h4>
<p>Now, there are two ways of opening projects (created/maintained locally), that I have seen.</p>
<p><strong>General way- Browsing from Inside</strong></p>
<p>Firstly, you know that one has to go to "File &#62; Open Project.."<strong> OR, use a shortcut key- </strong>"Ctrl+Shift+O"</p>
<p>Then, you browse to the location of the project and then you "Open" it in the IDE.</p>
<p><strong>New way- Without Internal Browsing</strong></p>
<p>Now, what you can do? Whether NetBeans IDE is running or not, it doesn't matter, just use your system file browser which is faster than the IDE, and locate your project root.</p>
<p><em>Drag-n-Drop</em> the folder over NetBeans Desktop Icon, if its not running, OR <em>Drag-n-Drop</em> it over NetBeans running instance. It will take some time, and project would be opened, that too as <strong>Main Project</strong>, by default.</p>
<h4>What you have to do?</h4>
<p>Execute this trick and comment, if you like. Also, if you have some of the tricks to share, which makes life easier for users, share it with NetBeans Community through <a href="http://nb-community-docs.blogspot.com/" target="_blank">NetBeans Community Docs Program</a>! Another thing, if you're not a blogger and want to share similar DnD discoveries with the community, you can mail me - <strong>nvarun AT netbeans DOT org</strong></p>
<p>So, that I can blog about your discoveries, and contribute them to the above documentation project as well.</p>
<p><strong>Have a good day</strong> :)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Student Reviews Contest]]></title>
<link>http://sunkth.wordpress.com/?p=167</link>
<pubDate>Mon, 06 Oct 2008 09:17:16 +0000</pubDate>
<dc:creator>sunkth</dc:creator>
<guid>http://sunkth.fr.wordpress.com/2008/10/06/student-reviews-contest-2/</guid>
<description><![CDATA[MySQL 5.1 Community Edition and GlassFish Application Server v2 Update Release 2 (UR2) application s]]></description>
<content:encoded><![CDATA[<p><a href="http://sunkth.files.wordpress.com/2008/10/kth_contest.jpg"><img class="alignleft size-thumbnail wp-image-168" title="kth_contest" src="http://sunkth.wordpress.com/files/2008/10/kth_contest.jpg?w=128" alt="" width="128" height="96" /></a><a href="http://dev.mysql.com/downloads/mysql/5.1.html">MySQL 5.1 Community Edition </a>and <a href="https://glassfish.dev.java.net/downloads/v2ur2-b04.html">GlassFish Application Server v2 Update Release 2 (UR2)</a> application server are now available to download. We're pretty excited about these products, but we want to know how you, the student developers, can develop useful applications using the new features of these products.<br />
Use MySQL database and GlassFish application server to develop a web application and write a review for...<br />
* A chance to win a grand prize of $500 in Visa debit card, and<br />
* Five chances to win a prize of $250 in Visa debit card</p>
<p><strong>Simply:</strong><br />
1. Download MySQL 5.1 Community Edition and GlassFish v2 Update Release 2 (UR2).<br />
2. Develop a cool web application using the combination.<br />
3. Create a project of your application at java.net.<br />
4. Write a review of these products and post it in your blog.<br />
5. Submit your java.net project's URL and your review's URL.<br />
6. Do it before October 22, 2008.</p>
<p><strong>How to Enter</strong></p>
<p><strong>To participate, do the following:</strong><br />
1. Develop an innovative web application that uses MySQL 5.1 Community Edition database and GlassFish v2 UR2 application server. You can develop in any of the following languages: Java, PHP, Python, or Ruby. You must submit complete source code of the application, user documentation, developer/administrator documentation including application installation instructions, and appropriate executables. You must make all these deliverables available as a project at <a href="http://www.java.net/request_project.csp">java.net</a>. Provide your project's URL in the Submission Form below.</p>
<p>2. Write reviews of MySQL 5.1 Community Edition database and GlassFish v2 UR2 application server based on your experiences as you developed the web application. You must post the review in a blog or on a web page, and you must provide the corresponding URL in the Submission Form below.</p>
<p>The developed application and the reviews must be new material that you have written and not copied from something that you or others have already developed or published.</p>
<p>Finally, complete the submission form, and if you have any questions, <a href="https://www2.sun.de/dct/forms/reg_us_2908_490_0.jsp">submit a contact request</a>.</p>
<p><strong>Deadline</strong><br />
Contest starts: September 2, 2008<br />
Submission deadline: October 22, 2008<br />
Judging period: October 23 - November 20, 2008</p>
<p>Winners announced: November 21, 2008</p>
<p>For more information please look at <a href="http://www.sun.com/products-n-solutions/reviews/studentzone/contest.jsp">here</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Asercje i testowanie kodu]]></title>
<link>http://chlebik.wordpress.com/?p=61</link>
<pubDate>Mon, 06 Oct 2008 00:42:54 +0000</pubDate>
<dc:creator>chlebik</dc:creator>
<guid>http://chlebik.fr.wordpress.com/2008/10/06/asercje-i-testowanie-kodu/</guid>
<description><![CDATA[Wiadomym jest, że codzienna praktyka kodera PHP polega bardzo często na napisaniu w ciągu dnia ki]]></description>
<content:encoded><![CDATA[<p>Wiadomym jest, że codzienna praktyka kodera PHP polega bardzo często na napisaniu w ciągu dnia kilkanaście  (jeśli nie kilkadziesąt) razy kombinacji różnych <em>alertów, die'ów </em>czy inszych <em>echo</em> celem podejrzenia działania programu w konkretnym momencie, lub też zwracanej wartości. Praktyka codziennego stosowania w pracy testów jednostkowych jakoś się w webdeveloperskim świecie nie do końca przyjęła, a jeśli już, to w formie ostatecznych testów przed wypuszczeniem aplikacji do poważnego użycia (trochę upraszczam, wiem).</p>
<p>W Javie mamy osławiony <strong>JUnit</strong>, framework do tworzenia testów jednostkowych, o których nota bene książka czeka w kolejce na przeczytanie. Jednakże na szybko należy wspomnieć o innym ciekawym rozwiązaniu, które w praktyce jest dla programistów całkiem miłym ułatwieniem. Konkretnie chodzi o <strong>asercje</strong>. Mówiąc krótko jest to taki warunek logiczny, którego niespełnienie (fałsz) powoduje przerwanie wykonywania programu. Jest to element języka, zatem nie trzeba od razu zatrudniać całej machiny testów jednostkowych, wystarczy wklepać w kod raptem jedną linijkę. Oto przykład:</p>
<p><code><br />
public static void main(String[] args) { int licznik = 2;<br />
int dzielnik = 0;  // To jest zabronione<br />
int wynik;<br />
assert dzielnik != 0 : "Ty no nie dzieli się przez zero";<br />
wynik = licznik/dzielnik; }<br />
</code></p>
<p>Oczywiście przykład jest bardzo prosty i ostry, w normalnych warunkach bez składni <strong>assert</strong> wyrzucony zostałby  <strong>ArithmeticException</strong>. Jednakże w tym przypadku zostanie uprzednio zgłoszony wyjątek <strong>AssertionError </strong>wraz z komunikatem, który podaliśmy zaraz po warunku. Niby nic, a jednak wiele - jakie są zyski z używania asercji? </p>
<p>Zasadniczo to dwa. Pierwszy jest taki, że wyrzucanie wyjątków asercji jest domyślnie <strong>wyłaczone!!!</strong> By uruchomić tę opcję należy wywoływać kompilator z parametrem <strong>-ea. </strong>W <strong>NetBeans </strong>wystarczy kliknąć prawym przyciskiem myszy na projekcie i <strong>Set Configuration-&#62;customize. </strong>I w okienku uruchomieniowym w rubryce <strong>VMOptions </strong>wpisać owo <strong>-ea</strong>.  Od tej pory przy kompilacji asercje będą brane pod uwagę. Jest to o tyle dobre, że dzięki jednej opcji, można bez problemu w ciągu jednej chwili przestawić aplikację ze stanu docelowego na developerski. Nie trzeba zakomentowywać masy kodu, wystarczy zmienić argument wywołania VM.</p>
<p>Drugim plusem jest informacja dla innych (poważne projekty to raczej nie domena 1 osoby) o założeniach dotyczących danego fragmentu kodu. Oczywiście na podanym przeze mnie przykładzie tego może i nie widać, za to przy dużych projektach, kiedy zależności między klasami zaczynają przypominać labirynt asercje pokazują swoją przydatność. O wiele łatwiej jest przeczytać w kodzie (lub wyniku kompilacji) <strong>"Kierowniku tutaj nie powinno być NULL"</strong>, niż przedzierać się przez gąszcz plików w poszukiwaniu klasy, z której pochodzi feralna metoda powodująca wyrzucenie wyjątku. Mała rzecz, a cieszy.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cerrar varios proyectos al mismo tiempo en Netbeans 6.1]]></title>
<link>http://vramirez.wordpress.com/?p=66</link>
<pubDate>Sun, 05 Oct 2008 04:14:34 +0000</pubDate>
<dc:creator>vramirez</dc:creator>
<guid>http://vramirez.fr.wordpress.com/2008/10/04/cerrar-varios-proyectos-al-mismo-tiempo-en-netbeans-61/</guid>
<description><![CDATA[Hoy estuve trabajando en algunas cosas en netbeans. Luego de un rato, tenia cerca de 10 proyectos ab]]></description>
<content:encoded><![CDATA[<p>Hoy estuve trabajando en algunas cosas en netbeans. Luego de un rato, tenia cerca de 10 proyectos abiertos al tiempo. Por alguna extraña razón soy muy maniático con eso de tener tantos proyectos abiertos asi que empecé a cerrarlos. De pronto, el homo sapiens que todos llevamos dentro me empezó a hablar... "Que tal si los seleccionas todos y les das cerrar?? hmmm.. por qué no?...". Los seleccioné y le di click derecho, y ahi estaba ante mi, quizás la opción más novedosa que haya visto en netbeans!! Bueno tampoco, pero aunque no parezca gran cosa, a mi me pareció genial. ¿Por qué no la pusieron como un "highlight feature!!??". Acá les dejo una imagen para que tengan una idea.</p>
[caption id="attachment_67" align="aligncenter" width="271" caption="Cerrar todo"]<a href="http://vramirez.files.wordpress.com/2008/10/closeall.png"><img class="size-full wp-image-67" title="closeall" src="http://vramirez.wordpress.com/files/2008/10/closeall.png" alt="Cerrar todo" width="271" height="280" /></a>[/caption]
<p>Luego de hacer click en "Close 6 Projects", estos se esfumaron ante mis ojos en un santiamen... si ya sé, necesito dormir :p</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[88 again, 12 to go!]]></title>
<link>http://nbguru.wordpress.com/?p=917</link>
<pubDate>Fri, 03 Oct 2008 05:41:33 +0000</pubDate>
<dc:creator>Varun</dc:creator>
<guid>http://nbguru.fr.wordpress.com/2008/10/03/88-again-12-to-go/</guid>
<description><![CDATA[In month of August, when community docs program reached an important milestone of 200 docs. I though]]></description>
<content:encoded><![CDATA[<p>In month of <strong>August</strong>, when community docs program reached an important milestone of <a href="http://www.netbeans.org/community/articles/nb-communitydocs-200.html" target="_blank">200 docs</a>. I thought of maintaining some statistics about the program, so I calculated the no. of docs contributed under <strong>James Branam</strong> (when he managed the program alone), <strong>Amit Kumar Saha</strong> (when he joined in <a href="http://wiki.netbeans.org/NBCDSep07" target="_blank">Sep '07</a>) and finally, when Amit left and I became the new coordinator.</p>
<p>I found out that the distribution was <strong>50</strong>, <strong>88</strong>, and <strong>62 </strong>(respectively)- summing up to <strong>200</strong> docs. So, it was <strong>62</strong> in <strong>3</strong> months ;) Well, few days back, i.e. on <strong>Sep 30, 2008- </strong>Total contributions were<strong> 226</strong>.</p>
<h3>88 again, 12 to go!</h3>
<p>That means <strong>26</strong> in <strong>2</strong> months- summing up <strong>62</strong> and <strong>26</strong>, we get <strong>88</strong> docs! If you remember, when <strong>Amit</strong> left the coordinator position, same no. of docs were contributed under him. Don't worry.. I am not leaving right now.. Its still a long way to go, I hope so!</p>
<p>However, that also means, I need <strong>12</strong> more contributions to make a century here as well. What say? Are you ready to contribute?</p>
<p style="padding-left:30px;text-align:center;">
<p style="padding-left:30px;text-align:center;">Many <a href="http://planetnetbeans.org/"><span style="font-weight:bold;">bloggers</span></a> are invited and are in progress of writing it, they would soon be out with their documentations. You can also make a difference by contributing a documentation...</p>
<p style="padding-left:30px;text-align:center;">So, please do <a href="http://wiki.netbeans.org/CommunityDocs">join us and contribute</a>!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Como centralizar um jFrame?]]></title>
<link>http://sl4v3r.wordpress.com/?p=177</link>
<pubDate>Thu, 02 Oct 2008 01:57:16 +0000</pubDate>
<dc:creator>sl4v3r</dc:creator>
<guid>http://sl4v3r.fr.wordpress.com/2008/10/02/como-centralizar-um-jframe/</guid>
<description><![CDATA[Para centralizar um jFrame, basta incluir a linha abaixo no construtor da classe.
setLocationRelativ]]></description>
<content:encoded><![CDATA[<p>Para centralizar um jFrame, basta incluir a linha abaixo no construtor da classe.</p>
<p><span style="color:#008080;">setLocationRelativeTo(null); </span></p>
<p>Aconselho utilizar o <a title="NetBeans" href="http://www.netbeans.org/" target="_blank">NetBeans</a> para aplicações gráficas no Java.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[My stony way to find a ruby on the rails]]></title>
<link>http://karussell.wordpress.com/?p=331</link>
<pubDate>Wed, 01 Oct 2008 20:41:10 +0000</pubDate>
<dc:creator>karussell</dc:creator>
<guid>http://karussell.fr.wordpress.com/2008/10/01/my-stony-way-to-find-a-ruby-on-the-rails/</guid>
<description><![CDATA[Ruby is a great language. All can be expressed so short and readable. That&#8217;s one side.
The oth]]></description>
<content:encoded><![CDATA[<p>Ruby is a great language. All can be expressed so short and readable. That's one side.</p>
<p>The other side is: you have to learn a lot of exceptions to common stuff that you  already learned in another languages (In my case Java).</p>
<p>So today I will explain things where it took me a lot of time to understand how to do this and what ruby (and rails) does. Let us start with the very basics: installation and then the pure ruby language.</p>
<h1>Setup MySql</h1>
<p>If you use debian as OS it is quite simple to install mysql:</p>
<pre>sudo apt-get install mysql-server</pre>
<p>Then create a database with the following lines</p>
<p><code>mysql -u root </code>-p<br />
type the following in the mysql shell:<br />
<code><br />
CREATE DATABASE mydb;<br />
GRANT ALL PRIVILEGES ON mydb.* TO 'admin'@'localhost' IDENTIFIED BY 'admin' WITH GRANT OPTION;<br />
FLUSH PRIVILEGES;<br />
quit;<br />
</code></p>
<p>Later on you can log into the mysql database via<br />
mysql -u admin -p<br />
[now type the password 'admin']</p>
<pre>SHOW TABLES FROM mydb;</pre>
<p>I suggest you to use <a href="http://www.squirrelsql.org/">http://www.squirrelsql.org/</a> to view and even manipulate the database. The nice thing about this java program is: you can simply install the jdbc drivers for your database (e.g <a href="http://www.zentus.com/sqlitejdbc/">sqlite</a> or <a href="http://dev.mysql.com/downloads/connector/j/5.0.html">mysql</a>) and after configuring them you can browse the databases in a nice way!</p>
<h1>Install Ruby and Rails</h1>
<p>To be independend from Java or if you don't want to use JRuby you have to install ruby on your machine:</p>
<pre>sudo apt-get install ruby libzlib-ruby rdoc irb</pre>
<p>Now install gems ...</p>
<pre>sudo apt-get install rubygems
sudo gem install mysql</pre>
<p>... and rails</p>
<pre>sudo apt-get install rails</pre>
<h1>Create a Skeleton Application</h1>
<p>Optionally install NetBeans 6.1 (and Java &#62;1.5 before) to get some handy functionality.</p>
<p>Be sure that you choose a package with rails or install the rails plugins via: Tools-&#62;Plugins.</p>
<p>Now you should able to create a rails application: New Project-&#62;Ruby On Rails Application. Click Next and choose your ruby system. (Or do 'rails testapp' on the command line).</p>
<p>You will get a list of created files. To quickly navigate to a file in NetBeans press ALT+SHIFT+O (Oh not zero) and type in the name. Now I will go through some of the generated files:</p>
<p>app/controllers/application.rb</p>
<p>This is the base class for all of our controllers. To study the Model-View-Controller pattern visit <a href="http://en.wikipedia.org/wiki/Model-view-controller">wikipedia</a>. In our controllers we put in all of our application logic. For example the password encryption when one of our user logs in.</p>
<p>app/helpers/application_helper.rb</p>
<p>In this helper modul we define some convinient methods for our view</p>
<p>test/test_helper.rb</p>
<p>With this class it is easy to test the implemented (helper) methods. Read "Agile Web Development with Rails" to be surprised that unit and even integration tests are very easy (and fast) to write.<br />
config/database.yml<br />
The generated content looks like:<br />
development:<br />
# your database server:<br />
adapter: mysql<br />
<strong>encoding: utf8</strong><br />
database: mydb<br />
username: admin<br />
password: admin<br />
timeout: 5000<br />
# necessary if you are on debian:<br />
socket: /var/run/mysqld/mysqld.sock<br />
...<br />
config/routes.rb<br />
Here you will define later more fine grained navigation rules for the pages of your web application.</p>
<p>In NetBeans (with rails of course) database-migrating is very easy: right click the project-&#62;Migrate Database-&#62;To [misc] Version or Clear...</p>
<p>Start the web server with F6 in NetBeans or type</p>
<p><code>ruby script\server</code></p>
<p>Then go to http://localhost:3000/ with your browser and you should see ruby's welcome page.</p>
<p>Now we want to replace the index.html with an erb (like jsp) file. To do this we will remove the public/index.html file and do</p>
<pre class="active4d">script<span class="Operator">/</span>generate controller home index</pre>
<p>add the following to the routes.rb</p>
<pre class="active4d">map.home '', :controller =&#62; 'home', :action =&#62; 'index'</pre>
<p>To add some more functionality to our rails application there are a lot of plugins available. One of them is the <a href="http://github.com/technoweenie/restful-authentication/tree/master">restful_authentication</a>, where a <a href="http://railsforum.com/viewtopic.php?id=14216">tutorial plugin</a> (or <a href="http://github.com/activefx/restful_authentication_tutorial/tree/master">here</a>) exists which itself references to a bunch of other useful plugins. Check them out!.</p>
<p>Now some comments on setting up the restful_authentication plugin: Add the following resource to your repositories if you need this plugin (and others from the author):</p>
<pre>script/plugin source http://svn.techno-weenie.net/projects/plugins/script/plugin install restful_authentication</pre>
<p>or simply do</p>
<pre>script/plugin install <a href="http://svn.techno-weenie.net/projects/plugins/restful_authentication/" target="_blank">http://svn.techno-weenie.net/projects/plugins/restful_authentication/</a></pre>
<p>On my machine it took a lot of time and finished with an timeout error so I did:</p>
<pre>sudo apt-get install git-corecd vendor/plugin &#38;&#38; git clone git://github.com/activefx/restful_authentication.gitmv restful-authentication/ restful_authentication/ &#38;&#38; cd ../..</pre>
<p>Now generate the necessary classes:</p>
<pre>script/generate authenticated user sessions --include-activation --stateful</pre>
<h1>My (unsorted) Comments</h1>
<p>Try getting started with rails and come back here to read the following comments (or post your own!) if you figured out sth. worth enough to be said for beginners.</p>
<ol>
<li>For restful_authentication:<br />
Be sure that you ignore the config/initializers/site_keys.rb in your subversion!! But save it, because you will need it for your application!</li>
<li>If need a login snippet like the one from the <a href="http://railsforum.com/viewtopic.php?id=14216">authentication tutorial</a>:<br />
app/views/users/_user_bar.html.erb in your start up weü page app/views/home/index.html.erb<br />
Use the following line:<br />
&#60;%= render(:partial =&#62; "users/user_bar") %&#62;</li>
<li>If you need ssh2 try:<br />
# require 'digest/sha1'<br />
require 'digest/sha2'<br />
def User.mydigest(str)<br />
Digest::SHA256.digest(str)<br />
#Digest::SHA1.hexdigest(str)<br />
end</li>
<li><em>What the hell is this string with a colon?</em> I mean the ':password' here:<br />
update_attributes :password =&#62; 'secure'<br />
It is called symbol and is the name of a variable e.g. of a class. Where 'secure' is the value of the variable password. So with this method call e.g. within the User class you do password = 'secure'.<br />
Example:<br />
var = { 'a' =&#62; 'b', 1 =&#62; 'c'}<br />
assert_equals('b', var['a'])</li>
<li><em>And what is the :password =&#62; 'secure' statement?</em><br />
This is a key =&#62; value expression without the {} braces of the hash (Map in Java) , which are optional if the hash is the last parameter. This is very handy if you have several properties to set.</li>
<li><strong><em>What is 'self'?</em></strong> It depends! Read more about self <a href="http://www.angelbob.com/musings/?p=12">here</a>!
<ul>
<li> global variables begins with @@</li>
<li> object variables begins with an @ (All the instance methods of a class can access this variable. So every object has its own set of object variables.)</li>
<li> local variable begins with a lower case character (except 'self')</li>
<li> constant variables begins with an upper case character (except ':symbol')</li>
</ul>
<p><strong>Warning</strong>: if you don't add self in front of you object variables, ruby assumes that they are local!?</li>
<li><em>What is attr_accessor :name?</em> This will create a getter and a setter for the variable 'name'.<br />
Or define a setter manually (via operator overloading)<br />
def volume=(vol)<br />
leftChannel = self.rightChannel = vol<br />
end</li>
<li><em>Where is the constructor of User? </em>Do<br />
user = User.new</li>
<li>escape html in the view via h(user_input).<br />
<strong>For more security related stuff look <a href="http://railscasts.com/tags/5">here</a>, <a href="http://www.rorsecurity.info/ruby-on-rails-security-cheatsheet/">here</a> and <a href="http://www.quarkruby.com/2007/9/20/ruby-on-rails-security-guide">here</a>.</strong></li>
<li>The following line is not always secure ('mass assignment')<br />
User.new(params[:user])<br />
To make it secure do:<br />
attr_accessible :name<br />
Now only the variable name can be change via url parameters.</li>
<li>The following statement is unsecure<br />
User.find(:all, :conditions =&#62; ["name like '%#{params[:query]}%'"])<br />
Use<br />
:conditions =&#62; "name like ?", '%' + params[:query] + '%'</li>
<li>add filter_parameter_logging :password to application.rb<br />
=&#62; all fields with names like "password" will get [FILTERED] in the logs</li>
<li>Rails add a very handy method to objects:<br />
o.blank?<br />
<em>An object is blank if it‘s false, empty, or a whitespace string. For example, "", " ", <tt>nil</tt>, [], and {} are blank.</em> Taken from <a href="http://api.rubyonrails.com/classes/Object.html">here</a>.</li>
<li>There is no counter++<br />
Use counter += 1</li>
<li>Swapping variables:<br />
a, b = b, a<br />
This work in methods too! E.g. return a pair of variables via<br />
def meth<br />
return a, b<br />
end<br />
Now call the method<br />
b, a = meth</li>
<li>if sugar - 'the other wayround'<br />
puts 'hello world' if str == 'name'</li>
<li>defined? var<br />
will return true if there is a field named var</li>
<li>You can use 'hello' or "hello"<br />
The only difference for those strings is the expression evaluation like "#{var}"<br />
This will work only in ""</li>
<li>comments are like in bash: #<br />
Or use this to comment several lines:<br />
=begin<br />
here is comment<br />
here too. WARING: =begin and =end has to be the first characters on the lines!<br />
=end</li>
<li>Default values for method parameters via<br />
def meth(param='test')<br />
end</li>
<li>def see_how_to_throw<br />
begin<br />
# Do something nifty<br />
raise SomeError, "This is the error message!"<br />
rescue SomeError<br />
# This is executed when a SomeError exception is raised<br />
# to rethrow do<br />
# raise $!<br />
rescue AnotherError =&#62; error<br />
# Here, the exception object is referenced from the<br />
# `error' variable<br />
else<br />
# This is executed only if no exceptions were raised<br />
ensure<br />
# This is always executed, exception or not<br />
end<br />
end</li>
<li>A very useful tool for testing is autotest:<br />
gem install ZenTest</li>
<li>It is eays to test with rails! Very easy to write unit and functional testing of your controllers and the pages.<br />
In NetBeans press ALT+F6 to start them.</li>
<li>use %{ } for xml strings directly unescaped in the code! Very handy.</li>
<li>Time sugar:<br />
3.minutes + 3.hours<br />
returns the result in seconds! Much more ...</li>
<li>counter &#124;&#124;= 0<br />
This statement will only be executed if counter is nil. Useful for singletons you think? Use <a href="http://www.angelbob.com/musings/?p=12">self</a> for this!</li>
<li>Unicode support is not that good. Use Chars instead of the built in String class. Or convert to Chars before working with strings.</li>
<li><em>Why are there named routes in routes.rb?</em><br />
These routes are accessible from the view. E.g. the following line is a named route (map.hello instead of map.resource)<br />
map.hello '/fhello', :controller =&#62; 'users', :action =&#62; 'hello'<br />
So the method hello will be invoke if the user click the link in the view which is generated via &#60;%=hello_url%&#62;<br />
One special name 'map.resources' indicates that rails should create 7 standard routes (4 of them are the CRUD methods). For example <em>map.resources :articles</em> will create the following routes:<br />
/articles (GET=&#62;shows all, POST=&#62;create a new)<br />
/articles/new (shows html for new article)<br />
/articles/1 (GET=&#62;shows the first article, PUT=&#62;update, DELETE=&#62;deletes the article)<br />
/articles/1;edit</li>
<li><strong>parsing invalid xml</strong> with require 'rubygems' and require 'rubyful_soup'. Then do:<br />
xml_data = Net::HTTP.get_response(URI.parse(url)).body<br />
doc = BeautifulSoup.new(xml_data)</li>
</ol>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cambiar formato númerico a formato con comas (miles)]]></title>
<link>http://nachxs.wordpress.com/?p=276</link>
<pubDate>Wed, 01 Oct 2008 20:15:39 +0000</pubDate>
<dc:creator>nachxs</dc:creator>
<guid>http://nachxs.fr.wordpress.com/2008/10/01/cambiar-formato-numerico-a-formato-con-comas-miles/</guid>
<description><![CDATA[Esta es una forma rápida y sencila de cambiar un formato númerico entero o decimal por ejemplo 122]]></description>
<content:encoded><![CDATA[<p style="text-align:justify;">Esta es una forma rápida y sencila de cambiar un formato númerico entero o decimal por ejemplo 1220 ó 1220.23 a un formato separado con comas por ejemplo 1,220 ó 1,220.23. Esto lo hice por cuestiones de trabajo en reportes.</p>
<p style="text-align:justify;"><span style="color:#0000ee;text-decoration:underline;"><a href="http://nachxs.files.wordpress.com/2008/10/formatomiles.png"><img class="aligncenter size-full wp-image-282" title="formatomiles" src="http://nachxs.wordpress.com/files/2008/10/formatomiles.png" alt="" width="431" height="128" /></a><br />
</span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Problems with Webservices in Netbeans and how to solve them]]></title>
<link>http://netbeansboy.wordpress.com/?p=152</link>
<pubDate>Wed, 01 Oct 2008 15:30:29 +0000</pubDate>
<dc:creator>pncblessed</dc:creator>
<guid>http://netbeansboy.com/2008/10/01/problems-with-webservices-in-netbeans-and-how-to-solve-them/</guid>
<description><![CDATA[Ok, rather than give a tutorial on web services - because there are some around, I thought I would s]]></description>
<content:encoded><![CDATA[<p>Ok, rather than give a tutorial on web services - because there are some around, I thought I would solve one of the mysterious problems that can occur when you are creating these services.</p>
<p>Netbeans is AMAZING at creating web services, the tools are incredibly rich.</p>
<p>But this error dogged me. I had one or two web services that worked and others that didn't. To set up my service I had set up some inner classes</p>
<pre>public static class dtaData {
private String Name;
private String date;
private String sid;
}</pre>
<p>then created a web services that returned a LIST of those objects:-</p>
<pre>    @WebMethod(operationName = "Data")
    public List Data() {
        List result=new ArrayList();
       for (int i=0;i&#60;20;++i) {
        dtaData DataObject=new dtaData ();
       DataObject.sid=""+i;
       result.add(Result);
     }

        
        return result;
    }
  </pre>
<p>And it falls over with this error when you test the webserver. HOWEVER The problem is caused because there is no web service DIRECTLY returning the dtaData class. The solution is to create a web service that returns null but has dtaData as the returning Object.</p>
<p>e.g.</p>
<pre>    @WebMethod(operationName = "testData")
    public dtaData testData() {
           return null;

    }
   </pre>
<p>These errors are given when the problem occurs:-</p>
<p><strong>On the glassfish server</strong></p>
<pre>Caused by: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
 - with linked exception:
[javax.xml.bind.JAXBException: class PHJ.Agenda$ICDB_Agenda_data nor any of its super class is known to this context.]
        at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:322)
        at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
        at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
        at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
        at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
        at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
        at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)</pre>
<p><strong>On the web service test return:</strong><br />
<hr />
<h3>Exceptions details : java.lang.reflect.InvocationTargetException</h3>
<hr />javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:165) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.Ap</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Sun Microsystems Announces Code For Freedom 2008 ]]></title>
<link>http://letmeknow.wordpress.com/?p=1093</link>
<pubDate>Wed, 01 Oct 2008 05:12:00 +0000</pubDate>
<dc:creator>Mohamed Sanaulla</dc:creator>
<guid>http://letmeknow.fr.wordpress.com/2008/10/01/sun-microsystems-announces-code-for-freedom-2008/</guid>
<description><![CDATA[Sun Code For Freedom 2008 
Organised By: Sun Microsystems
Key Dates:
Deadline for Submission of Proj]]></description>
<content:encoded><![CDATA[<p><a href="http://in.sun.com/communities/univ/codeforfreedom/" target="_blank"><strong>Sun Code For Freedom 2008 </strong></a><img src="http://in.sun.com/communities/univ/codeforfreedom/images/l0_codecontest.jpg" alt="Code For Freedom 2008" width="233" height="49" align="right" /></p>
<p><strong>Organised By:</strong> Sun Microsystems</p>
<p><strong>Key Dates:</strong><br />
Deadline for Submission of Project Proposal: December 31, 2008<br />
Contest Ends: April 30, 2009<br />
Winners Announced: June 14, 2009<br />
<!--more--><br />
<strong>For Whom:</strong><br />
Any resident student (foreign or Indian) of an accredited Indian Educational institution.</p>
<p>The free and open source movement is emerging as the new world order in the technology sector across the world. Today, free and open source products such as Apache Web Server, OpenOffice.org and GNU/Linux have dwarfed several proprietary software products.</p>
<p>Sun Microsystems has announced the Second Edition of Code For Freedom 2008 Contest where students across India will contribute to the technologies that are empowering the Participation Age. One can gain industry experience while at college by participating in this contest.</p>
<p>Code For Freedom is an open source code contest conducted by Sun Microsystems targeting the student community. Through this contest, they intend to involve the large student community to join the open source movement by contributing to the various open source initiatives that Sun espouses.</p>
<p>The various Sun Technologies one can work on are: GlassFish, GridEngine, JavaDB, java.net, Mobile &#38; Embedded, MySQL, NetBeans, OpenDS, Open ESB, OpenJDK, OpenCDS, Open HA, Cluster, OpenOffice.org, OpenSPARC, OpenSSO, OpenSolaris, PostgreSQL, VirtualBox.</p>
<p>For more details on the Technologies visit <a href="http://in.sun.com/communities/univ/codeforfreedom/technologies.jsp" target="_blank">here</a>.</p>
<p>One can view the prize details <a href="http://in.sun.com/communities/univ/codeforfreedom/prizes.jsp" target="_blank">here</a>.</p>
<p>For more details contact: codeforfreedom@sun.com</p>
<p><em><br />
Subscribe to Geek RSS Feed <a title="Geek" href="http://feeds.feedburner.com/LetMeKnowGeek" target="_blank"><span style="color:#105cb6;">here</span></a>.</em><br />
<em> Subscribe to Let Me Know RSS Feed <a title="Let Me Know" href="http://feeds.feedburner.com/letmeknowlmk" target="_blank"><span style="color:#105cb6;">here</span></a>.</em></p>
<p><!-- AddThis Button BEGIN --><br />
<a title="Bookmark and Share" href="http://www.addthis.com/bookmark.php" target="_blank"><img src="http://s9.addthis.com/button1-share.gif" border="0" alt="Bookmark and Share" width="125" height="16" /></a><br />
<!-- AddThis Button END --></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Software Freedom Day'08 in Basilan Province, Philippines]]></title>
<link>http://yolynne.wordpress.com/2008/10/01/software-freedom-day-08-in-basilan-province-philippines/</link>
<pubDate>Tue, 30 Sep 2008 22:00:37 +0000</pubDate>
<dc:creator>yolynne</dc:creator>
<guid>http://yolynne.fr.wordpress.com/2008/10/01/software-freedom-day-08-in-basilan-province-philippines/</guid>
<description><![CDATA[

Software Freedom Day 08 in Basilan Province, Philippines
Originally uploaded by yolynne

I had the]]></description>
<content:encoded><![CDATA[<div style="float:right;margin-left:10px;margin-bottom:10px;">
<p><a title="photo sharing" href="http://www.flickr.com/photos/yolynne/2896580220/"><img style="border:solid 2px #000000;" src="http://farm4.static.flickr.com/3161/2896580220_133fa96636_m.jpg" alt="" /></a></p>
<p><span style="font-size:.9em;margin-top:0;"><a href="http://www.flickr.com/photos/yolynne/2896580220/">Software Freedom Day 08 in Basilan Province, Philippines</a><br />
Originally uploaded by <a href="http://www.flickr.com/people/yolynne/">yolynne</a><br />
</span></div>
<p>I had the opportunity last Saturday, September 27, 2008, to go back and visit again Isabela, Basilan Province and give an introductory talk about Free and Open Source Software.  I am not a very geeky person, but I can deliver a talk and share about my personal experiences as to how I got involved with it.  Being a FOSS enthusiast doesn't prevent you from using proprietary softwares but rather enables you to equip yourself and be educated with FOSS Alternative softwares.  Some hard core FOSS promoters might get hurt with my intention of introducing FOSS as an alternative software, but the reason behind is that, we cannot force people to take or embrace FOSS applications immediately.  We need to take it easy in teaching them and take one baby steps at a time.  The process they undergo in using FOSS apps will eventually empower them and give an adrenalin rush and engage them to learn more; and that is my goal at the moment.  I don't care if people ask me why I am still using Windows or another proprietary software because I still use Ubuntu Linux as well.  I use both and I love them both period.</p>
<p>I would like to thank the organizers, D'Comtecian and their moderator Mr. Rj Ian Sevilla for a very well organized event.</p>
<p>The program started with keynote address given by Dr. Francis Sarmiento III of <a href="http://www.iosn.net">International Open Source Network ASEAN +3</a> and Mr. Ric Bahaguer of <a href="http://www.cpu-union.com">CPU-UNION</a> and Mr. Jamjun Rivera of Jaycees Basilan. Dr. Sarmiento and Mr. Bahaguer delivered their address thru Skype since both are based in Manila.</p>
<p>Other speakers during the event were:</p>
<p>Ms. Grace Sojor who discussed about Java and the Netbeans IDE,<br />
Mr. Jerico Rivera who talked about PHP and the CodeIgniter Framework,<br />
<a href="http://rjian.blogspot.com">Mr. Rj Ian Sevilla</a> who demonstrated  the installation of Joomla and discussed its interface,<br />
and yours truly who explained about FOSS and the philosophies and ideologies behind. I also demonstrated Ubuntu Linux thru live CD and discussed the different FOSS applications and its equivalent in the proprietary softwares.</p>
<p>We would like to thank the Sponsors of the event, who were very generous enough to support this endeavor:</p>
<p><a href="http://ubuntu.com">Ubuntu Linux</a> for sending us 8.04 CDs and Ubuntu t-shirts<br />
<a href="http://www.netbeans.org"> Netbeans</a> for sending Netbeans/Java CDs and Netbeans t-shirts as well<br />
<a href="http://wahoy.com"> Wahoy.com</a> for online media promotion<br />
<a href="http://www.jeromelocson.com"> JeromeLocson.com</a> for the CDs and the Streamer</p>
<p>I have uploaded some of the photos during the event including my travel to Basilan at <a title="SFD'08 in Basilan Photos" href="http://flickr.com/photos/yolynne/sets/72157607555922678/">Software Freedom Day 08 in Basilan Province</a></p>
<p>P.S.1<br />
We celebrated SFD on the 27th since there were a lot of activities here in our area during the SFD day itself.</p>
<p>P.S.2<br />
I will try to upload some more photos as well as the presentations of each speakers.</p>
<p>Thank you very much also to the very active and jolly participants with a lot of help from our emcee the funny Mr. Ryan. The said event is surely one of the most fun FOSS event that I have attended.</p>
<p>Should you have any questions or would want to contact me, you can reach me at yolynne [at] gmail.com.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Netbeans و Eric محیط های قدرتمند برنامه نویسی]]></title>
<link>http://linux2.wordpress.com/?p=111</link>
<pubDate>Tue, 30 Sep 2008 21:46:20 +0000</pubDate>
<dc:creator>hosein-mec</dc:creator>
<guid>http://linux2.fr.wordpress.com/2008/10/01/netbeans-%d9%88-eric-%d9%85%d8%ad%db%8c%d8%b7-%d9%87%d8%a7%db%8c-%d9%82%d8%af%d8%b1%d8%aa%d9%85%d9%86%d8%af-%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d9%87-%d9%86%d9%88%db%8c%d8%b3%db%8c/</guid>
<description><![CDATA[همانطور که میدانید ابزارهای IDE یا Integrated Development Environment بر]]></description>
<content:encoded><![CDATA[<p>همانطور که میدانید ابزارهای <a href="http://fa.wikipedia.org/wiki/%D9%85%D8%AD%DB%8C%D8%B7_%D8%AA%D9%88%D8%B3%D8%B9%D9%87_%D9%85%D8%AC%D8%AA%D9%85%D8%B9" target="_blank"><span style="color:#0000ff;"><strong><span><span>IDE</span></span></strong></span></a> یا <strong>Integrated Development Environment</strong> برنامه هایی هستند که یک محیط قوی و گرافیکی با ابزارهای زیادی را برای برنامه نویسی در اختیار ما قرار می دهند. در این مطلب قصد دارم دو تا از این برنامه ها را با نام های Netbeans و Eric معرفی کنم. البته هدف از این مطلب , معرفی کوتاه و مختصر این دو IDE و بیشتر نحوه ی نصب آخرین نسخه ی آنها است.</p>
<p><!--more--></p>
<p>&#160;</p>
<h1 style="text-align:center;"><strong>NetBeans IDE</strong></h1>
<p>&#160;</p>
<p><img class="aligncenter" title="Netbeans IDE" src="http://www.smushit.com/results/66f07611/smush/2k1zxt.png" alt="" width="400" height="87" /></p>
<p>&#160;</p>
<p>اولین IDE که <a href="http://netbeans.org/" target="_blank"><span style="color:#0000ff;"><strong>NetBeans</strong></span></a> نام دارد محصول قدرتمند کمپانی Sun هست که از زبان های زیادی از جمله PHP , C/C++ , Java , Ruby و ... پشتیبانی می کند. این برنامه ی اپن سورس و رایگان در سیستم عامل های Windows, Linux, Mac OS X و Solaris قابل اجراست و آخرین نسخه ی پایدار آن در حال حاضر 6.1 می باشد. شما میتوانید علاوه بر دانلود نسخه ی کلی این برنامه که همه ی زبان ها را پشتیبانی می کند , نسخه ی مربوط به زبان مورد نظر خود را که حجم کمتری دارد با مراجعه به این<span style="color:#0000ff;"> <a href="http://sunmicro.vo.llnwd.net/c1/netbeans/6.1/final/" target="_blank"><strong>صفحه</strong></a> </span>دانلود کنید.</p>
<p>قبل از نصب این برنامه باید Java را در توزیع خود نصب کنید. نام بسته هایی که در توزیع های خانواده ی اوبونتو باید نصب شوند sun-java6-jre و sun-java6-jdk هستند. پس از نصب این بسته ها و دانلود نسخه ی لینوکسی مورد نظر خود که پسوند آن sh می باشد , می توانید NetBeans 6.1 را با اجرای دستورات زیر در محل فایل دانلود شده نصب کنید :</p>
<p><code>sudo chmod +x netbeans-6.1-ml-inux.sh<br />
./netbeans-6.1-ml-linux.sh</code></p>
<p>بعد از اجرای دستورات بالا , مراحل نصب را به سادگی دنبال کنید تا نصب آن تمام شود.</p>
<p>&#160;</p>
<h1 style="text-align:center;"><span style="color:#333333;"><strong>Eric IDE</strong></span></h1>
<p>&#160;</p>
<p><img class="aligncenter" title="Eric IDE" src="http://www.smushit.com/results/9e8d4b81/smush/2s0cn7b.png" alt="" width="449" height="222" /></p>
<p>&#160;</p>
<p>برنامه دوم <a href="http://www.die-offenbachs.de/eric/index.html" target="_blank"><span style="color:#0000ff;"><strong>Eric</strong></span></a> نام دارد که یک IDE اپن سورس و قدرتمند برای زبان های Python و Ruby است. این برنامه نیز تمام ویژگی ها و ابزار های یک IDE قدرتمند از جمله syntax highlighting , code folding , code calltips , project management و ... را دارا می باشد. همچنین با این برنامه که با زبان Python و کتابخانه های Qt نوشته شده است , می توانید رابط گرافیکی نیز با استفاده از کتابخانه های Qt طراحی کنید. این برنامه در دو نسخه ی eric3 و eric4 موجود است که به ترتیب با کتابخانه های Qt3 و Qt4 نوشته شده اند و در مخازن اکثر توزیع های معروف موجود است ولی اگر می خواهید آخرین نسخه ی این برنامه ( eric4 ) را داشته باشید , روش زیر را دنبال کنید‌ :</p>
<p><strong>۱-</strong> بسته های Qt4 , PyQt4 , QScintilla2 , sip و نسخه ی dev آنها را در توزیع خود نصب کنید. نام این بسته ها در توزیع های خانواده ی اوبونتو ( 8.04 ) به این شرح است :</p>
<p><code>libqt4-* , python-qt4 , python-qt4-dev , python-sip4 , python-sip4-dev , python-qscintilla2 , libqscintilla2-3<br />
</code></p>
<p><strong>**</strong> اگر از میزکار KDE4 استفاده می کنید , تعدادی از این بسته ها به صورت پیش فرض نصب می باشند.</p>
<p><strong>۲-</strong> نسخه ی 4.2.1 برنامه ی eric4 را از این <span style="color:#0000ff;"><strong><a href="http://dfn.dl.sourceforge.net/sourceforge/eric-ide/eric4-4.2.1.tar.gz" target="_blank">لینک</a></strong></span> دانلود کنید.</p>
<p><strong>۳-</strong> فایل را از حالت فشرده خارج کرده و در ترمینال به فولدر آن رفته و دستور زیر را اجرا کنید:</p>
<p><code>sudo python install.py</code></p>
<p><strong>۴-</strong> اگر در هنگام نصب با پیغام زیر مواجه شدید :<br />
<code>Please enter the name of the Qt data directory.<br />
(That is the one containing the 'qsci' subdirectory.)</code></p>
<p>مسیر زیر را وارد کنید :</p>
<p><code>/usr/share/qt4</code></p>
<p>پس از پایان نصب میتوانید این برنامه را با دستور eric4 از طریق ترمینال اجرا کنید.</p>
<p><strong>**</strong> اگر قصد برنامه نویسی با زبان Ruby را دارید , برنامه ی Netbeans گزینه ی بهتری می باشد.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Magic Build Tool Needed!!!]]></title>
<link>http://innovationstartups.wordpress.com/?p=224</link>
<pubDate>Tue, 30 Sep 2008 13:55:58 +0000</pubDate>
<dc:creator>innovationstartups</dc:creator>
<guid>http://innovationstartups.fr.wordpress.com/2008/09/30/magic-build-tool-needed/</guid>
<description><![CDATA[Greetings my fellow Innovators!
Ok, lets start with WebSynergy, the very cool thing out there by the]]></description>
<content:encoded><![CDATA[<p>Greetings my fellow Innovators!</p>
<p>Ok, lets start with WebSynergy, the very cool thing out there by the colloberation of Sun, Liferay!</p>
<p>Now, our dream development package includes liferay portal + Glassfish server with lots of capabilities i.e. SAW, openESB + Netbeans IDE (I still prefer Eclipse!)+ PortalPack + Groovy DSL/Grails support + Spring + hibernate + MySQL</p>
<p>Ok, if you want to use all these into your company's project, wouldn't it be smart to think of a GEnIUS Build tool to automate getting these sources into one updated package for you to use in development or for production!!</p>
<p>I think that would be incrediably cool to have such tool inhouse while you are developing, I think this calls for a new jcp proposal!</p>
<p>what do you think?</p>
]]></content:encoded>
</item>

</channel>
</rss>
