merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 25 Dec 2011 13:18:19 +0200
changeset 1183 35a64ff26d4c
parent 1159 60db6debab94 (diff)
parent 1182 f0fd5e35e832 (current diff)
child 1184 a5963bf339e8
child 1187 eaa71972ea1d
merged
windows.rst
--- a/date.rst	Wed Dec 14 23:10:08 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
--*- mode: outline; coding: utf-8; -*-
-
-* System timer and system time.
-
-** Windows.
-
-Windows assume that system timer display locale time.
-
-** Debian.
-
-UTC=no - system timer display locale time, UTC=yes - UTC time.
-
-  $ cat /etc/default/rcS
-  UTC=no
-or
-  UTC=yes
-
-If system dual boot with Windows you must set UTC=no.
-
-* Getting current date/time.
-
-  $ date +"%Y-%m-%d %H:%M:%S"
-
-* Setting current date/time.
-
-  $ sudo date --set="2009-02-22 12:12:00" +"%Y-%m-%d %H:%M:%S"
-
-Or set utc time:
-
-  $ sudo date --utc --set="2009-02-22 12:12:00" +"%Y-%m-%d %H:%M:%S"
-
-May be prefer use ntpdate(8) command.
-
-* Get timezone.
-
-System wide configuration:
-
-  $ cat /etc/timezone
-
-* Get list of supported timezone.
-
-  $ tzselect
-
-* Set timezone.
-
-  $ sudo tzconfig
-...
-
-Or using tzselect:
-
-  $ sudo tzselect
-...
-
-** Debian Lenny.
-
-  $ sudo dpkg-reconfigure tzdata
-
-* About timestamp.
-
-  http://en.wikipedia.org/wiki/Timestamp
-  http://en.wikipedia.org/wiki/Unix_time
-  http://en.wikipedia.org/wiki/Leap_second
-
-** Get timestamp.
-
-Current timestamp:
-
-  $ date +%s
-
-Timestamp for specific date/time:
-
-  $ date -d '2010-12-11' +%s
-  $ date -d '2010-12-11 23:59:59' +%s
-
-** Convert unix timestamp to date.
-
-  $ date -d '1970-01-01 + 1234567890 seconds'
-
--- a/dict.rst	Wed Dec 14 23:10:08 2011 +0200
+++ b/dict.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -168,3 +168,9 @@
 
   $ sudo apt-get install dict-elements
 
