Showing posts from September, 2009

Docx to Doc converter

You can convert docx files to doc with

Disabling all gcc warnings


-w is the GCC-wide option to disable warning messages.

Saliency Toolbox with ubuntu 8.10

The SaliencyToolbox is a collection of Matlab functions and scripts for computing the saliency map for an image, for determining the extent of a proto-object, and for serially scanning the image with the focus of attention. It has been cited in more than 60 papers.

System requirements:

* Any computer and operating system that runs Matlab
* Matlab Release 13 or later
* Image Processing Toolbox

What to do :

1- Unpacking the code creates a directory structure under SaliencyToolbox. Simply add the SaliencyToolbox directory including its subdirectories to your Matlab path:
[MATLAB] >> addpath(genpath(""));
2- Okay, now that installation was so simple, you have some time left for a test drive, right? Version 2.0 sports a new graphical user interface (GUI) version of the saliency code. In Matlab, change to the SaliencyToolbox directory, then type:
[MATLAB] >> guiSaliency('img/balloons.png');
Hit "Start" to start the saliency computation. Everything else should b…

Linux: The detailed information about your computer's trademark, hardware, etc.

1 - CPU Information
[TERMINAL] >> cat/proc/cpuinfo
2- RAM Information
[TERMINAL] >> cat/proc/meminfo
3 - hda Information
[TERMINAL] >> dmesg|grep "^hda"
4 - hdd Information
[TERMINAL] >> dmesg|grep "^hdd"
5 - USB audio card Information
[TERMINAL] >> dmesg|grep usb
6 - PCI devices Information
[TERMINAL] >> lspci

Oops! Matlab gives OpenGL Error !!!

In matlab, do you get error when you prompt:
[MATLAB] >> opengl info
If yes, you have to link your opengl libraries. Firstly, look at your libraries :
[TERMINAL] >> cd /usr/lib
[TERMINAL] >> ls *GL*
you have some libGL, libGLU libraries. Here is my results: libQtOpenGL.prl libGLU.a
You can get the correct version of these libraries by setting up MATLAB to use your native Linux "" file and the generic "" file that is shipped with MATLAB in the $MATLABROOT/sys/opengl/lib/glnx86 directory (where $MATLAB is the root MATLAB directory).

Consult your system documentation to identify the location of your n…

Projects - Installing Matlab on Linux

The version of matlab : Mathworks MATLAB V7.0 Release-14
* MathWorks_R14_1.iso
* MathWorks_R14_2.iso
* MathWorks_R14_3.iso
* license.dat
* license.lic

How to Install: commands for your terminal
* #mkdir -p /mnt/iso # make the mount point for ISOs
* #mount -o loop /path/to/Matlab_R14_Mac.Linux.Unix_CD1.iso /mnt/iso # mount the first ISO
* #mkdir -p /usr/local/matlab7/etc # make the installed directory for Matlab
* #cp /mnt/iso/Matlab.7.R14.License-Mac.OS.X-Unix-Linux/Matlab.7.R14.License-Mac.OS.X-Unix-Linux/* /usr/local/matlab7/etc/ # copy the licenses files (license.dat and license.lic)
Then modify the file license.lic with your own $HOSTNAME environment variable as follows:

#chmod -R 755 /usr/local/matlab7
#vim /usr/local/matlab7/etc/license.lic
... ...
#cat /usr/local/matlab7/etc/licesne.lic
# Mathworks MATLAB V7.0 Release-14 License
# -----------------------------------------------…

Mount ISO files in linux

mount -o loop -t iso9660 file.iso /mnt/test
sudo umount /mnt/test

YUV Player for Linux

I can watch a .yuv animation. You need to specify the size it was rendered at - that doesn't seem to be part of the file format:
animate -size 480x270 file.yuv
I can single-step through a .yuv animation, using SPACE to step forward and BACKSPACE to step back through the frames:
display -size 480x270 file.yuv
I can also convert a .yuv to a series of .png files. This makes file-0.png through file-23.png for a 24 frame animation:
convert -size 480x270 file.yuv file.png
I also discovered that ffmpeg will happily convert a .yuv to .avi if you just tell it the image dimensions:
ffmpeg -s 480x270 -i file.yuv file.avi

Linux version control

At a terminal, enter ->
lsb_release -a
Current ubuntu releases:

DNS for restricted web sites

these Dns addresses are for restricted sites....

have fun!

log4cxx with Visual Studio 2008

1- Download necessary files from here

2- Then unrar the file and under msvc9-proj directory, open the VS project to build necessary dll and library files.

3- Copy the dll file under Release_Shared.

4- Open Visual Studio. Tools->Options->VC++Directories->Library Files, add path to Release_Shared directory for linking necessary libraries.

5- Tools->Options->VC++Directories->Include Files, add path to src/main/include

6- To use the static link log4cxx library, the macro LOG4CXX_STATIC MUST be defined in your projects preprocessor, otherwise your compilation will suffer unresolved linking error:
6-1) Open your project's settings.
6-2) C/C++->Preprocessor->Preprocessor Definitions , add LOG4CXX_STATIC.

Now, you can use logger with Vs 2008.


CEGUI Tips: UnifiedAreaRect

means start from 0,0 to 1.3,0 and 0,0 to 0.8. here 1.3 is the width and 0.8 is the height.