Automated merge with file:///srv/hg/admin-doc
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 04 Mar 2010 23:07:19 +0200
changeset 320 bc693bf92cb5
parent 319 92affd306ff5 (diff)
parent 274 39cdbca45117 (current diff)
child 321 65df6631693d
child 326 05fcf091768a
Automated merge with file:///srv/hg/admin-doc
--- a/bash.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/bash.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -13,13 +13,13 @@
 
   $ xterm -e bash -i -c "mc -x"
 
-That make bash interactive and init file read.
+That make bash interactive and init file was readed.
 
 * Command history.
 
-Bash allow accessing to command that you type previously. There are exist
-several options to control command history behavior. Set corresponding
-variables in your ~/.bashrc file (which is read by interactive shell):
+Bash allow accessing to command that you type previously. There are several
+options to control command history behavior. Set corresponding variables in
+your ~/.bashrc file (which is read by interactive shell):
 
   #   ignorespace do not save lines that start with space
   #   erasedups all previous lines matching the current line to be removed from
@@ -27,7 +27,7 @@
   export HISTCONTROL=igrorespace:erasedups
   export HISTIGNORE=" ?cd *":"e *":"sudo mv *":"sudo rm *":"sudo cp *":"sudo mkdir *":"sudo chmod *":"sudo chown *":ls:pwd:"vlc*"
 
