# HG changeset patch # User Oleksandr Gavenko # Date 1299517070 -7200 # Node ID aabd0ddc26de1d9268d73664e0950f00bfb8e4d9 # Parent 1e5afdf631ea08696d23520fa8d06a060b623db5# Parent 7ea3cc9f8d820ae326159d6bb4c848a1a3f72be8 Automated merge with file:///srv/hg/tips diff -r 7ea3cc9f8d82 -r aabd0ddc26de autotools.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autotools.rst Mon Mar 07 18:57:50 2011 +0200 @@ -0,0 +1,6 @@ +-*- mode: outline; coding: utf-8 -*- + +* Regenerate all autotools confetti. + + $ autoreconf + diff -r 7ea3cc9f8d82 -r aabd0ddc26de bzr.rst --- a/bzr.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/bzr.rst Mon Mar 07 18:57:50 2011 +0200 @@ -1,10 +1,148 @@ -*- mode: outline -*- -* Cloning repo. +* Import existing/init new project. + + $ mkdir proj + $ cd proj + $ touch README Makefile main.c + $ bzr init +Created a standalone tree (format: 2a) + $ bzr add . +adding Makefile +adding README +adding main.c + $ bzr ci -m 'Init proj.' +Committing to: /cygdrive/e/home/devel/tmp/vcs-bzr/proj/ +added Makefile +added README +added main.c +Committed revision 1. + +* Cloning/branching repo. + +'branch'/'get'/'clone' are aliases for 'branch' command: + + $ bzr clone proj/ proj-clone +Branched 1 revision(s). * Updating repo. * Incoming changes. - $ bzr missing bzr://bzr.example.com/proj/trunk + $ bzr missing --theirs-only bzr://bzr.example.com/proj/trunk + +* Outgoing changes. + + $ bzr st +modified: + README + $ bzr ci -m up +Committing to: /cygdrive/e/home/devel/tmp/vcs-bzr/proj-clone/ +modified README +Committed revision 2. + $ bzr missing --mine-only +Using saved parent location: /cygdrive/e/home/devel/tmp/vcs-bzr/proj/ +You have 1 extra revision(s): +------------------------------------------------------------ +revno: 2 +committer: Oleksandr Gavenko +branch nick: proj-clone +timestamp: Mon 2011-01-24 00:21:27 +0200 +message: + up + +* Working copy status. + +'status'/'st'/'stat' are aliases for 'status' command: + + $ bzr rm README +deleted README + $ bzr st +removed: + README + +* Show working copy diff. + + $ echo hello >README + $ bzr diff +=== modified file 'README' +--- README 2011-01-23 21:16:40 +0000 ++++ README 2011-01-23 21:37:47 +0000 +@@ -0,0 +1,1 @@ ++hello + +* Show history log. + + $ bzr log + +* Adding files to repo. + + $ touch hello.c + $ bzr add hello.c +adding hello.c + +* Deleting files from repo. + +'remove'/'rm'/'del' are aliases for 'remove' command: + + $ bzr rm README +deleted README +* Undo local changes. + + $ bzr rm README +deleted README + $ bzr revert README ++N README + +* Undo last commit. + + $ bzr add hello.c +adding hello.c + + $ bzr ci -m bug +Committing to: /cygdrive/e/home/devel/tmp/vcs-bzr/proj-clone/ +added hello.c +Committed revision 2. + + $ bzr uncommit +Are you sure? [y/n]: y + 2 Oleksandr Gavenko 2011-01-23 + bug + +The above revision(s) will be removed. +You can restore the old tip by running: + bzr pull . -r revid:gavenkoa@gmail.com-20110123213425-f2ca8umip5iw73is + + $ bzr st +added: + hello.c + +* Info about bzr repo. + + $ bzr info +Standalone tree (format: 2a) +Location: + branch root: . + +Related branches: + parent branch: /cygdrive/e/home/devel/tmp/vcs-bzr/proj + +* Shelf changes. + + $ bzr st +modified: + README + $ bzr shelve --all +Selected changes: + M README +Changes shelved with id "1". + $ bzr diff + $ bzr shelve --list + 1: + $ bzr unshelve +Using changes with id "1". + M README +All changes applied successfully. +Deleted changes with id "1". + diff -r 7ea3cc9f8d82 -r aabd0ddc26de cpp.rst --- a/cpp.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/cpp.rst Mon Mar 07 18:57:50 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 + diff -r 7ea3cc9f8d82 -r aabd0ddc26de cygwin.rst --- a/cygwin.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/cygwin.rst Mon Mar 07 18:57:50 2011 +0200 @@ -43,6 +43,15 @@ 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 + * Users and groups. ** Recreate /etc/passwd and /etc/groups. diff -r 7ea3cc9f8d82 -r aabd0ddc26de debian-apt.rst --- a/debian-apt.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/debian-apt.rst Mon Mar 07 18:57:50 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 + diff -r 7ea3cc9f8d82 -r aabd0ddc26de docbook.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docbook.rst Mon Mar 07 18:57:50 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/ + diff -r 7ea3cc9f8d82 -r aabd0ddc26de driver-win.rst --- a/driver-win.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/driver-win.rst Mon Mar 07 18:57:50 2011 +0200 @@ -1,5 +1,12 @@ -*- mode: outline; coding: utf-8; fill-column: 80 -*- +* 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 @@ -159,9 +166,15 @@ To detect whether a driver loaded, check the status of the device in Device Manager. -In Windows Vista and later versions of Windows, 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. Check +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 diff -r 7ea3cc9f8d82 -r aabd0ddc26de emacs.rst --- a/emacs.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/emacs.rst Mon Mar 07 18:57:50 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 @@ -22,6 +28,14 @@ * Debugging. +** Evaluating elisp expression on the fly. + +Type M-: than lisp expression than type RET. + +Or in any buffer place point at the end of lisp expression and type C-x C-e. + +Or invoke elisp "shell" by M-x ielm. + ** What functions and variables Emacs load and from which files? See value of variable 'load-history' (by C-h v load-history RET). @@ -57,43 +71,73 @@ M-x debug-on-quit RET' and then just hit `C-g' next time it gets 'stuck' somewhere. -*** Check if bug in ini file. +** Check if bug in ini file not in Emacs itself. 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): + + $ emacs -Q + If bug not reproduced bug lies in ini files! -*** 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. -*** Elisp. - - - Use a keyboard macro that moves forward one expression (sexp) and evaluates - it. - - Try C-x check-parens. - - Set (setq debug-on-error t). - -*** CLI. - - $ emacs --no-init-file --no-site-file --debug-init - *** 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 towards the back of the file, otherwise towards the front of the file. +** 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). + +Set in source + + (setq debug-on-error t) + +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 +init file. + ** Call tree. Before byte compiling file execute (setq byte-compile-generate-call-tree t) +** Veiw buffer local variables. + + (pp (buffer-local-variables)) + +* Emacs profiling. + +** benchmark.el. + + (benchmark-run 1 (revert-buffer)) + +** 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'. + * WWW. ** Text based WWW browser. @@ -119,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: @@ -255,6 +302,7 @@ (message "%S" '(a b 123 "hello" 'set)) (pp '(a b 123 "hello" 'set)) + (prin1-to-string '(1 2)) * File manager. @@ -288,7 +336,8 @@ * 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" -*- @@ -297,3 +346,29 @@ 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): + + #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: + + -*- 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/ + diff -r 7ea3cc9f8d82 -r aabd0ddc26de ftp.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ftp.rst Mon Mar 07 18:57:50 2011 +0200 @@ -0,0 +1,8 @@ +-*- mode: outline; coding: utf-8; fill-column: 80 -*- + +* '~/.netrc'. + + machine ... login ... password ... + +Also available macro definition. + diff -r 7ea3cc9f8d82 -r aabd0ddc26de gcc.rst --- a/gcc.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/gcc.rst Mon Mar 07 18:57:50 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 diff -r 7ea3cc9f8d82 -r aabd0ddc26de git.rst --- a/git.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/git.rst Mon Mar 07 18:57:50 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:\nrm $(wildcard *.o)" >>Makefile + $ printf "clean:\nrm $(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: diff -r 7ea3cc9f8d82 -r aabd0ddc26de hg.rst --- a/hg.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/hg.rst Mon Mar 07 18:57:50 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 + hgext.graphlog = + ; Enable '.hgeol' tracking (fix for CR/LF). + hgext.eol = ** Multiline log message for log command. @@ -264,6 +270,26 @@ $ ls /path/to/bugfixes/*.patch | xargs hg qimport +You can fix patch description message from command line: + + $ hg qser -s +makefile-doc.patch: + $ hg qpush +applying makefile-doc.patch +now at: makefile-doc.patch + $ hg qref -m 'Add description about Makefile usage.' + $ hg qser -s +makefile-doc.patch: Add description about Makefile usage. + +or from editor by: + + $ hg qref -e + +* Show supported/loaded plugin. + + $ hg help extensions + $ hg showconfig extensions + * Proxy. $ hg clone --config http_proxy.host=$host:$port \ @@ -273,3 +299,4 @@ http://mercurial.selenic.com/wiki/MercurialHosting Free Hosting of Mercurial Repositories + diff -r 7ea3cc9f8d82 -r aabd0ddc26de java.rst --- a/java.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/java.rst Mon Mar 07 18:57:50 2011 +0200 @@ -6,14 +6,14 @@ {0xCA, 0xFE, 0xBA, 0xBE, 0x00, minor, 0x00, major} -major minor Java platform version -45 3 1.0 -45 3 1.1 -46 0 1.2 -47 0 1.3 -48 0 1.4 -49 0 1.5 -50 0 1.6 + major minor Java platform version + 45 0x27 3 1.0 + 45 0x27 3 1.1 + 46 0x28 0 1.2 + 47 0x29 0 1.3 + 48 0x30 0 1.4 + 49 0x31 0 1.5 + 50 0x32 0 1.6 * Modifiers. @@ -112,7 +112,7 @@ 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 + Java SE 6 Release Notes Supported System Configurations * Java performance. diff -r 7ea3cc9f8d82 -r aabd0ddc26de laser-disk.rst --- a/laser-disk.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/laser-disk.rst Mon Mar 07 18:57:50 2011 +0200 @@ -153,3 +153,22 @@ http://scdbackup.webframe.org/xorriso_eng.html http://en.wikipedia.org/wiki/xorriso +** ImgBurn. + +ImgBurn is a lightweight CD / DVD / HD DVD / Blu-ray burning application that +everyone should have in their toolkit! + +For Windows 95/98/2000/XP/Vista/2008/7, work in Wine under Linux. + + http://www.imgburn.com/ + home page + +** CDBurnerXP. + +Это бесплатная программа для записи CD и DVD, Blu-Ray и HD-DVD дисков. Она +поддерживает запись и создание ISO-образов. + +For Windows XP/Vista/2008/7. Require .NET >= version 2.0. + + http://www.cdburnerxp.se/ru/home + home page diff -r 7ea3cc9f8d82 -r aabd0ddc26de msvc.rst --- a/msvc.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/msvc.rst Mon Mar 07 18:57:50 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. + diff -r 7ea3cc9f8d82 -r aabd0ddc26de posix.rst --- a/posix.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/posix.rst Mon Mar 07 18:57:50 2011 +0200 @@ -7,3 +7,30 @@ http://www.opengroup.org/onlinepubs/9699919799/download download page for SYSV4 + +* Shell command. + +** command. + +Main semantic is to invoke command instead defined function with same name: + + $ ls() { ls --color "$@"; } + $ ls # infinitely loop as func invoke itself + $ ls() { command ls --color "$@"; } + $ ls . # invoke /bin/ls with color output + $ unset ls # forget func definition + $ ls # invoke /bin/ls without color output + +With '-p' arg Perform the command search using a default value for PATH that +is guaranteed to find all of the standard utilities: + + $ command -p getconf PATH + + +With '-v' arg work like 'which' command which not included in POSIX: + + $ command -v ls +/usr/bin/ls + $ command -v echo # for build-in command print command itself +echo # you can check for equality or for slash to + # distinguish from utilities diff -r 7ea3cc9f8d82 -r aabd0ddc26de printer.rst --- a/printer.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/printer.rst Mon Mar 07 18:57:50 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 diff -r 7ea3cc9f8d82 -r aabd0ddc26de ru.rst --- a/ru.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/ru.rst Mon Mar 07 18:57:50 2011 +0200 @@ -4,4 +4,10 @@ http://gramota.ru Справочно-информационный портал. Портала осуществляется - Федеральным агентством по печати и массовым коммуникациям. \ No newline at end of file + Федеральным агентством по печати и массовым коммуникациям. + +* Старый против нового. + + http://vivovoco.astronet.ru/VV/BOOKS/LANG/CONTENT.HTM + Корней Чуковский "ЖИВОЙ КАК ЖИЗНЬ" + diff -r 7ea3cc9f8d82 -r aabd0ddc26de sgml.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sgml.rst Mon Mar 07 18:57:50 2011 +0200 @@ -0,0 +1,24 @@ +-*- mode: outline; coding: utf-8; fill-column: 80 -*- + +* SP. + +An SGML System Conforming to International Standard ISO 8879 -- Standard +Generalized Markup Language. + + http://www.jclark.com/sp/ + home page + http://www.jclark.com/sp/howtoget.htm + How to get SP + +* PSGML mode for Emacs. + + http://www.lysator.liu.se/~lenst/about_psgml/ + original home page + http://www.emacswiki.org/emacs/PsgmlMode + http://www.snee.com/bob/sgmlfree/emcspsgm.html + PSGML Tricks + http://psgml.sourceforge.net/ + project page + https://sourceforge.net/projects/psgml/ + project page + diff -r 7ea3cc9f8d82 -r aabd0ddc26de svn.rst --- a/svn.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/svn.rst Mon Mar 07 18:57:50 2011 +0200 @@ -2,7 +2,7 @@ * Where palced config files? -The per-user configuration area currently contains three filestwo +The per-user configuration area currently contains three files two configuration files ('config' and 'servers'). /etc/subversion @@ -23,6 +23,7 @@ Write in '$HOME/.subversion/config' + [miscellany] interactive-conflicts = no * Creating svn repo. diff -r 7ea3cc9f8d82 -r aabd0ddc26de texi.rst --- a/texi.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/texi.rst Mon Mar 07 18:57:50 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 + diff -r 7ea3cc9f8d82 -r aabd0ddc26de web-search.rst --- a/web-search.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/web-search.rst Mon Mar 07 18:57:50 2011 +0200 @@ -1,5 +1,11 @@ -*- mode: outline; coding: utf-8 -*- +* Disable page indexing by search engine. + +Add to html page in head tag such code: + + + * Dictionary Search. http://www.onelook.com/ @@ -160,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 diff -r 7ea3cc9f8d82 -r aabd0ddc26de xml.rst --- a/xml.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/xml.rst Mon Mar 07 18:57:50 2011 +0200 @@ -3,6 +3,7 @@ * About. http://xmlhack.ru + http://microformats.org/wiki/namespaces-considered-harmful * relaxng. @@ -46,3 +47,30 @@ XML Media Types http://www.xml.com/pub/a/2004/07/21/dive.html XML on the Web Has Failed + +* Validation of xml files. + + http://infohost.nmt.edu/tcc/help/xml/lint.html + xmllint: A validator for XML files + +** Validating using the DOCTYPE. + + $ xmllint --valid --noout file.xml + +** Validating against a specific DTD. + + $ xmllint --noout --dtdvalid URL file.xml + +** Validating against a Relax NG schema. + + $ xmllint --noout --relaxng schema.rng file.xml + +If your schema is in Compact Format, you can use the trang program to convert +it to RNG format: + + $ trang file.rnc file.rng + +** Validating against XSchema. + + $ xmllint --noout --schema schema.xsd file.xml + diff -r 7ea3cc9f8d82 -r aabd0ddc26de xorg.rst --- a/xorg.rst Mon Jan 03 00:00:24 2011 +0200 +++ b/xorg.rst Mon Mar 07 18:57:50 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: