Terça-feira Abr 15, 2008

Tech Demos

As promised, the tech demos' abstracts. All in Portuguese because they will be done on Brazil... so...(for English versions, send me an e-mail).

Iniciativa Acadêmica Sun :: Tech Demos

Quinta-Feira dia 24/04: Construindo Aplicações para dispositivos Móveis visualmente usando o NetBeans 6.0

    A Tech demo busca expor alguns conceitos da elaboração de aplicativos para dispositivos móveis usando Java, explicando sucintamente a arquitetura da plataforma JAVA Micro Edition (JavaME) e ferramentas de suporte à citada tecnologia presentes no NetBeans 6.0. É realizada uma pequena demonstração do que pode ser feito nele, construindo os aplicativos de forma simples e visual.

Sexta-Feira dia 25/04: Serviços Web utilizando o NetBeans 6.0

    Esta pequena demonstração tecnológica aborda o suporte oferecido para a plataforma Java Enterprise Edition, também conhecida como JavaEE ou J2EE, no NetBeans 6.0, exemplificando com o desenvolvimento rápido e prático de serviços web. Além da demonstração, explica-se sucintamente o que é um serviço web, sua arquitetura e por que este se mostra como uma solução tão interessante no mercado atual.

Em ambas as Tech Demos, o programa de iniciativa acadêmica da Sun é explicado lembrando as vantagens para os alunos nos treinamentos online gratuitos e certificações com desconto.

Domingo Abr 13, 2008

New Tech Demos

Tech Demos Scheduled @ UFRJ! 24 and 25 of april! I will post abstracts here! For now, just the poster!!

(The following poster is written in Br Portuguese!)

Quinta-feira Mar 27, 2008

Developing OpenGL with NetBeans 6.0.1

Last semester I did a subject on my university where I needed to do a project with OpenGL. Our professor asked us to program a 3D graphic modeler – a program capable of drawing 3D figures, set material properties and scale, move, rotate, group and copy them. We could not use high level libraries like Java3D, he wanted us to program OpenGL, only that. Things got complicated, but NetBeans made my life easier... again!

A OpenGL code may became quite complicated if you do not take care. There are too many settings, many variables, matrices, transformations... and a little detail can turn things horrible if you don't know what you are doing. On this point, working with a great IDE may help you a lot!

Another fact is that I liked the way of programming openGL with JAVA.
On the most other programming languages, you should use callback functions to do things on openGL, for example: you may create a function display() that will draw things on the screen, in python:

def display():
“Draw a triangle”
glClear(GL_COLOR_BUFFER_BIT)
“Set Color”
glColor3f (1.0, 1.0, 1.0)
glBegin(GL_TRIANGLES);
glVertex3f(0.0, 1.0, 0.0);
glVertex3f(-1.0, -1.0, 0.0);
glVertex3f(1.0, -1.0, 0.0);
// Finished Drawing The Triangle
glEnd();
glutSwapBuffers()

but then, you should say to openGL that display() is the one taking care of screen drawings, saying:

glutDisplayFunc(display)

In JAVA there is no callback function, it's just Programming to an Interface style! It's really cool and make your code more comprehensive. My openGL project become more understandable having a Sphere class that extends Shape class and implements Drawable interface (you know, my sphere is actually a drawable shape!)! The openGL functions like display(), init(), reshape() can all be coded inside a class that implements the interface GLEventListener, just that... make more sense to me! In Java:

//Draw a triangle
public void display(GLAutoDrawable drawable)
{
GL gl = drawable.getGL();
// Clear the drawing area
gl.glClear(GL.GL_COLOR_BUFFER_BIT);
gl.glBegin(GL.GL_TRIANGLES);
gl.glVertex3f(0.0f, 1.0f, 0.0f); // Top
gl.glVertex3f(-1.0f, -1.0f, 0.0f); // Bottom Left
gl.glVertex3f(1.0f, -1.0f, 0.0f); // Bottom Right
// Finished Drawing The Triangle
gl.glEnd();
// Flush all drawing operations to the graphics card
gl.glFlush();
}

This post is not about teaching OpenGL, it's just too complicated for a single post. But you may find your way through NetBeans6.0 OpenGl plugin and the following tutorial:

http://jerome.jouvie.free.fr/OpenGl/Tutorials1-5.php

(and you may want to check the OpenGL red book too)

BUT LET'S START THIS GUIDE about turning JavaOpenGL ON at NetBeans6.0.1 and HAVE FUN!

