28 September, 2011 - 11:43 pm
Tags: configuration, Heroku, Ruby, ubuntu
Posted in english | 1 comment
As root execute: apt-get update apt-get install build-essential ruby rails rubygems1.8 apt-get install ruby1.8-dev libopenssl-ruby Chance PATH at /etc/environment: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin" Update your current environment: source /etc/environment Install the Heroku gem: sudo gem install heroku Run Heroku authentication configuration: heroku auth:login Enter the credentials for your Heroku account. Done!
I’m dealing with video format of my new camera (Panasonic Lumix DMC-TS3). It’s the AVCHD format (.MTS file extension). You can convert it to other formats using HandBrake on Ubuntu.
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 passed image, check it. */ if [...]
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 [...]
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; IplImage *frame = NULL; IplImage *grey [...]
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> [...]
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 [...]
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 [...]