Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

48 total results found

Lucene term documents and term positions

Programming and Web Development Lucene

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...

Lucene

Pure negation query in lucene

Programming and Web Development 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...

Lucene

Accessing Windows drive letters under cygwin

MacOS, Windows, and Linux

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...

cygwin

Why are Lucene's stored fields so slow to access

Programming and Web Development Lucene

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...

Lucene

"Requested URL not found" when using Apache with mod_alias and mod_rewrite

Programming and Web Development

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 ...

Apache
mod_alias
mod_rewrite

Suspendable Requests for LAMP systems?

Programming and Web Development

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...

Apache
Jetty
suspendable requests
continuation
JSP
PHP

Video annotation tools

Applications/Software

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

CCLE and Moodle Development

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...

ADODB
Moodle
PHP

Message notification in Pidgin

Applications/Software

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 , ...

AIM
Jabber
Pidgin

Location of the sudo log file

MacOS, Windows, and Linux Linux and Unix

The log file contains the commands issued along with the issuers’ user names. Distribution Location Centos /var/log/secure

Linux
sudo

Specify section number with Unix man (manual) command

MacOS, Windows, and Linux Linux and Unix

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

CCLE and Moodle

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 ...