# HG changeset patch # User Oleksandr Gavenko # Date 1319065444 -10800 # Node ID 643877f0e84f46cf6aaae96bebfebcc0ba7bc77e # Parent f7d65dea956d799a811f06750ebb06a1c6ee36e1# Parent 6e460255f8017dcc9cf943e13869a7e041e0cfa3 merged diff -r 6e460255f801 -r 643877f0e84f 3d.rst --- 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. ======== diff -r 6e460255f801 -r 643877f0e84f Makefile --- 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 >$@ diff -r 6e460255f801 -r 643877f0e84f abbr.rst --- 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. ====== diff -r 6e460255f801 -r 643877f0e84f chm.rst --- 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. diff -r 6e460255f801 -r 643877f0e84f css.rst --- 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: - - - - - - ... - - -or - - - - - -To change style in specific tag use: - - Welcome! - -* 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, только ставит текст после контента тега diff -r 6e460255f801 -r 643877f0e84f cvs.rst --- /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 + diff -r 6e460255f801 -r 643877f0e84f cygwin.rst --- /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 diff -r 6e460255f801 -r 643877f0e84f devel-proj-branching.rst --- 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. =========================== diff -r 6e460255f801 -r 643877f0e84f devel-proj-files.rst --- 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. diff -r 6e460255f801 -r 643877f0e84f devel-versioning.rst --- 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. ================= diff -r 6e460255f801 -r 643877f0e84f django.rst --- 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 diff -r 6e460255f801 -r 643877f0e84f game.rst --- /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. + + diff -r 6e460255f801 -r 643877f0e84f gimp.rst --- 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. -------------------- diff -r 6e460255f801 -r 643877f0e84f git.rst --- 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. ========== diff -r 6e460255f801 -r 643877f0e84f gmail.rst --- 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. diff -r 6e460255f801 -r 643877f0e84f hg.rst --- 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. diff -r 6e460255f801 -r 643877f0e84f html.rst --- 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):: -See +See: http://www.w3.org/TR/REC-html40/charset.html#h-5.2.2 + +Center an object. +================= + +To center blog-level element:: + +
+
SOME
+
+ +To center inline element:: + +

TEXT

+ diff -r 6e460255f801 -r 643877f0e84f index.sh --- 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 ' ' echo ' Tips' echo ' ' echo '' echo '' diff -r 6e460255f801 -r 643877f0e84f isabelle.rst --- /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 + diff -r 6e460255f801 -r 643877f0e84f javadoc.rst --- 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. diff -r 6e460255f801 -r 643877f0e84f lang-comp.rst --- 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. diff -r 6e460255f801 -r 643877f0e84f menu.rst --- 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. diff -r 6e460255f801 -r 643877f0e84f music-soft.rst --- /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/ + + diff -r 6e460255f801 -r 643877f0e84f rst.css --- 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; } diff -r 6e460255f801 -r 643877f0e84f ssh.rst --- 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. ===================== diff -r 6e460255f801 -r 643877f0e84f terminal.rst --- 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. ===== diff -r 6e460255f801 -r 643877f0e84f vt100.rst --- 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. diff -r 6e460255f801 -r 643877f0e84f web-seo.rst --- 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. diff -r 6e460255f801 -r 643877f0e84f x.rst --- 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. =========