text

Emacs technique for comparing sections of documents?

I'd like to be able to open two windows in Emacs, select a region of text in each window, and get a comparison of the difference between the two selections. This would be very handy for a large-scale maintenance project, where I'm working on a version tree with multiple branches, lots of copy/paste, and code that is being moved around ...

Read text file word-by-word using LINQ

Hey, I am learning LINQ, and I want to read a text file (let's say an e-book) word by word using LINQ. This is wht I could come up with: static void Main() { string[] content = File.ReadAllLines("text.txt"); var query = (from c in content select content); foreach ...

How to implement an application-wide strategy to force text to upper case?

I am using .Net (C#, WinForms, Linq to SQL, SQL Server 2008) to develop a new line-of-business application that will replace a crufty old Foxpro application. I did not write the old app, but do provide support for it, and I am the in-house developer for the new app. One of the design decisions that was made years ago with the Foxpro app...

How can I remove the text of a node without removing child nodes?

I'm working on creating XML docs from values in a database. Initially, the program exports this XML: <customDataElementlanguage>English</customDataElementlanguage> I've created this PHP to change the XML tree: if ($Element->nodeValue = "EN") { $Element->nodeValue = "English"; } $doc2 = $Element->ownerDocument; $titleElem...

Replace a empty space with "&nbsp;" using Jquery

I am looking around on the web but I am not finding anything useful. :( I am having a problem that I don't understand. I am sure that I am doing something wrong, but I don't know well the syntax of jQuery to understand what is that I am not doing right. I am using animations with JS and CSS 3, and I am having troubles with empty spaces...

finding empty folders and listing them

hey great community, I'm attempting to find empty folders in the CVS and list all folders that are empty in a text file. I would look in the HEAD. Would ideally use a TreeMap (string to store mailer name, boolean to store true or false) and a For loop for the scan. boolean should be set to true at first and if a mailer is empty (folder) ...

HTML : Make the text unselectable

there is text but you cannot select it check this out How to achieve this? ...

Text align in Illustrator CS5

I want to know how I can align text in Illustrator CS5 I've created a logo and I want the text above the logo to have the same with as the logo, but I don't want the text to become deformed. So what I want is:: T E S T LOGOLOGOLOGOL How can I accomplish this? Thanks in advance! ...

Grab any Text Node within the BODY using Jquery

Hoping someone can help. I need to grab any text node inside the body. Even if it is NOT contained within any other element. I've tried: $("p, div, html, body").each(function(){ $(this).contents().filter(function() { var regExText = /(\w|\d|,|;|&)/; if (this.nodeType == 3 ...

get text coordinates from pdf on iphone

Hi, Is there a way to retrieve text coordinates from PDF file on iPhone? Thanks, Nava. More details: I'm trying to get words from pdf file and highlight them. While it's a pretty simple task in Mac OS X, which has a PDFKit, it's not that trivial on iPhone, which has Quartz set of functions to present and get information from pdf fil...

Can I put displayable text in my CSS file ?

Can I put text in my CSS file , and have that text be visible in the displayed HTML? ...

How to search text usign php if ($text contains "world")

How to search text usign php ? I means : <?php $text ="hello World!"; if ($text contains "world") { echo "True"; } ?> ...

Need Help: Android SDK Simple Test Program

I'm trying to play around with the Android SDK and I'd like to try and run a random interactive java program on the Android. However, I'm still not sure about how to convert java's System.out.println and TextIO.getlnInt(); to Android equivalents. Here is the program I'd like to convert/run: http://math.hws.edu/javanotes/c2/s4.html The ...

Regex: Extracting readable (non-code) text and URLs from HTML documents

I am creating an application that will take a URL as input, retrieve the page's html content off the web and extract everything that isn't contained in a tag. In other words, the textual content of the page, as seen by the visitor to that page. That includes 'masking' out everything encapsuled in <script></script>, <style></style> and <!...

Are there any text selector in jquery ?

Are there any text selector in jquery ? My Code <anything>Hello World! Hello World!</anything> Reslut Should be (Using Jquery) <anything>Hello <span>World</span>! Hello <span>World</span>!</anything> ...

HTML text over images for buttons?

I am designing my first website. I have designed a button image in gimp and saved it as a jpg. I want to use this button for my navigation buttons on the site. Should I make a separate image(jpeg) for each button or is it possible to just use one image and then overlay text on top of the images on the page using HTML? What's the best pra...

Silverlight - Is there any way to enable Text selection in Glyphs.

We are using Glyphs inside the Canvas to display Unicode string. Is there any way to enable string selection in UI <Canvas Width="793.76" Height="1122.56" xmlns="http://schemas.microsoft.com/xps/2005/06"&gt; <Glyphs Fill="#ff000000" FontRenderingEmSize="16" StyleSimulations="None" OriginX="75.68" OriginY="90.56" FontUri="/Resources/b...

How to start implementing a running text algorithm?

I have a dialog implementation that receives a length of text from the user and I'd like to format it over multiple lines in a visually pleasing way. The user can include their own line breaks in the string which I would also like to account for. Is anyone aware of pseudocode or something else publicly available I could use as a referen...

How can I extract URLs from plain text in Perl?

I've seen some posts like this, but not exactly what I want to do. How can I extract and delete URL links, and then remove them from plain text. Example: "Hello!!, I love http://www.google.es". I want extract the "http://www.google.es", save it on a variable, and then, remove it from my text. Finally, the text has to be like that: ...

Linux Small Text only version

I need a small linux Text only version bootable installed on a partition of my hardrive, How can I customize a Linux version like redhat, debian, puppy etc. Please suggest some suitable distribution? ...