Regular expressions are great for text editing. But sometimes they aren't quite enough.
For example, say I have a text with 1000 sentences, with the first character in lowercase:
my name is Foo.
hello, how are you?
i really like this forum.
...
etc.
And I want to convert them so that the first letter is capitalized.
This IS possible wi...
Happy Tuesday everyone :)
I noticed I was using the same fonts over again in several of my Sub Classes, so I figured I'd just make a Fonts Class to handle all those.
Anyways I'm scratching my head around how to get those TextFormats created in my Fonts class into my other Classes cleanly. I don't believe I'm doing this the correct wa...
Problem: I create a UILabel with this font:
label.font = [UIFont systemFontOfSize:15.0f];
Now this system font is bold, but I want to display pretty small text, and the text may also contain very strange UTF-8 characters like chinese chars and stuff like that.
So which other fonts are there to use safely, which are NOT bold and suitf...
Hi,
I'm pretty new to c#. Can somebody please give me the right direction on how can I parse the following text file?
The program I am trying to implement will do the following:
It will ask the user to enter a directory.
It will search the directory for text files.
It will loop through the text files, parse them, and save them in a o...
I have a lot of HTML pages that need the same few lines of text changed on them. To reduce the time it will take to manually open each one in Notepad and find the text and replace it with the new text, I would like to create a script to do this for me.
How can I open an HTML file, read the code the makes up the page and find & replace t...
I'm calling the Win32 DrawText function to output some text into a device context. The text is long and wraps nicely onto a second line. The problem is I need to decrease the space between lines a bit (I guess decrease the line height?). Any ideas on how to do this?
I would just call DrawText twice (one for each line) but then I ha...
Are there libraries or certain "techniques" that you can use to create an ontology of elements?
Or "design patterns"?
I am talking about just a "graph" of things.
Suppose I have a bunch of words. Certain words are "under" other words or "related" to other words. I need a good way to group them and know their relationship.
...
Is it possible to grab textarea using java from another non-java application?
Known way is OCR with java.awt.Robot in my opinion is too complex and non effective if grabbed area is in the minimized window.
P.S. Linux environment is preferred but not mandatory for solution.
...
Hi, I want to use sIFR 3 to add a simple linear gradient filter to a text, I can't find this in the ducumentation hope you guys can give me some help.
I found an article that show's how to do this but requiers the modification of the flash file and that's not what I want to do.
I looked in the sIFR documentaion and I didn't found a Gr...
Hi,
I am using a TextWriterProxy in the WPF application as follows:
TextBlock output = new TextBlock();
TextWriterProxy proxy = new TextWriterProxy();
proxy.Add(Console.Out);
StringBuilder sb = new StringBuilder();
StringWriter resultStringWriter = new StringWriter(sb);
proxy.Add(resultStringWriter);
output.Text = sb.To...
Hey guys,
How can I drag a file into a textbox, and then it will show the directory of that file. It seems pretty simple, since its a drag and drop kind of thing.
Thanks
...
I've converted html to a string, I'm able to use replace in that string to wrap the text with a link, and I can put that html back into the ID it came from.
My problem is that my replace method is going inside existing links on the page. This could create nested links, which is a problem. Does anyone out there know how to prevent the re...
Is there a way to separate text and html part when any incoming email is received ? I am using PHP.
If the content-type of the incoming email is multipart/alternative
Mail received from Outlook are throwing garbled text when the message they contains get forwarded.
...
Hi,
I really thinks jQuery Expander plugin is great but it can't do satisfy my needs. It cuts text and put a "read more" button after the text which expands the text. But it only cuts when the text length is more than a specified value. But what if the text is:
Some text:
Blah blah
The text use as much space as a text with many...
how can i index acronyms like 'm.i.a.'? when i search for 'mia', i get results for 'mia' and not 'm.i.a.'. when i search for 'm.i.a.', i get nothing at all.
edit:
solution looks roughly like: ignore_chars = -, .
...
I have a value in a report that is returned as a number for example 1 - What i am trying to do is whenever 1 is displayed in the report i want it to show text such as Program Live.
I am using crystal 9, any help would be appreciated.
...
I would like to know when a user selects text in an html page using Javascript. The text should not be editable. The onselect event seems to be only applicable to <textarea> and <input type="TEXT"> tags. The event is not fired if either tag is disabled.
Is there a way around this with these tags?
Is there a completely different appr...
Suppose I give you a URL...can you analyze the words and spit out the "keywords" of that page?
(besides using meta-tags)
Are there good open-source summarizers out there? (preferably Python)
...
Is sIFR supposed to wrap around floating images? I have some headings next to a large image float:left and the image bumps the headline down below it. Headings that aren't beside floating images do wrap properly so the functionality is there, so my question is whether or not sIFR 3 text wraps beside floating images.
Jeremy
...
There is a lot of information on how to place the cursor exactly where you want it to be in a textarea. None of it seems to work for an <input type="text"> field.
Basically, when the page loads, I have an input field with text in it, and it's focused. The problem is that the cursor is at the end of the pre-written text. I need it to be ...