Advanced Search
Search Results
48 total results found
Lucene term documents and term positions
IntroductionTerm documentsFor each term T, there are (doc frequency of the term) tuples of <doc ID, freq of T in this doc>.This information is stored in the .frq file and accessible via the TermDocs interface.Term positionsFor each term T, there are (doc...
Pure negation query in lucene
In many information-retrieval system, you can use queries like “term1 AND (NOT term2)” but you cannot use queries like “NOT term2” on their own (e.g. to get only documents that do not contain term2). At least the system returns no result even if some documents...
Accessing Windows drive letters under cygwin
If a drive does not have an explicit mount point configured Cygwin will default to an imaginary mount point under /cygdrive. So “c:\windows\system32” becomes “/cygdrive/c/windows/system32”. (In most cases it’s best to change “\” into “/”.)You can also create a...
Why are Lucene's stored fields so slow to access
ProblemI have a Lucene index that has some large fields (about 50 KB each) and some small fields (about 50 bytes each). I need to access (iterate) one of the small fields for say 1/10 of the documents. For some reason, such operation is very slow, unreasonably...
"Requested URL not found" when using Apache with mod_alias and mod_rewrite
Problem: My web server is Apache. When I try to load a web page, I get an error message that says “The requested URL /some/file/on/the/server was not found on this server”. However, /some/file/on/the/server does exist in the server’s filesystem. What is going ...
Suspendable Requests for LAMP systems?
The traditional way of handling dynamically-generated Web content is to have the Web server use multiple threads, even keeping a thread pool. Then whatever program that generates the content acts as quickly as possible. As long as there are a lot of threads, t...
Video annotation tools
1. YouTube video annotation Web application. Free to use. Only annotates videos on YouTube. You can only annotate videos you have uploaded, while others can see the annotation. Text annotation (“text bubbles” or notes), highlight part of the screen. All annota...
Common Moodle programming mistakes
Feel free to add to this list.Error handling of get_records() and its variants (e.g. get_records_sql())A common usage of these functions is like this:$records = get_records() or my_error_handler();...The problem is, if the query is executed successfully but ma...
Message notification in Pidgin
Pidgin ships with a message notification plugin, but it is not enabled by default. To make the taskbar item flash when a new message comes in: Go to Tools → Plugins and check “Message Notification”. Select “Message Notification”. When the item is highlighed , ...
Location of the sudo log file
The log file contains the commands issued along with the issuers’ user names. Distribution Location Centos /var/log/secure
Specify section number with Unix man (manual) command
Sometimes, there are multiple man pages under the same name, identified by section numbers. For example, there is a MKDIR user command and a MKDIR programming function call. if you just type “man mkdir” at the prompt, it might take you to one but not the other...
Moodle module backup and restore
Moodle module backup and restoreBy default, a module is ignored by the backup and restore processes, i.e. its database entries are not backed up or restored. To support backup and restore, the module needs to have the files backuplib.php and restorelib.php in ...