<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
<title>Lucas Torri&apos;s Blog</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/" />
<modified>2008-05-16T18:24:36Z</modified>
<tagline></tagline>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412</id>
<generator url="http://www.movabletype.org/" version="3.01D">Movable Type</generator>
<copyright>Copyright (c) 2008, lucastorri</copyright>
<entry>
<title>I&apos;m back from JavaOne 2008 and it was great!</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/05/im_back_from_ja.html" />
<modified>2008-05-16T18:24:36Z</modified>
<issued>2008-05-16T18:24:22Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.9822</id>
<created>2008-05-16T18:24:22Z</created>
<summary type="text/plain">Hello again everybody. I just had a busy week, cause I went to JavaOne 2008 :)</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>Hello again everybody. I just had a busy week, cause I went to JavaOne 2008 :)</p>

<p>I arrived home this Tuesday and I'm still recovering from the travel, but I can assure you J1 was great!!!</p>

<p><a href="http://www.flickr.com/photos/26654937@N06/2496667669/" title="JavaOne 2008 por lucastorri, no Flickr"><img src="http://farm4.static.flickr.com/3078/2496667669_7c2249cb0a.jpg" width="500" height="375" alt="JavaOne 2008" /></a></p>

<p>In the next few days I will write more about how the conference was, I still need to get some pictures with friends.</p>]]>

</content>
</entry>
<entry>
<title>New project Marge version! I&apos;m not kidding...</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/04/new_project_mar.html" />
<modified>2008-04-01T19:24:18Z</modified>
<issued>2008-04-01T18:49:37Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.9455</id>
<created>2008-04-01T18:49:37Z</created>
<summary type="text/plain">Today, we are proud to announce a new version of the project Marge!

[Time for thinking...]

Yeah, that&apos;s true! This is not an April 1st joke :)</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>
<dc:subject>Community: Mobile &amp; Embedded</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>Today, we are proud to announce a new version of the <a href="http://marge.dev.java.net">project Marge</a>!</p>

<p>[Time for thinking...]</p>

<p>Yeah, that's true! This is not an april 1st joke :)</p>

<p>We have been working for the last month in new features in marge-core, the framework itself, and also in a new version of Bluechat. Now, we happily present marge-core v0.5, with the following diffs from 0.4.0:<br />
<ul><li>Created AutoConnect class to make directly connections; (That's very cool! You can connect two bluetooth devices with just one line of code!);</li><li>Created the concept of layer (Currently there is beta unicast layer. Feel free to send new layers or tips for the layers mechanism);</li><li>Created UUIDGenerator that receives a name and automatically generates a UUID following the given name;</li><li>Created more methods in Inquiry/Discover to make this stuff easier, removing the JSR 82 int constants;</li><li>Coded small TODOs and XXXs (hashmap for server configuration, new default service, etc);</li><li>Moved project to NetBeans (see more about that above);</li><li>Organized the Subversion repository to make it more comprehensible.</li></ul></p>

<p>The project was migrated to NetBeans 6.0, because we believe that, at the moment, Mobility Pack is a much better tool for Java ME development than the available free solutions for Eclipse. Anyway, you can see that we don't want to force anybody to use it, cause you can still use the available Ant scripts provided by NetBeans or import the source directly.</p>

<p><br />
Also, more than a new release, today Marge is completing 1 year since our first commit to the project repository, which means Marge is doing his first birthday!</p>

<p><img align="center" src="https://marge.dev.java.net/img/marge_1st.png" /></p>

<p>We want to thank you all that have supported, tried, gave feedback and worked with the project during this time. We know that the project wouldn't go on without your help and because of that we are thankful. Now, we expect that you that already use Marge, keep using and sending your ideas, and for that ones that have never used Marge, this is the perfect chance, cause the project is getting better every new release!</p>

<p>Thanks again and don't forget to go to the <a href="http://marge.dev.java.net">project's web page</a>, take a look in the new features and <a href="http://wiki.java.net/bin/view/Mobileandembedded/HowTo05">give a try</a>!</p>]]>

</content>
</entry>
<entry>
<title>ZFS, Indiana, VirtualBox and a bunch of memory sticks</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/03/zfs_indiana_vir_1.html" />
<modified>2008-03-31T06:01:35Z</modified>
<issued>2008-03-31T05:57:22Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.9445</id>
<created>2008-03-31T05:57:22Z</created>
<summary type="text/plain">In the end of last year, I saw some slides from a presentation about ZFS from Sun, using a bunch of memory sticks to create a file system, and thought that very cool. Today, I found an article called &quot;Playing with ZFS, USB memory disks and VMware Fusion&quot; and decided to try it myself, but in a different way, using VirtualBox instead of VMware.</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>After installing <a href="http://weblogs.java.net/blog/lucastorri/archive/2008/03/triboot_system.html">Solaris in my machine</a>, I'm trying to learn more about ZFS, that, in the words found at <a href="http://opensolaris.org/os/community/zfs/">OpenSolaris website</a>, "is a new kind of file system that provides simple administration, transactional semantics, end-to-end data integrity, and immense scalability".</p>

