--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/autotools.rst Wed Mar 09 10:22:04 2011 +0200
@@ -0,0 +1,6 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Regenerate all autotools confetti.
+
+ $ autoreconf
+
--- a/cpp.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/cpp.rst Wed Mar 09 10:22:04 2011 +0200
@@ -32,3 +32,13 @@
** Sun Studio C/C++ compiler.
$ cc -## EMPTY.c
+
+** IBM AIX XL C/C++ compiler.
+
+ $ cc -qshowmacros -E EMPTY.c
+
+** Visual Studio compiler.
+
+ http://msdn.microsoft.com/en-us/library/b0084kay.aspx
+ Predefined Macros
+
--- a/debian-apt.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/debian-apt.rst Wed Mar 09 10:22:04 2011 +0200
@@ -47,3 +47,17 @@
$ gpg --export 9AA38DCD55BE302B | sudo apt-key add -
OK
+
+* Install build dependency for package.
+
+ $ apt-get install build-essential # install dev LIBC and GCC C/C++
+ $ sudo apt-get build-dep $package
+
+If all you want is checking what packages are needed to build a given package:
+
+ $ apt-cache showsrc $package
+
+or check 'Build-Depends' attribute in
+
+ $ apt-cache show $package
+
--- a/determine-os.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/determine-os.rst Wed Mar 09 10:22:04 2011 +0200
@@ -14,10 +14,6 @@
* Linux
-** osinfo command.
-
-You can use the osinfo command to determine which distribution you use.
-
** Version files.
See for file `/etc/<distroname>-version' or `/etc/<distroname>-release'.
@@ -68,3 +64,14 @@
Feb 20 05:54:07 sarge kernel: nf3 (root@sarge) (gcc version 3.4.4 20050314 (prerelease)
(Debian 3.4.3-13sarge1)) #1 PREEMPT Thu Nov 16 20:31:43 CET 2006
+
+** 'lsb_release' command.
+
+ $ sudo apt-get install lsb-release
+
+ $ lsb_release -s -i
+Debian
+ $ lsb_release -s -c
+squeeze
+ $ lsb_release -s -r
+6.0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/docbook.rst Wed Mar 09 10:22:04 2011 +0200
@@ -0,0 +1,11 @@
+-*- mode: outline; coding: utf-8; fill-column: 80 -*-
+
+* About.
+
+* DocBook Project.
+
+The DocBook Project supports the open-source development of a variety of DocBook
+resources; in particular, the DocBook XSL stylesheets.
+
+ http://docbook.sourceforge.net/
+
--- a/emacs.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/emacs.rst Wed Mar 09 10:22:04 2011 +0200
@@ -2,6 +2,12 @@
* About.
+ http://elpa.gnu.org/
+ Packages for Emacs. This requires Emacs version 24.1 or
+ higher.
+
+* Getting help.
+
http://news.gmane.org/gmane.emacs.help
http://news.gmane.org/gmane.emacs.announce
http://news.gmane.org/gmane.emacs.auctex.announce
@@ -129,7 +135,8 @@
** elp.el.
Enter a prefix for 'M-x elp-instrument-package', perform action and see result
-by 'M-x elp-results'.
+by 'M-x elp-results'. To perform new measurement don't forget to run 'M-x
+elp-reset-all'.
* WWW.
@@ -156,15 +163,18 @@
emacs-minor-version
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
system-configuration - like configuration triplet: cpu-manufacturer-os
+ system-configuration-options
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' (FreeBSD),
'darwin' (GNU-Darwin, Mac OS X), 'ms-dos', 'windows-nt', 'cygwin'
system-uses-terminfo
- window-size-fixed
+ dynamic-library-alist or deprecated image-library-alist
+ - alist of image types vs external libraries needed to display them
and check functions:
@@ -292,6 +302,7 @@
(message "%S" '(a b 123 "hello" 'set))
(pp '(a b 123 "hello" 'set))
+ (prin1-to-string '(1 2))
* File manager.
@@ -347,3 +358,17 @@
-*- mode: grep; mode: auto-revert-tail; default-directory: "~/devel/proj" -*-
+* Edit HTML.
+
+psgml-mode
+nxml-mode
+sgml-mode
+
+** html-helper-mode.
+
+Highlighting, autocompletion, and auto-insertion of closing tags.
+
+ http://www.emacswiki.org/emacs/HtmlHelperMode
+ http://savannah.nongnu.org/projects/baol-hth/
+ http://www.nongnu.org/baol-hth/
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ftp.rst Wed Mar 09 10:22:04 2011 +0200
@@ -0,0 +1,8 @@
+-*- mode: outline; coding: utf-8; fill-column: 80 -*-
+
+* '~/.netrc'.
+
+ machine ... login ... password ...
+
+Also available macro definition.
+
--- a/gcc.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/gcc.rst Wed Mar 09 10:22:04 2011 +0200
@@ -40,3 +40,24 @@
* Predefined macros.
$ gcc -arch ppc -dM -E - < /dev/null | sort
+
+* Default search path.
+
+ $ echo | gcc -v -x c -E -
+
+ $ gcc -print-search-dirs
+install: ...
+programs: ...
+libraries: ...
+
+Use -### in actual invoking:
+
+ $ gcc -### -o foo foo.c
+
+ $ ld --verbose | grep SEARCH_DIR
+
+'LIBRARY_PATH' and 'LD_LIBRARY_PATH'
+
+ $ cpp -Wp,-v
+ $ cpp -Wp,-lang-c++,-v
+ $ cpp -x c++ -Wp,-v
--- a/git.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/git.rst Wed Mar 09 10:22:04 2011 +0200
@@ -24,6 +24,8 @@
*** Cygwin.
+ $ setup.exe -p git
+
*** MSys.
Native port.
@@ -35,6 +37,17 @@
http://code.google.com/p/msysgit
+* git over proxy.
+
+Only http:// protocol support proxy (not git://).
+
+ $ export http_proxy="http://username:password@proxy:port/"
+ $ git clone http://github.com/$user/$proj.git $proj
+
+You can store proxy settings under repository local config file:
+
+ $ git config http.proxy http://$user:$passwd@$ip:$port
+
* Start your project.
Setup proj space on fs.
@@ -107,7 +120,7 @@
* Doing changes.
- $ printf "clean:\n<TAB>rm $(wildcard *.o)" >>Makefile
+ $ printf "clean:\n<TAB>rm $(wildcard *.o)\n" >>Makefile
$ git diff
diff --git a/Makefile b/Makefile
index e84f7e9..cd2438a 100644
@@ -120,7 +133,6 @@
+
+clean:
+ rm -f *.o
-\ No newline at end of file
$ git add Makefile
$ git commit -m "Added clean target."
Created commit 11272b9: Added clean target.
@@ -131,6 +143,32 @@
$ git commit -a -m "Added clean target."
+* git analog of 'hg incoming'.
+
+git does not directly support such feature. You can emulate it by:
+
+ $ git fetch
+ $ git log master..origin/master # or just '..origin/master'
+
+By previous commands you grab changes from remote server! You can apply them:
+
+ TODO
+ $ git merge
+
+* git analog of 'hg outgoing'.
+
+git does not directly support such feature. You can emulate it by:
+
+ $ git fetch
+ $ git log origin/master..master # or just 'origin/master..'
+
+* Debug git network operation.
+
+Git uses libcurl for network operation.
+
+ $ export GIT_CURL_VERBOSE=1
+ $ git ...
+
* Using git to work with SVN offline.
Prepare SVN and git utilities:
--- a/hg.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/hg.rst Wed Mar 09 10:22:04 2011 +0200
@@ -27,10 +27,16 @@
Put to your ~/.hgrc:
[extensions]
- ; To allow fetch command.
- fetch =
+ ; To allow 'fetch' command.
+ hgext.fetch =
; To allow Mercurial Queues.
hgext.mq =
+ ; To import revisions from foreign VCS repositories into Mercurial.
+ hgext.convert =
+ ; Usage: hg glog <dir>
+ hgext.graphlog =
+ ; Enable '.hgeol' tracking (fix for CR/LF).
+ hgext.eol =
** Multiline log message for log command.
@@ -279,6 +285,11 @@
$ hg qref -e
+* Show supported/loaded plugin.
+
+ $ hg help extensions
+ $ hg showconfig extensions
+
* Proxy.
$ hg clone --config http_proxy.host=$host:$port \
@@ -288,3 +299,4 @@
http://mercurial.selenic.com/wiki/MercurialHosting
Free Hosting of Mercurial Repositories
+
--- a/msvc.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/msvc.rst Wed Mar 09 10:22:04 2011 +0200
@@ -104,3 +104,32 @@
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.
+
--- a/printer.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/printer.rst Wed Mar 09 10:22:04 2011 +0200
@@ -108,3 +108,13 @@
* добавить пользователей, которые имеют право на печать - "Set Allowed User"
Пробуем напечатать пробную страницу.
+
+* Virtual printer.
+
+** PDFCreator.
+
+Free/GPL virtual printer for Windows.
+
+ http://www.pdfforge.org/
+ home page
+ http://ru.wikipedia.org/wiki/PDFCreator
--- a/texi.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/texi.rst Wed Mar 09 10:22:04 2011 +0200
@@ -7,3 +7,17 @@
http://www.mathematik.uni-kl.de/~obachman/Texi2html/
Texi2html's Homepage
+* Install texi files.
+
+ $ install -m 444 my.info.gz /usr/local/share/info
+ $ cd /usr/local/share/info
+ $ install-info --name=my --entry="My utilities." my.info.gz dir
+
+For debug you can use '--dry-run' (do nothing).
+
+* Uninstall texi files.
+
+ $ cd /usr/local/share/info
+ $ install-info --delete my.info.gz dir
+ $ rm my.info.gz
+
--- a/web-search.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/web-search.rst Wed Mar 09 10:22:04 2011 +0200
@@ -166,6 +166,30 @@
define:WORD
+* Google Code.
+
+ http://code.google.com/
+ http://www.google.com/help/faq_codesearch.html
+
+** file:
+
+ file:\.(x|abc)$
+
+** lang:
+
+ lang:"c++", -lang:java
+ lang:^(c|c#|c\+\+)$
+
+** license:
+
+ license:apache,-license:gpl
+ license:bsd|mit
+
+** package:
+
+ package:"www.kernel.org"
+ package:\.tgz$
+
* Yahoo search query syntax.
http://help.yahoo.com/l/uk/yahoo/search/basics/index.html
--- a/x.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/x.rst Wed Mar 09 10:22:04 2011 +0200
@@ -16,6 +16,25 @@
$ sudo apt-get install imagemagic
$ import -quality 100 -pause <sec> -silent <file>
+* Input method.
+
+** Input method by setxkbmap.
+
+ $ setxkbmap ru
+
+ $ setxkbmap -rules xorg -model pc104 -layout "us,ru" -option "grp:rwin_toggle,grp_led:scroll" -variant ",winkeys"
+
+** Input method by xorg.conf.
+
+ Section "InputDevice"
+ Identifier "Keyboard0"
+ Driver "kbd"
+ Option "XkbModel" "pc105"
+ Option "XkbLayout" "us,ru"
+ Option "XkbVariant" ",winkeys"
+ Option "XkbOptions" "grp:rwin_switch,grp_led:scroll"
+ EndSection
+
* .Xdefaults
The syntax of an Xdefaults file is as follows:
--- a/xorg.rst Wed Feb 09 11:53:01 2011 +0200
+++ b/xorg.rst Wed Mar 09 10:22:04 2011 +0200
@@ -39,6 +39,14 @@
...
EndSection
+To disable standby for current session use command:
+
+ $ xset -dpms
+
+To turn off monitor use:
+
+ $ xset dpms force off
+
* Set display dimensions.
To see currect settings type: