# HG changeset patch # User Oleksandr Gavenko # Date 1249154874 -10800 # Node ID 3c011ac42f1c5e7297bb24794db8a75783ef6900 # Parent dab4caa0536cf6e581852802412298d9f8be72e0# Parent 4640d2bef0f074ab469b0412859c8f11e43391e2 Automated merge with file:///srv/hg/admin-doc diff -r 4640d2bef0f0 -r 3c011ac42f1c benchmark.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/benchmark.rst Sat Aug 01 22:27:54 2009 +0300 @@ -0,0 +1,13 @@ +-*- outline -*- + +* CPU. + + http://www.cpubenchmark.net/ + +* Video. + + http://www.videocardbenchmark.net/ + +* Hard drive. + + http://www.harddrivebenchmark.net/ diff -r 4640d2bef0f0 -r 3c011ac42f1c blog.rst --- a/blog.rst Sat Aug 01 22:19:20 2009 +0300 +++ b/blog.rst Sat Aug 01 22:27:54 2009 +0300 @@ -6,9 +6,35 @@ http://code.google.com/p/e-blog/ -* Livejornal. +* Feed. + +** Blogspot. + +See + + http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=97933 + +*** Article feed. + + * Atom 1.0: http://BLOGNAME.blogspot.com/feeds/posts/default + * RSS 2.0: http://BLOGNAME.blogspot.com/feeds/posts/default?alt=rss + +*** Comments-only feed. -** Feed. + * Atom 1.0: http://BLOGNAME.blogspot.com/feeds/comments/default + * RSS 2.0: http://BLOGNAME.blogspot.com/feeds/comments/default?alt=rss + +*** Label-specific site feed. + + * Atom 1.0: http://BLOGNAME.blogspot.com/posts/comments/default/-/labelname + * RSS 2.0: http://BLOGNAME.blogspot.com/feeds/posts/default?alt=rss/-/labelname + +*** Individual post comment feed. + + * Atom 1.0: http://BLOGNAME.blogspot.com/feeds/postId/comments/default + * RSS 2.0: http://BLOGNAME.blogspot.com/feeds/postId/comments/default?alt=rss + +** Livejornal. See @@ -30,3 +56,34 @@ URL, replacing tagname with the actual tag name. If you want to view two or more tags at once, separate the tags with commas: ?tag=tag1,tag2. +** Wordpress. + +See + + http://support.wordpress.com/email-subscriptions/ + http://codex.wordpress.org/WordPress_Feeds + +*** Articles feed. + + http://BLOGNAME.wordpress.com/feed + http://BLOGNAME.wordpress.com/feed/ + http://BLOGNAME.wordpress.com/feed/rss/ + http://BLOGNAME.wordpress.com/feed/rss2/ + http://BLOGNAME.wordpress.com/feed/rdf/ + http://BLOGNAME.wordpress.com/feed/atom/ + http://BLOGNAME.wordpress.com/?feed=rss + http://BLOGNAME.wordpress.com/?feed=rss2 + http://BLOGNAME.wordpress.com/?feed=rdf + http://BLOGNAME.wordpress.com/?feed=atom + +*** Comments feed. + + http://BLOGNAME.wordpress.com/comments/feed/ + http://BLOGNAME.wordpress.com/?feed=comments-rss2 + +*** Tagged Entries. + + http://BLOGNAME.wordpress.com/category/TAG/feed/ + http://BLOGNAME.wordpress.com/tag/TAG/feed/ + http://BLOGNAME.wordpress.com/?cat=CATNUMBER&feed=rss2 + http://BLOGNAME.wordpress.com/?tag=TAG&feed=rss2 diff -r 4640d2bef0f0 -r 3c011ac42f1c cpp.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cpp.rst Sat Aug 01 22:27:54 2009 +0300 @@ -0,0 +1,12 @@ +-*- outline -*- + +* How to see macros expansion? + +** GCC. + + $ cpp .c + +** MSVC. + + $ cl /E .c + diff -r 4640d2bef0f0 -r 3c011ac42f1c devel-windows.rst --- a/devel-windows.rst Sat Aug 01 22:19:20 2009 +0300 +++ b/devel-windows.rst Sat Aug 01 22:27:54 2009 +0300 @@ -1,63 +1,63 @@ --*- mode: outline -*- - -* Dependency Walker. - -Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows -module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of -all dependent modules. For each module found, it lists all the functions that -are exported by that module, and which of those functions are actually being -called by other modules. Another view displays the minimum set of required -files, along with detailed information about each file including a full path -to the file, base address, version numbers, machine type, debug information, -and more. - -See - - http://www.dependencywalker.com/ - -* Kill process. - -** tskill.exe. - - cmd> tskill {|} - -** taskkill.exe. - - cmd> taskkill /IM notepad.exe - cmd> taskkill /PID 827 - -* lsof for Windows. - -** handle.exe from Sysinternals. - - cmd> handle d:\home -ispell.exe pid: 244 784: D:\home\drivers\token_api\src -Far.exe pid: 432 10C: D:\home\drivers\token_api - - cmd> handle -p 1265 - C: File (RW-) C:\Program Files\Common Files\GTK\2.0\bin -288: Section \BaseNamedObjects\mmGlobalPnpInfo - -** TaskList.exe. - - cmd> TaskList -Process Name PID Session Name #Session Memory -========================= ====== ================ ======== ============ -System Idle Process 0 Console 0 28 KB -System 4 Console 0 236 KB -smss.exe 592 Console 0 432 KB -csrss.exe 656 Console 0 4 404 KB -winlogon.exe 680 Console 0 2 792 KB -services.exe 724 Console 0 3 260 KB - -** netstat.exe. - - cmd> netstat -o -Type Local addr Remote addr State PID -TCP user:1154 localhost:1153 ESTABLISHED 1512 -TCP user:5152 localhost:1052 CLOSE_WAIT 1524 -TCP user:1036 services.int:5222 ESTABLISHED 1188 - -* Sysinternals. - - +-*- mode: outline -*- + +* Dependency Walker. + +Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows +module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of +all dependent modules. For each module found, it lists all the functions that +are exported by that module, and which of those functions are actually being +called by other modules. Another view displays the minimum set of required +files, along with detailed information about each file including a full path +to the file, base address, version numbers, machine type, debug information, +and more. + +See + + http://www.dependencywalker.com/ + +* Kill process. + +** tskill.exe. + + cmd> tskill {|} + +** taskkill.exe. + + cmd> taskkill /IM notepad.exe + cmd> taskkill /PID 827 + +* lsof for Windows. + +** handle.exe from Sysinternals. + + cmd> handle d:\home +ispell.exe pid: 244 784: D:\home\drivers\token_api\src +Far.exe pid: 432 10C: D:\home\drivers\token_api + + cmd> handle -p 1265 + C: File (RW-) C:\Program Files\Common Files\GTK\2.0\bin +288: Section \BaseNamedObjects\mmGlobalPnpInfo + +** TaskList.exe. + + cmd> TaskList +Process Name PID Session Name #Session Memory +========================= ====== ================ ======== ============ +System Idle Process 0 Console 0 28 KB +System 4 Console 0 236 KB +smss.exe 592 Console 0 432 KB +csrss.exe 656 Console 0 4 404 KB +winlogon.exe 680 Console 0 2 792 KB +services.exe 724 Console 0 3 260 KB + +** netstat.exe. + + cmd> netstat -o +Type Local addr Remote addr State PID +TCP user:1154 localhost:1153 ESTABLISHED 1512 +TCP user:5152 localhost:1052 CLOSE_WAIT 1524 +TCP user:1036 services.int:5222 ESTABLISHED 1188 + +* Sysinternals. + + diff -r 4640d2bef0f0 -r 3c011ac42f1c java.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java.rst Sat Aug 01 22:27:54 2009 +0300 @@ -0,0 +1,16 @@ +-*- outline -*- + +* Class version. + +See value of 6 and 8 bytes in .class file: + + {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 diff -r 4640d2bef0f0 -r 3c011ac42f1c swap.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/swap.rst Sat Aug 01 22:27:54 2009 +0300 @@ -0,0 +1,20 @@ +-*- outline -*- + +* Enable swap in file. + +Create large file and set up a Linux swap area, enable file for paging and swapping: + + $ dd if=/dev/zero of=/swapfile bs=1024 count=524288 + $ mkswap -v1 /swapfile + $ sudo swapon /swapfile + $ sync + +Insure that all fine: + + $ dmesg | tail + ... + $ cat /proc/swaps + ... + +Add line to /etc/fstab: +/swapfile swap swap defaults 0 0