text

Need a simple tool for analysing unicode characters

I'm surprised I can't find a simple tool for this. Basically, sometimes as a result of text munging, or using some piece of software, I end up with some text that has some troublesome characters - such as looking a lot like other characters, but being distinct from them. I'd like a tool (preferably online, javascript based) where I can p...

vb.net - Search textfile from certain string, read from that point

Hi, this is probably not that hard to do. But I've got two text files. The first has got a list of certain keywords. Each one if these keywords are fed into a combobox. Now, when I choose one of the items from this combobox, I want to search the other textfile for the same keyword and read from that point to the next keyword. And the...

PHP text diff script

Hi, Do you know of a good method/script for finding the text 'diff'? ...

wxpython: StaticText on transparent background

I am trying to make a subclass of wx.StaticText that has no background. I tried setting the background's alpha component with SetBackgroundColor, or using SetTransparent on various objects with no luck, but maybe it is only because I am a noobie :) Anyway, I ended up subclassing wx.StaticText, modifying the OnPaint method so that no bac...

how Install the FreeType dev files

I asked a python questinom, got this answer: Sounds like PIL was built without FreeType support. Install the FreeType dev files and rebuild PIL again. since I didn't find a way to reply to messages in this forum, I am raising another question. how to do what i was answered to do? -Install the FreeType dev files ? thanks ...

draw hebrew text to image (python,PIL)

Possible Duplicate: Drawing Hebrew text to and image using Image module (python) this is the code: import Image import ImageDraw import ImageFont import _imaging a=u'1אריאל' #u'..' converts to unicode font = ImageFont.truetype('c:/test/Miriam.ttf',24) #standard hebrew font, this line throws the error im=Image.new('RGB',(200,...

Python thinks a 3000-line text file is one line long?

I have a very long text file that I'm trying to process using Python. However, the following code: for line in open('textbase.txt', 'r'): print 'hello world' produces only the following output: hello world It's as though Python thinks the file is only one line long, though it is many thousands of lines long, when viewed in a t...

Multiple row INSERT into SQL, from text file

Hi, I have a table with 3 columns, 2 of which are auto-incrementing. I have a text file with various content that I would like to insert into the 3rd column. In that text, values are separated as such: "value1", "value2", "value3", "etc", How would I go about inserting all those values into a specific column, while being able to use th...

Blackberry ListField Text Wrapping - only two lines.

Within my ListField, I want to be able to take any given long String, and just be able to wrap the first line within the width of the screen, and just take the remaining string and display it below and ellipsis the rest. Right now, this is what I'm using to detect wrapping within my draw paint call: int totalWidth = 0; int charWidth = 0...

Actionscript 3, read file text at compile time?

There is some way to make the flash put the content of one text file in a string, or at least put it in the .swf, so the user don't need to download it? ...

mysql: possible loss of UTF data from char to text field type conversion?

Hi, I have a database that I use for a foreign language / vocabulary web application and was interfacing with it through phpMyAdmin (and of course php). I had about a thousand rows for Arabic text, which had been put into a char field. I wanted to expand the size of my entries, so I read that a text field could get me past the 255 cha...

C#: What should the regular expression be for this?

I know that there are many ASN.1 parser out there but they cost quite a lot and as such, I am trying to write my own. I am kind of new to Regular Expression so in order to extract the text for the placeholders A, B, C and D, what should the Regular Expression be in C#? A ::= B { C1 D1, C2 D2, C3 D3 } where A, C and D can ...

efficient method to replace multiple words in text

Using JavaScript I need to efficiently remove ~10000 keywords from a ~100000 word document, of which ~1000 will be keywords. What approach would you suggest? Would a massive regular expression be practical? Or should I just iterate through the document characters looking for keywords (boring)? Edit: Good point - only whole words, not ...

Convert from Oracle VARCHAR2 to MySQL TEXT

How to do correct conversion of data from Oracle VARCHAR2 type to MySQL TEXT type? I want insert it into mysql table in field with TEXT type through DBLink. ...

Break large text at comma in GridView

I need to break this text on commas in asp:GridView: aaaaaaaaaaa,aaaaa,aaaaaaaaaa,asdsad,aasfasfa,sfasfasfsfasfasfa,afasf. This text is stretching field too much. I have tried with css and with label control as field but has no result. ...

How to modify the keyboard input in QT?

Hi, The following feature needs to be implemented to our existing QT & C++ application. We have to expand the user typed abbreviations into pre-defined words(s). The functionality we need to implement is something similar to text expander. Say if a user typed "FL", this needs to be replaced to "Florida" after immediately. I was able t...

how to extract formatted text content from PDF using Python

How can I extract the text content (not images) from a PDF while (roughly) maintaining the style and layout like Google Docs can? ...

Sed or Ruby for mundane text processing / dev-productivity tools creation.

I want to learn Sed. Can you please point me to good references so that I can fully utilize it. I want to learn it to perform more of the do-once-then-forget type administrative or dev-tools like tasks. So, I don't really care about performance or modularity or object orientedness etc when writing this type of code. Do you think it wou...

How do I put variable values into a text string in MATLAB?

I'm trying to write a simple function that takes two inputs, x and y, and passes these to three other simple functions that add, multiply, and divide them. The main function should then display the results as a string containing x, y, and the totals. I think there's something I'm not understanding about output arguments. Anyway, here's ...

How can i use javascript to insert text into a textarea?

I need to insert some text into a textarea at the place where the cursor is, how can i do this without jquery? ...