<p>In the end of last year, I saw some slides from a presentation about ZFS from Sun, using a bunch of memory sticks to create a file system, and thought that very cool. Today, I found an article called "<a href="http://blogs.sun.com/jimlaurent/entry/playing_with_zfs_usb_memory">Playing with ZFS, USB memory disks and VMware Fusion</a>" and decided to try it myself, but in a different way, using <a href="http://www.virtualbox.org/">VirtualBox</a> instead of VMware.</p>

<p>First of all, I installed <a href="https://help.ubuntu.com/community/VirtualBox">VirtualBox in Ubuntu Linux</a>. After enabling the respective repository, just did an "sudo apt-get install virtualbox-ose" and added my user to the "vboxusers" group. Then created a virtual machine for a Solaris installation and installed the preview 2 of <a href="http://opensolaris.org/os/project/indiana/">project Indiana</a>. I was having problems to install Indiana every time I gave information for creating a new user, but when I gave just root password everything went fine.</p>

<p><img src="http://weblogs.java.net/blog/lucastorri/indiana_install.png" /></p>

<p>For this test, I got two pendrives: one with 1Gb from PQI and a USB memory card adapter from Nokia, with a 512Mb mini SD card. VirtualBox was presenting some problems to use USB devices, but after some googling I found the solution <a href="http://hamacker.wordpress.com/2007/11/22/virtualbox-personal-para-ubuntu-gutsy/">here</a> (Portuguese) and <a href="http://paulsiu.wordpress.com/2007/11/20/tips-on-running-innotek-virtualbox/">here</a>.</p>

<p><img src="http://weblogs.java.net/blog/lucastorri/memory_sticks.jpg" /></p>

<p><img src="http://weblogs.java.net/blog/lucastorri/enabling_usb_devices.png" /></p>

<p>With VirtualBox working, was time to create my first ZFS pool.</p>

<p><img src="http://weblogs.java.net/blog/lucastorri/available_devices.png" /></p>

<p>With the command "rmformat", I discovered that the two memory sticks were the devices "/dev/rdsk/c9t0d0p0" and "/dev/rdsk/c10t0d0p0". Therefore, created the pool with command "zpool create -f usbdisk c9t0d0p0 c10t0d0p0".</p>

<p><img src="http://weblogs.java.net/blog/lucastorri/zpool_create.png" /></p>

<p>Now, with "df -h", there was a new file system called "usbdisk" with 1.4GB (the adition of the two memory sticks :).</p>

<p><img src="http://weblogs.java.net/blog/lucastorri/df_with_pool.png" /></p>

<p>But I was curious to see if it was really working, so I created a new file in "/usbdisk" with 1200Mb (bigger than the bigger memory stick capacity), and there it was:</p>

<p><img src="http://weblogs.java.net/blog/lucastorri/mkfile_usbdisk.png" /></p>

<p>Rebooted the system to check it was really true, and the file still was there. That's Great! Fantastic for projects like to create "A Home Fileserver using ZFS"<http://breden.org.uk/2008/03/02/a-home-fileserver-using-zfs/>.</p>

<p>But after closing the virtual machine and openning it again the file wasn't there anymore. This got me upset, but just for a few seconds before I saw that still there was something in the pool, using "zpool list".</p>

<p><img src="http://weblogs.java.net/blog/lucastorri/zpool_info.png" /></p>

<p>Then executing "zpool export usbdisk" and "zpool import usbdisk" all got back again. Must be something related with the usb devices, but now I know there is no problem removing the devices or even mixing them.</p>

<p><img src="http://weblogs.java.net/blog/lucastorri/after_export_import.png" /></p>

<p>There are alot of features available in ZFS, like creating file system with RAID redundace, use the available GUI and many more. Here are some additional information:</p>

<p>* <a href="http://www.sun.com/software/solaris/zfs_learning_center.jsp">Solaris Operating System - ZFS Learning Center</a><br />
* <a href="http://www.sun.com/bigadmin/features/articles/zfs_overview.jsp">BigAdmin Feature Article: ZFS Overview and Guide</a></p>]]>

