come with me, on the way I'll explain.
Posts tagged vídeo
Casa Brasil na TV
Mar 5th
Esse é uma amostras dos bastidores do que rolou nas filmagens nessa terça-feira na Casa Brasil unidade Vila União. As filmagens são por mim e pela pequena Vitória de apenas 5 anos. =)
A reportagem vai ao ar no canal da Globo, esse sábado ao meio dia. Não percam!
Atualizado em 7 de Março:
Algumas fotos dos bastidores da gravação.
Pra quem não assistiu na TV, eu gravei com a câmera, aqui está.
Download: cbvilauniaonatv.ogg
Parabéns Alyne, Alexandra, Leonardo e todos, vocês foram ótimos!
Mechanical Watch Source Code
Jan 17th
Video from produced in 1949 by Hamilton Watch Company explains how a mechanical clock works. Worth see.
Shhh, HD running!
Jan 2nd

Brendan Gregg made an unusual discovery, shouting a HD produces pikes of latency. We’ll see sound proof data centers now? Another point to solid-state drivers.
I wonder if playing loud music near my computer makes IO slower.
Gravatar with JavaFX
Dec 21st
Gravatar is easy way to put global recognized avatar images into any Internet application. Gravatar would stands for globally recognized avatar.
Below, the Java class that I got from the Gravatar Java reference. Here is a static class called md5 that applies a MD5Sum algorithm over a string. Is a little complex code but all behavior keeps encapsulated and who uses it don’t need to know how it works. Just gives a string and receives a encrypted string. Those two codes are also a good example of how calling Java classes inside a JavaFX code.
package gravatarexample; import java.security.MessageDigest; import java.io.UnsupportedEncodingException; import java.security.NoSuchAlgorithmException; public class MD5 { public static String toHex(String message) { try { MessageDigest md = MessageDigest.getInstance("MD5"); byte array[] = md.digest(message.getBytes("CP1252")); StringBuffer sb = new StringBuffer(); for (int i = 0; i < array.length; ++i) { sb.append(Integer.toHexString((array[i]&0xFF)|0x100).substring(1, 3)); } return sb.toString(); } catch (NoSuchAlgorithmException e) { } catch (UnsupportedEncodingException e) { } return null; } }
As a Java class in the same package, any JavaFX (or Java) code can call it without any problem. Just to keep the code more clear I’m importing it explicitly. Is this example I also create some Swing interface to give user the option to put his mail, adjust the image size and get a output direct link or html image tag.
package gravatarexample; import gravatarexample.MD5; import javafx.ext.swing.SwingButton; import javafx.ext.swing.SwingSlider; import javafx.ext.swing.SwingTextField; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.VBox; import javafx.scene.Scene; import javafx.stage.Stage; var mail = "Email"; var key = ""; function gravatalize(mail:String, size: Integer): String { return "http://www.gravatar.com/avatar/{MD5.toHex(mail)}?s={size}" } var inputtxt = SwingTextField { columns: 20 text: mail } var slider = SwingSlider { minimum: 10 maximum: 128 value: 100 vertical: false } var button = SwingButton { text: "Get Gravatar" action: function() { key = gravatalize(inputtxt.text, slider.value); directoutput.text = key; htmloutput.text = "<img src="{key}" alt="\"gravatar\"" />"; photo.image = Image { backgroundLoading: true, url: key}; } } var photo:ImageView = ImageView { image: null } var directoutput = SwingTextField { columns: 20 text: "direct link image" } var htmloutput = SwingTextField { columns: 20 text: "html tag image" } Stage { title: "Gravatar" width: 300 height: 340 scene: Scene { content: [ VBox { spacing: 10 content: [inputtxt, slider, button, directoutput, htmloutput, photo] }, ] } }
The string itself is assembled in the gravatalize function. You give a mail and it’s returns a Gravatar direct link to the image. There’s many cool ways to use together Gravatar and a JavaFX Internet application.
JavaFX SDK 1.0 on Linux
Dec 6th
JavaFX 1.0 is out and is absolutely amazing. You guys did really a great work on it.
As I really need a working SDK on Linux to continue to study and I don’t have any Windows/Mac near me, I’m using the Weiqi Gao’s workaround. I tried to simplify a little bit more the process for those who need JavaFX SDK working on Linux right now.
Download javafxsdk_linux_unofficial.tar.bz2 (~18Mb).
And then
tar -xjvf javafxsdk_linux_unofficial.tar.bz2
sudo cp javafx /opt/javafx
echo “PATH=\$PATH:/opt/javafx/bin” >> ~/.profile
echo “JAVAFX_HOME=/opt/javafx” >> ~/.profile
source ~/.profile
Now you can call javafx, javafxc, javafxdoc and javafxpackager from your terminal. Don’t forget that you need Java 1.6 or greater installed.
Here’s a video showing the SDK working, I’m compiling and running two sample applications. Remeber that as a temporary unofficial port for Linux, there’s not native video support nor hardware acceleration.
Un P’tit Café
Dec 3rd
Par Odelaf e Monsier D.
Lyrique:
Pour bien commencer
Ma petite journée
Et me réveiller
Moi, j’ai pris un café
Un arabica
Noir et bien corsé
J’enfile ma parka
Ça y est je peux y aller«Où est-ce que tu vas ?»
Me crie mon aimée
«Prenons un kawa
Je viens de me lever»
Étant en avance
Et un peu forcé
Je change de sens
Et reprends un caféA huit heures moins l’quart
Faut bien l’avouer
Les bureaux sont vides
On pourrait s’ennuyer
Mais je reste calme
Je sais m’adapter
Le temps qu’ils arrivent
J’ai l’temps pour un caféLa journée s’emballe
Tout le monde peut bosser
Au moins jusqu’à l’heure
De la pause-café
Ma secrétaire entre :
«Fort comme vous l’aimez»
Ah mince, j’viens d’en prendre
Mais maintenant qu’il est fait…Un repas d’affaire
Tout près du Sentier
Il fait un temps super
Mais je me sens stressé
Mes collègues se marrent :
«Détends-toi, René !
Prends un bon cigare
Et un p’tit café…»Une fois fini
Mes collègues crevés
Appellent un taxi
Mais moi j’ai envie d’sauter
Je fais tout Paris
Puis je vois un troquet
J’commande un déca
Mais recaféinéJ’arrive au bureau
Ma secrétaire me fait :
«Vous êtes un peu en r’tard
Je me suis inquiétée»
Han ! – J’la jette par la f’nêtre
Elle l’avait bien cherché
T’façons faut qu’je rentre
Mais avant un caféAttendant l’métro
Je me fais agresser
Une p’tite vieille me dit :
«Vous avez l’heure s’il vous plaît ?»
Han – Je lui casse la tête
Et j’la pousse sur le quai
Je file à la maison
Et j’me sers un – devinez ?«Papa, mon Papa,
En classe je suis premier»
Putain mais quoi ?
Tu vas arrêter de m’faire chier ?
Qu’il est con ce gosse !
En plus y s’met à chialer !
J’m'enferme dans la cuisine
Il reste un peu d’caféÇa fait quatorze jours
Que je suis enfermé
J’suis seul dans ma cuisine
Et je bois du café
Il faudrait bien qu’je dorme
Mais les flics vont m’choper
Alors je cloue les portes
Et j’reprends du café..



