+Notable dictionaries.
+=====================
+
+  http://en.wikipedia.org/wiki/Monolingual_learner%27s_dictionary
+                Monolingual learner's dictionary
+
--- a/driver-win.rst	Wed Dec 14 23:10:08 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,280 +0,0 @@
--*- mode: outline; coding: utf-8; -*-
-
-* About.
-
-  microsoft.public.development.device.drivers
-                NNTP driver development group at msnews.microsoft.com:119
-  http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx
-                Web-interface to NNTP forum
-
-* Which version exist?
-
- - VxD
-                Windows 3.x and Windows 9x
- - Windows Driver Model (WDM)
-                Windows 98, Windows 98 Second Edition, Windows Me, Windows
-                2000, Windows XP, Windows Server 2003 and Windows Vista (for
-                backwards compatibility)
- - Windows Driver Foundation (WDF)
-                Windows 2000 and later
-
-* VxD.
-
-See
-
-  http://en.wikipedia.org/wiki/VxD
-
-* WDM.
-
-See
-
-  http://en.wikipedia.org/wiki/Windows_Driver_Model
-
-* WDF.
-
-See
-
-  http://en.wikipedia.org/wiki/Windows_Driver_Foundation
-
-* Tools.
-
-** Msinfo32.exe
-
-Windows XP/2003 System Information Tool.
-
-See
-
-  http://support.microsoft.com/kb/308549
-
-** Sysinternals.
-
-*** WinObj.
-
-Winobj is a program that lets you browse the Windows NT Object Manager
-namespace.
-
-** devtree.
-
-The DeviceTree V2.12 utility is a Windows XP/Server 2003 utility written by
-OSR, that allows the user the ability to display the drivers and devices
-loaded in 2 different views. The first view Driver View the user sees a list
-of all the drivers loaded in kernel mode and all the devices that those
-drivers have created. In the second view PnP View the user sees a list of all
-the devices in the system from that of Plug and Play Manager (PnP).
-
-** Microsoft DDK.
-
-*** DevCon.
-
-Supported device classes:
-
-  cmd> devcon.exe classes
-
-Which files used by specific driver (with "*" prints list of files for all drivers):
-
-  cmd> devcon.exe driverfiles *
-
-Device ID (names included):
-
-  cmd> devcon.exe hwids *
-
-Device status (running/stoped):
-
-  cmd> devcon.exe status *
-
-** USB Command Verifier.
-
-All USB peripherals are required to pass the Device Framework tests in order
-to gain certification.
-
-  http://www.usb.org/developers/tools/
-
-* Files.
-
-** Windows 98 SE/ME.
-
- * .386
-   VxD driver under Windows 3.x
- * .vxd
-   VxD driver under Windows 95
-
-** Windows NT (2000/XP/2003).
-
- * .inf
-   Stored in %Windir%\Inf.
- * .pnf
-   Precompiled INF File. Stored in %Windir%\Inf.
-
-* Driver type.
-
-** CDC.
-
-  http://support.microsoft.com/kb/837637
-                How to use or to reference the Usbser.sys driver from
-                universal serial bus (USB) modem .inf files.
-
-* Driver class.
-
-See
-
-  http://msdn.microsoft.com/en-us/library/ms791134.aspx
-                System-Supplied Device Setup Classes
-  http://msdn.microsoft.com/en-us/library/ff538820.aspx
-                Drivers for the Supported USB Device Classes
-
-* How list drivers?
-
-Set environment devmgr_show_nonpresent_devices to 1 and run Device Manager,
-select "View" --> "Show hidden devices".
-
-* How install drivers?
-
-** dpinst.
-
-Driver Install Frameworks (DIFx) tools allow installing driver under following
-OSes:
-
-  Windows Server 2008 R2
-  Windows 7
-  Windows Server 2008
-  Windows Vista
-  Windows Server 2003
-  Windows XP
-  Windows 2000
-
-It consist from API (from library, DIFxAPI, DIFxApp) and command line tool
-(DPInst) which can be found in WDK and their licence allow redistribution.
-
-  http://www.microsoft.com/whdc/driver/install/DIFxFAQ.mspx
-                Information about Driver Install Frameworks Tools
-  http://msdn.microsoft.com/ru-ru/magazine/cc302206%28en-us%29.aspx
-                If you update any drivers in Device Manager
-                %windir%\system32\ReinstallBackups folder is created with
-                backups of the old drivers.
-
-** devcon.
-
-This command-line specifies the location of the driver package's INF file (c:\toaster\toastpkg.inf)
-and the toaster device's hardware identifier (ID), which is specified within the INF file.
-
-  cmd# devcon.exe install c:\toaster\toastpkg.inf {b85b7c50-6a01-11d2-b841-00c04fad5171}\mstoaster
-
-  http://msdn.microsoft.com/en-us/library/ff553642.aspx
-                Using the DevCon Tool to Install a Driver Package
-
-* How debug Windows drivers.
-
-To detect whether a driver loaded, check the status of the device in Device Manager.
-
-SetupAPI logs information about device installation in a plain-text log file
-that you can use to verify the installation of a device and to troubleshoot
-device installation problems.
-
-For Windows XP/2003 check:
-
-  %SystemRoot%/setupapi.log
-
-For Windows Vista and later versions of Windows check:
-
-  %SystemRoot%\inf\SetupAPI.dev.log     installation events in the device
-  %SystemRoot%\inf\SetupAPI.app.log     application installation
-
-  http://msdn.microsoft.com/en-us/library/ff553497.aspx
-                Troubleshooting Install and Load Problems with Signed Driver Packages
-  http://www.microsoft.com/whdc/devtools/debugging/debugtips.mspx
-                Improve Driver Debuggability
-  http://msdn.microsoft.com/en-us/library/ff551063.aspx
-                Debugging Tools for Windows
-  http://msdn.microsoft.com/en-us/library/ff543450%28VS.85%29.aspx
-                Checked and Free Build Differences
-
-* Driver signing.
-
-Type of signature:
-
- * Signed by a Windows signing authority.
- * Signed by a trusted publisher.
- * Signed by an untrusted publisher.
- * Signed by a publisher of unknown trust.
- * Altered.
- * Unsigned.
-
-  http://msdn.microsoft.com/en-us/library/ff544703.aspx
-                Type of signature and performed action.
-  http://www.microsoft.com/whdc/driver/install/drvsign/best-practices.mspx
-                Code-Signing Best Practices.
-  http://msdn.microsoft.com/en-us/library/ff550764.aspx
-                Device Installation Signing Requirements.
-  http://www.microsoft.com/whdc/winlogo/categories.mspx
-                Windows Logo Program Test Categories.
-  http://www.microsoft.com/whdc/driver/install/drvsign/crosscert.mspx
-                Root Authority Cross-Certificate List
-
-** Tools for Signing Drivers.
-
-'certmgr.msc' present in Windows 2000 and upper.
-
-From Windows SDK/WDK:
-
-  CertMgr Inf2Cat MakeCat MakeCert Pvk2Pfx SignTool
-
-  http://msdn.microsoft.com/en-us/library/ff552958.aspx
-                Tools for Signing Drivers
-
-* Invoking a Device Properties Dialog Box from a Command-line Prompt.
-
-You need get device-instance-ID-parameter:
-
-  cmd# rundll32.exe devmgr.dll,DeviceProperties_RunDLL /DeviceID "ACPI\PNP0F03\4&1A8C8C2E&0"
-
-  http://msdn.microsoft.com/en-us/library/ff548170.aspx
-
-* Driver Selection Process.
-
-Windows uses the following criteria to select a driver for a device:
-
- * Windows selects the driver that has the lowest rank value as the best match for the device.
- * For drivers that have equal rank, Windows selects the driver that has the most recent date.
- * For the drivers that have equal rank and date, Windows selects the driver that has the highest version.
- * Windows XP SP1 and later: For drivers that have equal rank, date, and version, Windows can select any driver.
- * Windows XP and Windows 2000: For drivers that have equal rank, date, and version, Windows can select any driver.
-
-  http://msdn.microsoft.com/en-us/library/ff549553.aspx
-
-* Distributing a Driver Package.
-
-** Windows Update.
-
-You can distribute a driver package through the Windows Update program if the driver package:
-
- * Passes the WHQL test program and receives a WHQL release signature.
- * Qualifies for the Windows Logo program.
- * Meets additional requirements that ensure that Windows Update can determine the correct driver
-   package for the user's device, can legally distribute it, and can automatically download it.
-
-  http://msdn.microsoft.com/en-us/library/ff554874.aspx
-
-* Hardware ID.
-
-PCI and AGP buses: Contain subsystem ID and subsystem vendor ID (&SUBSYS in the ID string). Drivers
-must have VID/DID/SVID/SID PNP ID entries to be published via Windows Update.
-
-PCI Device Subsystem IDs and Windows specifications are available at:
-http://www.microsoft.com/whdc/archive/pciidspec.mspx
-
-PCMCIA: Always specific; contains PCMCIA in the ID string.
-
-USB: Contains VID and &PID in the ID string.
-
-IEEE 1394: Always specific; contains 1394 in the ID string.
-
-HID: Contains &VID and &PID in the ID string.
-
-IDE: Contains IDE\ in the ID string.
-
-Parallel Port Printers: Contain LPTENUM\ in the ID string.
-
-IrDA Printers: IDs begin with HWP.
-
-  http://www.microsoft.com/whdc/winlogo/winup/default.mspx
-                Windows Update Driver Publishing
--- a/emacs.rst	Wed Dec 14 23:10:08 2011 +0200
+++ b/emacs.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -1,41 +1,52 @@
--*- mode: outline; coding: utf-8 -*-
+.. -*- coding: utf-8; -*-
 
-* About.
+========
+ Emacs.
+========
+.. contents::
+
+About.
+======
 
   http://elpa.gnu.org/
                 Packages for Emacs. This requires Emacs version 24.1 or
                 higher.
 
-* Getting help.
+Getting help.
+=============
 
-  http://news.gmane.org/gmane.emacs.help
-  http://news.gmane.org/gmane.emacs.announce
-  http://news.gmane.org/gmane.emacs.auctex.announce
+ * http://news.gmane.org/gmane.emacs.help
+ * http://news.gmane.org/gmane.emacs.announce
+ * http://news.gmane.org/gmane.emacs.auctex.announce
 
-* Installing Emacs.
+Installing Emacs.
+=================
 
   http://ftp.gnu.org/gnu/emacs/windows/
                 Clean GNU Emacs for 32-bit Windows
   http://emacsformacosx.com/
                 Clean GNU Emacs for Mac OS X
 
-* Variables.
+Variables.
+==========
 
