|
Hi, I'm looking for an API or a combination of API's where I can send "Anjuna, India" and get back a list of places nearby. The data is mostly for "third world" countries, less so for Europe/US. Any suggestions/ideas about how to structure this?
Answer Snippets (Read the full thread at stackoverflow):
SELECT * FROM geo.places.neighbors WHERE neighbor_woeid IN ( SELECT woeid FROM geo.places WHERE text.
|
|
I am trying to make my app check the text in a text box and see if it matches any of the strings in an NSArray. I'm hoping you could point me in the right direction or give me some code to do it. I am pretty sure that I would need to use an if statement...
Started by Joshua on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can put the string you want to....
Into a separate method which takes an array and a string, and perhaps returns a BOOL dependent upon whether by an @ symbol if it's text in quotes, and the last item must always be the word nil .
|
|
When I insert a continuous string of text in a fixed width "td", the text is not wrapping. Pls let me know why? Here are the links to the html pages.
textstring with space
textstring without space
Started by Shivanand on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Have a look at it with this:
ThisTexthasnoSpacesThisTexthasnoSpacesThisTexthasnoSpacesThisTexthasnoSpacesThisTexthasnoSpaces....
Put them within the long word.
You can add soft-hyphens: .
|
Ask your Facebook Friends
|
Hello,
How can I have a text file (or XML file) represented as a whole string, and search for (or match) a particular string in it?
I have created a BufferedReader object:
BufferedReader input = new BufferedReader(new FileReader(aFile));
and then I have...
Answer Snippets (Read the full thread at stackoverflow):
In a text file, you should:
Load the file as a string ( example ) Create a Pattern to search for Use), but they seem to match a particular string or line, and I want to have the text as one continuous string
Um nice....
|
Tool to automatically covert a text string with special characters to a properly formatted c# string
Hi... I had this really useful app in VB6 & I was wondering if anyone knows of an equivalent one for c#...
Basically the vb6 app allowed you to paste text into an input box and then it would produce an output text that was correctly formatted (with special...
Started by Mark Pearl on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
("\"", "\"") + "\"";
The C# language specification says that the only special character in a verbatim string, the algorithm you want is quite simple (untested, beware of typos):
outputTextBox.Text = "string s = @\"" + inputTextBox.Text.....
|
|
What would be the best way to search through HTML inside a C# string variable to find a specific word/phrase and mark (or wrap) that word/phrase with a highlight?
Thanks,
Jeff
Started by Yttrium on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
string input = " go ";
string output = Regex.Replace(input, "go", "<strong>$0</strong>");
will yield: " <strong>go</strong> "
But when you....
In simple cases, regular expressions will do.
To remove false positives.
|
|
I have a string Action - [N]ew, [U]pdate, or [D]elete : N that I need to replace with "Action - [N]ew, [U]pdate, or [D]elete : U" somhow by using preg_replace I can't get it working. It remains the same.
My code looks like this
$action = Action - '[N]...
Started by Roland on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You'll have to escape them if you want to match them:
"/(Action - \[N\]ew, \[U\]pdate, or \[D\]elete : N)/"
Without being escaped, and expression within [ and ] will match one of every character within... .
And ] are special characters in regular expressions.
|
|
Hi I have text editor widget in smalltalk (visual works) that returns a text object, however I want the text returned to be handled as a string object.
How do you parse a text object as a string?
Answer Snippets (Read the full thread at stackoverflow):
You send #string to the Text object
to at the moment), see if you ....
Most of these would work in Squeak Smalltalk.
If Text and String are different classes in VW Smalltalk (which I don't have easy access as: String .
|
|
I need to write string containing base64 encoded text to a text file and then later read that string back from the text file to a string variable.
How can i do it so that there is no data loss due to encoding issues?
Started by rover12 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
// Author: Christian d'Heureuse (www.source-code.biz) import { public static void main (String args[]) throws IOException { if (args.length != 2], args[1]); } private static void encodeFile (String inputFileName....
File into a Base64 text file.
|
|
How can i convert editable text into string in android ? Any solution?
Started by bibek on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If that's the case then this should work:
StringIf I understand correctly, you want to get the String of an Editable object, right? If yes, try newTxt=(Editable)userName1.getText(); String....
To get the text out of a TextView or EditText .
|