Sunday, September 9, 2012

"screen" command

- list all screens: CTRL A "
- create one screen: CTRL A c
- close one screen: CTRL D
- help: CTRL A ?
- escape: space
- leave the screen session: CTRL A d
- rename session: (C-a :) and then enter the command sessionname SESSIONNAME
-rename window: (C-a A)
-renumber window: (C-a :) and then "number XXX" (warning: not bigger than the existing max)

- re-attach a "Detached" screen session
    joe@devxml1:~$ screen -ls
    There is a screen on:
    9425.pts-8.devxml1 (09/09/2012 16:21:38) (Detached)
    1 Socket in /var/run/screen/S-lefl.

    joe@devxml1:~$ screen -r 9425.pts-8.devxml1
    [detached from 9425.pts-8.devxml1]
- re-attach an "Attached"
. - if the screen is attached: screen -D -r

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"
    .