I need to modify a textfile of unknown encoding in that I need to insert some text after the first occurence of a predefined string (e.g. "#markx#"). Is there a class in .NET that allows me to randomly access the content of a file but based on characters (as opposed to bytes). Since the Stream.Seek Methods work on byte basis I would not ...
Do you know any good HTML to plain text conversion class
written in PHP?
I need it for converting HTML mail body to plain text mail body.
I wrote simple function,
but I need more features like converting tables,
adding links at the end, converting nested lists…
--
regards
takeshin
...
Hi there,
I'm trying to set the width of a Textfield() object based on it's string content that I have set-
Is there a way to dynamically set this once the string has been sent to the object?
I have:
var t1:TextField = new TextField()
t1.x = stage.stageWidth / 2;
t1.y = stage.stageHeight / 2;
t1.text = "some string that i would w...
I want a BasicEditField that lets me enter alphabets only...and a combination of upper case and lower case ...as in Jan, Feb...when i use the upper case and lower case filter that are there in BaiscEditField it allows either the entire string to be in upper case or lowr case ..not a combination..how do i achiever this...?
...
So here's the problem I have,
I can find the Search Term in my file but at the moment I can only print out the line that the Search Term is in. (Thanks to Questions posted by people earlier =)). But I cannot print out all the lines to the end of the file after the Search Term. Here is the coding I have so far:-
search_term = r'\b%s\b'...
Basically, I want to use BeautifulSoup to grab strictly the visible text on a webpage... For instance, this webpage is my test case http://www.nytimes.com/2009/12/21/us/21storm.html .. And I mainly want to just get the body text (article) and and maybe even a few tab names here and there. However after trying this suggestion http://stack...
Hey,
I am searching for a way to position my text around my imageview (so
like the css float left/right).
How can I do this in Android? I have used
android:layout_alignParentLeft="true" (to position my imageview left)
and android:layout_alignParentRight="true" for my textview but the
textview comes next to the imageView and doesn't cont...
On a specific webpage, when I hover over a link, I can see the text as "bishop" but when I copy-and-paste the link to TextPad, it shows up as "%62%69%73%68%6F%70". What kind of code is this, and how can I convert it into text?
Thanks!
...
hi, i'm having one text field, normally when touch the text field, keyboard will appear, is it any possibilities where when text field is touch one drop down list will appear to recommend value to be enter and value is selected it will appear in texr field
thanks
...
<label>Hatchback <input type="checkbox" name="" /></label>
<label>Bike <input type="checkbox" name="" /></label>
<label>Sedan <input type="checkbox" name="" /></label>
<label>Scooter <input type="checkbox" name="" /></label>
<label>Coupe <input type="checkbox" name="" /></label>
<label>SUV <input type="checkbox" name="" /...
If you need to be able to store a large amount of plain text in memory so it can be searched and edited, what kind of datatype would you use?
Let's say I load a 10000 line document into my C# application for searching with LINQ, how would you represent it in memory?
Not a string, because it's got be mutable, and strings are immutable.
...
I have the need to create a wavey looking text object in my WPF app, and I was actually assuming that there would be a "bend along a path" type of options, but I dont see one at all in Blend.
I found a tutorial that suggest you need to convert you text to a path letter by letter then rotate it around, but that is totally horrible in my ...
Greetings!
Please kindly give me some advice on the following requirement:
To select a text from a page loaded on a UIWebView
To trigger the Copy function using another button instead of the standard Copy from the UIMenuController
What I would like achieve is basically the storing of the highlighted/selected text into a persistence....
Programming language: Java
Problem: I can make the highlight "snap" from word(s) to word(s), but the best outcome would be the highlight smoothly gliding across a given line and starting on the next line down as it goes out on the right side.
Any suggestions?
...
I tried to export a Java program from Eclipse to a .jar file, but I came across a problem. It ran fine, but for some reason it didn't find the text files it was supposed to get data from. If anyone could help with this, I would be very grateful.
...
I'm writing a text editor using C#, I know i'm just reinventing the wheel but it's a learning experience and something I want to do.
Right now I have a basic Text Document using something that resembles a Gap Buffer however I have to update my line buffer to hold the start of each line each time an edit is made to the buffer.
I am look...
This is something that should be very simple. I just want to read numbers and words from a text file that consists of tokens separated by white space. How do you do this in C#? For example, in C++, the following code would work to read an integer, float, and word. I don't want to have to use a regex or write any special parsing code.
if...
Can somebody please tell me how to add alt text to images on firebug?
...
Hello,
I have a text file which was originally a mysql dump of a database table. How do I write a Perl script to extract all the email addresses from this text file?
The problem I am having is that I read in the lines of the document one by one then do a regular expression, however in cases where there are more than one email address o...
I'd love to know how long a string is when it appears on the screen. We're not using a fixed width font, so:
"Our mother's tummy makes dummy noises."
is much wider than:
"Lilly Leadbetter lives life leisurely."
Is there a way to tell how long something is by the characters? I don't need pixel perfect accuracy, just long enough to e...