January 8, 2013 0

configure side screen menu bar (aka launcher bar) on dual screens

By in Unity

Go to Displays:

gnome-control-center display

Here sticky edges can be changed and options for the side menu or launcher bar can be moved

Tags: , , ,

December 7, 2012 0

using screen to detach console

By in linux

to create a new terminal just type screen

to go back to the original terminal type

to start command input type: ctrl – a

to detach: d

to list active sessions from original terminal: screen -ls

to retach session: screen -r [process number]

to stop a session from the session type: ctrl-a and then altGr backslash

Tags: ,

November 30, 2012 0

compiling vtk

By in checkinstall, deb, dpkg, gcc

compiling vtk gave some errors regarding xt

solution was to install libxt-dev and rerun cmake for vtk. Then run make again.

checkinstall can be used for creating a deb package

Tags: , , ,

November 9, 2012 0

user monitoring on dd-wrt router

By in dd-wrt

see: http://code.google.com/p/wrtbwmon/wiki/Deploying

October 25, 2012 0

Figuring out coordinate system transformation

By in geometry

Notes on how to construct simple transformations between coordinate systems.

We have a coordinate system eq and another coordinate system eq. To construct a transformation matrix allowing us to get coordinates, eq which is expressed in coordinate system eq expressed in coordinate system eq a transformation matrix, eq is required. This transformation matrix allow us to get eq

Lets say origo of coordinate system B in coordinate system A is {^A}O = [x1,y1,z1] and that the two coordinate system are otherwise aligned then the transformation matrix is:
matrix

If the systems are not aligned and instead B is rotated \pi radians around the y axis then the rotation matrix R^A_B is… It’s to cumbersome to create good-looking output… This post will end prematurely

 

September 24, 2012 0

adding formulas to google docs and presentations workaround

By in google docs, latex

A far from optimal workaround for adding formulas to google presentations and properly also google docs is to use

http://www.codecogs.com/latex/eqneditor.php

to construct the formula with latex syntax and load it as an image by adding an image from an URL E.g.:

formula generated by codecogs.com

The ugly drawback is that, AFAIK, you are not able to recall the link address and change your formula. But for at quick, one time workaround I think it works

Tags: , , ,

September 13, 2012 0

merging when git conflict – setup and tools

By in GIT

Possible merge tools: kdiff3 and meld

Setup kdiff3 in git

git config --global difftool.prompt false
git config --global difftool.kdiff3.trustExitCode false
git config --global diff.tool kdiff3
git config --global mergetool.kdiff3.trustExitCode false
git config --global mergetool.keepBackup false
git config --global merge.tool kdiff3

When forming a merge command the following variables can be used (This should however not be necessary if the tool is supported by git)
$BASE = a generated file that contains the common base of the two files
$LOCAL = file containing the content on the current branch
$REMOTE = file containing the content of the file to be merged into the local branch
$MERGED = the name of the file to which the merge result should be written

Resolving conflicts after merge: git mergetool

Inspecting diffs: cpgit diff

 

Tags: , , , , , ,

September 11, 2012 0

Dlink dir-615 rev. H2

By in dd-wrt

Notes collected when trying to get dd-wrt running on dlink dir-615 rev H2.

dd-wrt installation description

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=152939&postdays=0&postorder=asc&start=0

Getting client mode to work

Frst disabled security on main router. Then followed

http://www.dd-wrt.com/wiki/index.php/Client_Bridged

then added security on main router and client router (dlink dir-615) (WPA2-personal sec key: AES). Specifying AES on main router may bare been the crucial part.

Tags: , ,

September 3, 2012 0

determine if folder is a mount point

By in bask, linux

If $dir is a mount point this if statement will determine is (Not tested)


if [ `stat -fc%t:%T "$dir"` != `stat -fc%t:%T "$dir/.."` ]; then
echo "$dir is mounted"
else
echo "$dir is not mounted"
fi

August 22, 2012 0

Example of an interesting omnidirectional camera using a conical mirror

By in computer vision

http://robotti.wikidot.com/mobilerobotquestions

Interesting article on the same topic: “Using Conical and Spherical Mirrors with Conventional Cameras for 360º Panorama Views in a Single Image” http://www.dei.uminho.pt/~aparicio/pdf/BPA_079_UsingConical_ICM06.pdf

 

Tags: