merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 20 Oct 2011 02:04:04 +0300
changeset 1041 643877f0e84f
parent 1040 f7d65dea956d (diff)
parent 1038 6e460255f801 (current diff)
child 1042 dd197cbdaf21
merged
--- a/3d.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/3d.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,5 +1,10 @@
 .. -*- coding: utf-8; -*-
 
+=====
+ 3D.
+=====
+.. contents::
+
 Pov-Ray.
 ========
 
--- a/Makefile	Mon Oct 17 22:53:48 2011 +0300
+++ b/Makefile	Thu Oct 20 02:04:04 2011 +0300
@@ -11,6 +11,23 @@
 .DEFAULT_GOAL = all
 
 ################################################################
+# Platform definition.
+
+host_os := linux
+ifneq '' '$(WINDIR)'
+  host_os := cygwin
+endif
+target_os := $(host_os)
+
+################################################################
+# Build tool definition/switches.
+
+RST2HTML = rst2html
+ifeq '$(host_os)' 'cygwin'
+  RST2HTML = rst2html.py
+endif
+
+################################################################
 # Proj dirs/files.
 
 RST_FILES := $(wildcard *.rst)
@@ -34,7 +51,7 @@
 html: $(HTML_FILES) $(TXT__FILES)
 
 $(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR)
-	rst2html.py --stylesheet=rst.css $*.rst $@
+	$(RST2HTML) --stylesheet=rst.css $*.rst $@
 
 $(HTML_DIR)/index.html: index.sh $(filter-out $(HTML_DIR)/index.html,$(HTML_FILES)) | $(HTML_DIR)
 	./index.sh frame >$@
--- a/abbr.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/abbr.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,5 +1,10 @@
 .. -*- coding: utf-8; -*-
 
+===============
+ Abbreviation.
+===============
+.. contents::
+
 Devel.
 ======
 
--- a/chm.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/chm.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,4 +1,4 @@
--*- coding: utf-8 -*-
+.. -*- coding: utf-8 -*-
 
 ======
  CHM.
