text

C#.NET Importing a registry hive and parsing its contents

I have been given a .Hive file from a registry which i have to parse and use the contents as part of a html report(from this i assume i have to convert to text somehow). The whole thing must be done within the program so i cant just convert the hive file and then run it through my program. I currently have no idea how to even start this ...

Determining Word Frequency of Specific Terms

Hi, I'm a non-computer science student doing a history thesis that involves determining the frequency of specific terms in a number of texts and then plotting these frequencies over time to determine changes and trends. While I have figured out how to determine word frequencies for a given text file, I am dealing with a (relatively, for...

API to determine cell carrier?

Is there a free API or some other way to determine what carrier a cell phone number is registered with? I'd like my application to broadcast text messages without them picking their carrier from a list. UPDATE: Interestingly, a coworker found the answer: http://developer.whitepages.com/ UPDATE2: Well the whitepages license agreement ...

How to find duplicate rows in a join text file

I have recently converted 10 JavaScript files into one file, which I then run a JavaScript compiler on. I just had a bug where I had reused a function name. Is there a tool to check for duplicate rows/function names in the combined file? Or should I create a little program? ...

Best way to parse a dynamic text list in PHP.

I have below a list of text, it is from a popular online game called EVE Online and this basically gets mailed to you when you kill a person in-game. I'm building a tool to parse these using PHP to extract all relevant information. I will need all pieces of information shown and i'm writting classes to nicely break it into relevant encap...

Extracting text from HTML file using Python

I'd like to extract the text from an HTML file using Python. I want essentially the same output I would get if I copied the text from a browser and pasted it into notepad. I'd like something more robust than using regular expressions that may fail on poorly formed HTML. I've seen many people recommend Beautiful Soup, but I've had a ...

What is the best way to store text files remotely?

Hello, I am building a "document storage" system for storing text files on my server. I was wondering if anybody has any recommendations or best practices on the best way to store text files remotely. The system will be user-based, each user can upload multiple text files. I want the text files to be stored in some fashion which is e...

Display unique characters only in a textbox

If I give the input from Text Box like AaBbcdCDEb the output should be ABCDE or abcde only unique characters should be there, no repeated characters. How do I do this? ...

Silverlight 2.0 - Can't get the text wrapping behaviour that I want

I am having trouble getting Silverlight 2.0 to lay out text exactly how I want. I want text with line breaks and embedded links, with wrapping, like HTML text in a web page. Here's the closest that I have come: <UserControl x:Class="FlowPanelTest.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x=...

wpf listbox change individual items to bold

I want some of the items to be bold depending on a property of an object i'm putting into the listbox. I think you can do it with changing templates but can't seem to find an example. Thanks! ...

WPF textblock binding with List<string>

does anyone know if there is a simple way to bind a textblock to a List. What I've done so far is create a listview and bind it to the List and then I have a template within the listview that uses a single textblock. what I'd really like to do is just bind the List to a textblock and have it display all the lines. In Winforms there was...

Using a loop to execute text file

I have redirected some valuable information into a text file. How can I execute each line of that text file in a loop? What im thinking is to double space my text file, then to use a loop to execute each line invidually. I'm hoping that when i double space the text file every string of commands will have their own line. For example, t...

SQLServer2005: Save complete results of query in a file for some long text data types

Lets say a have a table t (id int, someVeryLongText text) and want to store the result of a query: select someVeryLongText from t where id = 1 in the file. In Managemant Studio when I select Tools->Options->QueryResults and choose Results to File It seems that only the first 8192 characters are written to the file. Is there an op...

Using Stacks in ImageMagick to Selectively Blur Part of the Image

I'm trying to annotate some text onto a base image with a dropshadow. I don't like the results I get from using the -shadow option, so I'm putting down the text, blurring it, then putting down the text again in white, a few pixels offset from the shadow. Here's the command I'm using: convert base_image.jpg \ -font TT0590M_.ttf \...

Improper Text data when export as Binary - Textmode.

I am generating a file which contain the following data like this. 78,45,New things,200, Number of columns,2.00,5 When i open the file in textpad with the textformat binary type. 0: FF FE 33 00 36 00 2C 80 00 20 30 10 4F 7.8.4.5,4.5, In the data part it has (.) between two successive digits. ...

Read Text file with dos null byte

I have a text file with dos elements - hex(00) for exampel. I need to read it and convert it. Have tried to use utf8toansi, but this removes the whole line with hex(00). Are there any way to convert to text in the whole file ? I am using win32, RadStudio2007, Delphi. ...

What are some good free programming books?

I know of a couple, but I would like to build a list up for some nice holiday reading. (If there is a book on here you read for free, and really liked, make sure to support the author and buy a hard copy!) ...

Why HTTP protocol is designed in plain text way?

Yesterday, I have a discussion with my colleagues about HTTP. It is asked why HTTP is designed in plain text way. Surely, it can be designed in binary way just like TCP protocol, using flags to represents different kinds of method(POST, GET) and variables (HTTP headers). So, why HTTP is designed in such way? Is there any technical or his...

Get last 10 lines of very large text file > 10GB c#

What is the most efficient way to display the last 10 lines of a very large text file (this particular file is over 10GB). I was thinking of just writing a simple c# app but I'm not sure how to do this effectively. Thanks! ...

Algorithm for re-wrapping hard-wrapped text?

Let's say that I have written a custom e-mail management application for the company that I work for. It reads e-mails from the company's support account and stores cleaned-up, plain text versions of them in a database, doing other neat things like associating it with customer accounts and orders in the process. When an employee replies ...