</content>
</entry>
<entry>
<title>Tri-Boot System: Linux, Solaris and Windows</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/03/triboot_system.html" />
<modified>2008-03-18T15:53:59Z</modified>
<issued>2008-03-18T15:52:27Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.9383</id>
<created>2008-03-18T15:52:27Z</created>
<summary type="text/plain">I just finished to setup my laptop with a Tri-Boot System with Ubuntu Linux, Solaris 10 and Windows Vista. Here are some tricks I discovered during this process.</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>I just finished to setup my laptop with a Tri-Boot System with Ubuntu Linux, Solaris 10 and Windows Vista. Here are some tricks I discovered during this process.<br /><br />Linux is the OS that I use the most and usually I create a different partition for the "/home" directory, cause it's more practice if I decide to reinstall the entire system. With Solaris, I'm still learning about this OS, preparing myself for <a href="http://opensolaris.org/os/project/indiana/">Indiana</a> and trying to learn more about the amazing tools on it (ZFS, Zones, DTrace, etc). Windows I keep mostly for some software tests and games =P.<br /><br />So, at that moment I had to start creating the disk partitions. There is a partition for the Linux root directory ("/"), one for Linux home, Linux swap, one for Solaris and the last for Windows. Briefly, I would divide my disk in five pieces. <br /><br />For the disk partitioning process, I used <a href="http://gparted.sourceforge.net/">GParted</a> Live CD. At this moments I learned something: when trying to create an logical partition for each of this pieces and was receiving an error message from GParted. Then, I discovered that "a PC hard disk can contain either as many as four primary partitions, or 1-3 primaries and a single extended partition" in a Wikipedia <a href="http://en.wikipedia.org/wiki/Disk_partitioning">Disk Partitioning</a> article. Therefore, I changed my strategy. I've created a logical partition for Solaris and Windows, and a extended one to Linux. Here is the result:<br /><br /><img src="http://weblogs.java.net/blog/lucastorri/dev-sda_GParted.png" /><br /><br />In the image, the last partition, where Solaris 10 is installed, you can see that GParted displays it as Linux Swap. This happens because every partition type is identified by one byte at the MBR, and Solaris and Linux swap identifier are the same (<a href="http://docs.sun.com/app/docs/doc/817-0552/6mgbi4fgg?l=en&amp;amp;q=PROT_EXEC&amp;amp;a=view">x86: Change to Solaris fdisk Identifier</a>).<br /><br />After the disk partitioning, was time to install the Operating Systems. I'm not going to write about installing them, because I believe there are no complications at this steps, you just have to select the right partitions you've created for each OS. I started with Windows, them Linux and finished with Solaris (if you are following this steps, please keep reading before you try this).<br /><br />After this steps, GRUB was loading the menu placed in the Solaris partition. It didn't detected the Linux installation, so there was no option in the GRUB menu for booting Linux when. Like I said before, I use mostly Linux, so I prefer that the menu that was in Linux to be shown. To recover it, I followed the steps at an Ubuntu Tutorial, called <a href="https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows">Recovering Ubuntu after installing Windows</a>, to fix the MBR. If you prefer this too, I really recommend that you install Solaris before Linux, so you can skip the recovering process.<br /><br />But with the Linux GRUB menu running, I wasn't able to boot Solaris. To fix that, just add the following lines at the end of your menu.lst (/boot/grub/menu.lst):<br /><br /><font face="Courier New">title Solaris<br />rootnoverify (hd0,1)<br />chainloader +1</font><br /><br />Next time you reboot you computer, there will be another option in the GRUB menu, called "Solaris", that when is selected it calls the Solaris GRUB menu.<em></em></p>]]>

</content>
</entry>
<entry>
<title>I passed SCJA ;)</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/03/i_passed_scja.html" />
<modified>2008-03-17T18:46:01Z</modified>
<issued>2008-03-12T19:59:39Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.9352</id>
<created>2008-03-12T19:59:39Z</created>
<summary type="text/plain">Good news. Yesterday I took the Sun Certified Java Associate (http://www.sun.com/training/certification/java/scja.xml) exam and passed! Now, I would like to share this experience with you...</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>Good news. Yesterday I took the <a href="http://www.sun.com/training/certification/java/scja.xml">Sun Certified Java Associate</a> exam and passed! Now, I would like to share this experience with you...</p>

<p>First, to get prepared for the exam, I started reading some material about it's content that I found at the Internet. For example:</p>

<p><a href="http://www.scja.de/index.html">http://www.scja.de/index.html</a><br />
<a href="http://ejavaguru.com/scjafreemockexam.php">http://ejavaguru.com/scjafreemockexam.php</a><br />
<a href="http://www.whizlabs.com/articles/scja-article.html">http://www.whizlabs.com/articles/scja-article.html</a><br />
<a href="http://cafe4java.com/mockexams/scja/mock1/q1.php">http://cafe4java.com/mockexams/scja/mock1/q1.php</a><br />
<a href="http://www.javacertificate.net/interview_qns.htm">http://www.javacertificate.net/interview_qns.htm</a></p>

<p>Every Sun Campus Ambassadors has the possibility of earn free vouchers for Sun Certifications and pay nothing to take the exams. The only requisite is to do a test at Learning Connection (http://learningconnection.sun.com)*¹ and pass it. So, after I did the exercises at the websites I mentioned, I went to Learning Connection and took a test exam called "Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0 (WGS-PREX-J019C)". In this test, you have to do 4 exams with 51 questions each, covering the content necessary for SCJA and you have to answer correctly at least 35 of this questions in each exam. Done that, I requested my free voucher.</p>

<p>Then, I went to Prometric website, created an account, chose the date and one available center in my city, Florianópolis. That's it, I just had to wait a few days and come to the appointment.</p>

<p>So, yesterday, like I told before, I went to SENAC, here in Florianópolis to took the exam. The appointment was at 6h pm, but I arrived at 4h30 pm. Please, don't do that, cause you will have to sit and wait :P. When was time, I was asked for two documents with signature and photo. I presented my drivers license and my passport. After that, I was conducted to a tiny room (2x1 meters, I think), where there is only a computer inside e two vigilance cameras (I think it's not a good idea try cheating :).</p>

<p>You sit and start the exam process. First, I had to answer a little survey about the knowledge level I believe I have (basic, advanced, etc). Then, the real exam starts, but you don't really have to be scared, cause the exam questions looks pretty much like the questions that are available in Internet and Learning Connection about SCJA. Also, there are plenty time to answer the 51 questions, a little less than two hours.</p>

<p>In the beginning, I stayed a little nervous. Answered the first, the second... (now you start to see there is no mystery at all), end in the 51th. You can now check your answers. It's everything OK? You finish the exam and a message appears telling that your result is in the registry room. this is the tense moment, where you leave the room and have to go back and check how well you did. When you arrive there, the Secretary will give you a mysterious look, just to try get you nervous :P. Don't worry, in few moments she will show your results and you will realize that everything was all right.</p>

<p><br />
I passed with 96%! Even the security guy gave me a smile =)</p>

