O pre-requisito é o notify-send, um utilitário de linha de comando do libnotify. No Ubuntu:
sudo aptitude install libnotify-bin
E aqui o script em si:
sleep 5m; notify-send “aviso” “tirar o miojo do fogo”
Pronto, depois de cinco minutos isso vai aparecer:
8 December, 2009 - 6:52 pm
Tags: hue, opencv, saturation, value
Posted in english | No comments
Here a simple OpenCV example of separation of a image into its hue, saturation and value channels.
#include <stdio.h>
#include <cv.h>
#include <highgui.h>
int main( int argc, char **argv ){
IplImage *img, *hsv, *hue, *sat, *val;
int key = 0, depth;
CvSize size;
/* Load command line [...]
This is a very simple example of how to open two images and display them added.
I got two pictures at project Commons from Wikimedia that were highlighted on Featured Pictures. I did a crop on both to have the same size, as I’m trying to make this example as simple as possible.
The first one is [...]
This is a simple example of how pass edge detection in a video using OpenCV. It uses the built-in OpenCV Canny edge detector algorithm.
#include <highgui.h>
#include <stdio.h>
#include <cv.h>
int main(int argc, char *argv[]) {
int delay = 0, key=0, i=0;
char *window_name;
CvCapture *video = NULL;
[...]
Here’s a simple video player that also performs facial detection thought the Open Computer Vision Library.
Here’s a code developed using codes from nashruddin.com and samples from OpenCV, including the haar classifier xml. More detailed explanation on the theory about how the OpenCV face detection algorithm works can be found here.
The code:
#include <highgui.h>
#include <stdio.h>
#include <cv.h>
CvHaarClassifierCascade *cascade;
CvMemStorage [...]
14 November, 2009 - 3:21 am
Tags: bash, batman, cli, cmd, Linux, mr freeze, pidof, posix, SH, shell, ubuntu, unix
Posted in português | 2 comments
Nem só de morte vive o kill.
Suponha que você tem um processo chamado program e quer congelar seu funcionamento. Para congela-lo sem mata-lo você pode mandar um sinal SIGSTOP com:
kill -s stop `pidof program`
Para ressuscitar o mesmo processo:
kill -s cont `pidof program`
16 May, 2009 - 8:53 am
Tags: HuaSong Liu, jaunty jackalope, Java, JavaFX, javafx4linux, jfx, Kaesar Alnijres, netbeans, RIA, ubuntu, Weiqi Gao, workaround
Posted in english | 8 comments
Download
javafx4linux.tar.bz2 (~ 36Mb).
Installing
1) Extract the javafx4linux.tar.bz2 file. In this example I’m placing it on my Desktop. After the installing process you can remove it.
2) Open your NetBeans 6.5 and go at Tools → Plugins and go to Downloaded tab. In a plain and new NetBeans installation there will be no plugin in this tab yet.
3) [...]
Nas versões anteriores do Ubuntu, inclusive no 8.04 que eu utilizava anteriormente, não havia do que me queixar. Porém com a mudança para o 9.04 (Jaunty Jackalope) de imediato foi possível reparar uma queda drástica na performance da aceleração gráfica 3D.
Minha placa gráfica no meu notebook, um Amazon FL31.
silveira@fl31:~$ lspci -nn | grep [...]
30 December, 2008 - 6:58 am
Tags: Linux, Shipit, ubuntu, Ubuntu 8.04
Posted in english | No comments
Those days I received my box of free Ubuntu CDs and sticks, free of charges. Courtesy of Canonical throught the Ubuntu Shipit project, thanks guys! I love those Internet free stuff. It’s essential having a few CDs distros always with me.
6 December, 2008 - 4:15 am
Tags: JavaFX, jfx, Linux, openjfx, RIA, tutorial, ubuntu, unofficial, vídeo, Weiqi Gao, workaround
Posted in english | 17 comments
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 [...]