I've seen that it's possible to get the latitude and longitude (geocoding, like in Google Maps API) from a street address, but is it possible to do the reverse and get the street address when you know what the lat/long already is?
The application would be an iPhone app (and why the app already knows lat/long), so anything from a web service to an…
I am loading some info from a server. I have created a separate method to do this. I am then calling [self myCustomMethod] to run the method. No matter where I call [self myCustomMethod] (initWithNibName, viewDidLoad, viewWillLoad, viewWillAppear, viewDidAppear), the custom method is getting called twice - what's the deal?
What's the simplest, most standard, and/or most efficient way to split a List into two sub-Lists in Java? It's OK to mutate the original List, so no copying should be necessary. The method signature could be
/** Split a list into two sublists. The original list will be modified to
* have size i and will contain exactly the same elements at…
I'm trying to compile ARCCC (https://sourceforge.net/projects/arccc/) on Ubuntu 9.10, but I'm getting the make error "glib.h: No such file or directory", and the autoconfig script reports that Glib isn't installed. However, I have the libglib2.0-dev package installed, which appears to provide all the glib headers. Is there something…
I'm using...
$.getJSON(url + "&callback=?", function (b) {
.......
});
for a long-polling request. Sometimes it is necessary that I stop the current request being made. Is this possible?
Apparently the implementation of Assembly.Load() in Silverlight needs a full/strong name.
E.g. this works:
Assembly.Load("MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=...");
while this will fail even if MyAssembly is already loaded:
Assembly.Load("MyAssembly");
Is there a workaround so that it's possible to…
I asked a related question yesterday
http://stackoverflow.com/questions/2612343/basic-boost-date-time-input-format-question
It worked great for posix_time ptime objects. I'm have trouble adapting it to get Gregorian date objects.
try {
stringstream ss;
ss << dateNode->GetText();
using…
I am using the Console² Firefox addon, which has the helpful Domain Blocker feature so that I don't have to see messages about outside issues that I have no control over. But the log is still littered with gobs of messages from javascript libs that I develop with, like jQuery.
Is there any way to…
If you create a TCP client socket with port 0 instead of a non-zero port, then the operating system chooses any free ephemeral port for you. Most OSes choose ephemeral ports from the IANA dynamic port range of 49152-65535. However in Windows Server 2003 and earlier (including XP) Microsoft used…
I'm evaluating PyAMF to replace our current PHP (ugh) AMF services framework, and I'm unable to find the one crucial piece of information that would allow me to provide a compelling use case for changing over:
Right now, new PHP AMF services are deployed simply by putting the .php files in the…
I'm learning to use raw sockets, and im trying to prase out the tcp header data, but i can't seem to figure out what res1, ece, and cwr are. Through my networking book and google i know what the rest stand for, but can't seem to find anything on those three.
Below is the tcphdr struct in my…
I found this site, http://www.apitalk.com/document.php?id=1184207999_1 and I'm not sure if this site is using ATL, STL, MFC, or just calling API functions directly.
I have done console programming with C++ and graphics programmign with C++ in Borland, but I've have never done Win32 C++…
I using url to request remote urls that sometimes may very slow or just down.
In this case, my php scripts still waiting for the response, it makes apache has to many requests stay in memory and then overload.
I need a way to stop curl requesting or stop running php script when…
I'm trying to write a function that backs up a directory with files of different permission to an archive on Windows XP. I'm using the tarfile module to tar the directory. Currently as soon as the program encounters a file that does not have read permissions, it stops giving…
I am using excel data reader to read data from an excel file.
FileStream stream = File.Open(filePath, FileMode.Open, FileAccess.Read);
//1. Reading from a binary Excel file ('97-2003 format; *.xls)
IExcelDataReader excelReader =…
I have the following result set from a join of three tables, an articles table, a products table, an articles to products mapping table.
I would like to have the results with duplicates removed similar to a select distinct on content…
Hi all,
I've found that setting a dark color theme in Eclipse makes the function tooltips unreadable.
This is probably easiest to describe with a picture:
Any ideas how to fix this?
Hi all,
the FORMSOF THESAURUS throws errors for specific character. E.g. FORMSOF (THESAURUS, hel!lo) throws an error where as FORMSOF (THESAURUS, hel?lo) works. But I didn't find any documentation about which characters are allowed.
…
How do I get the Root :tree_sha of a GitHub repository via the GitHub API?
The GitHib API help pages don't seem to explain this critical piece of information:
http://develop.github.com/p/object.html
Can get the contents of a tree…
I need some sort of interactive chart control for my .NET-based web app. I have some wide XY charts, and the user should be able to interactively scroll and zoom into a specific window on the x axis. Something that acts similar to…
I'm writing a crossplatform python script on windows using Eclipse with the Pydev plugin. The script makes use of the os.symlink() and os.readlink() methods if the current platform isn't NT.
Since the os.symlink() and…
I am working on an iPhone App where I am pulling data from an XML file and inserting it into a sqlite database located in the App. I am able to successfully do this process, but it appears that if I try to…
If the specifics are important, I made a cruisecontrol.net publisher plugin that notifies a series of phone numbers via voice, announcing the current state of the build. It uses Twilio to do so.
I'd like…
Hi there,
just found out something: If you have a Tabbar combined with a NavigationController (that has some views on it's stack) and you double click the TabBarItem, the view pops to the first…