<p>This text was all about showing you that there is no complication in taking a Certification, only benefits. For example: now, I'm sure that my Curriculum looks better. I think I spent about 6 hours studying. I just payed attention at the exercises and every time I missed a question I tried to understand why I was wrong.</p>

<p>Now, good luck to you! I will start to study to SCJP...</p>

<p>*¹ Learning Connection has several courses about Sun Technologies. To be able to access it, your University should be part of <a href="http://www.sun.com/solutions/landing/industry/education/sai/index.xml">Sun Academic Initiative</a>.</p>

<p>-- <br />
;)</p>

<p>Lucas B. Torri<br />
[00:12:62:F8:E1:0C] </p>]]>

</content>
</entry>
<entry>
<title>GUJavaSC new website</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/02/gujavasc_new_we.html" />
<modified>2008-02-18T17:12:01Z</modified>
<issued>2008-02-18T17:11:08Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.9220</id>
<created>2008-02-18T17:11:08Z</created>
<summary type="text/plain">The last couple weeks we&apos;ve been working in the new website from the &quot;Grupo de Usuários Java de Santa Catarina&quot; our local Java User Group from the state of Santa Catarina, Brazil. It&apos;s in blog format and we want to provide news from the User Group and related to Java, as well as bringing together the local community.

So, for everybody that can read Portuguese (or is interested in learn :), visit http://www.gujavasc.org.br</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>The last couple weeks we've been working in the new website from the "Grupo de Usuários Java de Santa Catarina" our local Java User Group from the state of Santa Catarina, Brazil. It's in blog format and we want to provide news from the User Group and related to Java, as well as bringing together the local community.</p>

<p>So, for everybody that can read Portuguese (or is interested in learn :), visit <a href="http://www.gujavasc.org.br">http://www.gujavasc.org.br</a></p>]]>

</content>
</entry>
<entry>
<title>Sun SPOT more Open Source than ever</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/01/sun_spot_more_o_1.html" />
<modified>2008-01-30T22:43:19Z</modified>
<issued>2008-01-30T16:33:58Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.9095</id>
<created>2008-01-30T16:33:58Z</created>
<summary type="text/plain">After releasing the Squawk VM as Open Source, Sun announced yesterday that has open sourced the SPOT libraries as well, under GPLv2. SPOTs are small, Java-based, wireless devices developed at Sun Labs. This libraries include the code responsible for wireless communication, sensors control and security at the devices. The news was published in the forum and can be seen the the java.net project website: https://spots.dev.java.net/</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>
<dc:subject>Community: Mobile &amp; Embedded</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>After releasing the <a href="https://www.sunspotworld.com/forums/viewtopic.php?t=952">Squawk VM as Open Source</a>, Sun announced yesterday that has <a href="http://www.sun.com/aboutsun/pr/2008-01/sunflash.20080129.3.xml">open sourced the SPOT</a> libraries as well, under GPLv2. SPOTs are small, Java-based, wireless devices developed at Sun Labs. This libraries include the code responsible for wireless communication, sensors control and security at the devices. The news was published in the <a href="https://www.sunspotworld.com/forums/viewtopic.php?t=977">forum</a> and can be seen the the java.net project website: <a href="https://spots.dev.java.net/">https://spots.dev.java.net/</a></p>

