Friday, April 20, 2012

boost and cpp-netlib

-- Boost --
./bootstrap.sh --prefix=/home/lll/tmp/tmp-cpp-netlib/boost_1_49_0/
./b2 --layout=tagged install

(need layout to generate multithread boost libs)

-- cpp-netlib --
cmake -DBOOST_ROOT=/home/lll/tmp/tmp-cpp-netlib/boost_1_49_0/ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ .
make

Thursday, July 7, 2011

Scalability concepts

  • Google BigTable
    http://labs.google.com/papers/bigtable.html

  • BigData : are datasets that grow so large that they become awkward to work with
    http://en.wikipedia.org/wiki/Big_data

  • Hadoop

  • MapReduce : Google framework

  • Dynamo: Amazon's Highly Available Key-value Store
    http://www.allthingsdistributed.com/files/amazon-dynamo-sosp2007.pdf


  • - Master / slave
    - peer to peer
    - cluster: similar components
    - grid: different components
  • Wednesday, July 6, 2011

    aptitude search result

    p, meaning that no trace of the package exists on the system,
    c, meaning that the package was deleted but its configuration files remain on the system,
    i, meaning that the package is installed,
    v, meaning that the package is virtual.

    The second character indicates the stored action (if any; otherwise a blank space is displayed) to be performed on the package
    i, meaning that the package will be installed,
    d, meaning that the package will be deleted,
    p, meaning that the package and its configuration files will be removed.

    If the third character is A, the package was automatically installed

    Monday, May 23, 2011

    JNI

    I had to do:

    cd /usr/lib
    ln -s /usr/local/jdk1.6.0_22/jre/lib/amd64/libjava.so .

    to use -ljava

    See also   swig

    Thursday, April 28, 2011

    SEO

    SEO: Search Engine Optimization
    SMO: Social Media Optimization: Methodization of social media activity with the intent of attracting unique visitors to website content (Facebook button "I like")
    SEM: Search Engine Marketting: through the use of, paid placement, contextual advertising, and paid inclusion

    Monday, March 28, 2011

    gnuplot

    run gnuplot:

    gnuplot> set timefmt "%H:%M:%S"
    gnuplot> set xdata time
    gnuplot> set logscale y
    gnuplot> plot "day_poll.txt" using 2:1 title ' my title '

    gnuplot> plot "<awk '{i=i+$2; print $1,i}' clicks_.txt" title ' clicks'
    gnuplot> plot "<awk '{i=i+$2; print $1,i}' out-log-final.txt" title "LG", "<awk '{i=i+$2; print $1,i}' clicks_.txt" title "ozen"
    .

    Saturday, March 19, 2011

    freenx / qtnx

  • on the server:
      Follow these instructions: FreeNX
    • To see if nxserver processes were started after starting a client
    • watch 'ps aux |grep nx'
    • To kill all server nx sessions (they will be restarted automatically at the next connection)
    • sudo nxserver --help
      sudo nxserver --history
      sudo nxserver --terminate username
    • Other things:
    • sudo su - nx
    • keys problems
      when setting up a new server machine. The following worked for me in the case where you have "Authenticating client" forever on your qtnx client
      root@aaa:/var/log# /usr/lib/nx/nxsetup --install --clean --purge
  • on the client:
      install QTNX

      If the graphical Qtnx GUI client does not show up, kill all qtnx process running on the client machine and run the qtnx client again

      Make sure you set "gnome" (if you use gnome) and "adsl" in the QTNX config
      .
  •