The first step is to download the the cool JOGL plugin from NetBeans.org page:

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3260

The file downloaded from above is zipped, unzip all the nbm files (that are inside the zip) on a directory.

Note: This plugin is really nice: check it's features list:
\* Editor for the OpenGL Shading Language (GLSL) with compiler error annotation, code folding, syntax highlighting, auto completion and documentation.
\* Easy access to the GLSL compiler and linker of your graphics driver integrated in the editor
\* OpenGL Capabilities Viewer
\* Integration of JOGL GUI components into the Matisse GUI builder
\* JOGL project templates
\* Ready to run JOGL demos and examples of the OpenGL Programming Guide (also known as Red Book)

Ready to use it? Let's install it!
Open you NetBeans IDE. Go to Tools > Plugins

On the window, go to "Downloaded" tab (it may be empty). Press the "Add Plugins..." button. Go to the directory you unzipped the plugin's nbm files, select ALL of them and press OK. The plugin items will appear on the list on the left just like the picture above. Leave all of them selected and press Install button.

You will go through some installation steps; accept the terms of agreement and press Install. The installer may alert you that the plugin is not signed (or something like that), just ask to install it anyway. In the end, you will need to restart your IDE.

Done. The JOGL plugin is installed. After NetBeans restart, you can go through File > New Project and see the OpenGL project option on Categories list.

The Simple JOGL Application is the perfect place to start doing your openGL project, it's an almost empty openGL application that you may increase.

You may have a look at the Demos too (to have an idea about what you can do with OpenGL and JOGL). This plugin cames with many JOGL demos and Red Book demos. So, if you are studing OpenGL using the Red Book, you will find the examples there. You just need to expand OpenGL categories on the New Project window to see the Demos folders:

JOGL Infinite Shadow Volumes Demo:

A very interesting point of the plugin is that it does integrate the OpenGL Panel and OpenGL Canvas to the Matisse system, so you can create your GUI using Matisse and put OpenGL elements on it.

Developing GUI on NetBeans is incredibly easy, and now you can include OpenGL elements on your projects! Quite nice!

Thats all! Hope you enjoy developing OpenGL on NetBeans6.0.1

Cheers! :)

Sábado Mar 15, 2008

Tech Demo at Estácio

Hi all,

Today, I did a 2 hours presentation with Pedro Reis (another CA from Rio de Janeiro) at Estácio de Sá University, on the center of Rio. We had an attendance of 62 people, including 5 professors, of the Java Development pos graduation class.

The presentation slides were prepared by Bruno Bastos (Petrópolis Sun CA) and I added some ones latter. The first arrangement was that Bruno and Luiz Aquino would do the today’s tech talk on Estácio, but in the end, things got totally different.

Bruno had an important appointment for today and Luiz Aquino got Dengue disease and needed to stay resting. So, I completed the task with Pedro!

Bruno made a cool web service and client system on NetBeans to show on the presentation. I constructed a simpler one during the demo (to make it on shorter time), and then, showed Bruno’s. The examples were quite nice because we were able to illustrate many features of NetBeans on a single shot, like the easy implementation of a web service, it’s integration with Glassfish and the way to use it on a client that can be developed using NetBeans Matisse! Everybody got really impressed!

Aside the Web Services and GlassFish, we talked about NetBeans 6.0 features (emphasizing the new ones), the SAI program, and the Java Certification, explaining how they can get theirs with discount! I inserted an OpenSolaris slide, focusing on SXDE, for fast and easy development, they got tempted to try it!

In the end, we raffled some souvenirs like Sun pens, All Access Kit DVDs, OpenSolaris mini-books and locksmiths.

Some professors on the room asked us to schedule more presentation on another institutes and universities on Rio that they give classes too. They will help us organize it there.

Quinta-feira Mar 13, 2008

XAMPP with NetBeans

Heya!

I'm programming a little registration web system for NACAD (the lab I do work in at UFRJ) using PHP. I was already using xampp platform to have Apache, MySql and PHP working together easily for development. Then I noticed a cool PHP plugin for NetBeans 6.0 and then, decided to use, since there is no real good IDE for php development.
Let's start from the beginning. ;D

You can download XAMPP for Solaris, Linux, Windows and Mac at http://www.apachefriends.org/en/xampp.html . It's installation is really easy, you can find any necessary information on xampp's site above. After installation, you may start your services using:
on Solaris:
#/opt/xampp/xampp start
on Linux:
$sudo /opt/lampp/lampp start