-There are another options, with default values (which satisfy my neediness, so
+There are another options, with default values (which satisfy my needs, so
 I don't put they to ~/.bashrc):
 
   export HISTFILE=~/.bash_history  # where is command history stored
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/code-size.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -0,0 +1,47 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Common.
+
+** Configuration.
+
+Configure build with disabling unused features e.g.:
+
+  $ ./configure --without-png
+
+** Link dynamically.
+
+Link dynamically instead statically (on your platform shared library may be
+already present).
+
+** Avoid debug build.
+
+Make release/final build instead debug.
+
+** Packer.
+
+Use packers. Packer compress binary so binary smaller. When program load
+decompress itself, so startup time increase.
+
+  http://upx.sourceforge.net
+                home page
+
+* GCC.
+
+Use -Os when produce *.o files.
+
+Use -s when produce executable.
+And "--remove-section=.comment and --remove-section=.note".
+
+Use:
+
+  $ strip --strip-all <executable>
+
+and
+
+  $ gcc -ffunction-sections -fdata-sections -c -o my.o my.c
+  $ gcc -Wl,--gc-sections -o my my.o
+
+* MSVC.
+
+Use /Os when produce *.obj files.
+
--- a/crack.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/crack.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -37,3 +37,14 @@
   http://www.textfiles.com/computers/fileid.txt
                 v1.9 spec
   http://en.wikipedia.org/wiki/FILE_ID.DIZ
+
+* Crack intro.
+
+A crack intro, also known as a cracktro, loader, or just intro, is a small
+introduction sequence added to cracked software, designed to inform the user
+of which "cracking crew" or individual cracker was responsible for removing
+the software's copy protection and distributing the crack.
+
+  http://en.wikipedia.org/wiki/Crack_intro
+  http://www.defacto2.net/cracktros.cfm
+                Hundreds of cracktros, loaders and installers for the PC
--- a/devel-windows.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/devel-windows.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -18,3 +18,35 @@
 * Sysinternals.
 
 TODO
+
+* Running at startup.
+
+  HKCU\Software\Microsoft\Windows\CurrentVersion\Run
+                Launches a program automatically when a particular user logs
+                in. This key is used when you always want to launch a program
+                when a particular user is using a system.
+  HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
+                Launches a program the next time the user logs in and removes
+                its value entry from the registry. This key is typically used
+                by installation programs.
+  HKLM\Software\Microsoft\Windows\CurrentVersion\Run
+                Launches a program automatically at system startup. This key
+                is used when you always want to launch a program on a
+                particular system.
+  HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
+                Launches a program the next time the system starts and removes
+                its value entry from the registry. This key is typically used
+                by installation programs.
+  HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices
+                Launches a service (a standard NT service or a background
+                process) automatically at startup. An example of a service is
+                a Web server such as Microsoft Internet Information Server.
+  HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
+                Launches a service (a standard NT service or a background
+                process) the next time the system is started, then removes its
+                value entry from the registry.
+
+Values to registry on Windows XP can be added by:
+
+  cmd> reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v run.bat /t REG_SZ /d "path\to\run.bat"
+  cmd> reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run   <-- see what done
--- a/digit-music.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/digit-music.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -2,6 +2,10 @@
 
 * Musician soft.
 
+  http://freemusicsoftware.org
+  http://www.freesoundeditor.com/VSTSyntheng.htm
+                VST plugin
+
 * Editor.
 
 Mainly those soft are cross-platform.
--- a/dimentions.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/dimentions.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -19,6 +19,12 @@
 
   http://en.wikipedia.org/wiki/Pixels_per_inch
 
+* lpi
+
+lines per inch.
+
+  http://en.wikipedia.org/wiki/Lines_per_inch
+
 * bpp
 
 bits per pixel, color depth.
--- a/driver-win.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/driver-win.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -29,12 +29,6 @@
 
   http://en.wikipedia.org/wiki/Windows_Driver_Foundation
 
-* Filename extension.
-
- * VxD
-    .386 under Windows 3.x
-    .vxd under Windows 95
-
 * Tools.
 
 ** Msinfo32.exe
@@ -92,6 +86,11 @@
 
 ** Windows 98 SE/ME.
 
+ * .386
+   VxD driver under Windows 3.x
+ * .vxd
+   VxD driver under Windows 95
+
 ** Windows NT (2000/XP/2003).
 
  * .inf
@@ -113,3 +112,32 @@
 
   http://msdn.microsoft.com/en-us/library/ms791134.aspx
                 System-Supplied Device Setup Classes
+
+* How list drivers?
+
+Set environment devmgr_show_nonpresent_devices to 1 and run Device Manager,
+select "View" --> "Show hidden devices".
+
+* How install drivers?
+
+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.
+
--- a/emacs.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/emacs.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -93,6 +93,16 @@
 
   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
+
+** 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.
 
@@ -105,7 +115,41 @@
 
   $ cmd
   $ cd emacs\nt
-  $ configure.bat --with-gcc --cflags -Ic:/opt/gnuwin32/include
+  $ configure.bat --prefix %INST_ROOT% --with-gcc --cflags -I%GNUWIN32_ROOT%/include --ldflags -L%GNUWIN32_ROOT%/lib  --ldflags -lregex
   $ make bootstrap
   $ make info
   $ make install
+
+* Documentation.
+
+** Elisp documentation.
+
+  ;;; <file-name>.el --- <one-line-description>
+
+  ;; Copyright (C) <years> <person>
+
+  ;; Author: <person> <mail>
+  ;; Maintainer: <person> <mail>
+  ;; Created: <date>
+  ;; Version: <version>
+  ;; Keywords: <look for 'finder-by-keyword' output, separate by comma>
+  ;; URL: <file-location>
+
+  ;;; Commentary:
+  <bla-bla-bla>
+  ;;; Code:
+  <lisp-code>
+  ;;; <file-name> ends here
+
+See
+
+  http://www.gnu.org/software/emacs/elisp-manual/html_node/Library-Headers.html
+  http://www.emacswiki.org/cgi-bin/wiki/ElispAreaConventions
+
+*** 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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -0,0 +1,129 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Useful customization.
+
+Put to your ~/.hgrc:
+
+  [ui]
+  ; Editor for editing commit message.
+  editor = gvim
+  ; Who commit.
+  username = Oleksandr Gavenko <gavenkoa@gmail.com>
+  ; Use internal merge algorithm, which mark conflict like <<<<<< ====== >>>>>>.
+  ; Save previous file version in '*.orig' file, after merge must be marked as
+  ; resolved by running 'hg resolve -m <file>'.
+  merge = internal:merge
+  [web]
+  ; Default encoding for file hosted by 'hg serv'.
+  encoding = utf-8
+
+** Useful extension.
+
+Put to your ~/.hgrc:
+
+  [extensions]
+  ; To allow fetch command.
+  fetch =
+  ; To allow Mercurial Queues.
+  hgext.mq =
+
+** Multiline log message for log command.
+
+By default 'hg log' show only first line of log message. To see all message run:
+
+  $ hg log -v
+
+or put into ~/.hgrc:
+
+  [defaults]
+  log = -v
+
+** Follow history ever when file copied.
+
+By default 'hg log' show only history after last file copy. To see log message
+before copying run:
+
+  $ hg log -f
+
+or put into ~/.hgrc:
+
+  [defaults]
+  log = -f
+
+* Manage patches with MQ.
+
+First enable MQ, add following to your ~/.hgrc:
+
+  [extensions]
+  hgext.mq =
+
+Second get unpatched sources and put it to hg repository:
+
+  $ tar zxf proj-x.y.z.tar.gz
+  $ mv proj-x.y.z proj
+  $ cd proj
+  $ hg init
+  $ hg ci -m "Added x.y.z version of proj."
+
+Init MQ and take name for first patch:
+
+  $ hg qinit
+  $ hg qnew first.patch
+
+Next make changes by editing source and save it to patch:
+
+  $ $EDITOR file.c
+  ...
+  $ hg diff
+  ...
+  $ hg qrefresh
+  $ hg diff      # <-- have zero diff
+
+You can make second patch by applying existing one:
+
+  $ hg qnew second.patch
+  $ patch -p1 <bugfix.patch
+  $ hg qrefresh
+
+You can take list of patches (from old to new) and revert or apply patches by
+qpop/qpush command:
+
+  $ hg qseries   # <-- what patches have
+  first.patch
+  second.patch
+  $ hg qapplied  # <-- what patches applied
+  first.patch
+  second.patch
+  $ hg qpop
+  $ hg qseries
+  first.patch
+  second.patch
+  $ hg qapplied
+  first.patch
+
+You can revert or apply all patches by single command:
+
+  $ hg qpop -a
+  $ hg qpush -a
+
+You can delete patch from patch list (before that you need de-apply patch):
+
+  $ hg qpop -a
+  $ hg qdelete first.patch
+
+To add new version of source and fix patches for it first de apply patches,
+then pull new changes and try apply patches on top of new sources:
+
+  $ hg qpop -a
+  $ rm *       # .hg dir not deleted because its name start with dot
+  $ cd ..
+  $ tar zxf proj-a.b.c.tar.gz
+  $ cp -R proj-a.b.c/* proj
+  $ cd proj
+  $ hg addremove -s 70
+  $ hg ci -m "Added a.b.c version of proj."
+  $ hg qpush -a
+
+To apply series of already done patches use:
+
+  $ ls /path/to/bugfixes/*.patch | xargs hg qimport
--- a/java.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/java.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -106,5 +106,11 @@
 Anonymous inner classes extend local inner classes one level further. As
 anonymous classes have no name, you cannot provide a constructor.
 
+* 64-bit problem.
 
+  http://www.java.com/en/download/faq/java_win64bit.xml
+                Which version of Java should I download for my 64-bit Windows
+                operating system?
+  http://java.sun.com/javase/6/webnotes/install/system-configurations.html
+                Java™ SE 6 Release Notes Supported System Configurations
 
--- a/man.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/man.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -45,3 +45,8 @@
 BUGS                - know issue, how report bug
 HISTORY
 
+* Man page showing.
+
+TODO
+Bolt by print char, back one char and print same char.
+Underscore by printing undescore, back one char and print char.
--- a/nntp.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/nntp.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -39,3 +39,19 @@
   $ su
 ...
   # echo 1 > /proc/sys/net/ipv6/bindv6only
+
+* Public NNTP server.
+
+** Gmane.
+
+  news:news.gmane.org
+                news list address
+  http://rss.gmane.org/gmane.<group>.<name>
+                rss feed for list
+  http://news.gmane.org/gmane.<group>.<name>
+                nice web interface for reading list
+  http://blog.gmane.org/gmane.<group>.<name>
+                make list blog like
+  http://search.gmane.org
+                search through mailing list
+
--- a/svn.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/svn.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -1,7 +1,26 @@
 -*- outline -*-
 
+* Where palced config files?
+
+The per-user configuration area currently contains three files—two
+configuration files ('config' and 'servers').
+
+  /etc/subversion
+                Unix system wide configurations.
+  $HOME/.subversion
+                Unix per-user configuration area.
+  %APPDATA%\Subversion
+                Windows per-user configuration area.
+
+
 * Copy repo from SourceForge to GoogleCode.
 
   $ svnsync init https://PROJ.googlecode.com/svn https://PROJ.svn.sourceforge.net/svnroot/PROJ
   $ svnsync --username NAME --password PASSWORD \
                 sync https://PROJ.googlecode.com/svn https://PROJ.svn.sourceforge.net/svnroot/PROJ
+
+* Disable interactive conflict resolution.
+
+Write in '$HOME/.subversion/config'
+
+  interactive-conflicts = no
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web-search.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -0,0 +1,10 @@
+-*- outline -*-
+
+* Google.
+
+  site:.com
+  site:.uoregon.edu
+
+  filetype:pdf (doc, ppt, ps, xls, rtf)
+
+  http://www.google.com/help/cheatsheet.html
--- a/windows.rst	Thu Mar 04 23:07:08 2010 +0200
+++ b/windows.rst	Thu Mar 04 23:07:19 2010 +0200
@@ -1,19 +1,63 @@
 -*- outline -*-
 
+* Determining windows version.
+
+Run winver.exe: <Win> + R winver <RET>.
+
+Or type: <Win> + <Break>.
+
+Under cmd.exe use built-in command ver.
+
+For Win 2000 and upper check registry key:
+
+  cmd> reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion
+
+To check 32/64-bit OS use PROCESSOR_ARCHITECTURE env var (it has such values:
+x86, AMD64, IA64).
+
 * XP.
 
-** Recovery.
+** Check system files integrity.
 
   cmd> sfc /Scannow
 
-To complite repair you may need original installation CD. Works for
-Windows 2000, Windows XP, Windows 2003.
+To complete repair you may need original installation CD (you can mount it
+from .iso image for example with DemonTools).
+
+Works for Windows 2000, Windows XP, Windows 2003.
 
 See
 
   http://support.microsoft.com/kb/222471/
   http://support.microsoft.com/kb/310747/ru
 
+** Repair boot.
+
+If you only damage boot sector of master or system partition boot from Windows
+XP installation CD, enter to recovery console and run:
+
+  cmd> fixboot
+  cmd> fixmbr
+
+See
+
+  http://support.microsoft.com/kb/307654/ru
+
+** Automatically connect to shared resource.
+
+Add to autorun such .bat file:
+
+  net use x: \\server\share /user:username password
+
+See
+
+  http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx
+
+** Activate windows.
+
+  http://www.microsoft.com/genuine/selfhelp/XPPkuinst.aspx?sGuid=bab9e103-6365-44dd-9337-93f0cd9dd4b7&displaylang=en
+                Windows Product Key Update Tool Instructions
+
 * Vista
 
 ** Samba.
@@ -56,3 +100,30 @@
 Create the following DWORD value (if it doesn't exist): LmCompatibilityLevel
 
 And set its value to: 1
+
+* Map dir to disk.
+
+To create:
+
+  cmd> subst [to-disk: [from-disk:]path]
+
+To remove:
+
+  cmd> subst disk: /d
+
+* CMD.
+
+** 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