# HG changeset patch # User Oleksandr Gavenko # Date 1289341138 -7200 # Node ID 6413021852a2da063e9d17d487b9342e5bbb7ae0 # Parent 07f96799cb19331c182e6dac16dbe583e379ef29# Parent 0ac1323ba71500ca69323022afd7be7bf70d074c merged diff -r 07f96799cb19 -r 6413021852a2 devel-ideal-proj.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/devel-ideal-proj.rst Wed Nov 10 00:18:58 2010 +0200 @@ -0,0 +1,81 @@ +-*- mode: outline; coding: utf-8 -*- + + Ideal software development model. + + +* Open source. + +Open source development have much freedom select any development model. + + +* Close source. + +Close source sortware development restrict in using models, technic or +software resources; restrict their public appear because of its proprietary +nature. + +In many case you can not directly contact with developers (only through +support). You can not access to product bug tracing system (you only can +submit bug via crash report application or technical support); publicly appear +internal bug tracing can damage product reputation. Internal +architecture/protocol description can drop leading product position (allowing +another party get same product and get company money). + +* Component. + + * Docs. + * VCS. + * Bug track. + * News. + +** Docs. + +Documentation must provide: + +** Home page. + +Home page must provide: + + * project name + * short info about project goal + * project licence (COPYING) + * currect project status + * links to binary release + * links to source release, how to get latest source from VCS + * links to online/printed docs + * how report bug (BUGS) + * where send patch + * contact info + +Additionally: + + * help welcome, requirement to join to project + * mail/news list for users/developers, how to subscribe/unsubscribe, where + find archive, how search for keyword in archive + * project history (NEWS, ChangeLog) + * project policy (HACKING) + * how build project (README, INSTALL) + * list of contributor with contact info (MAINTAINERS, AUTHORS) + * who use project + +** VCS. + +TAGS: VCS, version control system, SCM, source code management, DVCS, + distributed version control system. + + * CVS + * SVN + * Mercurial (hg) + * git + * bazaar + +*** CVS + +*** SVN + +*** Mercurial (hg) + +*** git + +*** bazaar + diff -r 07f96799cb19 -r 6413021852a2 devel-windows.rst --- a/devel-windows.rst Tue Nov 09 18:02:57 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,223 +0,0 @@ --*- 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/ - -* Windows 2000 Resource Kit Tools. - - http://support.microsoft.com/kb/927229 - Windows 2000 Resource Kit Tools for administrative tasks - -* Sysinternals. - -TODO - -* Application verifier. - - http://www.microsoft.com/downloads/en/details.aspx?familyid=c4a25ab9-649d-4a1b-b4a7-c9d8b095df18 - download page - http://msdn.microsoft.com/en-us/library/ms220948.aspx - Application Verifier - -* Running at startup. - - HKCU\Software\Microsoft\Windows\CurrentVersion\Run - Launches a program automatically when a particular user logs - in. This key is used when you always want to launch a program - when a particular user is using a system. - HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce - Launches a program the next time the user logs in and removes - its value entry from the registry. This key is typically used - by installation programs. - HKLM\Software\Microsoft\Windows\CurrentVersion\Run - Launches a program automatically at system startup. This key - is used when you always want to launch a program on a - particular system. - HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce - Launches a program the next time the system starts and removes - its value entry from the registry. This key is typically used - by installation programs. - HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices - Launches a service (a standard NT service or a background - process) automatically at startup. An example of a service is - a Web server such as Microsoft Internet Information Server. - HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce - Launches a service (a standard NT service or a background - process) the next time the system is started, then removes its - value entry from the registry. - -Values to registry on Windows XP can be added by: - - cmd> reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v run.bat /t REG_SZ /d "path\to\run.bat" - cmd> reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run <-- see what done - -* MFC. - -** Can I link to MFC statically. - -Yes. - - http://msdn.microsoft.com/en-us/library/f22wcbea%28VS.80%29.aspx - -* Microsoft Visual C++ Redistributable Package. - - http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displayLang=en - This package installs runtime components of C Runtime (CRT), - Standard C++, ATL, MFC, OpenMP and MSDIA libraries. - -* Cabinet file (.cab). - - http://support.microsoft.com/kb/198038 - INFO: Useful Tools for Package and Deployment Issues - http://msdn.microsoft.com/en-us/library/aa367841%28VS.85%29.aspx - The Makecab.exe utility is included in the Windows SDK - Components for Windows Installer Developers. - http://web.archive.org/web/20070403215326/http://download.microsoft.com/download/platformsdk/cab/2.0/w98nt42kmexp/en-us/cabsdk.exe - download link from web archive - http://msdn.microsoft.com/en-us/library/aa370834%28v=VS.85%29.aspx - The components of the Windows Installer Software Development - Kit are included in the Microsoft Windows Software Development - Kit (SDK). - http://msdn.microsoft.com/en-us/library/bb417343.aspx - Microsoft Cabinet Format - -* Internet Explorer. - -** Debugging. - -Install IE 8.0 and press 'F12' key. - - http://msdn.microsoft.com/library/dd565626.aspx - Developer Tools User Interface Reference - -* Microsoft technologies. - -** COM. - -The family of COM technologies includes COM+, Distributed COM (DCOM) and ActiveX Controls. - - http://www.microsoft.com/com/default.mspx - home page - -** OLE. - -OLE (Object Linking and Embedding) allows embedding and linking to documents and other objects. - -OLE 1.0 released in 1990, OLE 2.0 released in 1993, in 1994 OLE custom controls (OCXs) were -introduced. - -OLE objects and containers are implemented on top of the Component Object Model. - -Next release after 2.0 introdused in 1996 and named as ActiveX. - - http://en.wikipedia.org/wiki/Object_Linking_and_Embedding - -** ActiveX. - -Faced with the complexity of OLE 2.0 and with poor support for COM in MFC, Microsoft rationalized -the specifications to make them simpler, and rebranded the technology as ActiveX in 1996. - - http://msdn.microsoft.com/en-us/library/aa751968.aspx - ActiveX Controls - http://en.wikipedia.org/wiki/ActiveX - -** ATL. - -The Active Template Library (ATL) is a set of template-based C++ classes developed by Microsoft, -intended to simplify the programming of Component Object Model (COM) objects. - - http://en.wikipedia.org/wiki/Active_Template_Library - -** MFC. - -MFC (Microsoft Foundation Classes) is a library that wraps portions of the Windows API in C++ -classes, including functionality that enables them to use a default application framework. Classes -are defined for many of the handle-managed Windows objects and also for predefined windows and -common controls. - -A lightweight alternative to MFC is the Windows Template Library (WTL). - - http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library - http://ru.wikipedia.org/wiki/Microsoft_Foundation_Classes - -** WTL. - -WTL (Windows Template Library) is a free software, object-oriented C++ template library for Win32 -development. - -WTL provides support for implementing various user interface elements, to MDI, standard and common -controls, common dialogs, property sheets and pages, GDI objects, and other common UI elements, such -as scrollable windows, splitter windows, toolbars and command bars. - -Most of the WTL API is a mirror of the standard Win32 calls. - - http://sourceforge.net/projects/wtl - http://en.wikipedia.org/wiki/Windows_Template_Library - -* Windows style variable names. - - Prefix | Data type - ---------+----------------------------------------- - b | boolean - by | byte or unsigned char - c | char - cx / cy | short used as size - dw | DWORD, double word or unsigned long - fn | function - h | handle - i | int (integer) - l | Long - n | short int - p | a pointer variable containing the address of a variable - s | string - sz | ASCIIZ null-terminated string - w | WORD unsigned int - x, y | short used as coordinates - - PrefixCategory | Mean - ----------------+---------------- - CS | Class style - CW | Create window - DT | Draw text - IDC | Cursor ID - IDI | Icon ID - WM | Window message - WS | Window style - - Data type | Meaning - ----------+------------------------------------------------------------------- - FAR | Same as far. Identifies an address that originally used the - | segment:offset addressing schema. Now FAR simply identifies a - | (default) 32-bit address but may be omitted entirely in many cases. - | - PASCAL | Same as Pascal. The Pascal convention demanded by Windows - | defines the order in which arguments are found in the stack when - | passed as calling parameters. - | - WORD | Unsigned integer (16 bits) - | - UINT | Unsigned integer, same as WORD - | - DWORD | Double word, unsigned long int (32 bits) - | - LONG | Signed long integer (32 bits) - | - LPSTR | Long (far) pointer to character string - | - NEAR | Obsolete, previously identified an address value within a 16KB - | memory block. - - http://www.tenouk.com/cnotation.html - C/C++ NOTATION STORY diff -r 07f96799cb19 -r 6413021852a2 firefox-devel.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox-devel.rst Wed Nov 10 00:18:58 2010 +0200 @@ -0,0 +1,59 @@ +-*- mode: outline; coding: utf-8; fill-column: 90 -*- + +* Setting up environment. + +In 'about:config' set this variable: + + javascript.options.showInConsole = true + Logs errors in chrome files to the Error Console. + javascript.options.strict = true + Enables strict JavaScript warnings in the Error Console. + extensions.logging.enabled = true + This will send more detailed information about installation and update + problems to the Error Console. + + https://developer.mozilla.org/en/Setting_up_extension_development_environment + setting up profile, options and about developer plugin + +* Useful developer plugin. + +** Firebug. + +Firebug integrates with Firefox to put a wealth of development tools at your fingertips +while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any +web page. + + http://getfirebug.com + home page + https://addons.mozilla.org/firefox/addon/1843 + download page + +** Live HTTP Headers. + + * First by adding a 'Headers' tab in 'View Page Info' of a web page. + * Second by adding a tool in the 'Tools->Web Development' menu to be able to display http + headers in real time (while pages are being downloaded from the Internet. + * Third by letting you edit request headers and replay an URL (beta). Look for the Replay + button in the live window! + +This project may be of some help for the following: + + * Help debugging web application. + * See which kind of web server the remote site is using. + * See the cookies sent by remote site. + + http://livehttpheaders.mozdev.org/ + home page + https://addons.mozilla.org/en-US/firefox/addon/3829/ + download page + +* How build Firefox. + + https://developer.mozilla.org/en/Build_Documentation + Build Instructions + https://developer.mozilla.org/en/Mozilla_Source_Code_%28Mercurial%29 + Getting Mozilla Source Code Using Mercurial + +* Extension security. + + https://developer.mozilla.org/en/Security_best_practices_in_extensions diff -r 07f96799cb19 -r 6413021852a2 hg.rst --- a/hg.rst Tue Nov 09 18:02:57 2010 +0200 +++ b/hg.rst Wed Nov 10 00:18:58 2010 +0200 @@ -1,6 +1,11 @@ -*- mode: outline; coding: utf-8 -*- -* Useful customization. +* About. + + http://mercurial.selenic.com/wiki/ProjectsUsingMercurial + Some Projects that Use Mercurial + +* User config. Put to your ~/.hgrc: @@ -50,6 +55,114 @@ [defaults] log = -f +* Publishing repo. + +With static HTTP hosting you can copy via rsync, ftp, scp, etc., so long as all the files beneath +.hg are copied. Also since 1.1 pull protocol can detect static HTTP hosting: + + $ hg clone http://example.com/project + + http://mercurial.selenic.com/wiki/hgserve + http://mercurial.selenic.com/wiki/HgWebDirStepByStep + http://mercurial.selenic.com/wiki/StaticHTTP + +** hgweb.config. + +Set allowed project by specifying paths to they (keys are URL, values are fs paths): + + [paths] + myproject = /home/user/hg/myproject + otherproject = /home/user/hg/otherproject + +You can use single wildcard '*' to search current subdirs or double wildcard '**' to search subdirs +recursively: + + [paths] + myproject = /home/user/hg/my/* + otherproject = /home/user/hg/other/** + +Alternatively you can set a collection of repos (keys and values are both filesystem paths, keys +should be prefixes of the values and are "subtracted" from the values in order to generate the URL +paths to each repository): + + [collections] + /home/user/hg = /home/user/hg + /home/another/hg = /home/another/hg + +Allow archive downloads: + + [web] + allow_archive = gz, zip, bz2 + +Make web page look nice: + + [web] + # Use 'cd /lib/python2.x/site-packages/mercurial/templates; find . -type d' to see available + # styles. Some interesting: gitweb, coal, monoblue. + style = gitweb + +Set another settings: + + [web] + encoding = UTF-8 + + maxchanges = 100 + maxfiles = 100 + +In each $proj/.hg/hgrc put: + + [web] + contact = ADMIN + description =

