text

Embed text into PNG

I'm looking for a tool that'd let me embed json-formatted information inside a PNG -file. This far it's been quite quiet. Do I have to write it myself? I'd be especially interested of doing it with javascript. Into an image I extract from a canvas with toDataURL -method. ...

SVM Multiclass text classification

Hi I want to classfy News data set and training data are classified with IPTC subject code(Hierarchical classification). In my project I should use svm . I have done all of feature extraction ,stemming,removing stop word ... I almost have the file format required for svm multiclass : which is like: category feature:value feature:...

Large amounts of text - mysql or flatfile?

I am writing a web application in PHP that will store large numbers of blocks of arbitrary length text. Is MySQL well suited for this task with a longtext field or similar, or should I store each block of text in its own file and use a MySQL table for indexes and filenames? Think online bulletin board type stuff, like how you would store...

OCR engines designed for screen-reading

Are there any OCR engines designed for identifying text in screen-captured images rather than scanned text? I have a project where I need to retrieve and identify text in an application, and none of the OCR engines I've tried so far have faired well with screenshots. Ideally the engine should work well with color and with background noi...

JavaScript: Confirm dialog box that shows value from a text box

Hi. Is there a way to have a confirm dialog box display the value a user typed in a text box on a form? (For example, if the user types 100.00, I'd like the dialog box display a message something like, "Confirm Amount. Click OK if $100.00 is the correct amount.") ...

C# text file to store data

I want to persist some data into a text file in my c# application. I added the text file to the root of my project. How do i access it now? Will this file be embedded with my exe or what? ...

How to obtain bounding box of transformed text(java)?

Currently I have a text object that I need to determine its bounds. I used to use the graphics object to obtain the font metrics of the text I am trying to draw, but since I added functionality to rotating the object(and possibly more) I need a better way to get the bounds of this object. I have looked multiple places and nothing has rea...

C# application GUI breaking on different Windows icon/text size settings

http://i.imgur.com/OXfC7.png I have a c# form application that has a fixed size (cannot be resized) and cannot be maximized. Users who have a different setting for their icon/text sizes breaks my GUI (the entire form is bigger, background images start tiling, etc. Help? ...

Assign regex pattern as key to an array.

I have an array of regular expressions and am trying to loop through a text document to find the first pattern, assign that as the key to an array then continue through find the second pattern and assign that as the value. Whenever I come across pattern 1 I want that to always be assigned as a key and all pattern 2 matches that follow un...

Binding the content of a Span

I have a window that displays text. There are two parts to the text: the first is fixed while the second needs to be the content of a DependencyProperty declared on the window. I considered using a TextBlock containing two Spans, the first of which contains the fixed content and the second of which contains the variable content, but I ...

Groovy parsing text file

I have a file log that I would like to parse and am having some issues. At first it seemed it would be simple. I'll go ahead and post the source I have come up with and then explain what I am trying to do. The file I'm trying to parse contains this data: HDD Device 0 : /dev/sda HDD Model ID : ST3160815A HDD Serial No : 5RA020QY HDD Re...

How can I automatically highlight and extract colored text in MS Word?

I have a bunch of documents that need to be edited. The authors use blue text in some parts of the documents to indicate that those words need to be linked. Thank you cornelius for the highlight text code: Sub HighlightNotBlack() Dim char As Range For Each char In ActiveDocument.Characters If char.Font.Color <> wdColorAutomatic An...

Sending text messages with perl?

Is there a way to send text messages for free or cheap with Perl? I see a lot of things on CPAN, but they all cost quite a bit. Is there anyway to send an email as a text message? ...

Find text(A) and replace it with text(B) + HTML

Hello guys, I'd like to find with jquery some specific text, and replace it with a renewed version including some HTML. I've tried this, which is working when I use only text: <script type="text/javascript" > jQuery(document).ready(function(){ jQuery("*").contents().each(function() { if(this.nodeType == 3) this.nodeVa...

Oracle text search for ranges

I'm looking for a better way of searching through numeric ranges in Oracle Text. I have a DB app that does a lot of GIS-type things, but we now want to add street range searching to it. So I'd like to store the min and max values in a column, and search for a number within those values. I'm happy to go explore options, but I'd like som...

Containing very long text inside div.

Okay so I have problem containing text inside div. When it's broken down with spaces, it will move to the next line but if there is 1 very long line of text, it won't move to the next line. Can someone help me with the css for this? ...

Parsing space/tab separated Text file and embedding into XL file

Hi i have my text file in this format **4 1250000209852 01 XXXX XXXX V 3054XXX, XXXX J. 73227DUONG, DUC H. 672XXX COMM HOSP 40352405 RO 07/07/201010/05/2010HO 331.5 XXX NL PRESS XXX ...

batch, read texts files in n'th line to m'th line

hello, I am new about batch command. I have five text files in different folders. For example, c:\case1\case1.txt c:\case2\case2.txt c:\case3\case3.txt So I want to read these text files from nth line to mth line and write these values in same text file. How can I make batch files? For example, the result text file I want is.... ca...

Full-text search with wildcard

I have a table with full text search enabled. But I can't get query the table using wildcard. select * from products where contains(Description, 'Computer') returns rows with the word "Computer" select * from products where contains(Description, 'Compute*') [replace "r" with "*"] returns nothing What's going on? ...

What kind of HTML element is this? quotes?

hi all, I'm checking out the HTML rendering of a page: http://gothamist.com/2010/07/18/wikileaks_founder_no-show_at_nyc_ha.php if you look at this image you can see when I look at the DOM there are odd character breaks with quotes by " As a commenter " http://img153.imageshack.us/f/screenshot20100730at840.png/ Any idea what those are...