<p><img alt="spot.png" src="http://weblogs.java.net/blog/lucastorri/archive/spot.png" width="280" height="340" /></p>

<p><br />
Roger Meike, research director at Sun Labs, said: "We created this technology to inspire students and educators to develop new, creative and useful applications". Also, he says that the decision of open sourcing the SPOT libs are based in the commitment to support the growing community of developers.</p>

<p>These are great news for we, SPOT lovers, and the Open Source community. Thanks!<br />
</p>]]>

</content>
</entry>
<entry>
<title>NetBeans 6 T-shirt</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/01/netbeans_6_tshi.html" />
<modified>2008-01-17T18:26:36Z</modified>
<issued>2008-01-17T18:26:28Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.9009</id>
<created>2008-01-17T18:26:28Z</created>
<summary type="text/plain">September of last year I participated in a Contest at the netbeans.tv website, where the participants should share some photos or videos about the place where they live, work, etc. I created a entry about the city I live, Florianópolis. Unfortunately I didn&apos;t won the contest (the prize was a 1 GB Pen Drive and a Rich Client Programming Book), but at least I won a NetBeans T-shirt. Today I received a package with the T-shirt and it is great! The photos as usual aren&apos;t very good, but take a look...</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>September of last year I participated in a Contest at the <a href="http://www.netbeans.tv/">netbeans.tv</a> website, where the participants should share some photos or videos about the place where they live, work, etc. I created a entry about the city I live, <a href="http://www.netbeans.tv/community/Florian%C3%B3polis-166/">Florianópolis</a>. Unfortunately I didn't won the contest (the prize was a 1 GB Pen Drive and a Rich Client Programming Book), but at least <a href="http://www.netbeans.tv/winners/">I won a NetBeans T-shirt</a>. Today I received a package with the T-shirt and it is great! The photos as usual aren't very good, but take a look:</p>

<p><a href="http://weblogs.java.net/blog/lucastorri/archive/17012008(004).jpg" onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/17012008(004).jpg','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="17012008(004).jpg" src="http://weblogs.java.net/blog/lucastorri/archive/17012008(004).jpg" width="320" height="240" /></a><br />
The package from Sun</p>

<p><a href="http://weblogs.java.net/blog/lucastorri/archive/17012008(015).jpg" onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/17012008(015).jpg','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="17012008(015).jpg" src="http://weblogs.java.net/blog/lucastorri/archive/17012008(015).jpg" width="240" height="320" /></a><br />
T-shirt front, that remember a metro map</p>

<p><a href="http://weblogs.java.net/blog/lucastorri/archive/17012008(012).jpg" onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/17012008(012).jpg','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="17012008(012).jpg" src="http://weblogs.java.net/blog/lucastorri/archive/17012008(012).jpg" width="240" height="320" /></a><br />
T-shirt back, with NetBeans logo</p>]]>

</content>
</entry>
<entry>
<title>RFID tags to tell a washer/dryer how to wash clothes</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/01/rfid_tags_to_te_1.html" />
<modified>2008-01-10T18:17:24Z</modified>
<issued>2008-01-10T18:17:17Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.8968</id>
<created>2008-01-10T18:17:17Z</created>
<summary type="text/plain">This is great! Technology to help us with domestic tasks. Designer Samgmin Bae has designed the clothTag, an RFID tag that could communicate with RFID enabled washers, dryers, irons, presses, and dry cleaning equipment, adjusting all settings  automatically. </summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>This is great! Technology to help us with domestic tasks. Designer Samgmin Bae has designed the clothTag, an <a href="http://en.wikipedia.org/wiki/RFID">RFID</a> tag that could communicate with RFID enabled washers, dryers, irons, presses, and dry cleaning equipment, adjusting all settings  automatically. You will just need to load your clothes, add detergent and shut the lid.</p>

<p>It looks even prettier than the normal labels:<br />
<img alt="cloth_tag.jpg" src="http://weblogs.java.net/blog/lucastorri/archive/cloth_tag.jpg" width="468" height="488" /></p>

<p>Like the designer says "I find it surprising 70% of people don’t read the care labels and when they do, it’s usually too late". I personally don't know anything  about cloth labels, so this would be a great help to avoiding me to destroy clothes =P</p>

<p>Notice found at <a href="http://blog.makezine.com/archive/2008/01/smarter_clothing_care_lab.html">Make Blog</a></p>]]>

</content>
</entry>
<entry>
<title>Adding a Humidity Sensor to Sun SPOT</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2008/01/adding_a_humidi.html" />
<modified>2008-01-08T17:05:20Z</modified>
<issued>2008-01-08T17:02:57Z</issued>
<id>tag:weblogs.java.net,2008:/blog/lucastorri/412.8938</id>
<created>2008-01-08T17:02:57Z</created>
<summary type="text/plain">Last month I got a Sun SPOT from a friend that came back from US and I can say that the kit is very cool and easy to use. Now, in my way to learn more about it I decided to add a Humidity Sensor to the board.</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>Happy new year for everybody!</p>