$proj allow make a BIG Thing. + # Do not use name, in this case you see dir name where project lcated. + # name = $proj + +To allow push in 'hg serv': + + [web] + allow_push = * + push_ssl = false + + http://mercurial.selenic.com/wiki/PublishingRepositories + Publishing Mercurial Repositories + +** init.d script. + + #!/bin/sh + CMD=/usr/bin/hg + + PORT=7878 + SRC=/srv/hg + CONGIG=/srv/hg/hgweb.config + PIDFILE=/var/run/hg.pid + + case "$1" in + start) + echo "Mecurial Server service starting." + (cd "$SRC"; $CMD serve -d -p $PORT --pid-file "$PIDFILE") + ;; + stop) + if [ -f "$PIDFILE" ]; then + PID=`cat "$PIDFILE"` + if [ "$PID" -gt 1 ]; then + kill -TERM $PID + echo "Stopping the Mercurial service PID=$PID." + else + echo Bad PID for Mercurial -- \"$PID\". + echo You may remove \"$PIDFILE\" manually. + fi + else + echo No PID file recorded for mercurial. + fi + ;; + *) + echo "$0 {start|stop}" + exit 1 + ;; + esac + + http://mercurial.selenic.com/wiki/hgserve + * Manage patches with MQ. First enable MQ, add following to your ~/.hgrc: @@ -132,3 +245,8 @@ $ hg clone --config http_proxy.host=$host:$port \ --config http_proxy.user=$user --config http_proxy.passwd=$password $addr + +* Free Mercurial hosting. + + http://mercurial.selenic.com/wiki/MercurialHosting + Free Hosting of Mercurial Repositories diff -r 07f96799cb19 -r 6413021852a2 ideal-devel-proj.rst --- a/ideal-devel-proj.rst Tue Nov 09 18:02:57 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,81 +0,0 @@ --*- mode: outline; coding: utf-8 -*- - - Ideal software development model. - - -* Open source. - -Open source development have much freedom select any development model. - - -* Close source. - -Close source sortware development restrict in using models, technic or -software resources; restrict their public appear because of its proprietary -nature. - -In many case you can not directly contact with developers (only through -support). You can not access to product bug tracing system (you only can -submit bug via crash report application or technical support); publicly appear -internal bug tracing can damage product reputation. Internal -architecture/protocol description can drop leading product position (allowing -another party get same product and get company money). - -* Component. - - * Docs. - * VCS. - * Bug track. - * News. - -** Docs. - -Documentation must provide: - -** Home page. - -Home page must provide: - - * project name - * short info about project goal - * project licence (COPYING) - * currect project status - * links to binary release - * links to source release, how to get latest source from VCS - * links to online/printed docs - * how report bug (BUGS) - * where send patch - * contact info - -Additionally: - - * help welcome, requirement to join to project - * mail/news list for users/developers, how to subscribe/unsubscribe, where - find archive, how search for keyword in archive - * project history (NEWS, ChangeLog) - * project policy (HACKING) - * how build project (README, INSTALL) - * list of contributor with contact info (MAINTAINERS, AUTHORS) - * who use project - -** VCS. - -TAGS: VCS, version control system, SCM, source code management, DVCS, - distributed version control system. - - * CVS - * SVN - * Mercurial (hg) - * git - * bazaar - -*** CVS - -*** SVN - -*** Mercurial (hg) - -*** git - -*** bazaar - diff -r 07f96799cb19 -r 6413021852a2 intellectual.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/intellectual.rst Wed Nov 10 00:18:58 2010 +0200 @@ -0,0 +1,7 @@ +-*- mode: outline -*- + +* WIPO (World Intellectual Property Organization). + + http://www.wipo.int/wipolex/en/profile.jsp?code=UA + Ukraine related lows. + diff -r 07f96799cb19 -r 6413021852a2 noise.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/noise.rst Wed Nov 10 00:18:58 2010 +0200 @@ -0,0 +1,54 @@ +-*- mode: outline; coding: utf-8 -*- + +* Таблица уровней шума. + +дБ | Описание/Аналогия +----+--------------------------------------------- +200 | Смерть. +160 | Возможен разрыв барабанных перепонок и лёгких. Ударная волна от сверхзвукового самолёта. +155 | Контузия, травмы +150 | Контузия, травмы +145 | Контузия. Старт ракеты. +140 | Контузия. Звук взлетающего реактивного самолета. +135 | Контузия. +130 | Болевой порог. Самолёт на старте. +125 | Почти невыносимо. +120 | Почти невыносимо. Отбойный молоток 1м. +115 | Крайне шумно. Пескоструйный аппарат 1м. +110 | Крайне шумно. Вертолёт, работающий трактор 1м. +105 | Крайне шумно. +100 | Крайне шумно. Оркестр, вагон метро (прерывисто), раскаты грома. + | Максимально допустимое звуковое давление для наушников плеера по европейским нормам. +95 | Очень шумно. Вагон метро 7м. +90 | Очень шумно. Громкие крики, грузовой железнодорожный вагон 7м. +85 | Очень шумно. Громкий крик, мотоцикл с глушителем. +80 | Очень шумно. Крик, мотоцикл с глушителем, двигатель грузового автомобиля. +75 | Шумно. Крик, смех 1м. +70 | Шум, который невозможно не замечать. Громкие разговоры 1м. +65 | Шумно. Громкий разговор 1м. +60 | Шумно. Норма для предприятий. +55 | Отчётливо слышно. Норма для офисных помещений класса А (по европейским нормам). +50 | Отчётливо слышно. Разговор, пишущая машинка. +40 | Довольно слышно. Обычная речь. Норма для жилых помещений, с 7 до 23 ч. +35 | Довольно слышно. Приглушенный разговор. +30 | Шепот, различимый с расстояния 5 м. +30 | Тихо. Шепот, тиканье настенных часов. Норма для жилых помещений ночью, с 23 до 7 ч. +25 | Тихо. Шепот человека 1м, тихий сад. +20 | Едва слышно. Шепот человека 1м. +15 | Едва слышно. Шелест листвы. +10 | Почти не слышно. Тихий шелест листьев. +5 | Почти не слышно. +0 | Ничего не слышно. + + http://ru.wikipedia.org/wiki/Шум + +* Srandards. + +Творческая, научная деятельность, обучение: <50 dB. +В производственных помещениях и на территории предприятия: <80 dB. + +** ГОСТ 12.1.003-83. ССБТ «Шум. Общие требования безопасности». + +** СН 2.2.4/2.1.8.562-96 «Шум на рабочих местах, в помещениях жилых, общественных зданий и на территории жилой застройки». + + diff -r 07f96799cb19 -r 6413021852a2 python.rst --- a/python.rst Tue Nov 09 18:02:57 2010 +0200 +++ b/python.rst Wed Nov 10 00:18:58 2010 +0200 @@ -1,7 +1,12 @@ --*- outline -*- +-*- mode: outline; coding: utf-8 -*- * Licence and history of Python. See http://docs.python.org/dev/license.htm + +* Byte compile .py and check for errors. + + $ python -m compileall dir + diff -r 07f96799cb19 -r 6413021852a2 search-web.rst --- a/search-web.rst Tue Nov 09 18:02:57 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,149 +0,0 @@ --*- mode: outline; coding: utf-8 -*- - -* Google search query syntax. - - http://www.google.com/support/websearch/bin/answer.py?answer=136861 - Google search basics: More search help - http://code.google.com/intl/ru/apis/soapsearch/reference.html - Google SOAP Search API Reference - http://www.google.com/cse/docs/resultsxml.html - Google WebSearch Protocol Reference for Google Site Search - http://en.wikipedia.org/wiki/Google_Search - -** Phrase Search. - -Use double quotes to search exactly mutch of string. Words marked in this way will appear together -in all results exactly as entered. - - "WORD1 WORD2 WORD3" - -Note: You may need to use a "+" to force inclusion of common words in a phrase. - -** Boolean OR Search. - -"OR" capital is essential. - - WORD1 OR WORD2 - -Remove site from search by "-site:" - - WORD1 WORD2 -site:ebay.com -site:shopping.com - -** Include query term (search exactly as is). - -If a common word is essential to getting the results you want, you can include it by putting a "+" -sign in front of it. - - +WORD WORD1 WORD2 - -** Exclude query term. - -You can exclude a word from your search by putting a minus sign ("-") immediately in front of the -term you want to exclude from the search results. - - WORD1 WORD2 -WORD - -** Fill in the blanks. - - GNU * - Mozilla * - -** Site Restricted Search. - - site:example.com WORD1 WORD2 - site:.gov WORD - -** Cached Results Page. - -The query prefix "cache:" returns the cached HTML version of the specified web document that the -Google search crawled. Note there can be no space between "cache:" and the web page URL. If you -include other words in the query, Google will highlight those words within the cached document. - - cache:www.google.com - -Use Google as a free proxy (if direct access bloked): cache:example.com - -** Title Search. - -Restricts the results to those with all of the query words in the title. - - intitle:WORD1 intitle:WORD2 WORD3 - allintitle:WORD1 WORD2 - -Note: Putting "intitle:" in front of every word in your query is equivalent to putting "allintitle:" -at the front of your query. - -** URL Search. - -If you prepend "inurl:" to a query term, Google search restricts the results to documents containing -that word in the result URL. Note there can be no space between the "inurl:" and the following word. - -Starting a query with the term "allinlinks:" restricts the results to those with all of the query -words in the URL links on the page. - - inurl:WORD1 inurl:WORD2 WORD - allinurl: WORD1 WORD2 - -Note: "inurl:" works only on words, not URL components. In particular, it ignores punctuation and -uses only the first word following the "inurl:" operator. To find multiple words in a result URL, -use the "inurl:" operator for each word. - -Note: Putting "inurl:" in front of every word in your query is equivalent to putting "allinurl:" at -the front of your query. - -** Text Only Search. - -Starting a query with the term "allintext:" restricts the results to those with all of the query -words in only the body text, ignoring link, URL, and title matches. - - allintext: WORD1 WORD2 - -** File Type Filtering. - -The query prefix "filetype:" filters the results returned to include only documents with the -extension specified immediately after. Note there can be no space between "filetype:" and the -specified extension. - - WORD filetype:doc OR filetype:pdf - -** File Type Exclusion. - -The query prefix "-filetype:" filters the results to exclude documents with the extension specified -immediately after. Note there can be no space between "-filetype:" and the specified extension. - - WORD -filetype:doc -filetype:pdf - -** Web Document Info. - -The query prefix "info:" returns a single result for the specified URL if it exists in the index. - - info:www.google.com - -Note: No other query terms can be specified when using this special query term. - -** Back Links. - -The query prefix "link:" lists web pages that have links to the specified web page. - - link:www.google.com - -Note: there can be no space between "link:" and the web page URL. - -Note: No other query terms can be specified when using this special query term. - -** Related Links. - -Lists web pages that are similar to the specified web page. - - related:www.google.com - -Note: there can be no space between "related:" and the web page URL. - -Note: No other query terms can be specified when using this special query term. - -** Word definition. - -The query prefix "define:" will provide a definition of the words listed after it. - - define:WORD - diff -r 07f96799cb19 -r 6413021852a2 thunderbird.rst --- a/thunderbird.rst Tue Nov 09 18:02:57 2010 +0200 +++ b/thunderbird.rst Wed Nov 10 00:18:58 2010 +0200 @@ -1,9 +1,11 @@ -*- outline -*- +* Customization. + + http://kb.mozillazine.org/Mail_and_news_settings + * FAQ. -See - http://www.mozilla.org/support/thunderbird/faq http://www.mozilla.org/support/thunderbird/tips http://kb.mozillazine.org/Thunderbird_:_FAQs @@ -28,7 +30,7 @@ - ~/Library/Thunderbird/Profiles/xxxxxxxx.default/ Mac OS X -** Customization. +** User editing files. These files do not exist by default, so you need to create it before you can start adding your preferences: @@ -66,3 +68,32 @@ ==> Customize ==> Customize Regional Options http://support.microsoft.com/?kbid=307938 + +* Gmail with Thunderbird. + +Tools menu ==> Account Settings ==> highlight your Gmail address. + +On the Server Settings tab: + + * Check for new messages at startup > checked + * Check for new messages every 10 minutes > checked + * When I delete a message > Mark it as deleted + * Clean up ("Expunge") Inbox on Exit > do NOT check + * Empty Trash on Exit > do NOT check + +On the Copies & Folders tab:, automatically section: + + * When sending messages ==> Place a copy in > do NOT check + * Drafts and Templates section ==> Keep message drafts in > Other > [Your Gmail address] > [Gmail] > Drafts + +On the Junk Settings tab: + + * Enable adaptive junk mail controls > do NOT check + + http://mail.google.com/support/bin/answer.py?answer=9008 + Legitimate mail is marked as spam + http://mail.google.com/support/bin/answer.py?answer=78892 + Recommended IMAP client settings + http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite + Using Gmail with Thunderbird and Mozilla Suite + diff -r 07f96799cb19 -r 6413021852a2 web-search.rst --- a/web-search.rst Tue Nov 09 18:02:57 2010 +0200 +++ b/web-search.rst Wed Nov 10 00:18:58 2010 +0200 @@ -1,10 +1,149 @@ --*- outline -*- +-*- mode: outline; coding: utf-8 -*- + +* Google search query syntax. + + http://www.google.com/support/websearch/bin/answer.py?answer=136861 + Google search basics: More search help + http://code.google.com/intl/ru/apis/soapsearch/reference.html + Google SOAP Search API Reference + http://www.google.com/cse/docs/resultsxml.html + Google WebSearch Protocol Reference for Google Site Search + http://en.wikipedia.org/wiki/Google_Search + +** Phrase Search. + +Use double quotes to search exactly mutch of string. Words marked in this way will appear together +in all results exactly as entered. + + "WORD1 WORD2 WORD3" + +Note: You may need to use a "+" to force inclusion of common words in a phrase. + +** Boolean OR Search. + +"OR" capital is essential. + + WORD1 OR WORD2 + +Remove site from search by "-site:" + + WORD1 WORD2 -site:ebay.com -site:shopping.com + +** Include query term (search exactly as is). + +If a common word is essential to getting the results you want, you can include it by putting a "+" +sign in front of it. -* Google. + +WORD WORD1 WORD2 + +** Exclude query term. + +You can exclude a word from your search by putting a minus sign ("-") immediately in front of the +term you want to exclude from the search results. + + WORD1 WORD2 -WORD + +** Fill in the blanks. + + GNU * + Mozilla * + +** Site Restricted Search. + + site:example.com WORD1 WORD2 + site:.gov WORD + +** Cached Results Page. + +The query prefix "cache:" returns the cached HTML version of the specified web document that the +Google search crawled. Note there can be no space between "cache:" and the web page URL. If you +include other words in the query, Google will highlight those words within the cached document. + + cache:www.google.com + +Use Google as a free proxy (if direct access bloked): cache:example.com + +** Title Search. + +Restricts the results to those with all of the query words in the title. + + intitle:WORD1 intitle:WORD2 WORD3 + allintitle:WORD1 WORD2 + +Note: Putting "intitle:" in front of every word in your query is equivalent to putting "allintitle:" +at the front of your query. - site:.com - site:.uoregon.edu +** URL Search. + +If you prepend "inurl:" to a query term, Google search restricts the results to documents containing +that word in the result URL. Note there can be no space between the "inurl:" and the following word. + +Starting a query with the term "allinlinks:" restricts the results to those with all of the query +words in the URL links on the page. + + inurl:WORD1 inurl:WORD2 WORD + allinurl: WORD1 WORD2 + +Note: "inurl:" works only on words, not URL components. In particular, it ignores punctuation and +uses only the first word following the "inurl:" operator. To find multiple words in a result URL, +use the "inurl:" operator for each word. + +Note: Putting "inurl:" in front of every word in your query is equivalent to putting "allinurl:" at +the front of your query. + +** Text Only Search. + +Starting a query with the term "allintext:" restricts the results to those with all of the query +words in only the body text, ignoring link, URL, and title matches. + + allintext: WORD1 WORD2 + +** File Type Filtering. + +The query prefix "filetype:" filters the results returned to include only documents with the +extension specified immediately after. Note there can be no space between "filetype:" and the +specified extension. + + WORD filetype:doc OR filetype:pdf + +** File Type Exclusion. - filetype:pdf (doc, ppt, ps, xls, rtf) +The query prefix "-filetype:" filters the results to exclude documents with the extension specified +immediately after. Note there can be no space between "-filetype:" and the specified extension. + + WORD -filetype:doc -filetype:pdf + +** Web Document Info. + +The query prefix "info:" returns a single result for the specified URL if it exists in the index. + + info:www.google.com + +Note: No other query terms can be specified when using this special query term. + +** Back Links. + +The query prefix "link:" lists web pages that have links to the specified web page. + + link:www.google.com - http://www.google.com/help/cheatsheet.html +Note: there can be no space between "link:" and the web page URL. + +Note: No other query terms can be specified when using this special query term. + +** Related Links. + +Lists web pages that are similar to the specified web page. + + related:www.google.com + +Note: there can be no space between "related:" and the web page URL. + +Note: No other query terms can be specified when using this special query term. + +** Word definition. + +The query prefix "define:" will provide a definition of the words listed after it. + + define:WORD + diff -r 07f96799cb19 -r 6413021852a2 web-semantic.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web-semantic.rst Wed Nov 10 00:18:58 2010 +0200 @@ -0,0 +1,10 @@ +-*- mode: outline; coding: utf-8 -*- + +* Sesame. + +Sesame is an open source framework for storage, inferencing and querying of +RDF data. + + http://www.openrdf.org/ + home page + diff -r 07f96799cb19 -r 6413021852a2 windows-devel.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/windows-devel.rst Wed Nov 10 00:18:58 2010 +0200 @@ -0,0 +1,223 @@ +-*- 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/ + +* Windows 2000 Resource Kit Tools. + + http://support.microsoft.com/kb/927229 + Windows 2000 Resource Kit Tools for administrative tasks + +* Sysinternals. + +TODO + +* Application verifier. + + http://www.microsoft.com/downloads/en/details.aspx?familyid=c4a25ab9-649d-4a1b-b4a7-c9d8b095df18 + download page + http://msdn.microsoft.com/en-us/library/ms220948.aspx + Application Verifier + +* Running at startup. + + HKCU\Software\Microsoft\Windows\CurrentVersion\Run + Launches a program automatically when a particular user logs + in. This key is used when you always want to launch a program + when a particular user is using a system. + HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce + Launches a program the next time the user logs in and removes + its value entry from the registry. This key is typically used + by installation programs. + HKLM\Software\Microsoft\Windows\CurrentVersion\Run + Launches a program automatically at system startup. This key + is used when you always want to launch a program on a + particular system. + HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce + Launches a program the next time the system starts and removes + its value entry from the registry. This key is typically used + by installation programs. + HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices + Launches a service (a standard NT service or a background + process) automatically at startup. An example of a service is + a Web server such as Microsoft Internet Information Server. + HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce + Launches a service (a standard NT service or a background + process) the next time the system is started, then removes its + value entry from the registry. + +Values to registry on Windows XP can be added by: + + cmd> reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v run.bat /t REG_SZ /d "path\to\run.bat" + cmd> reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run <-- see what done + +* MFC. + +** Can I link to MFC statically. + +Yes. + + http://msdn.microsoft.com/en-us/library/f22wcbea%28VS.80%29.aspx + +* Microsoft Visual C++ Redistributable Package. + + http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displayLang=en + This package installs runtime components of C Runtime (CRT), + Standard C++, ATL, MFC, OpenMP and MSDIA libraries. + +* Cabinet file (.cab). + + http://support.microsoft.com/kb/198038 + INFO: Useful Tools for Package and Deployment Issues + http://msdn.microsoft.com/en-us/library/aa367841%28VS.85%29.aspx + The Makecab.exe utility is included in the Windows SDK + Components for Windows Installer Developers. + http://web.archive.org/web/20070403215326/http://download.microsoft.com/download/platformsdk/cab/2.0/w98nt42kmexp/en-us/cabsdk.exe + download link from web archive + http://msdn.microsoft.com/en-us/library/aa370834%28v=VS.85%29.aspx + The components of the Windows Installer Software Development + Kit are included in the Microsoft Windows Software Development + Kit (SDK). + http://msdn.microsoft.com/en-us/library/bb417343.aspx + Microsoft Cabinet Format + +* Internet Explorer. + +** Debugging. + +Install IE 8.0 and press 'F12' key. + + http://msdn.microsoft.com/library/dd565626.aspx + Developer Tools User Interface Reference + +* Microsoft technologies. + +** COM. + +The family of COM technologies includes COM+, Distributed COM (DCOM) and ActiveX Controls. + + http://www.microsoft.com/com/default.mspx + home page + +** OLE. + +OLE (Object Linking and Embedding) allows embedding and linking to documents and other objects. + +OLE 1.0 released in 1990, OLE 2.0 released in 1993, in 1994 OLE custom controls (OCXs) were +introduced. + +OLE objects and containers are implemented on top of the Component Object Model. + +Next release after 2.0 introdused in 1996 and named as ActiveX. + + http://en.wikipedia.org/wiki/Object_Linking_and_Embedding + +** ActiveX. + +Faced with the complexity of OLE 2.0 and with poor support for COM in MFC, Microsoft rationalized +the specifications to make them simpler, and rebranded the technology as ActiveX in 1996. + + http://msdn.microsoft.com/en-us/library/aa751968.aspx + ActiveX Controls + http://en.wikipedia.org/wiki/ActiveX + +** ATL. + +The Active Template Library (ATL) is a set of template-based C++ classes developed by Microsoft, +intended to simplify the programming of Component Object Model (COM) objects. + + http://en.wikipedia.org/wiki/Active_Template_Library + +** MFC. + +MFC (Microsoft Foundation Classes) is a library that wraps portions of the Windows API in C++ +classes, including functionality that enables them to use a default application framework. Classes +are defined for many of the handle-managed Windows objects and also for predefined windows and +common controls. + +A lightweight alternative to MFC is the Windows Template Library (WTL). + + http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library + http://ru.wikipedia.org/wiki/Microsoft_Foundation_Classes + +** WTL. + +WTL (Windows Template Library) is a free software, object-oriented C++ template library for Win32 +development. + +WTL provides support for implementing various user interface elements, to MDI, standard and common +controls, common dialogs, property sheets and pages, GDI objects, and other common UI elements, such +as scrollable windows, splitter windows, toolbars and command bars. + +Most of the WTL API is a mirror of the standard Win32 calls. + + http://sourceforge.net/projects/wtl + http://en.wikipedia.org/wiki/Windows_Template_Library + +* Windows style variable names. + + Prefix | Data type + ---------+----------------------------------------- + b | boolean + by | byte or unsigned char + c | char + cx / cy | short used as size + dw | DWORD, double word or unsigned long + fn | function + h | handle + i | int (integer) + l | Long + n | short int + p | a pointer variable containing the address of a variable + s | string + sz | ASCIIZ null-terminated string + w | WORD unsigned int + x, y | short used as coordinates + + PrefixCategory | Mean + ----------------+---------------- + CS | Class style + CW | Create window + DT | Draw text + IDC | Cursor ID + IDI | Icon ID + WM | Window message + WS | Window style + + Data type | Meaning + ----------+------------------------------------------------------------------- + FAR | Same as far. Identifies an address that originally used the + | segment:offset addressing schema. Now FAR simply identifies a + | (default) 32-bit address but may be omitted entirely in many cases. + | + PASCAL | Same as Pascal. The Pascal convention demanded by Windows + | defines the order in which arguments are found in the stack when + | passed as calling parameters. + | + WORD | Unsigned integer (16 bits) + | + UINT | Unsigned integer, same as WORD + | + DWORD | Double word, unsigned long int (32 bits) + | + LONG | Signed long integer (32 bits) + | + LPSTR | Long (far) pointer to character string + | + NEAR | Obsolete, previously identified an address value within a 16KB + | memory block. + + http://www.tenouk.com/cnotation.html + C/C++ NOTATION STORY