August 22, 2012 0

povray: ray tracing program

By in computer vision

Program for testing ray tracing. Script based

povray : http://www.povray.org/

Tags:

August 22, 2012 0

notes on getting the playstation 3 (ps3) eye cam to work

By in Webcam

Some links

description on how to compile the driver module gspca_ov534 and mentions some usefull programs: http://wiki.tekkotsu.org/index.php/Sony_PlayStation_Eye_driver_install_instructions

Linus opencv camera compability (search for “playstation 3”): http://opencv.willowgarage.com/wiki/FullOpenCVWiki

Example of using v4l2 api for video capturing: http://sparse-stereo-vision.googlecode.com/svn/capture.cpp

Video4linux (v4l) api: http://linuxtv.org/downloads/v4l-dvb-apis/

 

Programs:

guvcview: camera control, view and recording that uses uvc (USB video class)

uvcdynctrl: command line program for controlling dynamic controls of a uvc device. This program comes with libwebcam

Other:

V4L and V4L2 (Video 4 linux) is a linux api. UVC provides a kernel driver for the v4l2 api.

 

Tags: , , , ,

August 20, 2012 0

correct tooltip colors in eclipse

By in Eclipse

If the tool tip colors make the tool tip unreadable then the colors can be changes in

sudo gedit /usr/share/themes/Ambiance/gtk-2.0/gtkrc

see link for color suggestions:

http://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity

Tags: , ,

August 7, 2012 0

linker error when using pkg-config

By in c++, C++, Eclipse, gcc

If you are not able to link with a library that is specified via pkg-config then make sure your pkg-config flag is placed in the end of the compiler/linker command

eg:

g++ -o "OpenCV2.3Test"  ./main.o `pkg-config --libs opencv`

instead of
g++ `pkg-config --libs opencv` -o "OpenCV2.3Test"  ./main.o

In Eclipse this is done by going to project properties -> CCC C++ Linker and change the order of the command line pattern so that flags are last, eg.:

${COMMAND} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} ${FLAGS}

Tags: , ,

August 6, 2012 0

install missing latex packages

By in latex, texworks

One way to install missing latex-packages is to find another package in the package repositories that contains the needed .sty file.
According to this post (Easy package installation) one approach is to use apt-file the following way:

apt-file -x search '/textcomp.sty$'

This will report which package contain the needed file and that package can then be installed with apt-get

Tags: , ,

August 2, 2012 0

see what files and folders have been created doing install

By in dpkg

Use dpkg’s -L option followed by the package name

eg.
dpkg -L firefox

 

Tags: , ,

July 24, 2012 0

add global sign root ca to linux citrix client

By in citrix

getting online.sdu.dk to work under linux requires installation of a citrix client and to add the global sign root certificate.

citrix client/receiver

A google search will give the certificate but here is a direct link:

Certificate

copy the certificate and paste it in a file called eg. globalsignrootcertificate.crt and save it in:
/opt/Citrix/ICAClient/keystore/cacerts
make sure that permissions are like the other certificates that is located in that folder(Not sure if it gives problems not to ensure this)

July 24, 2012 0

inspect result of installing .deb file

By in deb, linux

What files is installed on the system and where when running a .deb file either by software-center or dpkg -i .deb? find out by running:

dpkg-build --contents .deb

This doesnt install the package but let you inspect what will happen is you install

Tags: ,

July 4, 2012 0

determine gcc include path

By in c++, gcc

If you are not sure which directories gcc looks for header files or in which order this is done run the command
gcc -v -x c -E -

June 11, 2012 0

adding Henriks texworks scripts

By in latex, texworks

Adding henriks texworks scripts
Go to the directory:
cd ~/.Texworks
checkout henriks git repo (https://github.com/henrikmidtiby/TeXworks-scripts)
git clone https://github.com/henrikmidtiby/TeXworks-scripts.git
rename/delete existing scripts folder and rename the created folder “TeXworks-scripts” to “scripts”
in texworks choose scripts->Scripting texworks-> reload script list

Soem of the scripts may not work if texworks isnt the newest version