<p>Last month I got a <a href="https://www.sunspotworld.com/">Sun SPOT</a> from a friend that came back from US and I can say that the kit is very cool. Now, in my way to learn more about it I decided to add a Humidity Sensor to the board.</p>

<p>This was my first experience on extending the SPOT hardware so in the beginning I was a little petrified but the process showed to be very simple. I got a free sample Humidity Sensor from <a href="http://www.sensirion.com/en/01_humidity_sensors/00_humidity_sensors.htm">Sensirion </a>. I didn't imagined it was so little.</p>

<p>After wiring up the sensor and adding the necessaries resistor and capacitor I powered it, but there was no way to know if it was working, so I started to implement the Sensor communication protocol using Java. The component has 4 connectors: VDD, for power supply; GND for ground; DATA , for bidirectional data transfer and for last SCK that is clock signal for controlling the transfer. I decided to use +3V and GND available in the SPOT board and D0 e D1 for SCK and DATA respectively. <a href="http://weblogs.java.net/blog/lucastorri/archive/SunSpotApplication.java">The result program you can download here</a>. This program is responsible for achieving the Sensor data and convert it using the formulas given by Sensirion.</p>

<p><a href="http://weblogs.java.net/blog/lucastorri/archive/07012008(007).jpg" onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/07012008(007).jpg','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="07012008(007).jpg" src="http://weblogs.java.net/blog/lucastorri/archive/07012008(007).jpg" width="320" height="240" /></a></p>

<p>Then, I connect the wires of the Sensor circuit to the SPOT board, programmed the software and surprisingly I got the expected results, showing that current temperature is near 29 Celsius degrees and the relative humidity is in 79%. SOrh and SOt are the values got directly from the Sensor.</p>

<p><a href="http://weblogs.java.net/blog/lucastorri/archive/Captura_da_tela-Terminal-1.png" onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/Captura_da_tela-Terminal-1.png','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="Captura_da_tela-Terminal-1.png" src="http://weblogs.java.net/blog/lucastorri/archive/Captura_da_tela-Terminal-1.png" width="320" height="240" /></a></p>

<p>All this got me less than 2 hours. Using the Sensor Data Sheet and SPOT Javadoc and documentation as reference I can say that this task was incredibly easy to do.</p>

<p><a href="http://weblogs.java.net/blog/lucastorri/archive/08012008.jpg" onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/08012008.jpg','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="08012008.jpg" src="http://weblogs.java.net/blog/lucastorri/archive/08012008.jpg" width="320" height="240" /></a></p>]]>

</content>
</entry>
<entry>
<title>Configuring a Sun Ray Server</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2007/12/configuring_a_s.html" />
<modified>2007-12-22T20:37:09Z</modified>
<issued>2007-12-22T20:31:49Z</issued>
<id>tag:weblogs.java.net,2007:/blog/lucastorri/412.8820</id>
<created>2007-12-22T20:31:49Z</created>
<summary type="text/plain">Here in Fundação CERTI, where I&apos;m alocated as a Campus Ambassador, we have received a donation of 17&quot; screen Sun Rays and a great Workstation that I had the oportunity to install Solaris and Sun Ray Server on it.</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>Here in <a href="http://www.certi.org.br/">Fundação CERTI</a>, where I'm allocated as a Campus Ambassador, we have received a donation of 17" screen <a href="http://www.sun.com/sunray/sunray270/index.xml">Sun Rays</a> and a great <a href="http://www.sun.com/desktop/workstation/ultra40/">Workstation</a> that I had the opportunity to install Solaris and Sun Ray Server on it.</p>

<p>The Solaris installation was really simple, just inserted the cd and followed the steps. The Workstation has two Ethernet interfaces, that are called in the system as nge0 (Gigabit) and nge1. We have chosen to use nge1 to connect to external network and nge0 to create internal network for the Sun Rays.</p>

<p>After configured the nge1 through the Solaris wizard, we have installed the Sun Ray Server with the cd that comes with the Workstation. Just run a few commands and followed the steps on then (in the respective order: "/cdrom/cdrom0/utinstall", "utadm -a nge0" and "utconfig") and there it is, a set of Sun Ray Clients working using just one machine. </p>

<p>The workstation and a Client:<br />
<a href="http://weblogs.java.net/blog/lucastorri/archive/06122007(007)." onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/06122007(007).','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="06122007(007).jpg" src="http://weblogs.java.net/blog/lucastorri/archive/06122007(007).jpg" width="320" height="240" /></a></p>