-Select one of:
+Select one of::
 
   (set 'variable value)
   (setq variable value)
   (defvar variable value "documentation")
 
-or (replace <colon> with :)
+or (replace <colon> with::
 
   # Local variables<colon>
   # variable<colon> value
   # End<colon>
 
-* Debugging.
+Debugging.
+==========
 
-** Evaluating elisp expression on the fly.
+Evaluating elisp expression on the fly.
+---------------------------------------
 
 Type M-: than lisp expression than type RET.
 
@@ -43,132 +54,155 @@
 
 Or invoke elisp "shell" by M-x ielm.
 
-** What functions and variables Emacs load and from which files?
+What functions and variables Emacs load and from which files?
+-------------------------------------------------------------
 
-See value of variable 'load-history' (by C-h v load-history RET).
+See value of variable ``load-history`` (by C-h v load-history RET).
 
-** Using edebug.
+Using edebug.
+-------------
 
-Execute 'M-x edebug-defun' (also on 'C-u C-M-x') on defun in source code to
+Execute ``M-x edebug-defun`` (also on ``C-u C-M-x``) on defun in source code to
 enable debugging for desired function. When next time this function invoked
 you entered to its debugging (jumped to its source code).
 
 To start debug execute code which used debugged function.
 
 You can disable edebug on a function by evaluating the function again using
-'C-M-x'.
+``C-M-x``.
 
-** How debug func?
+How debug func?
+---------------
 
 Use M-x debug-on-entry and M-x cancel-debug-on-entry to control
 which functions will enter the debugger when called.
 
 When next time that function called automatically loaded debug-mode.
 
-** How debug ini file?
+How debug ini file?
+-------------------
 
 When your ini has a bug, or when you load external files that cause
 errors, the bug is often hard to find, because the Emacs Lisp reader does not
 know about line numbers and files - it just knows an error happened, and
 that's it.
 
-Try run Emacs with '--debug-init' to see backtrace.
+Try run Emacs with ``--debug-init`` to see backtrace.
 
-** How debug long running command?
+How debug long running command?
+-------------------------------
 
-M-x debug-on-quit RET' and then just hit `C-g' next time it gets 'stuck' somewhere.
+M-x debug-on-quit RET`` and then just hit `C-g`` next time it gets ``stuck``
+somewhere.
 
-** Check if bug in ini file not in Emacs itself.
+Check if bug in ini file not in Emacs itself.
+---------------------------------------------
 
-First run Emacs without loading anything:
+First run Emacs without loading anything::
 
   $ emacs --no-init-file --no-site-file
 
-or more shortly (as '-Q' imply '-q', '--no-site-file', and '--no-splash'
-together):
+or more shortly (as ``-Q`` imply ``-q``, ``--no-site-file``, and ``--no-splash``
+together)::
 
   $ emacs -Q
 
 If bug not reproduced bug lies in ini files!
 
-** Debug by binary search.
+Debug by binary search.
+-----------------------
 
 Select half of the file in a region, and M-x eval-region. Depending on whether
 that causes the error or not, split this half or the other half again, and
 repeat.
 
-*** Simplified Binary Search.
+Simplified Binary Search.
+~~~~~~~~~~~~~~~~~~~~~~~~~
 
-Add (error 'No error until here') in the middle of your file. If you get the
-error 'No error until here' when reloading the file, move the expression
+Add (error ``No error until here``) in the middle of your file. If you get the
+error ``No error until here`` when reloading the file, move the expression
 towards the back of the file, otherwise towards the front of the file.
 
-** Elisp debug tips.
+Elisp debug tips.
+-----------------
 
  - Use a keyboard macro that moves forward one expression (sexp) and evaluates
    it.
  - Try C-x check-parens.
 
-** Enable debug mode (also on loading).
+Enable debug mode (also on loading).
+------------------------------------
 
-Set in source
+Set in source::
 
   (setq debug-on-error t)
 
-or invoke Emacs like:
+or invoke Emacs like::
 
   $ emacs --debug-init
 
-'--debug-init' which binds 'debug-on-error' to 't' while loading the init
-file, and bypasses the `condition-case' which normally catches errors in the
+where ``--debug-init`` binds ``debug-on-error`` to ``t`` while loading the init
+file, and bypasses the ``condition-case`` which normally catches errors in the
 init file.
 
-** Call tree.
+Call tree.
+----------
 
-Before byte compiling file execute
+Before byte compiling file execute::
 
   (setq byte-compile-generate-call-tree t)
 
-** Veiw buffer local variables.
+Veiw buffer local variables.
+----------------------------
+::
 
   (pp (buffer-local-variables))
 
-* Emacs profiling.
+Emacs profiling.
+================
 
-** benchmark.el.
+benchmark.el.
+-------------
+::
 
   (benchmark-run 1 (revert-buffer))
 
-** elp.el.
+elp.el.
+-------
 
-Enter a prefix for 'M-x elp-instrument-package', perform action and see result
-by 'M-x elp-results'. To perform new measurement don't forget to run 'M-x
-elp-reset-all'.
+Enter a prefix for ``M-x elp-instrument-package``, perform action and see result
+by ``M-x elp-results``. To perform new measurement don't forget to run
+``M-x elp-reset-all``.
 
-* WWW.
+WWW.
+====
 
-** Text based WWW browser.
+Text based WWW browser.
+-----------------------
 
   http://en.wikipedia.org/wiki/W3m
   http://emacs-w3m.namazu.org/
   http://www.gnu.org/software/w3/
 
-* Tricks.
+Tricks.
+=======
 
-** Sort and uniquify lines.
+Sort and uniquify lines.
+------------------------
 
-Select region, type C-u M-| sort -u RET.
+Select region, type ``C-u M-| sort -u RET``.
 
 With transient-mark-mode and delete-selection-mode enabled: select region,
 type M-| sort -u RET to replace selection with sorted and uniquified lines.
 
-** Determining running environment/platform.
+Determining running environment/platform.
+=========================================
 
-Check variables:
+Check variables::
 
   emacs-major-version
   emacs-minor-version
-  window-system             - 'nil' if in terminal, 'w32' if native Windows build, 'x' if under X Window
+  window-system             - ``nil`` if in terminal, ``w32`` if native Windows build, ``x`` if under X Window
   window-system-version     - for windows only
   window-size-fixed
   operating-system-release  - release of the operating system Emacs is running on
@@ -177,26 +211,26 @@
   system-name               - host name of the machine you are running on
   system-time-locale
   system-type               - indicating the type of operating system you are using:
-                              'gnu' (GNU Hurd),
-                              'gnu/linux',
-                              'gnu/kfreebsd', 'berkeley-unix' for (FreeBSD),
-                              'darwin' (GNU-Darwin, Mac OS X),
-                              'ms-dos',
-                              'windows-nt',
-                              'cygwin'
+                              ``gnu`` (GNU Hurd),
+                              ``gnu/linux``,
+                              ``gnu/kfreebsd``, ``berkeley-unix`` for (FreeBSD),
+                              ``darwin`` (GNU-Darwin, Mac OS X),
+                              ``ms-dos``,
+                              ``windows-nt``,
+                              ``cygwin``
   system-uses-terminfo
   dynamic-library-alist or deprecated image-library-alist
                             - alist of image types vs external libraries needed to display them
 
-and check functions:
+and check functions::
 
   (fboundp ...)             - return t if SYMBOL's function definition is not void
   (featurep ...)            - returns t if FEATURE is present in this Emacs
   (display-graphic-p)       - return non-nil if DISPLAY is a graphic display; graphical
                               displays are those which are capable of displaying several
                               frames and several different fonts at once
-  (display-multi-font-p)    - same as 'display-graphic-p'
-  (display-multi-frame-p)   - same as 'display-graphic-p'
+  (display-multi-font-p)    - same as ``display-graphic-p``
+  (display-multi-frame-p)   - same as ``display-graphic-p``
   (display-color-p)         - return t if DISPLAY supports color
   (display-images-p)        - return non-nil if DISPLAY can display images
   (display-grayscale-p)     - return non-nil if frames on DISPLAY can display shades of gray
@@ -204,7 +238,7 @@
   (display-popup-menus-p)   - return non-nil if popup menus are supported on DISPLAY
   (display-selections-p)    - return non-nil if DISPLAY supports selections
 
-Run those checks as below:
+Run those checks as below::
 
   (when window-system ...)
   (when (eq window-system 'x) ...)
@@ -212,31 +246,16 @@
   (when (fboundp '...) ...)
   (when (featurep '...) ...)
 
-* Finding emacs packages.
-
-See
-
-  http://anc.ed.ac.uk/~stephen/emacs/ell.html
-  http://www.emacswiki.org/emacs/WikifiedEmacsLispList
-  http://tromey.com/elpa/index.html
-                Emacs Lisp Package Archive
+Compiling emacs.
+================
 
-** ELPA.
-
-ELPA goal is to make it simple to install, use, and upgrade Emacs Lisp
-packages.
-
-  http://tromey.com/elpa/upload.html
-                how to contribute
-
-* Compiling emacs.
-
-** Windows.
+Windows.
+--------
 
 Get MSYS for POSIX shell and utilities . Get MinGW for GCC. Get Gnuwin32 for
 jpeg, ungif, tiff, xpm, png, zlib libraries.
 
-Read emacs/nt/INSTALL.
+Read emacs/nt/INSTALL::
 
   $ cmd
   $ cd emacs\nt
@@ -245,9 +264,12 @@
   $ make info
   $ make install
 
-* Documentation.
+Documentation.
+==============
 
-** Elisp documentation.
+Elisp documentation.
+--------------------
+::
 
   ;;; <file-name>.el --- <one-line-description>
 
@@ -257,7 +279,7 @@
   ;; Maintainer: <person> <mail>
   ;; Created: <date>
   ;; Version: <version>
-  ;; Keywords: <look for 'finder-by-keyword' output, separate by comma>
+  ;; Keywords: <look for ``finder-by-keyword`` output, separate by comma>
   ;; URL: <file-location>
 
   ;;; Commentary:
@@ -268,72 +290,99 @@
 
 See
 
-  http://www.gnu.org/software/emacs/elisp-manual/html_node/Library-Headers.html
-  http://www.emacswiki.org/cgi-bin/wiki/ElispAreaConventions
+ * http://www.gnu.org/software/emacs/elisp-manual/html_node/Library-Headers.html
+ * http://www.emacswiki.org/cgi-bin/wiki/ElispAreaConventions
 
-*** CheckDoc.
+CheckDoc.
+---------
 
 CheckDoc checks your EmacsLisp code for errors in documentation and style.
 
   http://cedet.sourceforge.net/checkdoc.shtml
                 home page before including it into GNU Emacs
   http://www.emacswiki.org/emacs/CheckDoc
+                CheckDoc
 
-* Installing Emacs.
+Installing Emacs.
+=================
 
-** From sources.
+From sources.
+-------------
 
   http://ftp.gnu.org/pub/gnu/emacs
 
-** Windows.
+Windows.
+--------
 
   http://ftp.gnu.org/pub/gnu/emacs/windows
+                Releases for Windows.
   http://alpha.gnu.org/gnu/emacs/windows
-                beta releases for windows
+                Beta releases for Windows.
 
-** Debian.
+Debian.
+-------
+::
 
   $ apt-get install emacs
 
-* Emacs paths.
+Emacs paths.
+============
+::
 
-  source-directory data-directory doc-directory exec-directory invocation-directory trash-directory
-  tutorial-directory user-emacs-directory widget-image-directory
+  source-directory data-directory doc-directory exec-directory
+  invocation-directory trash-directory tutorial-directory user-emacs-directory
+  widget-image-directory
 
-* Emacs games.
+Emacs games.
+============
+::
 
   hanoi hanoi-unix life pong tetris gomoku
 
-* Long lines.
+Long lines.
+===========
 
   (setq longlines-show-hard-newlines t)
   (setq longlines-wrap-follows-window-size t)
   (longlines-mode 1)
 
-* Printing Emacs structures.
+Printing Emacs structures.
+==========================
 
   (message "%S" '(a b 123 "hello" 'set))
   (pp '(a b 123 "hello" 'set))
   (prin1-to-string '(1 2))
 
-* File manager.
+  (symbol-name 'f)
+  (symbol-value 'f)
+  (symbol-function 'f)
+  (symbol-plist 'f)
+
+  (local-variable-p var buffer)
+
+File manager.
+=============
 
   http://www.emacswiki.org/emacs/Sunrise_Commander
 
-* Semantic.
+Semantic.
+=========
 
   semantic-lex-spp-describe
                 Describe the current list of spp macros.
   semantic-lex-c-preprocessor-symbol-file
                 List of C/C++ files that contain preprocessor macros for the C lexer.
 
-* Debugging C code.
+Debugging C code.
+=================
 
   -*- mode: grep; mode: auto-revert-tail; default-directory: "~/devel/proj" -*-
 
-* XML modes.
+XML modes.
+==========
 
-** XSLT-process.
+XSLT-process.
+-------------
 
 XSLT-process is a minor mode for GNU Emacs/XEmacs which transforms it into a powerful editor with
 XSLT processing and debugging capabilities.
@@ -346,37 +395,40 @@
   http://xslt-process.sourceforge.net/
                 home page
 
-* Useful program logging.
+Useful program logging.
+=======================
 
-Put first line to your log file, you must replace 'default-directory' to dir where you build
-program:
+Put first line to your log file, you must replace ``default-directory`` to dir where you build
+program::
 
   -*- mode: compilation-minor; mode: auto-revert-tail; default-directory: "~/devel/proj" -*-
 
-Program must use one of supported by 'compilation-minor-mode' (see
-'compilation-error-regexp-alist'), like:
+Program must use one of supported by ``compilation-minor-mode`` (see
+``compilation-error-regexp-alist``), like::
 
   printf(__FILE__ ":%d: %s\n", __LINE__, msg);  /* msg - user defined string */
 
 or in second form (in this case line number included in format string, so easy searchable in
-debugger):
+debugger)::
 
   #define NUM2STR(x) STR(x)
   #define STR(x) #x
 
   printf(__FILE__ ":" NUM2STR(__LINE__) ": %s\n", msg);
 
-Or some faster use 'grep-mode', but you restricted with GNU like error format:
+Or some faster use ``grep-mode``, but you restricted with GNU like error format::
 
   -*- mode: grep; mode: auto-revert-tail; default-directory: "~/devel/proj" -*-
 
-* Edit HTML.
+Edit HTML.
+==========
 
-psgml-mode
-nxml-mode
-sgml-mode
+ * psgml-mode
+ * nxml-mode
+ * sgml-mode
 
-** html-helper-mode.
+html-helper-mode.
+-----------------
 
 Highlighting, autocompletion, and auto-insertion of closing tags.
 
@@ -384,12 +436,10 @@
   http://savannah.nongnu.org/projects/baol-hth/
   http://www.nongnu.org/baol-hth/
 
-
--*- mode: outline; coding: utf-8 -*-
+Source.
+=======
 
-* Source.
-
-Get main development sources:
+Get main development sources::
 
   $ bzr init-repo --2a emacs
   $ cd emacs
@@ -397,65 +447,90 @@
   $ cd trunk
   $ bzr bind http://bzr.savannah.gnu.org/r/emacs/trunk
 
-To update with latest changes:
+To update with latest changes::
 
   $ cd emacs/trunk
   $ bzr update
 
+See:
+
   http://www.emacswiki.org/emacs/BzrForEmacsDevs
 
-** Emacs Git mirror.
+Emacs Git mirror.
+-----------------
 
   http://www.emacswiki.org/emacs/EmacsFromGit
 
-* Patch.
+Patch.
+======
 
   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5719
                 [patch] fix bat-generic-mode highlighting pattern for CLI
                 switch.
 
-* Bugs.
+How report bug.
+===============
+
+Visit http://debbugs.gnu.org or M-x report-emacs-bug.
+
 
-** How report bug.
+Finding emacs packages.
+=======================
 
-Visit 'http://debbugs.gnu.org' or M-x report-emacs-bug.
+ * http://anc.ed.ac.uk/~stephen/emacs/ell.html
+ * http://www.emacswiki.org/emacs/WikifiedEmacsLispList
+ * http://www.emacswiki.org/emacs/RationalElispPackaging
 
-* Getting modes.
+  http://tromey.com/elpa/index.html
+                Emacs Lisp Package Archive
 
-  http://www.emacswiki.org/emacs/RationalElispPackaging
 
-** EPLA.
+EPLA.
+-----
 
-Currently (2011-02-15) available such sources:
+ELPA goal is to make it simple to install, use, and upgrade Emacs Lisp packages.
+
+
+
+Currently (2011-02-15) available such sources::
 
   (setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
                            ("gnu" . "http://elpa.gnu.org/packages/")
                            ("marmalade" . "http://marmalade-repo.org/packages/")
                            ))
 
+ * http://www.emacswiki.org/emacs/ELPA
+ * http://marmalade-repo.org/
+
   http://elpa.gnu.org/
                 official GNU Emacs Lisp Package Archive
   http://tromey.com/elpa/
                 old Emacs Lisp Package Archive home page
-  http://www.emacswiki.org/emacs/ELPA
-  http://marmalade-repo.org/
+  http://tromey.com/elpa/upload.html
+                how to contribute
 
-** Emacswiki.
+Emacswiki.
+----------
 
   http://www.emacswiki.org/emacs/ElispArea
   http://www.emacswiki.org/emacs/WikifiedEmacsLispList
 
-** emacsmirror.
+emacsmirror.
+------------
 
   https://github.com/emacsmirror/p/wiki
   http://www.emacsmirror.org/
   http://www.emacswiki.org/emacs/Emacsmirror
 
-* Funny Emacs modes.
+Funny Emacs modes.
+==================
 
-  glasses - Minor mode for making identifiers likeThis readable.
+  glasses
+                Minor mode for making identifiers likeThis readable.
 
-* Useful commands.
+Useful commands.
+================
+::
 
   flush-lines keep-lines
   align-regexp
--- a/image.rst	Wed Dec 14 23:10:08 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
--*- mode: outline; coding: utf-8 -*-
-
-* GraphicsMagick.
-
-GraphicsMagick command-line utilities to create, edit, or convert images.
-
-* ImageMagick.
-
-ImageMagick - is a free software suite for the creation, modification and
-display of bitmap images.
-
-* Free art.
-
-  http://openclipart.org/
-                home page
--- a/msvc.rst	Wed Dec 14 23:10:08 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,140 +0,0 @@
--*- mode: outline; coding: utf-8 -*-
-
-* Downloads.
-
-** MSVC.
-
-
-
-** SDK.
-
-  http://msdn.microsoft.com/en-us/windows/bb980924.aspx
-                Windows SDK
-
-* Register SDK to Visual Studio.
-
-To check all available version:
-
-  cmd> cd %PROGRAMFILES%\Microsoft SDKs\Windows\vX.X\Setup\
-  cmd> WindowsSdkVer.exe -version
-
-To check current used version:
-
-  cmd> cd %PROGRAMFILES%\Microsoft SDKs\Windows\vX.X\Setup\
-  cmd> WindowsSdkVer.exe -current
-
-Register SDK:
-
-  cmd> cd %PROGRAMFILES%\Microsoft SDKs\Windows\vX.X\Setup\
-  cmd> WindowsSdkVer.exe -version:v6.1
-
-* MSVC versions.
-
-  NAME                       VER  _MSC_VER  cl
-
-  Visual Studio 6.0 (1998)   6.0  1200
-  Visual Studio .NET (2002)  7.0  1300
-  Visual Studio .NET 2003    7.1  1310
-  Visual Studio 2005         8.0  1400      14.00
-  Visual Studio 2008         9.0  1500      15.00
-  Visual Studio 2010        10.0  1600      16.00
-
-To check version from command line:
-
-  cmd# cl /help 2>&1 | head -n 1
-Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x8
-  cmd# cl /help 2>&1 | head -n 1 | sed "s=.*Version \([0-9]*\)\.\([0-9]*\)\..*=\1.\2="
-16.00
-
-  http://predef.sourceforge.net/precomp.html#sec35
-
-* MFC versions.
-
-  MFC version  Visual C++ version
-
-  1.0          Microsoft C/C++ 7.0
-  2.0          Visual C++ 1.0
-  2.5          Visual C++ 1.5
-  3.0          Visual C++ 2.0
-  3.1          Visual C++ 2.1
-  3.2          Visual C++ 2.2
-  4.0          Visual C++ 4.0
-  4.1          Visual C++ 4.1
-  4.2          Visual C++ 4.2
-  4.21 (mfc42.dll) Visual C++ 5.0
-  6.0 (mfc42.dll)  Visual C++ 6.0
-  7.0 (mfc70.dll)  Visual C++ .NET 2002
-  7.1 (mfc71.dll)  Visual C++ .NET 2003
-  8.0 (mfc80.dll)  Visual C++ 2005
-
-  http://msdn.microsoft.com/en-us/library/3z02ch3k.aspx
-                ATL and MFC Version Numbers
-
-* ALT version.
-
-  ATL version   Visual C++ version
-
-  1.0, 1.1, 2.0 None. Released to Web in Visual C++ 4.x time frame.
-  3.0           Visual C++ 6.0
-  7.0           Visual C++ .NET 2002
-  7.1           Visual C++ .NET 2003
-  8.0           Visual C++ 2005
-
-  http://msdn.microsoft.com/en-us/library/3z02ch3k.aspx
-                ATL and MFC Version Numbers
-
-* MS SDK version.
-
-                                                    VER
-
-Included in Visual Studio 2005                      v5.0
-Included in Visual Studio 2008                      v6.0A
-SDK Update for Windows Vista
-SDK for Windows Server 2008 and .NET Framework 3.5  v6.1
-Included in Visual Studio 2010 Express              v7.0A
-SDK for Windows 7 and .NET Framework 3.5 SP 1       v7.0
-SDK for Windows 7 and .NET Framework 4              v7.1
-
-  http://msdn.microsoft.com/en-us/windows/dd146047.aspx
-                Which SDK do I install?
-  http://en.wikipedia.org/wiki/Microsoft_Windows_SDK#Versions
-
-* MSVC and SDK compatibility.
-
-v6.1: MSVC 2005, 2008 + express
-v7.0: MSVC 2008 + express
-v7.1: MSVC 2005, 2008, 2010 + express
-
-* Build MSVC project from command line.
-
-  cmd> cd %proj%
-  cmd> %WINDIR%\Microsoft.NET\Framework\v2.0.50727\msbuild.exe  file.sln
-
-'msbuild.exe' can not upgrade Visual Studio project files, so you better use 'vcbuild.exe' (which
-present in MSVC version 8.0/9.0):
-
-  cmd> cd %proj%
-  cmd> %MSVC_ROOT%\VC\vcpackages\vcbuild.exe  file.sln
-  cmd> %MSVC_ROOT%\VC\bin\amd64\vcbuild.exe  file.vcproj
-
-  cmd> cd %proj%
-  cmd> %MSVC_ROOT%\Common7\IDE\devenv.exe  /Clean file.sln
-  cmd> %MSVC_ROOT%\Common7\IDE\devenv.exe  /Build file.sln
-  cmd> %MSVC_ROOT%\Common7\IDE\devenv.exe  /Deploy file.sln
-
-  http://msdn.microsoft.com/en-us/library/ms164311.aspx
-                MSBuild Command Line Reference
-  http://msdn.microsoft.com/en-us/library/kdxzbw9t.aspx
-                VCBUILD Command Line
-  http://msdn.microsoft.com/en-us/library/xee0c8y7.aspx
-                Devenv Command Line Switches
-
-* Check linking problem.
-
-Use '/verbose:lib' to see list of libraries for linking and thier order.
-
-* Buy MSVC.
-
-  http://msdn.microsoft.com/ru-ru/subscriptions/subscriptionschart.aspx
-                Сравнение подписок MSDN
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ocr.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -0,0 +1,49 @@
+
+======
+ OCS.
+======
+
+gocr.
+=====
+
+  $ gocr $IN.pnm >$OUT.txt
+
+ocrfeeder.
+==========
+
+Document layout analysis and optical character recognition system::
+
+  $ sudo apt-get install ocrfeeder
+
+Using::
+
+  $ ocrfeeder-cli --o $OUTDIR --format HTML --images $IN.pnm
+
+tesseract.
+==========
+
+Installing::
+
+  $ sudo apt-get install tesseract-ocr
+
+Using::
+
+  $ tesseract $IN.tif $OUT
+  $ cat $OUT.txt
+
+ocropus.
+========
+
+  $ ocropus hocr-to-text screen.ppm
+
+ocrad
+=====
+
+Optical Character Recognition program::
+
+  $ sudo apt-get install ocrad
+
+Misc.
+=====
+
+unpapper
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/php.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -0,0 +1,19 @@
+.. -*- coding: utf-8; -*-
+
+======
+ PHP.
+======
+
+Debugging.
+==========
+
+Pretty print variable::
+
+  print_r($var);
+
+Print backtrace::
+
+  debug_print_backtrace();
+
+ * http://php.net/manual/ru/function.print-r.php
+ * http://www.php.net/manual/en/function.debug-print-backtrace.php
--- a/printer.rst	Wed Dec 14 23:10:08 2011 +0200
+++ b/printer.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -1,70 +1,91 @@
--*- mode: outline; coding: utf-8 -*-
+.. -*- coding: utf-8; -*-
 
-* CUPS
+===========
+ Printers.
+===========
 
-** What is CUPS?
+CUPS.
+=====
 
-See
+What is CUPS?
+-------------
+
+See:
 
-  http://www.cups.org/
-  http://en.wikipedia.org/wiki/Common_Unix_Printing_System
+ * http://www.cups.org/
+ * http://en.wikipedia.org/wiki/Common_Unix_Printing_System
 
-** How access to web interface of CUPS?
+How access to web interface of CUPS?
+------------------------------------
 
-Go to
+Visit:
 
   http://localhost:631
 
-** Installing on GNU/Debian.
+Installing on GNU/Debian.
+-------------------------
+::
 
   $ sudo apt-get cupsys
   $ sudo apt-get cupsys-client
 
-** List of printers.
+List of printers.
+-----------------
+::
 
   $ lpstat -v
-device for HL2070N: lpd://192.168.1.102/binary_p1
+  device for HL2070N: lpd://192.168.1.102/binary_p1
 
-** What printer default?
+What printer default?
+---------------------
+::
 
   $ lpstat -d
-system default destination: HL2070N
+  system default destination: HL2070N
 
-or more verbose
+or more verbose::
 
   $ lpstat -s
-system default destination: HL2070N
-device for HL2070N: lpd://192.168.1.102/binary_p1
+  system default destination: HL2070N
+  device for HL2070N: lpd://192.168.1.102/binary_p1
 
-* HP printers.
+HP printers.
+============
 
-** Where find driver for HP printers?
+Where find driver for HP printers?
+----------------------------------
 
-Go to
+Follow instructions at:
 
   http://hplipopensource.com
 
-and follow instructions.
+Debian 6.0 contain all necessary packages to Print from LaserJet 1020::
 
-** How about LJ 1020?
+  $ sudo apt-get install foo2zjs hplip
+
+How about LJ 1020?
+------------------
 
 This printer is supported by the foo2zjs free software printer driver.
 
-The printer is faster than the LaserJet 1000 and has a USB connection. It has only 2 MB of
-RAM and 32 kB of ROM.
+The printer is faster than the LaserJet 1000 and has a USB connection. It has
+only 2 MB of RAM and 32 kB of ROM.
 
 The firmware of the printer must be uploaded after turning it on. You can use a
-hotplug/udev script which comes with foo2zjs, or do it manually:
+hotplug/udev script which comes with foo2zjs, or do it manually::
 
   cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0
 
-* brother printers.
+Brother printers.
+=================
 
-** Работают ли принтеры brother под Linux x86_32/x86_64.
+Работают ли принтеры brother под Linux x86_32/x86_64.
+-----------------------------------------------------
 
 Да.
 
-** Как настроить принтер.
+Как настроить принтер.
+----------------------
 
 Следует:
 
@@ -76,23 +97,26 @@
 
   http://solutions.brother.com/linux/en_us/instruction_prn1a.html
 
-*** GNU/Debian x86_32.
+GNU/Debian x86_32.
+~~~~~~~~~~~~~~~~~~
 
-Инсталируем 2 пакета, полученых с сайта производителя:
+Инсталируем 2 пакета, полученых с сайта производителя::
 
   $ sudo dpkg -i brhl2070nlpr-2.0.1-1.i386.deb
   $ sudo dpkg -i cupswrapperHL2070N-2.0.1-2.i386.deb
 
 
-*** GNU/Debian x86_64.
+GNU/Debian x86_64.
+~~~~~~~~~~~~~~~~~~
 
 Инсталируем 2 пакета, полученых с сайта производителя (да, игнорируем что они
-предназначены для i386):
+предназначены для i386)::
 
   $ sudo dpkg -i --force-all --force-architecture brhl2070nlpr-2.0.1-1.i386.deb
   $ sudo dpkg -i --force-all --force-architecture cupswrapperHL2070N-2.0.1-2.i386.deb
 
-** Добавляем принтер (на примере HL 2070NR) в CUPS.
+Добавляем принтер (на примере HL 2070NR) в CUPS.
+------------------------------------------------
 
 Пакет cupswrapper добавляет принтер, нам осталось его сконфигурировать (при
 изменении настроек может затребуеться аутентификация, в качестве user/password
@@ -109,12 +133,16 @@
 
 Пробуем напечатать пробную страницу.
 
-* Virtual printer.
+Virtual printer.
+================
 
-** PDFCreator.
+PDFCreator.
+-----------
 
 Free/GPL virtual printer for Windows.
 
   http://www.pdfforge.org/
-                home page
+                Home page.
   http://ru.wikipedia.org/wiki/PDFCreator
+                Wikipedia page.
+
--- a/screenshort.rst	Wed Dec 14 23:10:08 2011 +0200
+++ b/screenshort.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -7,5 +7,14 @@
 ===============================
 ::
 
+  $ fbcat >$OUT.pnm
+
+or use deprecated::
+
   $ fbgrab $OUT.png
 
+You can recognise text by::
+
+  $ gocr $OUT.pnm
+
+
--- a/solaris.rst	Wed Dec 14 23:10:08 2011 +0200
+++ b/solaris.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -8,3 +8,7 @@
                 Solaris
   http://sunfreeware.com/
                 Solaris Freeware Project
+  http://www.blastwave.org/
+                The "Blastwave Software Stack" is a commercial software service
+                for Solaris x86 and Solaris Sparc users
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/udev.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -0,0 +1,24 @@
+
+=======
+ udev.
+=======
+
+About.
+======
+
+ * http://reactivated.net/writing_udev_rules.html
+ * http://wiki.debian.org/udev
+ * https://wiki.archlinux.org/index.php/Udev
+
+View device capability with udev compatible format.
+===================================================
+
+For Debian use::
+
+  $ /sbin/udevadm info --name=/dev/sdc --attribute-walk
+  $ udevadm info --attribute-walk --path $(udevadm info --query=path --name=/dev/ttyUSB0)
+
+For other Linux use::
+
+  $ udevinfo -a -p $(udevinfo -q path -n /dev/sdc)
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/windows-driver.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -0,0 +1,325 @@
+.. -*- coding: utf-8; -*-
+
+=====================
+ Driver for Windows.
+=====================
+
+About.
+======
+
+  microsoft.public.development.device.drivers
+                NNTP driver development group at msnews.microsoft.com:119
+  http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx
+                Web-interface to NNTP forum
+
+Which version exist?
+====================
+
+ - VxD
+                Windows 3.x and Windows 9x
+ - Windows Driver Model (WDM)
+                Windows 98, Windows 98 Second Edition, Windows Me, Windows
+                2000, Windows XP, Windows Server 2003 and Windows Vista (for
+                backwards compatibility)
+ - Windows Driver Foundation (WDF)
+                Windows 2000 and later
+
+  http://en.wikipedia.org/wiki/VxD
+                VxD
+  http://en.wikipedia.org/wiki/Windows_Driver_Model
+                WDM.
+  http://en.wikipedia.org/wiki/Windows_Driver_Foundation
+                WDF.
+
+Msinfo32.exe.
+=============
+
+Windows XP/2003 System Information Tool.
+
+ * http://support.microsoft.com/kb/308549
+
+Sysinternals.
+=============
+
+WinObj.
+-------
+
+Winobj is a program that lets you browse the Windows NT Object Manager
+namespace.
+
+devtree.
+--------
+
+The DeviceTree V2.12 utility is a Windows XP/Server 2003 utility written by
+OSR, that allows the user the ability to display the drivers and devices
+loaded in 2 different views. The first view Driver View the user sees a list
+of all the drivers loaded in kernel mode and all the devices that those
+drivers have created. In the second view PnP View the user sees a list of all
+the devices in the system from that of Plug and Play Manager (PnP).
+
+Microsoft DDK.
+==============
+
+DevCon.
+-------
+
+Supported device classes::
+
+  cmd> devcon.exe classes
+
+Which files used by specific driver (with "*" prints list of files for all
+drivers)::
+
+  cmd> devcon.exe driverfiles *
+
+Device ID (names included)::
+
+  cmd> devcon.exe hwids *
+
+Device status (running/stoped)::
+
+  cmd> devcon.exe status *
+
+USB Command Verifier.
+=====================
+
+All USB peripherals are required to pass the Device Framework tests in order
+to gain certification.
+
+ * http://www.usb.org/developers/tools/
+
+Files.
+======
+
+Windows 98 SE/ME.
+-----------------
+
+ * .386
+   VxD driver under Windows 3.x
+ * .vxd
+   VxD driver under Windows 95
+
+Windows NT (2000/XP/2003).
+--------------------------
+
+ * .inf
+   Stored in %Windir%\Inf.
+ * .pnf
+   Precompiled INF File. Stored in %Windir%\Inf.
+
+Driver type.
+============
+
+CDC.
+----
+
+  http://support.microsoft.com/kb/837637
+                How to use or to reference the Usbser.sys driver from
+                universal serial bus (USB) modem .inf files.
+
+Driver class.
+=============
+
+  http://msdn.microsoft.com/en-us/library/ms791134.aspx
+                System-Supplied Device Setup Classes
+  http://msdn.microsoft.com/en-us/library/ff538820.aspx
+                Drivers for the Supported USB Device Classes
+
+How list drivers?
+=================
+
+Set environment devmgr_show_nonpresent_devices to 1 and run Device Manager,
+select "View" --> "Show hidden devices".
+
+How install drivers?
+====================
+
+dpinst.
+-------
+
+Driver Install Frameworks (DIFx) tools allow installing driver under following
+OSes:
+
+  Windows Server 2008 R2
+  Windows 7
+  Windows Server 2008
+  Windows Vista
+  Windows Server 2003
+  Windows XP
+  Windows 2000
+
+It consist from API (from library, DIFxAPI, DIFxApp) and command line tool
+(DPInst) which can be found in WDK and their licence allow redistribution.
+
+  http://www.microsoft.com/whdc/driver/install/DIFxFAQ.mspx
+                Information about Driver Install Frameworks Tools
+  http://msdn.microsoft.com/ru-ru/magazine/cc302206%28en-us%29.aspx
+                If you update any drivers in Device Manager
+                %windir%\system32\ReinstallBackups folder is created with
+                backups of the old drivers.
+
+devcon.
+-------
+
+This command-line specifies the location of the driver package's INF file (c:\toaster\toastpkg.inf)
+and the toaster device's hardware identifier (ID), which is specified within the INF file::
+
+  cmd# devcon.exe install c:\toaster\toastpkg.inf {b85b7c50-6a01-11d2-b841-00c04fad5171}\mstoaster
+
+See:
+
+  http://msdn.microsoft.com/en-us/library/ff553642.aspx
+                Using the DevCon Tool to Install a Driver Package
+
+How debug Windows drivers.
+==========================
+
+To detect whether a driver loaded, check the status of the device in Device Manager.
+
+SetupAPI logs information about device installation in a plain-text log file
+that you can use to verify the installation of a device and to troubleshoot
+device installation problems.
+
+For Windows XP/2003 check::
+
+  %SystemRoot%/setupapi.log
+
+For Windows Vista and later versions of Windows check::
+
+  %SystemRoot%\inf\SetupAPI.dev.log     installation events in the device
+  %SystemRoot%\inf\SetupAPI.app.log     application installation
+
+See:
+
+  http://msdn.microsoft.com/en-us/library/ff553497.aspx
+                Troubleshooting Install and Load Problems with Signed Driver Packages
+  http://www.microsoft.com/whdc/devtools/debugging/debugtips.mspx
+                Improve Driver Debuggability
+  http://msdn.microsoft.com/en-us/library/ff551063.aspx
+                Debugging Tools for Windows
+  http://msdn.microsoft.com/en-us/library/ff543450%28VS.85%29.aspx
+                Checked and Free Build Differences
+
+Driver signing.
+===============
+
+Type of signature:
+
+ * Signed by a Windows signing authority.
+ * Signed by a trusted publisher.
+ * Signed by an untrusted publisher.
+ * Signed by a publisher of unknown trust.
+ * Altered.
+ * Unsigned.
+
+  http://msdn.microsoft.com/en-us/library/ff544703.aspx
+                Type of signature and performed action.
+  http://www.microsoft.com/whdc/driver/install/drvsign/best-practices.mspx
+                Code-Signing Best Practices.
+  http://msdn.microsoft.com/en-us/library/ff550764.aspx
+                Device Installation Signing Requirements.
+  http://www.microsoft.com/whdc/winlogo/categories.mspx
+                Windows Logo Program Test Categories.
+  http://www.microsoft.com/whdc/driver/install/drvsign/crosscert.mspx
+                Root Authority Cross-Certificate List
+
+Disable signing requirement on Windows 7 x64.
+=============================================
+::
+
+  cmd> bcdedit -set loadoptions DDISABLE_INTEGRITY_CHECKS
+  cmd> bcdedit -set TESTSIGNING ON
+
+To revert back::
+
+  cmd> bcdedit.exe -set loadoptions ENABLE_INTEGRITY_CHECKS
+  cmd> bcdedit.exe -set TESTSIGNING OFF
+
+Tools for Signing Drivers.
+==========================
+
+'certmgr.msc' present in Windows 2000 and upper.
+
+From Windows SDK/WDK::
+
+  CertMgr Inf2Cat MakeCat MakeCert Pvk2Pfx SignTool
+
+To register certificate in Windows 7 (or install "Admin Tools Pack" in Windows
+XP)::
+
+  cmd> certutil -addstore TrustedPublisher cert.cer
+
+See:
+
+  http://msdn.microsoft.com/en-us/library/ff552958.aspx
+                Tools for Signing Drivers
+  http://www.microsoft.com/download/en/details.aspx?id=16770
+                Admin Tools Pack
+
+Invoking a Device Properties Dialog Box from a Command-line Prompt.
+===================================================================
+
+You need get device-instance-ID-parameter::
+
+  cmd# rundll32.exe devmgr.dll,DeviceProperties_RunDLL /DeviceID "ACPI\PNP0F03\4&1A8C8C2E&0"
+
+ * http://msdn.microsoft.com/en-us/library/ff548170.aspx
+
+Driver Selection Process.
+=========================
+
+Windows uses the following criteria to select a driver for a device:
+
+ * Windows selects the driver that has the lowest rank value as the best match for the device.
+ * For drivers that have equal rank, Windows selects the driver that has the most recent date.
+ * For the drivers that have equal rank and date, Windows selects the driver that has the highest version.
+ * Windows XP SP1 and later: For drivers that have equal rank, date, and version, Windows can select any driver.
+ * Windows XP and Windows 2000: For drivers that have equal rank, date, and version, Windows can select any driver.
+
+See:
+
+ * http://msdn.microsoft.com/en-us/library/ff549553.aspx
+
+Distributing a Driver Package.
+==============================
+
+Windows Update.
+---------------
+
+You can distribute a driver package through the Windows Update program if the driver package:
+
+ * Passes the WHQL test program and receives a WHQL release signature.
+ * Qualifies for the Windows Logo program.
+ * Meets additional requirements that ensure that Windows Update can determine the correct driver
+   package for the user's device, can legally distribute it, and can automatically download it.
+
+See:
+
+ * http://msdn.microsoft.com/en-us/library/ff554874.aspx
+
+Hardware ID.
+------------
+
+PCI and AGP buses: Contain subsystem ID and subsystem vendor ID (&SUBSYS in the ID string). Drivers
+must have VID/DID/SVID/SID PNP ID entries to be published via Windows Update.
+
+PCI Device Subsystem IDs and Windows specifications are available at:
+
+ * http://www.microsoft.com/whdc/archive/pciidspec.mspx
+
+PCMCIA: Always specific; contains PCMCIA in the ID string.
+
+USB: Contains VID and &PID in the ID string.
+
+IEEE 1394: Always specific; contains 1394 in the ID string.
+
+HID: Contains &VID and &PID in the ID string.
+
+IDE: Contains IDE\ in the ID string.
+
+Parallel Port Printers: Contain LPTENUM\ in the ID string.
+
+IrDA Printers: IDs begin with HWP.
+
+  http://www.microsoft.com/whdc/winlogo/winup/default.mspx
+                Windows Update Driver Publishing
--- a/windows.rst	Wed Dec 14 23:10:08 2011 +0200
+++ b/windows.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -538,4 +538,16 @@
 
   cmd# control userpasswords2
 
+Format drive.
+=============
 
+Replace with own disk letter::
+
+  cmd# format E: /q /fs:ntfs
+
+See:
+
+  http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/format.mspx
+                Formats the disk in the specified volume to accept Windows
+                files.
+
--- a/x.rst	Wed Dec 14 23:10:08 2011 +0200
+++ b/x.rst	Sun Dec 25 13:18:19 2011 +0200
@@ -12,6 +12,54 @@
 
   http://www.tronche.com/gui/x/icccm/
 
+Widget toolkit.
+===============
+
+  http://en.wikipedia.org/wiki/Widget_toolkit
+                Widget toolkit
+  http://en.wikipedia.org/wiki/List_of_widget_toolkits
+                List of widget toolkits
+
+GTK+.
+-----
+
+  http://en.wikipedia.org/wiki/GTK%2B
+
+QT.
+---
+
+  http://en.wikipedia.org/wiki/Qt_%28toolkit%29
+
+WxWidgets.
+----------
+
+  http://en.wikipedia.org/wiki/WxWidgets
+
+Tk.
+---
+
+  http://en.wikipedia.org/wiki/Tk_%28computing%29
+
+FLTK.
+-----
+
+  http://en.wikipedia.org/wiki/FLTK
+
+Xaw.
+----
+
+  http://en.wikipedia.org/wiki/Xaw
+
+GNUstep.
+--------
+
+  http://en.wikipedia.org/wiki/GNUstep
+
+XView.
+------
+
+  http://en.wikipedia.org/wiki/XView
+
 Getting info about X window and X-related applications data.
 ============================================================