Notice that /opt/\*ampp is the directory you (yourself) chose to install xampp. We usually istall on /opt but you may put it anywhere you like.

Your projects folder must be inside the htdocs folder on xampp installation directory to be accessed trough http://localhost/myProject/index.php, for example, like:
on Solaris:
/opt/xampp/htdocs/myProject
on Linux:
/opt/lampp/htdocs/myProject

Since myProject folder keeps all your PHP scripts, HTML, images, etc...

Now you may open your NetBeans. You don't have it yet ?!?! Come on! Download it at www.netbeans.org.

Open NetBeans! If your NetBeans do not support PHP (yet), go to Tools > Plugins on the Menu Bar. You may find PHP plugin on the “Available Plugins” Tab. Mark the check box and press Install button to take it!

Press Next button and accept the terms of the contract, then go on through the installation! After finished, you may restart your fantastic IDE.

After that, let's create our new Project. Go to File>New Project menu option. Choose PHP on the left box and on the right one choose PHP project with existing sources (or just PHP project if you are about to start a project from the zero).


Click Next.

Choose your project name, it's location and folder. Notice it's not the folder where your existing sources are in, it's just where NetBeans will keep your project settings and other stuffs.


Press Next.

Now you may give the folder where your existing sources are. On my example, it would be at /opt/lampp/htdocs/myProject.


Click next.

This step is to set your web server. Using xampp, you would be running apache, so you should inform NetBeans about it to let him test your application directly using the existing server. Don't worry, it will be really easy.

On the Configured Web Servers drop down menu, you may just see No Servers.


Press Manage Button.

On the new screen, chose a connection name (xampp for example). On Server type, chose Local Web Server with File Access.


Click Next.