--- a/css.rst	Mon Oct 17 22:53:48 2011 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
--*- mode: outline; coding: utf-8; -*-
-
-* Emacs.
-
-  $ sudo apt-get install css-mode
-
-* Graphical editor.
-
-  $ sudo apt-get install cssed
-
-* Adding CSS to HTML.
-
-Include in head tag:
-
-  <html>
-    <head>
-      <link href="path-to.css" rel="stylesheet" type="text/css">
-    </head>
-    ...
-  <html>
-
-or
-
-  <head>
-   <style type="text/css">
-     h1 {border-width: 1; border: solid; text-align: center}
-   </style>
-  </head>
-
-To change style in specific tag use:
-
-  <b style="color: blue; font-family: ariel">Welcome!</b>
-
-* Selectors.
-
-  tag {}
-  .class {}
-  #id {} для id разрешены символы
-  * {} - любой элемент
-
-  tag tag1 {} - выбор tag1, у которых есть предок tag
-  tag > tag {} - выбор дочернего элемента
-  tag + tag {} - выбор соседних элементов
-  tag ~ tag {} - выбор любого соседа
-
-  [attr] {}
-  [attr="..."] {}
-  [attr~="..."] {} - присутствует слово ... в поле атрибута
-  [attr*="..."] {} - присутствует набор символов ... в поле атрибута
-  [attr^="..."] {} - начинается с ... в поле атрибута
-  [attr$="..."] {} - заканчивается на ... в поле атрибута
-  tag [attr|="..."] {}
-
-  :link - не посещенные ссылки
-  :visited - посещенные ссылки
-  :active - нажатие на левую клавишу мыши на элементе
-  :hover - назначать при наведении
-  :focus - при фокусировке элемента
-  :first-child - первый подэлемент
-  :last-child - последний подэлемент
-
-  :first-line
-  :first-letter - выбрать первую букву (не приминимо к inline элементам)
-  :before{content:"..."}, ставит перед контентом элементов строку xxx (можно
-  использовать счетчики)
-  :after{} - тоже, что и before, только ставит текст после контента тега
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cvs.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -0,0 +1,95 @@
+.. -*- coding: utf-8 -*-
+
+======
+ CVS.
+======
+.. contents::
+
+CVS via proxy server.
+=====================
+::
+
+  $ cvs -d:pserver;proxy=$proxyhost;proxyport=$proxyport:$cvsuser@$cvsdomain:/$repo
+
+Create CVS Repository.
+======================
+::
+
+  $ export CVSROOT=/srv/cvsroot
+  $ cvs init
+
+  $ groupadd cvs
+  $ useradd -m -g cvs -s /bin/sh -c "CVS Repository"  cvs
+
+  $ chown -R cvs $CVSROOT
+  $ chgrp -R cvs $CVSROOT
+  $ chmod -R g+s $CVSROOT
+
+  $ grep cvs /etc/services && echo OK
+  cvspserver      2401/tcp              # CVS client/server operations
+  cvspserver      2401/udp              # CVS client/server operations
+  $ echo '# CVS server
+  cvspserver  stream  tcp  nowait  root  /usr/bin/cvs cvs --allow-root=/usr/local/src/cvsroot pserver' \
+      >/etc/inetd.conf
+  $ killall -HUP inetd                  # signal inetd daemon to re-read the config file
+
+  $ ls $CVSROOT/CVSROOT
+  readers                   # list of pseudo usernames that can read via cvspserver
+  writers                   # list of pseudo usernames can write via cvspserver
+  passwd                    # encrypted passwd string with (htpasswd from apache)
+
+CVS workflow.
+=============
+
+Check out sources::
+
+  $ cvs co -P $proj
+
+Status of changes::
+
+  $ cvs status
+
+Compare local changes::
+
+  $ cvs diff -u $path
+
+Creating patch::
+
+  $ cvs diff -N -u -r >$patch
+
+History of changes::
+
+  $ cvs log $file
+
+Remove a file::
+
+  $ rm $file            # must first remove it locally
+  $ cvs rm $file        # schedules it for removal
+
+Add a file::
+
+  $ cvs add $file
+
+Check in local changes::
+
+  $ cvs ci
+
+Update local sources::
+
+  $ cvs update
+
+Move a file can not be done cleanly at the local level. The best way to do this
+with CVS is to go to the cvsroot repository and move the file or directory
+within the repository there. The cvsroot repository keeps all files in their RCS
+form of filename,v . The next cvs update will manifest the file move.
+
+Tagging sources::
+
+  $ cvs tag $name
+  $ cvs rtag $name
+
+Revert file::
+
+  $ rm $file            # remove it from local sources
+  $ cvs update $file    # get a new copy from the repository
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cygwin.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -0,0 +1,149 @@
+.. -*- coding: utf-8 -*-
+
+=========
+ Cygwin.
+=========
+.. contents::
+
+Installation.
+=============
+
+Run setup.exe. Use output dir like::
+
+  d:\opt\cygwin
+
+Add to your PATH env var exactly before C:\WINDOWS\system32;C:\WINDOWS values::
+
+  set PATH=d:\opt\cygwin\bin;d:\opt\cygwin\usr\local\bin;%PATH%
+
+  REM Set CYGWIN variable to 'nontsec'. That makes sure that permissions
+  REM on your windows machine are not updated as a side effect of cygwin
+  REM operations.
+  set CYGWIN=binary nontsec nodosfilewarning codepage:cp1251 noglob
+
+  set LANG=ru_RU.cp1251
+
+Set HOME env var (where places config file and projects)::
+
+  set HOME=d:\home
+
+Set TMP and TEMP env vars with good path (without spaces, etc.; these vars
+already set as used defined, so you need change their values)::
+
+  set TMP=c:\tmp
+  set TEMP=c:\tmp
+
+Also you need edit /etc/passwd to point to correct home path.
+
+Cygwin ports.
+=============
+
+This project provides Cygwin binary and source packages for a large variety of programs and
+libraries, including the GNOME  and KDE desktop environments
+
+  http://cygwin-ports.sourceforge.net/
+                newest home of the Cygwin Ports project
+  http://sourceware.org/cygwinports/
+                home page
+  http://cygwinports.blogspot.com
+                official blog??
+
+Which Cygwin version you run?
+=============================
+::
+
+  $ uname -r
+  1.7.7(0.230/5/3)
+  $ cygcheck -c cygwin
+  Cygwin Package Information
+  Package              Version        Status
+  cygwin               1.7.7-1        OK
+
+Recreate /etc/passwd and /etc/groups.
+=====================================
+::
+
+  $ mkpasswd -d | grep $yourlogin > /etc/passwd  # if you in Windows domain
+  $ mkpasswd -l > /etc/passwd                    # if you in Windows domain
+
+  $ mkgroup -l > /etc/group
+
+Running X Window.
+=================
+::
+
+  $ XWin -multiwindow&
+
+or::
+
+  $ XWin -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"&
+
+To start X application you must set 'DISPLAY'::
+
+  $ DISPLAY=:0 xterm&
+
+Working with packages.
+======================
+
+Installed package list with versions.
+-------------------------------------
+::
+
+  $ cygcheck -c -d
+
+List of package files.
+----------------------
+::
+
+  $ cygcheck -l pkg-name
+
+Search package by containing file (only under installed packages).
+------------------------------------------------------------------
+::
+
+  $ cygcheck -f full-path-to-file
+
+Search packages by containing path (only under installed packages).
+-------------------------------------------------------------------
+::
+
+  $ for f in /etc/setup/*.lst.gz; do gzip -c -d $f | grep $WORD  2>&1 >/dev/null && { echo $f; break; } || :; done
+
+Search for package.
+-------------------
+
+If you have file name or regex use (need internet connection)::
+
+  $ cygcheck -p REGEX
+
+cygcheck use such link:
+
+  http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX
+
+Cygwin installation info.
+=========================
+::
+
+  $ uname -a
+  $ cygcheck -s -r
+
+Cygwin acronyms.
+================
+
+  http://www.cygwin.com/acronyms
+                One encounters all sorts of acronyms on the Cygwin mailing lists.
+
+Check dll dependency.
+=====================
+::
+
+  $ ldd my.dll
+  $ ldd my.exe
+  $ cygcheck ./my.dll
+  $ cygcheck ./my.exe
+
+Cygwin alternatives.
+====================
+
+  http://www.suacommunity.com/SUA.aspx
+                Subsystem for Unix-based Applications and Services for Unix
--- a/devel-proj-branching.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/devel-proj-branching.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,3 +1,5 @@
+.. -*- coding: utf-8 -*-
+
 ===========================
  Project branching models.
 ===========================
--- a/devel-proj-files.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/devel-proj-files.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,3 +1,8 @@
+.. -*- coding: utf-8 -*-
+
+============================
+ Development project files.
+============================
 .. contents::
 
 Essential project files.
--- a/devel-versioning.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/devel-versioning.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,3 +1,5 @@
+.. -*- coding: utf-8 -*-
+
 =================
  Version format.
 =================
--- a/django.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/django.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -27,3 +27,8 @@
   EOF
   $ ./manage.py runserver
 
+Start server.
+=============
+
+  $ ./manage.py runserver
+  $ ./manage.py runserver 8080
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/game.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -0,0 +1,37 @@
+.. -*- coding: utf-8 -*-
+
+=======
+ Game.
+=======
+.. contents::
+
+Shuter games for Linux.
+=======================
+
+Wolfenstein: Enemy Territory.
+-----------------------------
+
+UT2004 (Unreal Tournament).
+---------------------------
+
+Unreal Tournament 2004 is closed source, but it's one of the few commercial
+games which also provide a native Linux port.
+
+Quake 3.
+--------
+
+Game was licensed under the GPL in 2005. ioQuake 3 continued development to
+Quake 3, fixing bugs and bringing new improvements to this true classic game.
+
+Urban Terror.
+-------------
+
+Racers for Linux.
+=================
+
+torcs.
+------
+
+3D racing cars simulator game using OpenGL.
+
+
--- a/gimp.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/gimp.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,6 +1,8 @@
+.. -*- coding: utf-8 -*-
 
 Enhancing Photographs.
 ======================
+.. contents::
 
 Reducing Graininess.
 --------------------
--- a/git.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/git.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -3,6 +3,7 @@
 ======
  Git.
 ======
+.. contents::
 
 Setup git.
 ==========
--- a/gmail.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/gmail.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,3 +1,4 @@
+.. -*- coding: utf-8 -*-
 
 ========
  Gmail.
--- a/hg.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/hg.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,4 +1,4 @@
--*- coding: utf-8 -*-
+.. -*- coding: utf-8 -*-
 
 ============
  Mercurial.
--- a/html.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/html.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,12 +1,31 @@
--*- mode: outline; coding: utf-8 -*-
+.. -*- coding: utf-8 -*-
 
-* Page encoding.
+=======
+ HTML.
+=======
+
+Page encoding.
+==============
 
 Place in HEAD tag (CHARSET is one among of defined by
-http://www.iana.org/assignments/character-sets):
+http://www.iana.org/assignments/character-sets)::
 
   <meta http-equiv="Content-Type" content="text/html; charset=CHARSET">
 
-See
+See:
 
   http://www.w3.org/TR/REC-html40/charset.html#h-5.2.2
+
+Center an object.
+=================
+
+To center blog-level element::
+
+  <div style="margin-left: auto; margin-right: auto;">
+    <div>SOME</div>
+  </div>
+
+To center inline element::
+
+  <p style="text-align: center;">TEXT</p>
+
--- a/index.sh	Mon Oct 17 22:53:48 2011 +0300
+++ b/index.sh	Thu Oct 20 02:04:04 2011 +0300
@@ -5,11 +5,11 @@
 echo '  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">'
 echo '  <title>Tips</title>'
 echo '  <style type="text/css">'
-echo '    body { background-color: linen; }'
+echo '    body { background-color: LightYellow; }'
 echo '    a { text-decoration:none; }'
 echo '    a:link { color: brown; }'
 echo '    a:visited { color: IndianRed; }'
-echo '    a:hover { background: LightPink; border-radius: 10px; padding: 1px; }'
+echo '    a:hover { background: bisque; border-radius: 10px; padding: 1px; }'
 echo '  </style>'
 echo '</head>'
 echo '<body>'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/isabelle.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -0,0 +1,14 @@
+.. -*- coding: utf-8 -*-
+
+===========
+ Isabelle.
+===========
+.. contents::
+
+Prepare user work dir.
+======================
+::
+
+  $ cd ~/isabelle
+  $ isatool mkdir HOL my-proof-dir
+
--- a/javadoc.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/javadoc.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,4 +1,4 @@
--*- coding: utf-8 -*-
+.. -*- coding: utf-8 -*-
 
 ==========
  JavaDoc.
--- a/lang-comp.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/lang-comp.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,3 +1,4 @@
+.. -*- coding: utf-8 -*-
 
 ==================================
  Programming language comparison.
--- a/menu.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/menu.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,3 +1,4 @@
+.. -*- coding: utf-8 -*-
 
 =======
  Menu.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/music-soft.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -0,0 +1,16 @@
+.. -*- coding: utf-8 -*-
+
+========
+ Music.
+========
+.. contents::
+
+Rosegarden.
+===========
+
+lmms.
+=====
+
+  http://lmms.sourceforge.net/
+
+
--- a/rst.css	Mon Oct 17 22:53:48 2011 +0300
+++ b/rst.css	Thu Oct 20 02:04:04 2011 +0300
@@ -3,9 +3,17 @@
 a { text-decoration:none; }
 a:link { color: brown; }
 a:visited { color: IndianRed; }
-a:hover { background: beige; border-radius: 10px; padding: 1px; }
+a:hover { background: bisque; border-radius: 10px; padding: 1px; }
 p { text-indent: 2em; }
 p:first-letter { font-weight: bold; }
-.literal-block {padding-left: 4em;}
+.literal-block {
+    margin: 0 0 0 4em;
+    padding: 5px;
+    border: 1px;
+    border-style: solid;
+    border-color: brown;
+    background-color: LightYellow;
+    overflow: auto;
+}
 table { border-collapse:collapse; margin-left:auto; margin-right:auto; }
 table, tr, td { padding: 3px; border: 1px dotted maroon; background-color: cornsilk; }
--- a/ssh.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/ssh.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -3,6 +3,7 @@
 ===========
  SSH/sshd.
 ===========
+.. contents::
 
 Maintaining key pair.
 =====================
--- a/terminal.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/terminal.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,5 +1,10 @@
 .. -*- coding: utf-8; -*-
 
+===========
+ Terminal.
+===========
+.. contents::
+
 Spec.
 =====
 
--- a/vt100.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/vt100.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,3 +1,4 @@
+.. -*- coding: utf-8 -*-
 
 ==========================================================
  This document describes how to control a VT100 terminal.
--- a/web-seo.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/web-seo.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,4 +1,4 @@
--*- coding: utf-8 -*-
+.. -*- coding: utf-8 -*-
 
 ==========
  WEB SEO.
--- a/x.rst	Mon Oct 17 22:53:48 2011 +0300
+++ b/x.rst	Thu Oct 20 02:04:04 2011 +0300
@@ -1,8 +1,9 @@
--*- coding: utf-8 -*-
+.. -*- coding: utf-8 -*-
 
 ====
  X.
 ====
+.. contents::
 
 Standard.
 =========