# HG changeset patch # User Oleksandr Gavenko # Date 1248694633 -10800 # Node ID 775d7e91dc65e028c25f1e3c3d5cb44c0db3b6fa # Parent 8aa1d5c18313ec2e6f30a5a0c8c69ac37e7ec909# Parent e475cd4f789ae9ffc403affa889bf2892054f82a merged diff -r 8aa1d5c18313 -r 775d7e91dc65 blog.rst --- a/blog.rst Tue Jul 07 09:30:20 2009 +0300 +++ b/blog.rst Mon Jul 27 14:37:13 2009 +0300 @@ -5,3 +5,28 @@ See http://code.google.com/p/e-blog/ + +* Livejornal. + +** Feed. + +See + + http://www.livejournal.com/support/faqbrowse.bml?faqid=149 + +*** Journal Feed URLs. + + * Atom: http://NAME.livejournal.com/data/atom + * RSS: http://NAME.livejournal.com/data/rss + +*** Community Feed URLs. + + * Atom: http://community.livejournal.com/NAME/data/atom + * RSS: http://community.livejournal.com/NAME/data/rss + +*** Tagged Entries. + +View entries with a specific tag by adding ?tag=tagname to the end of the feed +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. + diff -r 8aa1d5c18313 -r 775d7e91dc65 devel-windows.rst --- a/devel-windows.rst Tue Jul 07 09:30:20 2009 +0300 +++ b/devel-windows.rst Mon Jul 27 14:37:13 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 8aa1d5c18313 -r 775d7e91dc65 font.rst --- a/font.rst Tue Jul 07 09:30:20 2009 +0300 +++ b/font.rst Mon Jul 27 14:37:13 2009 +0300 @@ -3,6 +3,7 @@ * How see installed font for X window. $ fontsel & + $ gucharmap & * Setup font for emacs. @@ -21,6 +22,38 @@ $ xterm -fn "-misc-fixed-medium-r-*-*-18-*-*-*-*-*-iso10646-1" -geometry 120x42 -e mc -x +* Fonts family. + +See + + http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=FontsInCyberspace&_sc=1 + +** DejaVu. + +The DejaVu fonts are a font family based on the Vera Fonts. + +See + + http://dejavu-fonts.org/wiki/index.php?title=Main_Page + +*** Debian. + + $ sudo apt-get install ttf-dejavu + +** IPA. + +See + + http://scripts.sil.org/DoulosSILfont + http://scripts.sil.org/CharisSILfont + http://scripts.sil.org/Gentium + +*** Debian. + + $ sudo apt-get install ttf-sil-doulos + $ sudo apt-get install ttf-sil-charis + $ sudo apt-get install ttf-gentium + * How configure font for X? ** Debian. diff -r 8aa1d5c18313 -r 775d7e91dc65 swap.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/swap.rst Mon Jul 27 14:37:13 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 diff -r 8aa1d5c18313 -r 775d7e91dc65 xorg.rst --- a/xorg.rst Tue Jul 07 09:30:20 2009 +0300 +++ b/xorg.rst Mon Jul 27 14:37:13 2009 +0300 @@ -23,6 +23,14 @@ Time measure in minute. +To enable this configuration you must set "DPMS" option in "Monitor" section: + + Section "Monitor" +... + Option "DPMS" +... + EndSection + * Set display dimensions. To see currect settings type: @@ -44,3 +52,17 @@ DisplaySize width height ... EndSection + +** Overriding EDID Settings for NVidia cards. + +If you're using NVIDIA display drivers version 8756 or above and your monitor +reports an EDID DPI value, you must tell the drivers to ignore this value as +it takes precedence over all the above configuration options/arguments: + +Section "Monitor" +... + DisplaySize width height + Option "UseEdidDpi" "false" +... +EndSection +