text

Text read and replace algorithm

Looking at this: MENU_ITEM_BACK#0="Back"; MENU_ITEM_BLOCK_CHANNEL#0="Block"; MENU_ITEM_CLOSE#0="Close"; MENU_ITEM_DETAILS#0="Details"; MENU_ITEM_DIAGNOSE#0="Diagnose"; MENU_ITEM_DOWNLOAD#0="Download"; ...and so on (over 500 lines). What would be the best way to automate copying the label name into the label itself. For example, MENU...

Win32 Text Drawing Puzzle

Hello :) I've got a little text drawing puzzle under Win32. I'm trying to draw some instructions for users of my application at the top of the window. Please refer to the following window (I've changed the background color on the text so you can see the boundaries) I'm currently using DrawTextEx to draw the text to my window, but th...

LaTeX adjusting space in toc items

I am struggling with custom toc items added via: \addcontentsline{toc}{section}{Some text here} Actually my problem is that I need to add some items which contain chronological date periods like: 12/1/2005 - 3/3/2006 Some event.........................................1 10/10/2005 - 11/30/2005 Some other event............................

Open source C/C++ Audio to text lib

Turn spoken dialogue into text-based, timecode-accurate, searchable metadata or just into text. What do I need: Open source libs Articles on using them ...

Pass variable from image to next page

Hey I have dynamic image begin created with imagecreate(), and I have random values being produced, and I want to pass that random number, to a variable, and use that variable inside the page where Im using the image source. The image is on random.php, and Im using <img src="random.php" /> on page index.php if that matters, and I want ...

Calculating context-sensitive text correlation

Suppose I want to match address records (or person names or whatever) against each other to merge records that are most likely referring to the same address. Basically, I guess I would like to calculate some kind of correlation between the text values and merge the records if this value is over a certain threshold. Example: "West Lawnm...

How to Spool UTF-8 format data in Oracle database into text file

How to Spool UTF-8 format data in Oracle database into text file with all UTF-8 Chars comming porperly. UTF-8 Characters example Chinese characters. I am trying to spool data from oracle data base which is UTF-8 enabled and trying to spool the same data into txt or cvs.Instead of the chinese charcters i am getting ????. ...

animated "crawling text" on iPhone

Does anyone know how to create a "text crawl" like that shown at the bottom of the ESPN ScoreCenter app for the iphone? Basically, there is a small bar of text at the bottom of the screen and the text is animated so that it moves slowly from right to left across the screen. Can anyone point me to some source code that does something...

MySQL Table with TEXT column

Hello. I've been working on a database and I have to deal with a TEXT field. Now, I believe I've seen some place mentioning it would be best to isolate the TEXT column from the rest of the table(putting it in a table of its own). However, now I can't find this reference anywhere and since it was quite a while ago, I'm starting to think...

Single user mode in mac

I want to use the mac in single user mode. I want to use ctags and cscope in that mode. Could anyone help me with the setups required for this. Thank you. All i know is how to go to the single user mode so please tell me in a simple and easy to understand method. My mac is version 10.6(snow leopard) ...

How to define stroke around background rectangle of textblock in WPF?

I would like to have some text to be inside a rectangle with stroke around this rectangle (just like property "Stroke" of the object "Rectangle" itself). But I didn't manage to find a property of the object "Textblock" wich defines such a stroke. ...

Nokogiri how to get the parent text and not the childs text and reference the text back to its parent

Let's say I have this sample: page = "<html><body><h1 class='foo'></h1><p class='foo'>hello people<a href='http://'&gt;hello world</a></p></body></html>" @nodes = [] Nokogiri::HTML(page).traverse do |n| if n[:class] == "foo" @nodes << {:name => n.name, :xpath => n.path, :text => n.text } end end ...

Qt, text on a black and white screen

I'm using Qt (embedded) to make a GUI on a black and white screen. The problem is Qt renders text with shades of grey so it is unreadable on the black and white screen. Does anyone have any idea how to make the text just use 1 bit per pixel, or purely black and white? Thanks, Mark ...

How to read text containing bullets from a table row inside a word doc using POI

HI, I am trying to read a word doc that contains a table using POI. The requirement is to create rows in a Database Table with the information extracted from the table rows in the word document. For example, my word doc has a table like: Heading Description Heading1 summary related to heading1 Heading2 summary related to heading2 ........

What is "entropy and information gain"?

I am reading this book (NLTK) and it is confusing. Entropy is defined as: Entropy is the sum of the probability of each label times the log probability of that same label How can I apply entropy and maximum entropy in terms of text mining? Can someone give me a easy, simple example (visual)? ...

Another tricky preg_match

Just need to see if a paragraph contains a "stop word", the stop words are in an array below. I had the formula as: $pattern_array = array("preheat", "minutes", "stir", "heat", "put", "beat", "bowl", "pan"); foreach ($pattern_array as $pattern) { if (preg_match('/'.$pattern.')/i', $paragraph)) { $stopwords = 1; ...

snag colored text command window output

I sometimes run command line code that produces output in colored letters. I would like to somehow find a way to copy that out put and either port it in RTF format or HTML. I did something simular to this once with a windows app that output text in rtf format. I copied it to a windows write program and safted it as rtf and then use a c...

Java: MalformedByteSequenceException (XML)

I'm trying to parse XML using this class. When I type out a simple file, it works fine. <testData> <text> odp </text> </testData> Here is my main public static void main(String[] args) { Xml train = new Xml(args[0], "trainingData"); Xml test = new Xml(args[1], "testData"); } However, when I use the file I got by cop...

Text data in form-field too long.

I have a form with a text area field. I put some text information there and send it as post request. This information is about 2M of text. Everything goes fine with server and database because post request sends this amount of data to server and mysql saves it correctly in DB. Problem is that after that I just can't render text data back...

Python SQLite FTS3 alternatives?

Are there any good alternatives to SQLite + FTS3 for python? I'm iterating over a series of text documents, and would like to categorize them according to some text queries. For example, I might want to know if a document mentions the words "rating" or "upgraded" within three words of "buy." The FTS3 syntax for this query is the followi...