document

Algorithm to find if one document is included in another, when those two documents are similar

hi, I'm using an algorithme based on cosine similarity with TF-IDF to find if document X is similar to document Y. But I want to know more about X and Y if they are similar, I want to know if X contains Y, I mean if the information in Y are included withing X. the most important aspect for me is the semantic of the inclusion, not only th...

Word 2003: Form elements - limit keyboard input to 0-9 only?

When using a date field or number field on a Word form, how can you limit keyboard input to numbers only? Setting the properties of to Date and setting a format (ie. dd-mm-yyyy) does not prevent users from using any other keys than numbers for this field. Even though the document will report an 'invalid date' when leaving the field, I wo...

How can I detect the user has clicked on the Page Tab where my html page is?

I'm developing a web chat and I need to raise an event when the conversation has changed so the page title changes so one user can know that the other user has written anything. So I tried the code: addEvent(window,'focus',function(){ alert(1); } ); and addEvent(document,'focus',function(){ alert(2); } ); but it does not work. ...

Latex: Different pages with different margins

Hello everybody! I'm making a latex template for a document type to use at work. For that document, I have two different "commands" one to make the title page; and other to make the rest of the document. The margins that I need in the title page are different from the ones in the rest of the document. Because of that I have some "\setl...

scan documents using wia auto document feeder in xp and above

Hello guys, AM developing a scaning utility, that will scan using auto document feeder. i want to work on xp and above. The idea i have got is to use wia v1 for xp and wia v2 for vista, but i don't know how to go about it but i don't know much about the auto document feeder\ any ideas ...

Converting org.w3c.dom.Document to org.apache.html.dom.HTMLDocumentImpl

Is there anyway to convert an instance of org.w3c.dom.Document to org.apache.html.dom.HTMLDocumentImpl. I need to parse the images inside the Document and HTMLDocumentImpl has a method for extracting the images. I've tried several methods like typecasting, and importNode but it doesn't work. ...

generate word document file from template having .dot file template.

Hi , I am working on a requirement where I have to generate word document file from template having .dot extension. I have gone through all the options available on internet but did not get the sound examples and ideas. I am lacking information on it hence not able to go forward. Please guide me regarding the same. I have to complete...

Html to Word long document

Hi guys, I can create an extensive word document using html including a cover page, header & footer, page numbers etc. But my problem is; when my document is too long (like 100 pages or more) and I open the doc with Word 2003: the document can be loaded and I can see the cover page. but when I try to scroll down a little bit to examin...

File management tips

I'm working on a solution that assign tags (five ones) to scanned documents (who vary on page number, maybe 1, 2 or even 100). I'm using a Scanning SDK to get (from visual c#, Wpf) a set of images the user want to scan, that SDK have a method (SaveToTiff) that saves all the scanned images into disk. The problem is that I need to store t...

Dynamically insert special character into document title

Hi, I am trying to update the document.title with Javascript. This works fine, but now I want to insert the ü character into the title, which gives me a question mark at the place where the ü is supposed to be. Here is my code (I omitted the rest of the title for clarity): document.title = '\u2019 - \u252'; The strange thing is that...

Is a <head> element always available in the DOM, even if absent in the HTML markup?

Every browser I've observed creates a <head> element that's accessible in the DOM even if there are no explicit <head></head> tags in the document's markup. However, Google Analytics uses the following code for dynamic script insertion: (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async...

What is the message flow of command+q on a Mac

Hello, I am building a mac application in cocoa and would like to know what is the message flow (method calls) when the user presses command+q. The app uses the document based architecture. Thanks. ...

How to search a complete document in Lucene via Solr?

I have a question regarding searching a complete document. 1 - I have indexed a lot of documents on lucene. 2 - Each document has a single word per line. Suppose 200 words which becomes 200 lines. 3 - I know how to search lucene via Solr but; If suppose that i indexed the document mydoc.txt on lucene containing 200 words along with o...

File content via Solr to Lucene???

I have a question regarding searching a complete document. 1 - I have indexed a lot of documents on lucene. 2 - Each document has a single word per line. Suppose 200 words which becomes 200 lines. 3 - I know how to search lucene via Solr but; If suppose that i indexed the document mydoc.txt on lucene containing 200 words along with o...

Are there any good free file management components for asp .net?

Hi, I'm looking for a decent file management control for ASP .Net that I can integrate into an existing website. The requirement is that the user should be able to upload / download documents of various file types as well as edit / delete them. I've seen the Telerik FileExplorer and it looks ideal. However, I would like to determine wh...

jQuery: Determine if jQuery object is root html tag

Let's say I'm writing a jQuery extension method. This method should climb the ancestor tree of an element until it reaches the document's root <html> tag, at which point it should stop. I've implemented this as shown here: $.fn.foo = function() { var $foo = this; while($foo[0] !== $(document).children()[0]) { // do stu...

software design specification

Can anyone explain what is an architecture(in detail) in Technical specification documentation. Does it mean 2 tier or 3 tier architecture if we are using client-server architecture or we does it mean 3 layers implementation as user interface, presentation layer, business logic layer. What we should draw if in case interviewer asks us t...

hide all visible <ul> when parent <li> is clicked

Good evening I've got a basic structure of ul, li and nested drop-down menus in the form of ul's. What I'm trying to do is that when the parent li is clicked, the child ul will show up. When the li is clicked again, the child ul hides. So this is what I've got so far $(document).ready(function() { $("ul#glass-buttons li").togg...

SharePoint - multiple time and user stamped comments per list row and friendly named lookups

I suspect these are some of the limiations of SharePoint. Does anything in the SharePoint UI allow for a column to be added to a list that enable users to enter multiple time and user stamped entries to a single custom list row? For example like a comment column? And on the subject of connecting two list to each other. Ideally, we wou...

Document management system: what to use as document storage backend?

I want to make a document management system. What do profesional sollutions (Alfresco, Liferay social office, others) use for storing and versioning documents? What else can I use? Key points: storage space optimization (deltas, compression ...) versioning ability to index docs (can be external) ...