merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 23 Aug 2011 10:07:58 +0300
changeset 955 e9a167ac98f3
parent 954 887fa4aff71f (current diff)
parent 953 86acd1e99dd0 (diff)
child 956 673f9fd0115d
merged
.dir-locals.el
.hgignore
Makefile
abbr.rst
asciidoc.rst
atom.rst
autotools.rst
bzr.rst
chm-hhc.sh
chm-hhp.sh
chm.stp
cpu.rst
devel-codetags.rst
devel-proj-files.rst
devel-scm.rst
devel-versioning.rst
devel.rst
disasm.rst
docbook.rst
en-phonetic.rst
epub.rst
expect.rst
firefox-devel.rst
fossil.rst
freebsd.rst
ftp.rst
gimp.rst
grub.rst
gtd.rst
hex.rst
http.rst
i18n.rst
index-frame.html
index.sh
intellectual.rst
javadoc.rst
ldd.rst
lisp.rst
macos.rst
mobile.rst
noise.rst
ontology.rst
partition.rst
prog-lang.rst
qt.rst
rst.css
screensaver.rst
search.rst
security.rst
sgml.rst
sh.rst
smartcard.rst
sudo.rst
texi.rst
usb.rst
web-search.rst
web-semantic.rst
web-site.rst
--- a/3d.rst	Tue Aug 23 10:07:48 2011 +0300
+++ b/3d.rst	Tue Aug 23 10:07:58 2011 +0300
@@ -8,6 +8,9 @@
   http://www.povray.org/
                 home page
   http://en.wikipedia.org/wiki/POV-Ray
+                POV Ray
   http://xahlee.org/3d/povray.html
+                POV Ray
   http://xahlee.org/3d/povray_emacs.html
