text

Extract Text from CSV file

I have a CSV file that has only 1 column, but has close to 1500 records. I'd like to extract information from each record, e.g., "The sample battery has a Voltage: 11.1V, and capacity: 4500mAh" I'd like to extract out 11.1 and place in another file, i.e., after "voltage: ", before "V". If the record does not have "voltage: ", I would ...

How to perform a line by line and character by character diff on text?

How do I compare 2 files, and produce a report showing the lines that contain differences, and which characters on those lines are different? Obviously, there are tools out there to do this already, but I would like to know how this is done. ...

which code editor is free and can upload by ftp by a keystroke, and have a side panel for folder browsing?

I like PhpEd because with CTRL-SHIFT-S, it will upload to the test server, so no need to switch to the FTP client, locate the file, and upload it. I also like TextMate because the display is nice (Monaco font is less cramped than Lucida Console and easy to look at than Courier)... and also with a left panel for folder and file listing. ...

How do I write normal Tilde(~) in C#?

Hello, If I add a Tilde("~") in the text property of a label,the label doesn't display it,instead it displays an upper tilde. How do I write a normal tilde like in the bracksers("~")? ...

Best clustering algorithm? (simply explained)

Hello! Imagine the following problem: You have a database containing about 20,000 texts in a table called "articles" You want to connect the related ones using a clustering algorithm in order to display related articles together The algorithm should do flat clustering (not hierarchical) The related articles should be inserted into the...

How do you return a specific field from Sphinx results?

Assume I'm indexing a table of books. They have title, author, description, etc. I want to do a search across all fields and return the title of the books that contain my search term. I can do a search and return the book_id (doc_id) from Sphinx so I can look them up myself, but what would be really awesome is if Sphinx just gave me the...

Best way to display multiple lines of static text in C#?

Hi there, I am making a prompt in C# that instructs the user how to use the program before they can access it. What is the best way to display multiple lines of static text? Using a bunch labels doesn't seem like it would be the proper way... xD ...

How to parse a text file with C#

Hello, By text formatting I meant something more complicated. At first I began manually adding the 5000 lines from the text file I'm asking this question for,into my project. The text file has 5000 lines with different length.For example: 1 1 ITEM_ETC_GOLD_01 골드(소) xxx xxx xxx_TT_DESC 0 0 3 3 5 0 180000 3 0 1 0 0 255 1 1 0 0 0 0 0 ...

Duplicate text-finding

My main problem is trying to find a suitable solution to automatically turning this, for example: d+c+d+f+d+c+d+f+d+c+d+f+d+c+d+f+ into this: [d+c+d+f+]4 i.e. Finding duplicates next to each other, then making a shorter "loop" out of these duplicates. So far I have found no suitable solution to this, and I look forward to a respons...

How do you parse a paragraph of text into sentences? (perferrably in Ruby)

How do you take paragraph or large amount of text and break it into sentences (perferably using Ruby) taking into account cases such as Mr. and Dr. and U.S.A? (Assuming you just put the sentences into an array of arrays) UPDATE: One possible solution I thought of involves using a parts-of-speech tagger (POST) and a classifier to determ...

How to place text through parameters in a video at different position

I am asked to create a video where texts are inserted dynamically at various points in the video. Its kinda like creating personalized video. For example a person's name is given as a parameter to the swf file, then that name is inserted inside the video at runtime. I am new to video editing and it will be of great help if anyone could...

Losing Text Input on the Web

How many times has this happened to you? You are typing a long block of text into a form on a web page and you click next or submit or whatever. Then an error occurs. So you click back to fix the error and your whole spiel is gone! Today I heard a coworker cussing at our help desk software, because he typed a long solution in and got a...

What is the syntax for initalizing a string with a block of text in .NET?

I'm writing a unit test and can't remember the syntax for initializing a string with a large block of formatted text. string _testData = "a couple screens worth of text data here and I need to preserve the formatting such as line breaks, etc."; ...

Is there a ReadWord() method in the .NET Framework?

I'd hate to reinvent something that was already written, so I'm wondering if there is a ReadWord() function somewhere in the .NET Framework that extracts words based some text delimited by white space and line breaks. If not, do you have a implementation that you'd like to share? string data = "Four score and seven years ago"; List<st...

how to use paragraph text in uitableviewcell in cocoa-touch

I've been using uiLabels to put text in the cells of tableviews. I want to now use paragraph text that carriage returns to the next line instead of going out of the boundaries of the table cell. Would I do this by manipulating a uiLabel or would I use a different control all together like a text view. Also is there any project example...

XPS to text conversion?

I am working with a series of programs that export pure textual data as XPS files. I want to get at this text data in order to some post-processing. Currently I am using a windows based commercial product to convert the files to a text format, but this is a full blown windows app. What I am after is a command line program that can ext...

How can I serve VBS and other file types as plain text from a Subversion repository (Apache)?

I just want to browse my Subversion code repositories and view files. Some of the file types, like .VBS, prompt me to open or save the file, but I just want to view it in the browser as plain text. Can Apache's httpd.conf file be modified to do this? I don't think it would be changed on the client (IE7) because then it would work the ...

Storing Application Text: Inline vs. Separate File

I'm working on a Merb application using Haml as the templating language. As haml encourages moving logic out of the view and into helpers, I soon started thinking about removing the copy / text from the templates themselves. In the past I have either just left the text inline within the templates, or moved it into separate yaml files sep...

Replace block of text in vs2008

Hi All, is there any way how to replace block of text (multi-line) in VS2008(VS2005)? So far I know VS2008 supports only single line replacing. Any tips welcome, cheers X. EDIT: thanks for tips guys. I was rather looking for some simplier option: like select multiline text, click Ctrl+H, Ctrl+V (copy text from memory) and hit Repla...

How to build a top-like UI in Ruby

I want to build an application with a text based UI that is similar to the Linux command 'top', in Ruby. What toolkits and/or techniques can I use to build the UI? In particular I want an area of the console window that is constantly updating, and the ability to press keys to manipulate the display. ...