Pretty useful network tools | A collection nmap nstat socketstat commands | Primer

Okay a short summary - I recommend reading the man-pages for detailed info.

nmap | netstat | socketstat

sudo netstat -tulpen | grep -v 127.0.0.1 -> View Services and Ports
sudo nmap -sS IP -> SYN-Stealth-Scan, view open ports
sudo nmap -sU IP -> Scan UDP Ports instead of TCP
sudo nmap -sV IP -> Scan for RPC and other Services
sudo nmap -A IP -> Includes sV and tries to detect the remote OS
sudo sockstat -lc -> Show open and connected Sockets

Difference between "./ "and "sh" and the default SHELL | Extra shell features | Ubuntu Dash

During the last days I wrote some shell scripts to keep my development environments in sync. When it came to arrays I experienced some weird problems.

fl0@fl0-m0thership:~/AutoPkgUpdater$ sh MakePlist.sh f00
MakePlist.sh: 25: Syntax error: "(" unexpected

Guess what's at line 25? Right, an array declaration...The weird thing: I was able to directly declare an array in the shell like the following:

fl0@fl0-m0thership:~/AutoPkgUpdater$ a=( one two three)

How to change the default python version in Ubuntu 9.10

Sometimes you need to change the default Python version of your OS.
For Ubuntu you can accomplish that by editing the "debian_defaults" file.
1. Go to:

$ cd /usr/share/python
$ sudo nano debian_defaults

2. Change the version as needed:

Mac: OsX like Synaptics touchpad @ Intrepid Ibex

To make your touchpad behave pretty much like under OSX just create a new file /etc/hal/fdi/policy/appletouch.fdi with the following content:


<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.touchpad">
      <match key="info.product" contains="appletouch">
        <merge key="input.x11_driver" type="string">synaptics</merge>
        <merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>
        <merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge>
        <merge key="input.x11_options.TapButton1" type="string">1</merge>
        <merge key="input.x11_options.TapButton2" type="string">3</merge>
        <merge key="input.x11_options.TapButton3" type="string">2</merge>
        <merge key="input.x11_options.FingerLow" type="string">10</merge>
        <merge key="input.x11_options.FingerHigh" type="string">20</merge>
        <merge key="input.x11_options.PressureMotionMinZ" type="string">10</merge>
      </match>
    </match>
  </device>
</deviceinfo>

Ubuntu in 3D Stereo - You need (DIY) stereo glasses!

"Woooow - this is awesome!" You'll need 3D glasses to get the effect...This video shows a 3D Stereo Ubuntu (compiz enabled)! To watch the HD Version visit the link below the vid

A series of screenshots showing the effect:



During the last few weeks I was recapitulating my prior projects concering Human Computer Interfaces...All of them, namely T.I.R.E.X & the Pad, dealt with three dimensional display characteristics. But why? Since "3D" is obviously a part of our "real life" some applications like CAD programms or the simulation of e.g. car crashes or robots are "naturally" implemented in 3D space.

If you've ever looked at a CAD prog. or an OpenGL simulation the physics are great, the lightning is great, you can rotate, transform and project things. BUT - the display is still 2D in the end. Sure - all the stuff desribed above helps you to get the impression of a "real" 3D model but you still ned a tiny little bit of imagination. I would like to increase this little "bit" and present you an easy way to implement and use the power of OpenGL and anaglyphic stereoscopy.

What is anaglyph?