On next screen you have to point the server configuration file, i.e., show the httpd.conf apache configuration file path to NetBeans.
httpd.conf can be found at xampp_instal_directory/etc (for example: /opt/lampp/etc/httpd.conf on Windows it'll be at /xampp/apache/httpd.conf), as you can see:


On Choose host N... menu, choose localhost, and press Next.

Write localhost on server name and leave port 80 for default http configuration.


You can leave Base Directory field empty. Press Next.

On the file access configuration, write the path to your project. DON'T leave /opt/lampp/htdocs directory path only, you may don't have write access to this directory, put /opt/lampp/htdocs/myProject and be sure you have read and write permissions at myProject folder.
Now you can finalize the server configuration and choose it as your Configured Web Server on your Project Creation Window.


Now you may finalize your project creation and start working!

Have Fun!

Terça-feira Mar 11, 2008

The World Greatest SuperComputer - Sun did it!

Sun implemented the Ranger Supercomputer on TACC (Texas Advanced Computing Center)!
They now got 504 teraflops to use!!

More cool Details at (in portuguese) :

http://blogs.sun.com/TAI/

(in english)

Jonathan's Blog

Cheers!

Sexta-feira Fev 29, 2008

29 of February

Today the UNIX+OpenSolaris vacation course @ UFRJ ended!
Next week the subscrebers will be doing the test to grant them the UFRJ certification.
I'll post more details latter... I'm just tired by now.

Cheers!

Quarta-feira Fev 27, 2008

Slides: SMF and Zones

UFRJ UNIX+Solaris Admin course material:

Aula Extra de OpenSolaris - Parte SMF e Zonas

Terça-feira Fev 26, 2008

The Dolphin and the Sun together

"Today Sun and MySQL officially join forces..."
That word came from Rich Green, Sun's Executive Vice President that deals with Software.
These are great news! MySQL already has a big community and is, definitely, a fantastic database! Joining Sun, we will have a complete Web2.0 platform that will rocks over the global market.

Segunda-feira Fev 25, 2008

Sun MD Earthquakes!!

Today was THE day of BLACKBOX TOUR @ BRAZIL @ Rio de Janeiro!
Just one thing to say! That thing is really cool!

For the ones who don't know about what I'm talking, it’s about a complete Datacenter inside a container. The widely known project BlackBox has become a Sun product! They just (but not simply) put 8 racks inside a 20 feet container with exclusives refrigeration and amortization system, redundant power and data links… well, there would be many things to say. If you got interested by the specs. Have a look at Sun MD Data Sheet and get amazed too.

The nicest part! It’s totally moveable. You can take your Modular Datacenter Anywhere! For many industries, it fits perfect! You can have a "turn-key" datacenter while you builds your own. For example, about the discovering of a new oil bay, you can’t wait for 5 years till the end of a datacenter building… so… just take your Sun MD there!!

On the talk during the today’s event was said about a video hosted at YouTube about an experiment Sun did to test the black box… they put it to survive a simulated Earthquake! To the experiments, they used the earthquake simulation system, cameras to visualize the container interior and SUN SPOTS to measure thinks! Yes, there were Sun Spots there… The video is amazing, and they have already used the experiment’s results to improve Sun MD performance…. But get shocked: Sun MD kept working after a 6.4 Richter magnitude scale earthquake. Have a look ate the video:

Want to buy one?? It could really stay on the top of your building and you can try it’s 450000 web transaction per second capacity:

Cheers!

Quarta-feira Jan 02, 2008

Happy 2008

Happy New Year!!

Next is a photo of Sun Campus Ambassador Team on our reunion at São Paulo last month (and last year... hehe)

Sábado Dez 29, 2007

Vacation Course

Planning the last details about the UNIX + OpenSolaris course we will give on February at UFRJ with Professor Gabriel Silva. It will be a 40hs course preparing to Solaris Administration Sun certification.

Some days ago the Brazil's Sun Campus Ambassador had a meeting at São Paulo Sun Office. It was very nice.

Next is a photo of me taken by Silveira Neto (a friend Ambassador) at the end of the meeting. I was talking together with Luiz Aquino (on the left) and Bruno Bastos (on the right) to the new Ambassadors.

Segunda-feira Dez 03, 2007

NETBEANS 6.0 RELEASED

Today they released the amazing new NetBeans!! Try it and get amazed too!


DOWNLOAD IT

Quinta-feira Nov 01, 2007

Project Indiana Preview

Hi there.

Great news, a preview of Project Indiana is available for downloading at opensolaris.org. I've already run the LiveCD OS... It seems great and is working really fine. I'm thinking about installing it on my hard drive to try better its functions.

I invite you all to test it!

GET IT!

Cheers.

Quarta-feira Out 24, 2007

3 of 4 Tech Demos are Done!

I would like to use here a new HTML tag: < WET >
Yes... you may read this post hearing water streaming...
Yesterday, the rain started before I woke up and (I hope) it will stop after I sleep. I almost started to search for Noe's arc.

The good news now!

Yesterday, we (me and Luiz Aquino) did our second Tech Demo on the Superior Institute of Technology of Rio de Janeiro. The institute is part of FAETEC (a foundation that supports technical education) and has a new and innovative model of teaching. The article I wrote (I posted it here, so you can read it. Just search below) to subscribe to the event were published on an eletronic magazine.
We made two Techs;

The first (on Monday): Innovating with Solaris and OpenSource Technology
It was great, almost 60 people. We got many interested faces and many questions. We talked about Entrepreneurship, bzness planning, IT and the advantages of OpenSolaris and OpenSource choices. We explained Solaris, its distributions and Project Indiana.
The professors got very excited about SAI (we talked about it too, of course) and we are sending them the e-mail with details and instructions about the academic initiative. We distributed Solaris Mini-Books and SXDE DVDs.

The second (on Wednesday): Java & NetBeans, practical development, robust solutions.
It was great too. Because of the rain (in one day, rained what should rain in 45), fewer people arrived for our presentation... about 30 to 40... but It was nice too. We explained about the importance of using OpenSource technologies, the Java Platform and the Amazing NetBeans 6.0. The only problem was that we had to do the demo on NetBeans 5.5 wich was already installed on the machine we were working on... but we talked a lot about the new features of NetBeans anyway. We gave Mini-Books for those who were not present on Monday and talked briefly about Solaris.

Now we will keep contact and make the effort about SAI.

At UFRJ, we did our Tech Demo about Solaris, Introduction and Installation, on last Friday.
It was cool too... we had and audience of 35 students, and many showed interest to join our OSUG, that is growing bigger with 12 members. We distributed OS Mini-Books and SXDE DVDs and got e-mails to add on our Sun@UFRJ mail list.

We are about to repeat this demo on this Friday!! Then I will report it again!

That's it! :D

About

Well... Let's keep this blog updated for now on!!

Search

Categories
Archives
« Abril 2014
SegTerQuaQuiSexSábDom
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today