text

Is it possible to change the color of a word in a textbox?

I have a regular texbox control. I need to highlight some words with a red color. Is it any possible to do with JavaScript (jquery or anything else)? ...

Sql server function for displaying word frequency in a column

I have a table that lists a freet text input from a survey where enterents were allowed to enter their responses (regarding colours they would like to have in their wedding) I would like to write a sql function that gathers all the information from this column, and orders counts the frequency of each word, ordering the result set by thi...

How to read multiple text files and save them into one text file?

Hello, In my case I have five huge text files,which I have to embedd into one text file. I tried with StreamReader(),but I don't know how to make it Read one more file,do I have to assign another variable? Showing an example will be appreciated greatfully. ...

Help Reading Line Breaks In A Text File

Hi all, I have a TXT file that i need to import via an application, but for some reason i need to open it in wordpad first and then save it before importing it. I'm guessing it has to do with Line Breaks. Cause if i open it in notepad first, there are no line breaks, but if i open it with wordpad the lines are seperated. Does anyone kn...

underlining text in sifr

Hey all, I've recently been getting into using sifr as a healthy alternative to generating text as image using php. I've got a question about underlining text, for a website design I need to be able to specify the thickness of the underline and the distance from the text, is there any way to accomplish this with sifr? If not, is there a...

Print Coloured Text to Console in C++

I would like to write a Console class that can output coloured text to the console. So I can do something like (basically a wrapper for printf): Console::Print( "This is a non-coloured message\n" ); Console::Warning( "This is a YELLOW warning message\n" ); Console::Error( "This is a RED error message\n" ); How would I print different...

What's the "ruby way" to parse a string for a single key/value?

I am trying to parse a multi line string and get the rest of the line following a pattern. text: hello john your username is: jj thanks for signing up I want to extract jj, aka everything after "your username is: " One way: text = "hello john\nyour username is: jj\nthanks for signing up\n" match = text[/your username is: (.*)/] va...

Conversion of text to picture-message?

Friends, I need to know how to convert a text to a picture-message(.ota) format in JAVA for sending through mobiles? I am developing a software that sends the picture-message to another mobile via serial-port. Could anyone help for creating a routine for the conversion process? I need that routine to converts the given text/picture to a...

Display text from .txt file in batch file

Hello, I'm scripting a big batch file. It records the date to a log.txt file: @echo off echo %date%, %time% >> log.txt echo Current date/time is %date%, %time%. @pause exit It can record it several times, on serveral lines. Now what I want to do is that the batch file file shows the last recorded date/time from the log.txt file. Ho...

Drawing Unicode characters on iPhone

Why is it so hard to figure out how to draw Unicode characters on the iPhone, deriving simple font metrics along the way, such as how wide each imaged glyph is going to be in the font of choice? It looks like it'd be easy with NSLayoutManager, but that API apparently isn't available on the phone. It appears the way people are doing this...

sIFR 3 text won't show in a subfolder

I am using sIFR3 and I have not placed any restrictions i.e. sIFR.domains = ['*']. sIFR text displays very well on a root level page but I see no text in a subfolder page its blank. Any idea what's going wrong there? ...

C# TextWriter inserting line break every 1024 characters

Hi all, I'm using the textwriter to write data to a text file but if the line exceeds 1024 characters a line break is inserted and this is a problem for me. Any suggestions on how to work round this or increase the character limit? textWriter.WriteLine(strOutput); Many thanks ...

How to get the parent element in an HTML string at a given offset?

New Question I am looking for a way in Javascript to get the parent element of a given position in an HTML string (e.g. document.innerHTML or document.body.innerHTML). Simple example: <p>I really <em>like <a href="...">stackoverflow</a></em> a lot.</p> ^...........^ Off...

How to edit multi-gigabyte text files? Vim doesn't work =(

Are there any editors that can edit multi-gigabyte text files, perhaps by only loading small portions into memory at once? It doesn't seem like Vim can handle it =( ...

How can I determine if a file is binary or text in c#?

I need to determine in 80% if a file is binary or text, is there any way to do it even quick and dirty/ugly in c#? ...

How to format tabular data as text in Java?

I would like to produce nicely formatted tabular text from arbitrary dataset object models. Is there a good library to do this in Java? Specifically, I want output that is formatted like command line data management tools such as the CLI for mysql. Example: +---------+--------------+------+-----+---------+-------+ | Field | Type ...

varchar vs. mediumtext

Hello, I have a website that has approx 1000 different strings in a mysql database which are used to display all of the text on my website. The reason the string are stored in a database is because I'm supporting 2 different languages and need to be able to display the different languages based on the users preference (english and chin...

Resources for text boundary analysis

Hi, I need to do "text boundary analysis" in my project. I remember there is a resource from google might be a help for doing this job, but I don't quite remember the name or where to download. I remember this resource is a collective statistic data from google search, it might contains a lot of words that people used as keywords on ...

Find text string using JQuery?

Say a web page has a string such as "I am a simple string" that I want to find. How would I go about this using JQuery? ...

Parsing really big log files (>1Gb, <5Gb)

Hello, I need to parse very large log files (>1Gb, <5Gb) - actually I need to strip the data into objects so I can store them in a DB. The log file is sequential (no line breaks), like: TIMESTAMP=20090101000000;PARAM1=Value11;PARAM2=Value21;PARAM3=Value31;TIMESTAMP=20090101000100;PARAM1=Value11;PARAM2=Value21;PARAM3=Value31;TIMESTAMP=2...