Is it possible to get the first line of text from a UITextView. I have looked through the UITextView and NSString Class References and can't find any methods that could accomplish this.
running emacs 22... on ubuntu 9.04, fresh install.
When I copy a region of text via C-w (clipboard-kill-ring-save) then yank it back with C-y (clipboard-yank) it pastes random stuff, from some other buffer that isn't even open.
It was working fine earlier today and I haven't changed my emacs config.
Any ideas why this is suddenly happening/ how to fix it?
Thanks!
ValidatorHookupControlID is OK for associating a control with a Validation control, but it doesnm't give me enough control.
Howdo you clear a Validation Control from Javascript and set the Messagea and Error Text?
Hi,
I need to loop through all the items in a listbox and append text to each item.If i have 3 items (item1,item2,item3) in my listbox,i need to append (item1=A,item2=B,item3=C,....)
Can anyone please help me ?
Thanks.
vincent.
I got the code
Set objFS = CreateObject("Scripting.FileSystemObject")
strFile = "C:\test\file.txt"
Set objFile = objFS.OpenTextFile(strFile)
Do Until objFile.AtEndOfStream
strLine = objFile.ReadLine
If InStr(strLine,"ex3")> 0 Then
strLine = Replace(strLine,"ex3","ex5")
End If
WScript.Echo strLine
Loop
The strLine replacing part i can fix myself to use with my own purposes, but how do i do something like this so that it doesn't require the file's name, it just edits all text files within the document?
Hi
Is there any way we can convert text to speech in an iPhone app?
Is it possible using the SDK?
Thanks
Are there any third-party TTS engines available for the iPhone? (AFAIK Acapela is not yet released)
how to convert a HTML string to a plain text in iphone dev. Is there any in built functions which does it ?
I am actually downloading a html string from web and showing it in the UIwebview and i am giving the user a edit option so that the html needs to converted to tet so that user can edit
Thanks...
I'm trying to paste chinese text into terminal but I just get lots of numbers instead. if I quickly paste as soon as terminal loads the paste will work that once but not again? Its utf-8 unicode i'm using.
I dont think its the font as it works in textedit the only place I get the problem is in terminal but I need to use it to make my sqlite database.
What would be the best thing to do?
Thanks
HI All,
I know this is bit strange question, but please suggest.
I want to create a link on website url content in input type"text" field not any other html tag,Is it possible and if yes how.
Regards & Thanks
Amit
Hi ,
I would like to use the new richtext component however i notice it does not support text wrapping , anyone knows if it will be implemented sometime ? or is there any way to work arround it ?
Thanks
I am trying to do this but keep on failing.
I have a text box.
I have also an array of cities, and i want, while typing to display the cities that the user should be able to select.
Like if the user is typing : Mu the drop down should display Mumbai \n MuMu ... etc
Like the Tags below is doing !
Does someone have any ideas in how this can be accomplished ?
Hi,
i'm pretty new 2 programming, and I'm creating a simple text-based game
I'm wondering if there is a simple way to create my own terminal-type window with which I can place coloured input etc.
Is there a graphics module well suited to this?
I'm using Mac, but I would like it to work on Windows as well
Thanks
Hello everyone,
I am writing a piece of software in C++ RAD studio 2010 and got a question about TreeView.
Is it possible to use multicolor text in a TTreeView component? I could not find a easy way but to implement custom drawing which seems to be weird nowadays. Are there any straight-forward ways or maybe additional components that can do it for me?
Hi All,
I'm not sure if it is possible to render an asp.net control from a string. The string contains fragments of html code and I've tried rendering that string to a div tag with runat="server" set, asp panel contain, asp lalbel control and asp literal control. All of them doesn't render the asp control in that text to an actual control, it just come up as a string. I've tried adding <% % around them and it appears it doesn't like it.
Thanks in advance.
I want to use PDF::writer to put some dates on a calendar sheet. The calendar sheet itself is prepared as a prerendered template in PDF format. How could I read this PDF as template to write text on it?
Is there an alternative? Fiddling with an HTML-to-PDF converter (like HTMLDoc) is no option.
I have some fun with unicode text sources (all correct encodet) and I want to match names. The classic problem, one source comes correctly, an other has more flatten names:
"Elblag" vs. "Elblag" (see the character a)
How can I "flatten" a, á, â or à to a for better matching? Are there unicode to ascii- matching tables?
Hi there,
I only wanted to know if it's possible to change the style of the font (font-size, color) of the legend text in the Google Chart API.
Thanks for your answers!
Greetings
Sebastian
I've got a UINavigationController and i've changed it to white using the Tint property of the navigation bar in Interface Builder. But the text in buttons and the title is still the default color, white, and so gets lost against the white background. Anyone know how to work around this?
I try to write a dictionary extension for Google Chrome. Now, I want to pop out a small box when I double click to select text . How can I implement it :)
Or like this one ( Fastest Chrome ). They're written in javascript.
Thanks so much !
Hi...!
I downloaded the Apache HWPF. I want to use it to read a doc file and write its text into a plain text file. I don't know the HWPF so well.
My very simple program is here:
I have 3 problems now:
1-Some of packages have errors ( they can't find apache hdf). How I can fix them?
2-How I can use the methods of HWDF to find and extract the images out?
3-Some piece of my program is incomplete and incorrect.So please help me to complete it.
I have to complete this program in 2 days.
once again I repeat Please Please help me to complete this.
Thanks you Guys a lot for your help!!!
This is My Elementary code :
import org.apache.poi.poifs.filesystem.*;
import org.apache.poi.hwpf.*;
import org.apache.poi.hwpf.extractor.*;
import org.apache.poi.hwpf.model.PicturesTable;
import org.apache.poi.hwpf.usermodel.Picture;
public class test {
public void m1 (){
String filesname = "Hello.doc";
POIFSFileSystem fs = null;
fs = new POIFSFileSystem(new FileInputStream(filesname );
HWPFDocument doc = new HWPFDocument(fs);
WordExtractor we = new WordExtractor(doc);
String str = we.getText() ;
String[] paragraphs = we.getParagraphText();
Picture pic = new Picture(. . .) ;
pic.writeImageContent( . . . ) ;
PicturesTable picTable = new PicturesTable( . . . ) ;
if ( picTable.hasPicture( . . . ) ){
picTable.extractPicture(..., ...);
picTable.getAllPictures() ;
}
}
hi,
i write an application in which i want to write/draw the text using CGContext functions such as CGContextSetTextPosition, CGContextSetTextDrawingMode, etc.
I written an code but it can't be work,
CGContextSetTextDrawingMode (ctx , kCGTextFillStroke);
CGContextSetRGBFillColor(ctx, 5.0, 5.0, 5.0, 1.0);
CGContextSelectFont(ctx, "Times", 10, kCGEncodingMacRoman);
CGContextShowTextAtPoint (ctx, 60.0, 426.0, (const char*)"Sat", (size_t)20);
The above code is appropriate or not?
The idea is rather simple. Some datawindow (not web datawindow) varchar fields contain detailed descriptions. I was wondering if it is possible to provide the following (wikipedia-like) functionality to users: The ability to click (or dbl-click or whatever) on specific words of the text, while reading (which somehow should be indicated as clickable - it would be perfect if they could be colored blue but I don't think this is possible) and open a relevant window (or response). Do you think something like this could be implemented?
I'm considering getting a Mac. I want to make sure I'll be able to get a good text editor for it. I'm wondering what other folks are using.
Features I need -
Contextual highlighting for PHP, HTML, CSS, and preferably many others
FTP from a hotkey - so I can hit ctrl-s to save, then another combo to FTP it.
Features I'd like -
Code Completion
I'm also interested in any comments in general about coding on a Mac and if it's really worth the extra $$$ to get one.
Thanks
I have a plain text file with words, which are separated by comma, for example:
word1, word2, word3, word2, word4, word5, word 3, word6, word7, word3
i want to delete the duplicates and to become:
word1, word2, word3, word4, word5, word6, word7
Any Ideas? I think, egrep can help me, but i'm not sure, how to use it exactly....