<p>Some of the other Clients:<br />
<a href="http://weblogs.java.net/blog/lucastorri/archive/06122007(003)." onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/06122007(003).','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="06122007(003).jpg" src="http://weblogs.java.net/blog/lucastorri/archive/06122007(003).jpg" width="320" height="240" /></a></p>

<p></p>

<p><br />
Sun Rays are great! I invite you all to take a better look and see more details here: http://www.sun.com/software/index.jsp?cat=Desktop&tab=3&subcat=Sun%20Ray%20Clients</p>]]>

</content>
</entry>
<entry>
<title>OpenSolaris Community Innovation Awards</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2007/12/opensolaris_com.html" />
<modified>2007-12-14T13:43:51Z</modified>
<issued>2007-12-14T13:43:45Z</issued>
<id>tag:weblogs.java.net,2007:/blog/lucastorri/412.8832</id>
<created>2007-12-14T13:43:45Z</created>
<summary type="text/plain">A few days ago, Sun announced that is going to sponsor Open Source community with $1M. In my opinion this is a great way to encourage students to get involved with Open Source projects.

</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p><img alt="opensolaris.png" src="http://weblogs.java.net/blog/lucastorri/archive/opensolaris.png" width="266" height="40" /></p>

<p>A few days ago, <a href="http://www.sun.com/aboutsun/pr/2007-12/sunflash.20071205.1.xml">Sun announced that is going to sponsor Open Source community with $1M</a>. In my opinion this is a great way to encourage students to get involved with Open Source projects.</p>

<p>One of the sponsored projects is community for researches related to operating systems, called OpenSolaris. The list and wiki for the  OpenSolaris Community Innovation Awards are now open. If you'd like to get involved, please go here:</p>

<p><a href="http://www.genunix.org/wiki/index.php/OpenSolaris_Community_Innovation_Awards">http://www.genunix.org/wiki/index.php/OpenSolaris_Community_Innovation_Awards</a></p>]]>

</content>
</entry>
<entry>
<title>UFSC Campus Ambassador and Ambassador kit</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2007/12/ufsc_campus_amb.html" />
<modified>2007-12-13T14:50:00Z</modified>
<issued>2007-12-13T14:49:55Z</issued>
<id>tag:weblogs.java.net,2007:/blog/lucastorri/412.8819</id>
<created>2007-12-13T14:49:55Z</created>
<summary type="text/plain">Since October I&apos;m the Sun Campus Ambassador of Federal University of Santa Catarina. It&apos;s a great job, which I&apos;m responsible to connect students and university to Sun Microsystems.

Today I got surprised when a big box come in my house.</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>Since October I'm the Sun Campus Ambassador of Federal University of Santa Catarina. It's a great job, which I'm responsible to connect students and university to Sun Microsystems.</p>

<p>Today I got surprised when a big box come in my house. It is a Ambassador kit with cds (with NetBeans, Sun Studio and others), OpenSolaris books, T-Shirts, pens, a backpack and many more.</p>

<p>I just got crazy, started to open the box and remove everything from inside:<br />
<a href="http://weblogs.java.net/blog/lucastorri/archive/13122007.jpg" onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/13122007.jpg','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="13122007.jpg" src="http://weblogs.java.net/blog/lucastorri/archive/13122007.jpg" width="320" height="240" /></a></p>

<p>The Ambassador T-Shirt, backpack and pens:<br />
<a href="http://weblogs.java.net/blog/lucastorri/archive/13122007(004).jpg" onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/13122007(004).jpg','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="13122007(004).jpg" src="http://weblogs.java.net/blog/lucastorri/archive/13122007(004).jpg" width="320" height="240" /></a></p>

<p>CDs and OpenSolaris keyfobs:<br />
<a href="http://weblogs.java.net/blog/lucastorri/archive/13122007(001).jpg" onclick="window.open('http://weblogs.java.net/blog/lucastorri/archive/13122007(001).jpg','popup','width=1280,height=960,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="13122007(001).jpg" src="http://weblogs.java.net/blog/lucastorri/archive/13122007(001).jpg" width="320" height="240" /></a></p>

<p>December 20th I'm going to São Paulo, Brazil, to meet the Ambassadors from the rest of the Country and Gary Serda, that also will be there. That's really exciting!</p>]]>

