location

Filter by zip code, or other location based data retrieval strategies

My little site should be pooling list of items from a table using the active user's location as a filter. Think Craigslits, where you search for "dvd' but the results are not from all the DB, they are filtered by a location you select. My question has 2 levels: should I go a-la-craigslit, and ask users to use a city level location? My ...

Finding City and Zip Code for a Location

Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location. (This is similar to http://stackoverflow.com/questions/23572/latitude-longitude-database, except I want to convert in the opposite direction.) Related question: http://stackoverflow.com/questions/158557/get-stree...

How can I find a user's location based on their IP address? (free and not free services)

If you need to locate a user based on their IP address, what services are available? p.s. I understand that some users use proxies etc, that mean the result is not 100% accurate. That's ok. ...

Find coordinates of every link in a page

In Javascript: How does one find the coordinates (x, y, height, width) of every link in a webpage? ...

How do I get the full path to a Perl script that is executing?

I have Perl script and need to determine the full path and filename of the script during execution. I discovered that depending on how you call the script $0 varies and sometimes contains the fullpath+filename and sometimes just filename. Because the working directory can vary as well I can't think of a way to reliably get the fullpath...

Multiple/Different authentication settings in web.config

How would I go about setting different authentication tags for different parts of my web app? Say I have: / /folder1/ /folder2/ Would it be possible to specify different <authentication/> tags for each folder? I want folder1 to use Windows authentication but folder2 use Forms authentication. I tried doing in a <location/> tag but...

Getting all zip codes within an n mile radius

What's the best way to get a function like the following to work: def getNearest(zipCode, miles): That is, given a zipcode (07024) and a radius, return all zipcodes which are within that radius? ...

Drift when restoring window location and size in WPF

I am using the code below to save and restore the window position and size upon restart. I am observing an upward drift of 28 pixels everytime I execute this code! Am I reading the wrong values, or am I restoring them incorrectly? Where is the number 28 (size of the chrome?) coming from (and how would I account for it programmaticall...

Project layout using Wicket

Where should I put the .html files in a wicket Application? my current project layout is as follows: src/myproject --classes+ duplicated html files web --numerous .html files - previewed web/img --resource files such as css/png/js files i want to avoid putting the html files on dupliate locations. what is a good non-redundant strat...

Is it possible to get the image mouse click location with PHP?

Basically what the title says... I need to have an image that when clicked, I call script.php for instance and in that PHP script file, I get the image coordinates where the mouse was clicked. Is this possible? EDIT: After a couple of answers I realized I didn't describe my problem correctly... The thing is, I don't have total control...

What is the type of <location> section in Web.config?

I was expecting to find that section within "System.Web.Configuration" namespace just like other Web.config sections Under what namespace does "location" reside and what is the type of the section? ...

Rails: Best practice for model dependency class locations?

I have a rails app moving along fairly well, but the fact that I'm doing this myself means that some poor sod is eventually going to see this and say, "What the hell were you thinking? Why did you put this here?!?!" Where is that poor, sorry soul going to expect to see a series of classes that aren't used by anything but a single model...

Python + Django page redirect

How do I accomplish a simple redirect (e.g. cflocation in ColdFusion, or header(location:http://) in php)? ...

Android : Location.distanceTo not working correctly?

I am having an issue calculating distance using the Location.distanceTo method. private class MyLocationOverlay1 extends MyLocationOverlay { @Override public void drawMyLocation(Canvas canvas, MapView mapView, Location lastFix, GeoPoint myLocation, long when) super.drawMyLocation(canvas,mapView,lastFix,myLocation,wh...

Get sector location of a file

Based on a file name, or a file handle, is there a Win-API method of determining what physical sector the file starts on? ...

How do I automatically find a user's location?

I am currently working on a show listing website. I am going to display show information by location for the user sorted in a variety of different ways. I know I could ask the user where they are located when they first sign into the site, but I've seem to notice that many sites have this capability built-in to detect location automa...

.NET 2.0 Application Settings (user.config) file location

Hi, I'm trying to customize the location of user.config file. Currently it's stored in %AppData%\[CompanyName]\[ExeName]_Url_[some_hash]\[Version]\ I want to it be something like %AppData%\[CompanyName]\[ProductName]\ so there's no version number and no hash stuff. First question: can this be done and how? What are the implicati...

Where is my rails installation located? Where are the rails plugins?

I'm trying to delete a plugin I installed for rails (paperclip). But I actually don't have any idea where I can find my local rails installation directory. So where can I find rails and rails plugins in my local file system? I have OS X. Or how can I uninstall paperclip from the command line? Thx! ...

access violation writing location?

Hi, I have a simple program and I get access violation at *(str + start). why? i should be able to change it. Right? void fn() { char *str = "Hello wordl!"; int end = strlen(str); int start = 0; end--; while(start < end) { *(str + start) = *(str + end); <--- Access violation writing location *(st...

using apache location directive to list folders from trac

I have the following directory structure: --var ----trac ------company1 --------project1 --------project2 ------company2 --------project3 --------project4 and i was wondering if theres a way to specify in httpd.conf to list the directories when i go to domain.com/trac. Currently i wrote: <Location /trac> Options Indexes </Locatio...