2019, Chrome 76, approach to autocomplete off

Update, January 2020: It appears that as of Chrome 79, Autocomplete (as defined here) no longer treats autocomplete=”some-unrecognised-value” as equal to autocomplete=”on”, so autocomplete=”nope” or similar is now effective at disabling both Autocomplete and Autofill. Update, April 2020: They changed it again. As of Chrome 81, autocomplete=”some-unrecognised-value” is no longer effective at disabling the Autocomplete … Read more

Where is a good Address Parser [closed]

The Googlemaps API works pretty well for this. E.g., suppose you are given the string “120 w 45 st nyc”. Pass it into the Googlemaps API like so: http://maps.google.com/maps/geo?q=120+w+45+st+nyc and you get this response: { “name”: “120 w 45 st nyc”, “Status”: { “code”: 200, “request”: “geocode” }, “Placemark”: [ { “id”: “p1”, “address”: “120 … Read more

Validation for Irish Eircode

Since @Manwal’s answer doesn’t exactly do what it should, here is my attempt at shortening the regex for OP: (?:^[AC-FHKNPRTV-Y][0-9]{2}|D6W)[ -]?[0-9AC-FHKNPRTV-Y]{4}$ Updated version supporting the A65 B2CD postcodes – (?:^[AC-FHKNPRTV-Y][0-9]{2}|D6W)[ -]?[0-9AC-FHKNPRTV-Y]{4}$ This is basically what your Regex is, with a few changes: Removed commas. You do not need commas to list items inside [] brackets. … Read more

What is the most semantic way to display a street address in HTML?

You could use the hCard Microformat to describe your address. The advantage of Microformats is that you can use them in your existing documents to enrich them. Here’s an example derived from the example from the Microformats wiki: <address class=”vcard”> <span class=”adr”> <span class=”street-address”>169 University Avenue</span> <span class=”locality”>Palo Alto</span>, <abbr class=”region” title=”California”>CA</abbr>&nbsp;&nbsp; <span class=”postal-code”>94301</span> <span … Read more

What is the “best” way to store international addresses in a database?

Plain freeform text. Validating all the world’s post/zip codes is too hard; a fixed list of countries is too politically sensitive; mandatory state/region/other administrative subdivision is just plain inappropriate (all too often I’m asked which county I live in–when I don’t, because Greater London is not a county at all). More to the point, it’s … Read more

get city from geocoder results?

Got this working in the end using: var arrAddress = item.address_components; var itemRoute=””; var itemLocality=”; var itemCountry=”; var itemPc=””; var itemSnumber=””; // iterate through address_component array $.each(arrAddress, function (i, address_component) { console.log(‘address_component:’+i); if (address_component.types[0] == “route”){ console.log(i+”: route:”+address_component.long_name); itemRoute = address_component.long_name; } if (address_component.types[0] == “locality”){ console.log(“town:”+address_component.long_name); itemLocality = address_component.long_name; } if (address_component.types[0] == “country”){ … Read more

Using Address Instead Of Longitude And Latitude With Google Maps API

See this example, initializes the map to “San Diego, CA”. Uses the Google Maps Javascript API v3 Geocoder to translate the address into coordinates that can be displayed on the map. <html> <head> <meta name=”viewport” content=”initial-scale=1.0, user-scalable=no”/> <meta http-equiv=”content-type” content=”text/html; charset=UTF-8″/> <title>Google Maps JavaScript API v3 Example: Geocoding Simple</title> <script type=”text/javascript” src=”http://maps.google.com/maps/api/js?sensor=false”></script> <script type=”text/javascript”> var … Read more

Is it a good idea to use an integer column for storing US ZIP codes in a database?

A numeric ZIP code is — in a small way — misleading. Numbers should mean something numeric. ZIP codes don’t add or subtract or participate in any numeric operations. 12309 – 12345 does not compute the distance from downtown Schenectady to my neighborhood. Granted, for ZIP codes, no one is confused. However, for other number-like … Read more

tech