2011-05-05

Simple C program that will crash any server

This is very simple C program, if executed, will defenately crash the server

Open Vi editor and type/copy the following lines

main()
{
  while(1)
  {
    fork();
  }
}

Save the file with any name, something like ... crash.c
Compile it: gcc crash.c
run it: ./a.out

And see how your server is getting crash.

2010-07-15

Streamyx 1Mbps blockbuster in test mode

TMnet is giving me 2 Mbps for this week. I'm using it to upgrade from Karmic Koala to Lucid Lynx.

2010-07-12

Error downloading package

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Solution:
sudo rm -rf /var/lib/dpkg/lock
sudo rm -rf /var/cache/apt/archives/lock 
sudo rm -rf /var/lib/apt/lists/lock

2010-05-04

Senarai Image Database

  • http://datasets.visionbib.com/info-index.html
  • http://www.elec.qmul.ac.uk/staffinfo/andrea/avss2007_d.html

2010-01-15

Installing PyQt4

Currently, the best combination is:
  • Python 2.6.4 - more compatible with third party packages than Python 3.0
  • PyQt4 version 4.6.2
Most importantly, get the 32-bit installer for Python even if your machine & OS are 64 bit -- PyQt4 only works with 32 bit Python.

    2010-01-12

    RANSAC dan good features to track

    http://en.wikipedia.org/wiki/RANSAC

    http://mrl.nyu.edu/~bregler/classes/vision_fall06/shi_tomasi_94.pdf

    2010-01-06

    How to install pyqt4 on ubuntu linux

    Install and run "hello world" example
    • Install it
    sudo apt-get install python-qt4
    • Create a file ~/tmp/helloworld.py
    import sys
    from PyQt4.QtGui import *
    app = QApplication(sys.argv)
    button = QPushButton("Hello World", None)
    button.show()
    app.exec_()
    

    • Run it:
    python ~/tmp/helloworld.py


  • You should see a window with a single button pop up.



  • Install additional examples
    • For more examples, install the python-qt4-doc package: 

    sudo apt-get install python-qt4-doc

    • After installation, the examples are located at: 
    /usr/share/doc/python-qt4-doc/examples