+                POV Ray
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/chm.rst	Tue Aug 23 10:07:58 2011 +0300
@@ -0,0 +1,54 @@
+-*- coding: utf-8 -*-
+
+======
+ CHM.
+======
+.. contents::
+
+Spec.
+=====
+
+  http://www.nongnu.org/chmspec/
+                HTML Help Projects
+  http://www.nongnu.org/chmspec/latest/
+                Unofficial (Preliminary) HTML Help Specification
+  http://www.speakeasy.org/~russotto/chm/chmformat.html
+                Matthew Russotto's Microsoft's HTML Help format description
+  http://msdn.microsoft.com/en-us/library/ms669980.aspx
+                HTML Help Frequently Asked Questions
+
+Alternatives.
+=============
+
+  http://www.imendio.com/projects/devhelp/
+                DevHelp is a GNOME based online help system aimed toward developers
+  http://en.wikipedia.org/wiki/MHTML
+                MHTML, short for MIME HTML
+
+Microsoft HTML Help.
+====================
+
+  http://msdn.microsoft.com/en-us/library/ms669985
+                Microsoft HTML Help Downloads
+  http://support.microsoft.com/kb/269766/
+                INFO: Limited Unicode Support in HTML Help
+
+Viewer.
+=======
+
+gnochm.
+-------
+
+Debian:
+
+  $ sudo apt-get install gnochm
+
+xchm.
+-----
+
+Debian:
+
+  $ sudo apt-get install xchm
+
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cmd.rst	Tue Aug 23 10:07:58 2011 +0300
@@ -0,0 +1,123 @@
+.. -*- coding: utf-8; -*-
+
+====================
+ CMD Windows shell.
+====================
+.. contents::
+
+Quoting.
+========
+
+ * Arguments are delimited by white space, which is either a space or a tab.
+ * A string surrounded by double quotation marks is interpreted as a single
+   argument.
+ * A double quotation mark preceded by a backslash, \", is interpreted as a
+   literal double quotation mark.
+ * Backslashes are interpreted literally, unless they immediately precede a
+   double quotation mark.
+ * If an even number of backslashes is followed by a double quotation mark,
+   then one backslash (\) is placed in the argv array for every pair of
+   backslashes (\\), and the double quotation mark (") is interpreted as a
+   string delimiter.
+ * If an odd number of backslashes is followed by a double quotation mark,
+   then one backslash (\) is placed in the argv array for every pair of
+   backslashes (\\) and the double quotation mark is interpreted as an escape
+   sequence by the remaining backslash, causing a literal double quotation
+   mark (") to be placed in argv.
+ * In double quote mark need surround such chars::
+
+     & < > [ ] { } ^ = ; ! ' + , ` ~ %
+
+   Also all this char can be escaped by ^ char.
+ * Long line can be truncated by ^ char, in this case trailing white spaces
+   not allowed.
+ * To quote percent sign % before alpha char in batch file double it
+   occurrences or plase in quotes::
+
+     prog '%'HOME'%' "%"HOME"%" %%HOME%
+
+  http://msdn.microsoft.com/en-us/library/ms880421.aspx
+                Parsing C Command-Line Arguments
+
+Variables.
+==========
+
+Variable name start with letter and underscore, next chars can be letter,
+number and underscore. Variable name is case insensitive.
+
+List of variables.
+------------------
+::
+
+  cmd> set
+  ...
+  VAR=VALUE
+
+Getting.
+--------
+
+Write %VAR% in place where you want insert variable VAr value.
+
+Setting.
+--------
+::
+
+  cmd> set /p VAR=VALUE
+
+Deleting.
+---------
+::
+
+  cmd> set VAR=
+
+Input from user.
+----------------
+::
+
+  cmd> set /p VAR=PROMPT
+
+VAR is variable name, PROMPT is displayed prompt.
+
+Input from file.
+----------------
+
+  cmd> set /p VAR=<FILE
+
+VAR is variable name, FILE is file name. Sfter executing VAR contain first
+line from FILE.
+
+CMD tricks.
+===========
+::
+
+  $ set /p TOOLOUTPUT= < temp.txt
+
+  $ for /f "tokens=*" %%i in ('%~dp0sometool.exe') do set TOOLOUTPUT=%%i
+
+  $ for /f "tokens=1 delims=" %%s in (users.txt) do (echo %%S & command "%%S") >> outputfile.txt
+
+Limits.
+=======
+
+Variable value and one line command string after expansion can not exceed 8191
+characters for Windows XP and later and 2047 for Windows NT, Windows 2000.
+
+  http://support.microsoft.com/default.aspx?scid=kb;en-us;830473
+                Command prompt (Cmd. exe) command-line string limitation
+
+How run cmd on 64-bit OS.
+=========================
+
+From 64-bit process::
+
+  %windir%\System32\cmd.exe (for 64-bit)
+  %windir%\SysWOW64\cmd.exe (for 32-bit)
+
+From 32-bit process::
+
+  %windir%\System32\cmd.exe (for 32-bit)
+  %windir%\Sysnative\cmd.exe (for 64-bit)
+
+  http://msdn.microsoft.com/en-us/library/aa384187%28VS.85%29.aspx
+                File System Redirector
+
--- a/devel-versioning.rst	Tue Aug 23 10:07:48 2011 +0300
+++ b/devel-versioning.rst	Tue Aug 23 10:07:58 2011 +0300
@@ -3,9 +3,57 @@
 =================
 .. contents::
 
+Release build version data.
+===========================
+
+ * Build number.
+ * Build date.
+ * Build version.
+ * Branch-tag used.
+ * Overnight build (Y/N).
+ * QA tested (Y/N).
+ * QA test results (Pass/Fail).
+ * Location of full logs.
+
+Order formula.
+==============
+
+if (A.major != B.major) return A.major > B.major;
+if (A.minor != B.minor) return A.minor > B.minor;
+if (A.patch != B.patch) return A.patch > B.patch;
+if (A.special == B.special) return 0;
+if (A.special == "") return 1;
+if (B.special == "") return -1;
+return A.special > B.special;
+
+**NOTE** Accoding to this definition 1.0.1rc1 < 1.0.1rc10 < 1.0.1rc2 which is
+non meaningful.
+
+Compatibility formula.
+======================
+
+Assume that app linked with new version of lib. Thus::
+
+  is_compatible_with_old(old, new) {
+    if (old.major != new.major) return 0;
+    if (old.minor > new.minor) return 0;
+    return 1;
+  }
+
+Assume that app linked with old version of lib. Thus::
+
+  is_compatible_with_new(old, new) {
+    if (old.major != new.major) return 0;
+    return 1;
+  }
+
 Reference.
 ==========
 
   https://developer.mozilla.org/en/toolkit_version_format
                 Toolkit version format
+  http://apr.apache.org/versioning.html
+                APR's Version Numbering
+  http://semver.org/
+                Semantic Versioning
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doxygen.rst	Tue Aug 23 10:07:58 2011 +0300
@@ -0,0 +1,51 @@
+.. -*- coding: utf-8 -*-
+
+==========
+ Doxygen.
+==========
+.. contents::
+
+Installing.
+===========
+::
+
+  $ sudo apt-get install doxygen
+  $ sudo apt-get install doxygen-gui
+
+Graphical wizard called as::
+
+  $ doxywizard
+
+Doxygen simple workflow.
+========================
+::
+
+  $ cd $proj
+  $ doxygen -g $proj.cfg  # generate basic config file
+
+Edit $proj.cfg. Some essential settings::
+
+  PROJECT_NAME     = my-proj
+  OUTPUT_DIRECTORY = my
+  OUTPUT_LANGUAGE  = English
+  INPUT            = my.h my.hpp dir/
+  INPUT_ENCODING   = UTF-8
+  FILE_PATTERNS    =
+  RECURSIVE        = NO
+  GENERATE_HTML    = YES
+
+Generate .chm from doxygen.
+===========================
+
+Check doxygen config file for::
+
+  GENERATE_HTMLHELP  = YES
+  CHM_FILE           = my.chm
+  CHM_INDEX_ENCODING = Windows-1251
+
+Run 'doxygen' and 'hhc.exe' on generated 'index.hhp'::
+
+  $ doxygen $proj.cfg
+  $ cd $proj/html     # here gone doxygen html output
+  $ hhc.exe index.hhp
+
--- a/rst.css	Tue Aug 23 10:07:48 2011 +0300
+++ b/rst.css	Tue Aug 23 10:07:58 2011 +0300
@@ -7,3 +7,5 @@
 p { text-indent: 2em; }
 p:first-letter { font-weight: bold; }
 .literal-block {padding-left: 4em;}
+table { border-collapse:collapse; margin-left:auto; margin-right:auto; }
+table, tr, td { padding: 3px; border: 1px dotted maroon; background-color: cornsilk; }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vt100.rst	Tue Aug 23 10:07:58 2011 +0300
@@ -0,0 +1,293 @@
+
+==========================================================
+ This document describes how to control a VT100 terminal.
+==========================================================
+.. contents::
+
+ANSI escape sequence is a sequence of ASCII characters, the first two of which
+are the ASCII "Escape" character 27 (1Bh) and the left-bracket character " [ "
+(5Bh). The character or characters following the escape and left-bracket
+characters specify an alphanumeric code that controls a keyboard or display
+function.
+
++----------------+---------------------------------------+-------------+
+|Esc[2;1yEsc[20h |Confidence power up testSet new line   |DECTSTLMN    |
+|                |mode                                   |             |
++----------------+---------------------------------------+-------------+
+|Esc[2;2yEsc[?1h |Confidence loopback testSet cursor key |DECTSTDECCKM |
+|                |to application                         |             |
++----------------+---------------------------------------+-------------+
+|Esc[2;9ynone    |Repeat power up testSet ANSI (versus   |DECTSTDECANM |
+|                |VT52)                                  |             |
++----------------+---------------------------------------+-------------+
+|Esc[2;10yEsc[?3h|Repeat loopback testSet number of      |DECTSTDECCOLM|
+|                |columns to 132                         |             |
++----------------+---------------------------------------+-------------+
+|Esc[0qEsc[?4h   |Turn off all four ledsSet smooth       |DECLL0DECSCLM|
+|                |scrolling                              |             |
++----------------+---------------------------------------+-------------+
+|Esc[1qEsc[?5h   |Turn on LED #1Set reverse video on     |DECLL1DECSCNM|
+|                |screen                                 |             |
++----------------+---------------------------------------+-------------+
+|Esc[2qEsc[?6h   |Turn on LED #2Set origin to relative   |DECLL2DECOM  |
++----------------+---------------------------------------+-------------+
+|Esc[3qEsc[?7h   |Turn on LED #3Set auto-wrap mode       |DECLL3DECAWM |
++----------------+---------------------------------------+-------------+
+|Esc[4qEsc[?8h   |Turn on LED #4Set auto-repeat mode     |DECLL4DECARM |
++----------------+---------------------------------------+-------------+
+|Esc[?9h         |Set interlacing mode                   |DECINLM      |
++----------------+---------------------------------------+-------------+
+|Esc[20l         |Set line feed mode                     |LMN          |
++----------------+---------------------------------------+-------------+
+|Esc[?1l         |Set cursor key to cursor               |DECCKM       |
++----------------+---------------------------------------+-------------+
+|Esc[?2l         |Set VT52 (versus ANSI)                 |DECANM       |
++----------------+---------------------------------------+-------------+
+|Esc[?3l         |Set number of columns to 80            |DECCOLM      |
++----------------+---------------------------------------+-------------+
+|Esc[?4l         |Set jump scrolling                     |DECSCLM      |
++----------------+---------------------------------------+-------------+
+|Esc[?5l         |Set normal video on screen             |DECSCNM      |
++----------------+---------------------------------------+-------------+
+|Esc[?6l         |Set origin to absolute                 |DECOM        |
++----------------+---------------------------------------+-------------+
+|Esc[?7l         |Reset auto-wrap mode                   |DECAWM       |
++----------------+---------------------------------------+-------------+
+|Esc[?8l         |Reset auto-repeat mode                 |DECARM       |
++----------------+---------------------------------------+-------------+
+|Esc[?9l         |Reset interlacing mode                 |DECINLM      |
++----------------+---------------------------------------+-------------+
+|Esc=            |Set alternate keypad mode              |DECKPAM      |
++----------------+---------------------------------------+-------------+
+|Esc>            |Set numeric keypad mode                |DECKPNM      |
++----------------+---------------------------------------+-------------+
+|Esc(A           |Set United Kingdom G0 character set    |setukg0      |
++----------------+---------------------------------------+-------------+
+|Esc)A           |Set United Kingdom G1 character set    |setukg1      |
++----------------+---------------------------------------+-------------+
+|Esc(B           |Set United States G0 character set     |setusg0      |
++----------------+---------------------------------------+-------------+
+|Esc)B           |Set United States G1 character set     |setusg1      |
++----------------+---------------------------------------+-------------+
+|Esc(0           |Set G0 special chars. & line set       |setspecg0    |
++----------------+---------------------------------------+-------------+
+|Esc)0           |Set G1 special chars. & line set       |setspecg1    |
++----------------+---------------------------------------+-------------+
+|Esc(1           |Set G0 alternate character ROM         |setaltg0     |
++----------------+---------------------------------------+-------------+
+|Esc)1           |Set G1 alternate character ROM         |setaltg1     |
++----------------+---------------------------------------+-------------+
+|Esc(2           |Set G0 alt char ROM and spec. graphics |setaltspecg0 |
++----------------+---------------------------------------+-------------+
+|Esc)2           |Set G1 alt char ROM and spec. graphics |setaltspecg1 |
++----------------+---------------------------------------+-------------+
+|EscN            |Set single shift 2                     |SS2          |
++----------------+---------------------------------------+-------------+
+|EscO            |Set single shift 3                     |SS3          |
++----------------+---------------------------------------+-------------+
+|Esc[m           |Turn off character attributes          |SGR0         |
++----------------+---------------------------------------+-------------+
+|Esc[0m          |Turn off character attributes          |SGR0         |
++----------------+---------------------------------------+-------------+
+|Esc[1m          |Turn bold mode on                      |SGR1         |
++----------------+---------------------------------------+-------------+
+|Esc[2m          |Turn low intensity mode on             |SGR2         |
++----------------+---------------------------------------+-------------+
+|Esc[4m          |Turn underline mode on                 |SGR4         |
++----------------+---------------------------------------+-------------+
+|Esc[5m          |Turn blinking mode on                  |SGR5         |
++----------------+---------------------------------------+-------------+
+|Esc[7m          |Turn reverse video on                  |SGR7         |
++----------------+---------------------------------------+-------------+
+|Esc[8m          |Turn invisible text mode on            |SGR8         |
++----------------+---------------------------------------+-------------+
+|Esc[Line;Liner  |Set top and bottom lines of a window   |DECSTBM      |
++----------------+---------------------------------------+-------------+
+|Esc[ValueA      |Move cursor up n lines                 |CUU          |
++----------------+---------------------------------------+-------------+
+|Esc[ValueB      |Move cursor down n lines               |CUD          |
++----------------+---------------------------------------+-------------+
+|Esc[ValueC      |Move cursor right n lines              |CUF          |
++----------------+---------------------------------------+-------------+
+|Esc[ValueD      |Move cursor left n lines               |CUB          |
++----------------+---------------------------------------+-------------+
+|Esc[H           |Move cursor to upper left corner       |cursorhome   |
++----------------+---------------------------------------+-------------+
+|Esc[;H          |Move cursor to upper left corner       |cursorhome   |
++----------------+---------------------------------------+-------------+
+|Esc[Line;ColumnH|Move cursor to screen location v,h     |CUP          |
++----------------+---------------------------------------+-------------+
+|Esc[f           |Move cursor to upper left corner       |hvhome       |
++----------------+---------------------------------------+-------------+
+|Esc[;f          |Move cursor to upper left corner       |hvhome       |
++----------------+---------------------------------------+-------------+
+|Esc[Line;Columnf|Move cursor to screen location v,h     |CUP          |
++----------------+---------------------------------------+-------------+
+|EscD            |Move/scroll window up one line         |IND          |
++----------------+---------------------------------------+-------------+
+|EscM            |Move/scroll window down one line       |RI           |
++----------------+---------------------------------------+-------------+
+|EscE            |Move to next line                      |NEL          |
++----------------+---------------------------------------+-------------+
+|Esc7            |Save cursor position and attributes    |DECSC        |
++----------------+---------------------------------------+-------------+
+|Esc8            |Restore cursor position and attributes |DECSC        |
++----------------+---------------------------------------+-------------+
+|EscH            |Set a tab at the current column        |HTS          |
++----------------+---------------------------------------+-------------+
+|Esc[g           |Clear a tab at the current column      |TBC          |
++----------------+---------------------------------------+-------------+
+|Esc[0g          |Clear a tab at the current column      |TBC          |
++----------------+---------------------------------------+-------------+
+|Esc[3g          |Clear all tabs                         |TBC          |
++----------------+---------------------------------------+-------------+
+|Esc#3           |Double-height letters, top half        |DECDHL       |
++----------------+---------------------------------------+-------------+
+|Esc#4           |Double-height letters, bottom half     |DECDHL       |
++----------------+---------------------------------------+-------------+
+|Esc#5           |Single width, single height letters    |DECSWL       |
++----------------+---------------------------------------+-------------+
+|Esc#6           |Double width, single height letters    |DECDWL       |
++----------------+---------------------------------------+-------------+
+|Esc[K           |Clear line from cursor right           |EL0          |
++----------------+---------------------------------------+-------------+
+|Esc[0K          |Clear line from cursor right           |EL0          |
++----------------+---------------------------------------+-------------+
+|Esc[1K          |Clear line from cursor left            |EL1          |
++----------------+---------------------------------------+-------------+
+|Esc[2K          |Clear entire line                      |EL2          |
++----------------+---------------------------------------+-------------+
+|Esc[J           |Clear screen from cursor down          |ED0          |
++----------------+---------------------------------------+-------------+
+|Esc[0J          |Clear screen from cursor down          |ED0          |
++----------------+---------------------------------------+-------------+
+|Esc[1J          |Clear screen from cursor up            |ED1          |
++----------------+---------------------------------------+-------------+
+|Esc[2J          |Clear entire screen                    |ED2          |
++----------------+---------------------------------------+-------------+
+|Esc5n           |Device status report                   |DSR          |
++----------------+---------------------------------------+-------------+
+|Esc0n           |Response: terminal is OK               |DSR          |
++----------------+---------------------------------------+-------------+
+|EscLine;ColumnR |Response: cursor is at v,h             |CPR          |
++----------------+---------------------------------------+-------------+
+|Esc[c           |Identify what terminal type            |DA           |
++----------------+---------------------------------------+-------------+
+
+Codes for use in VT52 compatibility mode
+========================================
++-------------+-------------------------------------------+
+|Esc<         |Enter/exit ANSI mode (VT52) setansi        |
++-------------+-------------------------------------------+
+|Esc=         |Enter alternate keypad mode altkeypad      |
++-------------+-------------------------------------------+
+|Esc>         |Exit alternate keypad mode numkeypad       |
++-------------+-------------------------------------------+
+|EscF         |Use special graphics character set setgr   |
++-------------+-------------------------------------------+
+|EscG         |Use normal US/UK character set resetgr     |
++-------------+-------------------------------------------+
+|EscA         |Move cursor up one line cursorup           |
++-------------+-------------------------------------------+
+|EscB         |Move cursor down one line cursordn         |
++-------------+-------------------------------------------+
+|EscC         |Move cursor right one char cursorrt        |
++-------------+-------------------------------------------+
+|EscD         |Move cursor left one char cursorlf         |
++-------------+-------------------------------------------+
+|EscH         |Move cursor to upper left corner cursorhome|
++-------------+-------------------------------------------+
+|EscLineColumn|Move cursor to v,h location cursorpos(v,h) |
++-------------+-------------------------------------------+
+|EscI         |Generate a reverse line-feed revindex      |
++-------------+-------------------------------------------+
+|EscK         |Erase to end of current line cleareol      |
++-------------+-------------------------------------------+
+|EscJ         |Erase to end of screen cleareos            |
++-------------+-------------------------------------------+
+|EscZ         |Identify what the terminal is ident        |
++-------------+-------------------------------------------+
+|Esc/Z        |Correct response to ident identresp        |
++-------------+-------------------------------------------+
+
+VT100 Special Key Codes
+=======================
+
+These are sent from the terminal back to the computer when the particular key is pressed. Note that the numeric keypad keys send different codes in numeric mode than in alternate mode. See escape codes above to change keypad mode.
+
+Function Keys:
+==============
+
++-----+---+
+|EscOP|PF1|
++-----+---+
+|EscOQ|PF2|
++-----+---+
+|EscOR|PF3|
++-----+---+
+|EscOS|PF4|
++-----+---+
+
+Arrow Keys:
+===========
+
+
++-----+-----+-----+
+|     |Reset|Set  |
++-----+-----+-----+
+|up   |EscA |EscOA|
++-----+-----+-----+
+|down |EscB |EscOB|
++-----+-----+-----+
+|right|EscC |EscOC|
++-----+-----+-----+
+|left |EscD |EscOD|
++-----+-----+-----+
+
+Numeric Keypad Keys:
+====================
+
++-----+---------+
+|EscOp|0        |
++-----+---------+
+|EscOq|1        |
++-----+---------+
+|EscOr|2        |
++-----+---------+
+|EscOs|3        |
++-----+---------+
+|EscOt|4        |
++-----+---------+
+|EscOu|5        |
++-----+---------+
+|EscOv|6        |
++-----+---------+
+|EscOw|7        |
++-----+---------+
+|EscOx|8        |
++-----+---------+
+|EscOy|9        |
++-----+---------+
+|EscOm|-(minus) |
++-----+---------+
+|EscOl|,(comma) |
++-----+---------+
+|EscOn|.(period)|
++-----+---------+
+|EscOM|^M       |
++-----+---------+
+
+Printing:
+=========
+
++------+------------+--------------------------------------------+
+|Esc[i |Print Screen|Print the current screen                    |
++------+------------+--------------------------------------------+
+|Esc[1i|Print Line  |Print the current line                      |
++------+------------+--------------------------------------------+
+|Esc[4i|Stop Print  |Disable log                                 |
++------+------------+--------------------------------------------+
+|Esc[5i|Start Print |Start log; all received text is echoed to a |
+|      |            |                  printer                   |
++------+------------+--------------------------------------------+
+
--- a/windows.rst	Tue Aug 23 10:07:48 2011 +0300
+++ b/windows.rst	Tue Aug 23 10:07:58 2011 +0300
@@ -284,6 +284,7 @@
   http://support.microsoft.com/?kbid=205524
                 How to create and manipulate NTFS junction points
   http://en.wikipedia.org/wiki/NTFS_junction_point
+                NTFS junction point
 
 Microsoft Windows 2000 Resource Kit.
 ====================================