text

Flex text selection: does it have to be white on black?

When you select text in a Text or Label or TextArea (or other) control in a Flex application, the selection is shown in white text on a black background. Always. I have a request to change that — and it seems to be a simple enough thing to want — but I can't find a style (or property) anywhere that permits that. Any ideas out there abou...

convert file path to string

I am developing a c# web application with VS 2008 where I am trying to capture the physical path of the selected file. Using IE, I am finally able to retrieve this now in text variable. But I want to capture this information in string. How do I do this? Currently I am using: lb3.Text = Page.Request.PhysicalPath; And it gives me: Tex...

SQL Server find and replace in TEXT field

I have a database in SQL Server 2005 that was brought up from SQL Server 2000 and is still using TEXT type fields instead of varchar(max). I need to find and replace a string of characters in the text field but all of the examples of how to do this that I have found don't seem like they would work for me. It seems the UPDATETEXT command...

python extract from switch output

I have some info back from a LAN switch as below Vlan 1 is administratively down, line protocol is down Vlan 2 is up, line protocol is up Helper address is 192.168.0.2 Vlan 3 is up, line protocol is up Helper address is not set Vlan 4 is up, line protocol is up Helper address is 192.168.0.2 Vlan 5 is down, line pro...

Why would LaTeX ignore the font size in the documentclass

I have a LaTeX file. I'm experimenting with trying to reduce the font size (this is related to my other question here http://stackoverflow.com/questions/2636647/latex-changing-the-font-size-for-a-document-but-in-the-preamble-not-the-docum ). The LaTeX file is generated from another programme. I have edited it to start with \documentcla...

binary protocols v. text protocols

does anyone have a good definition for what a binary protocol is? and what is a text protocol actually? how do these compare to each other in terms of bits sent on the wire? here's what wikipedia says about binary protocols: A binary protocol is a protocol which is intended or expected to be read by a machine rather than a human being...

Crystal Reports Text Formatting

Being new to Crystal Reports 11, I’m struggling to find the reason why one particular report inserts rogue carriage returns when outputted as a .txt file. The report needs to present itself as one customer per line, but at random, some customer lines have carriage returns inserted half way through the line therefore spreading the informa...

rails- display certian number of characters from a textfield

I running a rails project and I am displaying a textfield that can often be too long. If there any things I can call to only display 20 words or 120 characters on the the view page ?? ...

Read Data From Text File PHP

Hi, I'm just wondering how I can read a text file in php, I'd like to have it display the last 200 entries (their each on a new line) from the text file. Like John White Jane Does John Does Someones Name and so on Thanks! ...

Text Manipulation Split Classes in a Single File into mulitple Files

I used XSD.EXE to to generate a C# files from an XSD schema. Unfortunately, this tool extracts all the classes into a single allClasses.cs file. Has anyone got a good technique(or tool) that will extract each of the classes in the allClasses.cs file into their own respective file e.g. ClassA.cs, ClassB.cs, etc. ? ...

How can I append text to a start and end of a file as header and footer ?

I'm filling an XML document manually using C# and I need to have <data> as header and </data> as footer for the whole XML file. Is there an easy way to do that ? I know It can be done but I couldn't find a way to do it. Keep in mind that I'm updating the entries so I need to make sure that they always come between the header and the foot...

Setting glutBitmapCharacter color?

Just wondering if someone can help me track down my issue with the following code where the text color is not being set correctly (its just rendering whatever color is in the background) void RenderText(int x, int y, const char *string) { int i, len; glUseProgram(0); glLoadIdentity(); glColor3f(1.0f, 1.0f, 1.0f); glTranslatef(0.0f, 0....

Slow motion tween text isn't smooth

Hi! i have to create a movie where a text string move in horizontal. the problem is that in the movie (800px wide) the text should go from right to left in about 7 seconds (so it have to go about 400px to the left in 7 sec). i created a motion-tween with ease for my "text" and the tween is long (at 30fps) 30*7=210 frames. the result i...

Text and Picture Block Recognition in Picture

Hi, I'm new in Image Proccessing. I have an image and I want to parsing Text blocks and picture blocks. How can I do? I don't use OCR components. I need algorithm or sample or suggestion. ...

How to delete sentences starting with a lower case letter?

In the example below the following regex (".*?") was used to remove all dialogue first. The next step is to remove all remaining sentences starting with a lower case letter. Only sentences starting with an upper case letter should remain. Example: exclaimed Wade. Indeed, below them were villages, of crude huts made of timber an...

Matching a string in a Large text file?

I have a list of strings about 7 million in a text file of size 152MB. I was wondering what could be best way to implement the a function that takes a single string and returns whether it is in that list of strings. ...

flex text rotation

Hi folks, after rotating a label in flex the text still is a little bit blurry. I've made up a small example to show what I mean: http://pixelpilots.de/dev/testThings/ How can I avoid this? Thanks for any help!! ...

changing normal font to bold font

Hi, How can i change a normal font to bold font, Here the text should be selected and say by clicking the button(Bold) button. the selected text should become bold. ...

Show surrounding words when searching for a specific word in a text file (Ruby)

Hi, I'm very new to ruby. I'm trying to search for any instance of a word in a text file (not the problem). Then when the word is discovered, it would show the surrounding text (maybe 3-4 words before and after the target word, instead of the whole line), output to a list of instances and continue searching. Example "The quick brown fo...

jQuery: Returns only part of a text

I want to write a jQuery function that will return only a part of a given text. For example, in the text: http://somesubdomain.somesite.com/ How can I write a function so that it returns the text "somesubdomain"? In other words, I want to "subtract" the text "http://" and ".somesite.com/". Thanks in advance ...