# HG changeset patch # User Oleksandr Gavenko # Date 1248694666 -10800 # Node ID 16a1467d7aaa5b7bc4444fe133bd744bc110c09e # Parent 775d7e91dc65e028c25f1e3c3d5cb44c0db3b6fa# Parent fbffcf6cb7721ccd4945cb78a03bcb6eab878a37 merged diff -r fbffcf6cb772 -r 16a1467d7aaa blog.rst --- a/blog.rst Mon Jul 20 11:00:08 2009 +0300 +++ b/blog.rst Mon Jul 27 14:37:46 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 fbffcf6cb772 -r 16a1467d7aaa bluetooth.rst --- a/bluetooth.rst Mon Jul 20 11:00:08 2009 +0300 +++ b/bluetooth.rst Mon Jul 27 14:37:46 2009 +0300 @@ -16,9 +16,9 @@ hci0 00:03:C9:05:65:98 hci1 00:1F:81:00:02:5A -or +or (hciconfig placed in /usr/sbin, so see you PATH!) - $ sudo hciconfig -a + $ hciconfig -a hci0: Type: USB BD Address: 00:03:C9:05:65:98 ACL MTU: 1017:8 SCO MTU: 64:0 UP RUNNING PSCAN @@ -57,6 +57,30 @@ Scanning ... 00:22:66:D1:B7:20 Nokia 5320 +In order to do this remote device must be set "visible". + +** How to set bluetooth dongle "visible"? + + $ hciconfig -a | grep hci.: +hci0: Type: USB + $ sudo hciconfig hci0 piscan + +** How to determine bluetooth dongle is "visible"? + +Run hciconfig -a and see for PSCAN and ISCAN keyword: + + $ hciconfig -a +hci0: Type: USB +... + UP RUNNING PSCAN ISCAN +... + +then try from another host: + + $ hcitool scan + +or use another device such as phone to search. + ** What version of Bluetooth support local device? $ sudo hciconfig -a @@ -98,6 +122,10 @@ http://www.bluez.org/ bluez home page +* Remote control throw mobile. + + http://anyremote.sourceforge.net/docs.html + * Spec. See diff -r fbffcf6cb772 -r 16a1467d7aaa devel-windows.rst --- a/devel-windows.rst Mon Jul 20 11:00:08 2009 +0300 +++ b/devel-windows.rst Mon Jul 27 14:37:46 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 fbffcf6cb772 -r 16a1467d7aaa dict.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dict.rst Mon Jul 27 14:37:46 2009 +0300 @@ -0,0 +1,18 @@ +-*- outline -*- + +* StarDict. + + + +See + + http://sourceforge.net/projects/sdcv/ + +** sdcv. + +sdcv is the command line version of StarDict. + +See + + http://sdcv.sourceforge.net/ + http://en.wikipedia.org/wiki/Sdcv diff -r fbffcf6cb772 -r 16a1467d7aaa font.rst --- a/font.rst Mon Jul 20 11:00:08 2009 +0300 +++ b/font.rst Mon Jul 27 14:37:46 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 fbffcf6cb772 -r 16a1467d7aaa fvwm.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fvwm.rst Mon Jul 27 14:37:46 2009 +0300 @@ -0,0 +1,7 @@ +-*- outline -*- + +* FVWM Themes. + +See + + http://fvwm-themes.sourceforge.net/ diff -r fbffcf6cb772 -r 16a1467d7aaa game.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/game.rst Mon Jul 27 14:37:46 2009 +0300 @@ -0,0 +1,19 @@ +-*- mode: outline; coding: utf-8 -*- + +* Shuter. + +** Linux. + +*** Wolfenstein: Enemy Territory. + +*** UT2004 (Unreal Tournament). + +Unreal Tournament 2004 is closed source, but it's one of the few commercial +games which also provide a native Linux port. + +*** Quake 3. + +Game was licensed under the GPL in 2005. ioQuake 3 continued development to +Quake 3, fixing bugs and bringing new improvements to this true classic game. + +*** Urban Terror. diff -r fbffcf6cb772 -r 16a1467d7aaa hardware-listner.rst --- a/hardware-listner.rst Mon Jul 20 11:00:08 2009 +0300 +++ b/hardware-listner.rst Mon Jul 27 14:37:46 2009 +0300 @@ -6,6 +6,61 @@ $ lsusb $ lspci +** Graphics card. + +glxinfo - details about OpenGL, the Xserver, and your graphics card +glxinfo | grep direct - do you have direct 3d rendering? +glxinfo | grep vendor - graphics card vendor +lspci | grep VGA - specific graphics card model +glxgears - a simple 3d benchmark, prints frame rate to the terminal +xrandr - supported display resolutions + +** Audio. + +lspci | grep Audio - audio controller +aplay --list-devices - more audio device information + +** Software versions. +cat /etc/issue - current distribution and version +apt-cache showpkg packagename - packagename’s version and dependencies +uname -r - Linux kernel version +uname -a - all kernel details + +** Networking. + +lspci | grep Ethernet - Ethernet controllers +ifconfig - networking interfaces, IP addresses, and more + +** Processor. + +cat /proc/cpuinfo - all processors, clock speeds, flags, and more +cat /proc/loadavg - processor load average for the last 1, 5, and 15 minutes +top - press C key to sort processes by CPU usage + +** Memory. + +cat /proc/meminfo - amount of RAM and swap, and how much is being used for what +free -m - total, used, and free memory shown in MB +top - press M key to sort processes by memory usage + +** Hard disks. + +df -H - partitions, as well as their mount-points and usage in GB +sudo fdisk -l - all partitions, their device names, and positions on disk + +** USB devices. + +lsusb - USB buses and attached devices + +** Even more. + +lshal -m - monitor for hardware changes +lspci - all PCI devices +hwinfo --short (install from package hwinfo) - overview of all hardware, as well as more detailed info +lshw - another program for listing hardware +lshw -html | w3m -T text/html - lists hardware with HTML output in the w3m web browser +uptime - current time elapsed since last reboot, users, and load average + ** Debian. $ sudo apt-get install lshw diff -r fbffcf6cb772 -r 16a1467d7aaa irc.rst --- a/irc.rst Mon Jul 20 11:00:08 2009 +0300 +++ b/irc.rst Mon Jul 27 14:37:46 2009 +0300 @@ -2,15 +2,110 @@ * What are IRC client for emacs? +Most preferred is erc - it is powerful and comes with Emacs since 22.1 +version. + See: http://www.emacswiki.org/emacs/InternetRelayChat. - * erc, see: + * erc http://www.emacswiki.org/emacs/ERC + * rcirc + http://www.emacswiki.org/emacs/rcirc + * ZenIRC, see: http://www.emacswiki.org/emacs/ZenIRC -* How register on freenode? +* Channel modes. + +** Invite-Only channel. + +An Invite-Only channel can only be joined if you are invited by one of its +channel operators. + +To make your channel invite-only: + + irc> /mode #channel +i + +To invite users to the channel: + + irc> /invite user #channel + +** Private channels. + +Private channels turn up normally in the channels list. People can see you are +on a private channel somewhere, but they can never find out on -which- private +channel you are unless they search all (private) channels by brute force. + +To make your channel private: + + irc> /mode #channel +p + +** Secret channels. + +Secret channels do not show up in a channels list and you cannot find out its +topic unless you join it. If you are on a secret channel, someone who is not +on the same channel can't see that you are there. + +To make your channel secret: + + irc> /mode #channel +s + +* How make chanal for private discuss? + +Create new channel and set it invite-only and invite all you need. Or make +password protected channel. + +Create new channel (by joining to non existed one) with password: + + irc> /join # + +Another people join same: -Go to http://freenode.net/faq.shtml#nicksetup. + irc> /join # + +Or join without password and setup it late: + + irc> /join # + irc> /mode +k + +Don't forget set topic for newly created channel: + + irc> /topic # + +* What server well know? + +Random server (connect to most near placed): + + irc.freenode.net + http://freenode.net/ + irc.wyldryde.org + http://www.wyldryde.org/ + +* Freenode. + +** How register on freenode? + irc> /msg nickserv register +...get mail, make mail instructions... + irc> /msg nickserv set hidemail on + +** Adding alternative nick. + +After nick setup change nick: + + irc> /nick foo_ + irc> /msg nickserv group + +See + + http://freenode.net/faq.shtml#registering + http://freenode.net/faq.shtml#nicksetup. + +* Getting help + + /help + /msg nickserv help + /msg chanserv help + +/msg chanserv access #icfp-contest list diff -r fbffcf6cb772 -r 16a1467d7aaa licence.rst --- a/licence.rst Mon Jul 20 11:00:08 2009 +0300 +++ b/licence.rst Mon Jul 27 14:37:46 2009 +0300 @@ -109,3 +109,40 @@ Zlib/libpng License - Zope Public License 2.0/2.1 +* Copyright low. + +See + + http://en.wikipedia.org/wiki/List_of_parties_to_international_copyright_treaties + List of parties to international copyright agreements. + +** Berne Convention for the Protection of Literary and Artistic Works. + +Came into force 1887-12-05. + + http://www.wipo.int/treaties/en/ShowResults.jsp?lang=en&treaty_id=15 + List of country where Berne convention in force. + +** Universal Copyright Convention, Geneva Act (UCC Geneva). + +Came into force 1955-09-16. + +** Universal Copyright Convention, Paris Act (UCC Paris). + +Came into force 1974-07-10. + +** World Intellectual Property Organization Copyright Treaty. + + http://www.wipo.int/treaties/en/ip/wct/trtdocs_wo033.html + Text of convention. + http://www.wipo.int/treaties/en/ShowResults.jsp?lang=en&treaty_id=16 + List of country where WTC convention in force. + +** Agreement on Trade-Related Aspects of Intellectual Property Rights (TRIPS) + +Membership in TRIPS coincides with membership in the World Trade Organization. + + http://www.wto.org/english/docs_e/legal_e/27-trips_01_e.htm + Text of convention. + http://en.wikipedia.org/wiki/Agreement_on_Trade-Related_Aspects_of_Intellectual_Property_Rights + diff -r fbffcf6cb772 -r 16a1467d7aaa selections.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/selections.rst Mon Jul 27 14:37:46 2009 +0300 @@ -0,0 +1,28 @@ +-*- mode: outline; coding: utf-8 -*- + +* MS Windows. + +* X Windows. + +X11 selection transfers (which both PRIMARY and CLIPBOARD are instances of) +are done through synthesized X11 events and properties changes. + +The messages used to transfer the selections have a maximum size that's +actually quite low (a few kilobytes). + +See + + http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt + http://www.jwz.org/doc/x-cut-and-paste.html + http://en.wikipedia.org/wiki/X_Window_selection + http://www.emacswiki.org/cgi-bin/wiki/CopyAndPaste + +** xclipboard. + +The xclipboard command emulates the traditional Macintosh style clipboard by +claiming ownership of the CLIPBOARD selection and answering any requests for +its value. When it loses the selection, it immediately asks the new owner for +the value of the CLIPBOARD selection, makes a local copy, and then reasserts +ownership of the CLIPBOARD. This way the clipboard contents can persist after +the original application has exited. + diff -r fbffcf6cb772 -r 16a1467d7aaa swap.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/swap.rst Mon Jul 27 14:37:46 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 fbffcf6cb772 -r 16a1467d7aaa x.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/x.rst Mon Jul 27 14:37:46 2009 +0300 @@ -0,0 +1,8 @@ +-*- mode: outline; coding: utf-8 -*- + +* Standard. + +See + + http://www.tronche.com/gui/x/icccm/ + diff -r fbffcf6cb772 -r 16a1467d7aaa xorg.rst --- a/xorg.rst Mon Jul 20 11:00:08 2009 +0300 +++ b/xorg.rst Mon Jul 27 14:37:46 2009 +0300 @@ -22,3 +22,47 @@ EndSection 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: + + $ xdpyinfo | grep dimensions: +dimensions: 1280x1024 pixels (382x302 millimeters) + +From this dimensions calculated your display dpi resolution: + + $ xdpyinfo | grep resolution: +resolution: 85x86 dots per inch + +To set dimensions edit '/etc/X11/xorg.conf' (size in mm): + + $ cat /etc/X11/xorg.conf +... +Section "Monitor" +... + 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 +