</content>
</entry>
<entry>
<title>JustJava 2007 is open</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2007/10/justjava_2007_i_1.html" />
<modified>2007-10-03T21:53:18Z</modified>
<issued>2007-10-03T21:53:10Z</issued>
<id>tag:weblogs.java.net,2007:/blog/lucastorri/412.8366</id>
<created>2007-10-03T21:53:10Z</created>
<summary type="text/plain">Ola Pessoal/Hello Everybody! pt: Estamos aqui em São Paulo, Brasil, no JustJava 2007 (http://www.sucesusp.org.br/eventos2007/justjava07/), evento do SouJava. A foto acima mostra o Mauricio Leal (http://weblogs.java.net/blog/maltron/) fazendo a abertura do evento. Hoje a tarde o Neto Marin (http://weblogs.java.net/blog/netomarin) vai apresentar um...</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>Ola Pessoal/Hello Everybody!</p>

<p><img alt="03102007.jpg" src="http://weblogs.java.net/blog/lucastorri/archive/03102007.jpg" width="640" height="480" /></p>

<p>pt:<br />
Estamos aqui em São Paulo, Brasil, no JustJava 2007 (http://www.sucesusp.org.br/eventos2007/justjava07/), evento do SouJava. A foto acima mostra o Mauricio Leal (http://weblogs.java.net/blog/maltron/) fazendo a abertura do evento.</p>

<p>Hoje a tarde o Neto Marin (http://weblogs.java.net/blog/netomarin) vai apresentar um tutorial sobre Java ME (parte I e II) e amanhã teremos uma trilha sobre Java ME, com vários assuntos muito interessantes. Então fiquem ligados nas próximas notícias!<br />
---</p>

<p>en:<br />
We are here in São Paulo, Brazil, in JustJava 2007 (http://www.sucesusp.org.br/eventos2007/justjava07/), an event by SouJava. The photo above shows Mauricio Leal (http://weblogs.java.net/blog/maltron/) openning the event.</p>

<p>This afternoon Neto Marin (http://weblogs.java.net/blog/netomarin) will present a Java ME tutorial (part I and II) and tomorrow we will have a Java ME track, with a lot of interesting subjects. So stay tunned for more news!<br />
---</p>

<p>;)<br />
Lucas Torri<br />
</p>]]>

</content>
</entry>
<entry>
<title>Jython : Scripting for the Java language</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/lucastorri/archive/2007/09/jython_scriptin.html" />
<modified>2007-09-25T03:58:41Z</modified>
<issued>2007-09-25T00:18:06Z</issued>
<id>tag:weblogs.java.net,2007:/blog/lucastorri/412.8310</id>
<created>2007-09-25T00:18:06Z</created>
<summary type="text/plain">Scripts languages are famous for their simplicity and ease of development. For this, they can be powerful Allies to software development.

In this vast world of available scripting languages, one that really calls attention is Jython[http://www.jython.org]. Jython, is the Java implementation for the high-level Python language, allowing you to run Python on any Java platform.</summary>
<author>
<name>lucastorri</name>

<email>lucastorri@gmail.com</email>
</author>
<dc:subject>Tools</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/lucastorri/">
<![CDATA[<p>Scripts languages are famous for their simplicity and ease of development. For this, they can be powerful Allies to software development.</p>

<p>In this vast world of available scripting languages, one that really calls attention is Jython[http://www.jython.org]. Jython, is the Java implementation for the high-level Python language, allowing you to run Python on any Java platform.</p>

<p>Python is a multi paradigm language, can be learned in a few days and used to write any kind of application. Also, many programmers report substantial productivity gains using it.</p>

<p>The syntax is a little bit different from usual languages, cause uses indentation to separate blocks of code, which makes Python a highly readable language. An increase in indentation comes after certain statements and a decrease in indentation signifies the end of the current block.</p>

<p>For me, the biggest advantage of using Jython is that it provides interactivity with Java Classes and Objects. This property, makes possible, together with the interactive, interact with Java resources, allowing programmers to experiment and debug any Java system using Jython.</p>

<p>Installation is made through a GUI installer, making this process very simple. After that, you can run the Jython interpreter running the executable file in the installation folder. Once the intrepeter it's open, you can starting coding like in every other editor, but in each new line the code will be instantly interpreted. For example, look how easily I create a JFrame using Jython:</p>

<p><img alt="jython.png" src="http://weblogs.java.net/blog/lucastorri/jython.png" width="667" height="465" /></p>

<p><em>>>> from javax.swing import JFrame   # import the JFrame class<br />
>>> j = JFrame(title='hello world!', size=(400,100))   # create a new JFrame instance and automatically sets title and size<br />
>>> j.visible = 1  # the same as j.setVisible(1)</em></p>

<p>Notice that the 'new' ain't needed and you can access and modify attributes without get/set before. Also, integers can be used as booleans, but there are also available the True and False operators. The line setting the frame visible could also be inside the constructor, making the code even smaller.</p>

<p>It can be used to write automation scripts, including ones that use JDBC, use it as a script language inside your programs using the project jar or even use Jython compiler (jythonc) to transform the python code to Java code. All this using a very easy and high-level language.</p>

<p>I'm not trying to write a Jython tutorial here, this is just to give you a little taste. So, if you want more information about that, I recommend you to check this:</p>

<p>* http://www.jython.org/Project/index.html<br />
* http://www.oreilly.com/catalog/jythoness/chapter/ch01.html<br />
* http://www.onjava.com/pub/a/onjava/2002/03/27/jython.html</p>]]>

</content>
</entry>

</feed>