<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: country code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 18 May 2008 14:02:06 GMT</pubDate>
    <description>DZone Snippets: country code</description>
    <item>
      <title>Split Apache logs according to GeoIP country</title>
      <link>http://snippets.dzone.com/posts/show/5255</link>
      <description>// Split Apache logs according to GeoIP country&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;&lt;br /&gt;# $Id$&lt;br /&gt;&lt;br /&gt;# Split Apache logs according to GeoIP country&lt;br /&gt;&lt;br /&gt;use strict;&lt;br /&gt;use warnings;&lt;br /&gt;&lt;br /&gt;## no critic (ValuesAndExpressions::RequireInterpolationOfMetachars)&lt;br /&gt;our ($VERSION) = '$Revision$' =~ m{ \$Revision: \s+ (\S+) }xms;&lt;br /&gt;## use critic&lt;br /&gt;&lt;br /&gt;use Geo::IP;&lt;br /&gt;&lt;br /&gt;my $gi = Geo::IP-&gt;open('/usr/local/share/GeoIP/GeoIPCity.dat', GEOIP_STANDARD);&lt;br /&gt;&lt;br /&gt;my @logs = @ARGV;&lt;br /&gt;&lt;br /&gt;my %record_for;&lt;br /&gt;&lt;br /&gt;foreach my $log (@logs) {&lt;br /&gt;    die "Can't read $log\n" if !-r $log;&lt;br /&gt;    &lt;br /&gt;    my %fh_for;&lt;br /&gt;    my $num_lines_parsed = 0;&lt;br /&gt;    &lt;br /&gt;    my $log_fh;&lt;br /&gt;    if ($log =~ m/ \.gz \z /xms) {&lt;br /&gt;        open $log_fh, "gzip -cd $log |" or die "Can't open gzip pipe\n";&lt;br /&gt;    }&lt;br /&gt;    else {&lt;br /&gt;        open $log_fh, '&lt;', $log or die "Can't open $log\n";&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    my $log_base = $log;&lt;br /&gt;    $log_base =~ s/ \.gz \z //xms;&lt;br /&gt;    &lt;br /&gt;    while (my $line = &lt;$log_fh&gt;) {&lt;br /&gt;        $num_lines_parsed++;&lt;br /&gt;        if (!($num_lines_parsed % 1000)) {&lt;br /&gt;            print STDERR "Parsed $num_lines_parsed lines of $log\n";&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        my ($host) = $line =~ m/ \A (\S+) \s /xms;&lt;br /&gt;        &lt;br /&gt;        if (!exists $record_for{$host}) {&lt;br /&gt;            my $record = $gi-&gt;record_by_name($host);&lt;br /&gt;            $record_for{$host} = $record || 0;&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        my $country = 'unknown';&lt;br /&gt;        if (exists $record_for{$host} &amp;&amp; $record_for{$host}) {&lt;br /&gt;            $country = lc($record_for{$host}-&gt;country_name());&lt;br /&gt;            $country =~ s/\W+/_/gxms;&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        if (!exists $fh_for{$country}) {&lt;br /&gt;            open $fh_for{$country}, '&gt;', "$log_base.$country.out"&lt;br /&gt;                or die "Can't write to $log_base.$country.out\n";&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        print {$fh_for{$country}} $line;&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    foreach my $fh (values %fh_for) {&lt;br /&gt;        close $fh;&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    close $log_fh;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 19 Mar 2008 15:02:26 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5255</guid>
      <author>iansealy (Ian Sealy)</author>
    </item>
    <item>
      <title>Country List (catalan)</title>
      <link>http://snippets.dzone.com/posts/show/4568</link>
      <description>List of countries in Catalan, without formatting.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Afganistan&lt;br /&gt;Alb&#224;nia&lt;br /&gt;Alemanya&lt;br /&gt;Andorra&lt;br /&gt;Angola&lt;br /&gt;Antigua i Barbuda&lt;br /&gt;Antilles&lt;br /&gt;Antilles Holandeses&lt;br /&gt;Ar&#224;bia Saudita&lt;br /&gt;Svalbard&lt;br /&gt;Alg&#232;ria&lt;br /&gt;Argentina&lt;br /&gt;Arm&#232;nia&lt;br /&gt;Aruba&lt;br /&gt;Austr&#224;lia&lt;br /&gt;&#192;ustria&lt;br /&gt;Azerbaidjan&lt;br /&gt;Bahames&lt;br /&gt;Bahrein (illes)&lt;br /&gt;Bangla Desh&lt;br /&gt;Barbados&lt;br /&gt;B&#232;lgica&lt;br /&gt;Belize&lt;br /&gt;Bermudes&lt;br /&gt;Bhutan&lt;br /&gt;Bielor&#250;ssia&lt;br /&gt;Bol&#237;via&lt;br /&gt;B&#242;snia i Herzegovina&lt;br /&gt;Botswana&lt;br /&gt;Brasil&lt;br /&gt;Brunei&lt;br /&gt;Bulg&#224;ria&lt;br /&gt;Burkina Faso&lt;br /&gt;Burundi&lt;br /&gt;Cap Verd&lt;br /&gt;Cambodja&lt;br /&gt;Camerun&lt;br /&gt;Canad&#224;&lt;br /&gt;Txad&lt;br /&gt;Xile&lt;br /&gt;Xina&lt;br /&gt;Xipre&lt;br /&gt;Ciutat del Vatic&#224;&lt;br /&gt;Col&#242;mbia&lt;br /&gt;Comores&lt;br /&gt;Congo&lt;br /&gt;Corea del Nord&lt;br /&gt;Corea del Sud&lt;br /&gt;Costa d'Ivori&lt;br /&gt;Costa Rica&lt;br /&gt;Cro&#224;cia&lt;br /&gt;Cuba&lt;br /&gt;Ben&#237;n&lt;br /&gt;Dinamarca&lt;br /&gt;Djibouti&lt;br /&gt;Dominica&lt;br /&gt;Equador&lt;br /&gt;Egipte&lt;br /&gt;El Salvador&lt;br /&gt;Emirats &#192;rabs Units&lt;br /&gt;Eritrea&lt;br /&gt;Eslov&#224;quia&lt;br /&gt;Eslov&#232;nia&lt;br /&gt;Espanya&lt;br /&gt;Estats Units d'Am&#232;rica&lt;br /&gt;Est&#242;nia&lt;br /&gt;Eti&#242;pia&lt;br /&gt;Federaci&#243; Russa&lt;br /&gt;Federaci&#243; Malaia&lt;br /&gt;Fiji&lt;br /&gt;Filipines&lt;br /&gt;Finl&#224;ndia&lt;br /&gt;Fran&#231;a&lt;br /&gt;Gabon&lt;br /&gt;G&#224;mbia&lt;br /&gt;Ge&#242;rgia&lt;br /&gt;Ghana&lt;br /&gt;Gibraltar&lt;br /&gt;Granada&lt;br /&gt;Gr&#232;cia&lt;br /&gt;Groenl&#224;ndia&lt;br /&gt;Guadalupe&lt;br /&gt;Guatemala&lt;br /&gt;Guinea&lt;br /&gt;Guinea Bissau&lt;br /&gt;Guinea Equatorial&lt;br /&gt;Guaiana&lt;br /&gt;Guaiana Francesa&lt;br /&gt;Hait&#237;&lt;br /&gt;Hondures&lt;br /&gt;Hong Kong&lt;br /&gt;Hongria&lt;br /&gt;&#205;ndia&lt;br /&gt;Indon&#232;sia&lt;br /&gt;Iraq&lt;br /&gt;Iran&lt;br /&gt;Irlanda&lt;br /&gt;Man (illa de)&lt;br /&gt;Isl&#224;ndia&lt;br /&gt;Anglonormandes (illes)&lt;br /&gt;Caiman Islands&lt;br /&gt;Cook (illes)&lt;br /&gt;F&#232;roe (illes)&lt;br /&gt;Malvines (illes)&lt;br /&gt;Mariannes (illes)&lt;br /&gt;Marshall (illes)&lt;br /&gt;Salom&#243; (illes)&lt;br /&gt;Turks i Caicos (illes)&lt;br /&gt;Verges Brit&#224;niques (illes)&lt;br /&gt;Wallis i Futuna (illes)&lt;br /&gt;Israel&lt;br /&gt;It&#224;lia&lt;br /&gt;Jamaica&lt;br /&gt;Jap&#243;&lt;br /&gt;Jord&#224;nia&lt;br /&gt;Kazakhstan&lt;br /&gt;Kenya&lt;br /&gt;Kirguizistan&lt;br /&gt;Kiribati&lt;br /&gt;Kuwait&lt;br /&gt;Laos&lt;br /&gt;Lesotho&lt;br /&gt;Let&#242;nia&lt;br /&gt;L&#237;ban&lt;br /&gt;Lib&#232;ria&lt;br /&gt;L&#237;bia&lt;br /&gt;Liechtenstein&lt;br /&gt;Litu&#224;nia&lt;br /&gt;Luxemburg&lt;br /&gt;Macau&lt;br /&gt;Maced&#242;nia&lt;br /&gt;Madagascar&lt;br /&gt;Mal&#224;isia&lt;br /&gt;Malawi&lt;br /&gt;Maldives&lt;br /&gt;Mali&lt;br /&gt;Malta&lt;br /&gt;Marroc&lt;br /&gt;Martinica&lt;br /&gt;Maurici&lt;br /&gt;Maurit&#224;nia&lt;br /&gt;Mayotte&lt;br /&gt;M&#232;xic&lt;br /&gt;Micron&#232;sia&lt;br /&gt;M&#242;naco&lt;br /&gt;Mong&#242;lia&lt;br /&gt;Montserrat&lt;br /&gt;Mo&#231;ambic&lt;br /&gt;Myanmar&lt;br /&gt;Nam&#237;bia&lt;br /&gt;Nauru&lt;br /&gt;Nepal&lt;br /&gt;Nicaragua&lt;br /&gt;N&#237;ger&lt;br /&gt;Nig&#232;ria&lt;br /&gt;Noruega&lt;br /&gt;Nova Caled&#242;nia&lt;br /&gt;Nova Zelanda&lt;br /&gt;Oceania Americana&lt;br /&gt;Oceania Australiana&lt;br /&gt;Oceania Neozelandesa&lt;br /&gt;Oman&lt;br /&gt;Pa&#239;sos Baixos&lt;br /&gt;Pakistan&lt;br /&gt;Palau (illes)&lt;br /&gt;Palestina&lt;br /&gt;Panam&#224;&lt;br /&gt;Papua Nova Guinea&lt;br /&gt;Paraguai&lt;br /&gt;Per&#250;&lt;br /&gt;Pitcairn&lt;br /&gt;Polin&#232;sia Francesa&lt;br /&gt;Pol&#242;nia&lt;br /&gt;Portugal&lt;br /&gt;Puerto Rico&lt;br /&gt;Qatar&lt;br /&gt;Regne Unit&lt;br /&gt;Rep&#250;blica Txeca&lt;br /&gt;Rep&#250;blica Dominicana&lt;br /&gt;Rep&#250;blica Centreafricana&lt;br /&gt;Rep&#250;blica Democr&#224;tica del Congo&lt;br /&gt;Reuni&#243; (illa de la)&lt;br /&gt;Rwanda&lt;br /&gt;Romania&lt;br /&gt;Samoa&lt;br /&gt;Saint Christopher i Nevis&lt;br /&gt;Saint-Pierre-et-Miquelon&lt;br /&gt;Saint Vincent i les Grenadines&lt;br /&gt;Saint Helena&lt;br /&gt;Saint Lucia&lt;br /&gt;S&#227;o Tom&#233; i Pr&#237;ncipe&lt;br /&gt;Senegal&lt;br /&gt;Seychelles&lt;br /&gt;Sierra Leone&lt;br /&gt;Singapur&lt;br /&gt;S&#237;ria&lt;br /&gt;Som&#224;lia&lt;br /&gt;Sud-&#224;frica&lt;br /&gt;Sri Lanka&lt;br /&gt;Sudan&lt;br /&gt;Su&#232;cia&lt;br /&gt;Su&#239;ssa&lt;br /&gt;Surinam&lt;br /&gt;Swazil&#224;ndia&lt;br /&gt;Tail&#224;ndia&lt;br /&gt;Taiwan&lt;br /&gt;Tadjikistan&lt;br /&gt;Tanz&#224;nia&lt;br /&gt;Timor Oriental&lt;br /&gt;Togo&lt;br /&gt;Tonga&lt;br /&gt;Trinitat i Tobago&lt;br /&gt;Tun&#237;sia&lt;br /&gt;Turkmenistan&lt;br /&gt;Turquia&lt;br /&gt;Tuvalu&lt;br /&gt;Uganda&lt;br /&gt;Ucra&#239;na&lt;br /&gt;Uruguai&lt;br /&gt;Uzbekistan&lt;br /&gt;Vanuatu&lt;br /&gt;Vene&#231;uela&lt;br /&gt;Vietnam&lt;br /&gt;Iemen&lt;br /&gt;Iugosl&#224;via&lt;br /&gt;Z&#224;mbia&lt;br /&gt;Zimbabwe&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 24 Sep 2007 16:29:08 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4568</guid>
      <author>laura_vidal (laura)</author>
    </item>
    <item>
      <title>Country List (spanish)</title>
      <link>http://snippets.dzone.com/posts/show/4567</link>
      <description>List of countries in Spanish, without formatting&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Afganist&#225;n&lt;br /&gt;Albania&lt;br /&gt;Alemania&lt;br /&gt;Andorra&lt;br /&gt;Angola&lt;br /&gt;Antigua y Barbuda&lt;br /&gt;Antillas&lt;br /&gt;Antillas Holandesas&lt;br /&gt;Arabia Saudita&lt;br /&gt;Archipi&#233;lago Svalbard&lt;br /&gt;Argelia&lt;br /&gt;Argentina&lt;br /&gt;Armenia&lt;br /&gt;Aruba&lt;br /&gt;Australia&lt;br /&gt;Austria&lt;br /&gt;Azerbaiy&#225;n&lt;br /&gt;Bahamas&lt;br /&gt;Bahrein (islas)&lt;br /&gt;Bangladesh&lt;br /&gt;Barbados&lt;br /&gt;B&#233;lgica&lt;br /&gt;Belice&lt;br /&gt;Bermudas&lt;br /&gt;Bhut&#225;n&lt;br /&gt;Bielorrusia&lt;br /&gt;Bolivia&lt;br /&gt;Bosnia y Herzegovina&lt;br /&gt;Botswana&lt;br /&gt;Brasil&lt;br /&gt;Brunei&lt;br /&gt;Bulgaria&lt;br /&gt;Burkina Faso&lt;br /&gt;Burundi&lt;br /&gt;Cabo Verde&lt;br /&gt;Camboya&lt;br /&gt;Camer&#250;n&lt;br /&gt;Canad&#225;&lt;br /&gt;Chad&lt;br /&gt;Chile&lt;br /&gt;China&lt;br /&gt;Chipre&lt;br /&gt;Ciudad del Vaticano&lt;br /&gt;Colombia&lt;br /&gt;Comores&lt;br /&gt;Congo&lt;br /&gt;Corea del Norte&lt;br /&gt;Corea del Sur&lt;br /&gt;Costa de Marfil&lt;br /&gt;Costa Rica&lt;br /&gt;Croacia&lt;br /&gt;Cuba&lt;br /&gt;Ben&#237;n&lt;br /&gt;Dinamarca&lt;br /&gt;Djibouti&lt;br /&gt;Dominica&lt;br /&gt;Ecuador&lt;br /&gt;Egipto&lt;br /&gt;El Salvador&lt;br /&gt;Emiratos &#193;rabes Unidos&lt;br /&gt;Eritrea&lt;br /&gt;Eslovaquia&lt;br /&gt;Eslovenia&lt;br /&gt;Espa&#241;a&lt;br /&gt;Estados Unidos de Am&#233;rica&lt;br /&gt;Estonia&lt;br /&gt;Etiop&#237;a&lt;br /&gt;Federaci&#243;n Rusa&lt;br /&gt;Federaci&#243;n Malaya&lt;br /&gt;Fiji&lt;br /&gt;Filipinas&lt;br /&gt;Finlandia&lt;br /&gt;Francia&lt;br /&gt;Gab&#243;n&lt;br /&gt;Gambia&lt;br /&gt;Georgia&lt;br /&gt;Ghana&lt;br /&gt;Gibraltar&lt;br /&gt;Granada&lt;br /&gt;Grecia&lt;br /&gt;Groenlandia&lt;br /&gt;Guadalupe&lt;br /&gt;Guatemala&lt;br /&gt;Guinea&lt;br /&gt;Guinea-Bissau&lt;br /&gt;Guinea Ecuatorial&lt;br /&gt;Guyana&lt;br /&gt;Guyana Francesa&lt;br /&gt;Hait&#237;&lt;br /&gt;Honduras&lt;br /&gt;Hong Kong&lt;br /&gt;Hungr&#237;a&lt;br /&gt;India&lt;br /&gt;Indonesia&lt;br /&gt;Iraq&lt;br /&gt;Ir&#225;n&lt;br /&gt;Irlanda&lt;br /&gt;Isla de Man&lt;br /&gt;Islandia&lt;br /&gt;Islas Anglonormandas&lt;br /&gt;Islas Cayman&lt;br /&gt;Islas Cook&lt;br /&gt;Islas Feroe&lt;br /&gt;Islas Malvinas&lt;br /&gt;Islas Marianas del Norte&lt;br /&gt;Islas Marshall&lt;br /&gt;Islas Salom&#243;n&lt;br /&gt;Islas Turks y Caicos&lt;br /&gt;Islas V&#237;rgenes Brit&#225;nicas&lt;br /&gt;Islas Wallis y Fortuna&lt;br /&gt;Israel&lt;br /&gt;Italia&lt;br /&gt;Jamaica&lt;br /&gt;Jap&#243;n&lt;br /&gt;Jordania&lt;br /&gt;Kazajst&#225;n&lt;br /&gt;Kenya&lt;br /&gt;Kirguizist&#225;n&lt;br /&gt;Kiribati&lt;br /&gt;Kuwait&lt;br /&gt;Laos&lt;br /&gt;Lesotho&lt;br /&gt;Letonia&lt;br /&gt;L&#237;bano&lt;br /&gt;Liberia&lt;br /&gt;Libia&lt;br /&gt;Liechtenstein&lt;br /&gt;Lituania&lt;br /&gt;Luxemburgo&lt;br /&gt;Macao&lt;br /&gt;Macedonia&lt;br /&gt;Madagascar&lt;br /&gt;Malasia&lt;br /&gt;Malawi&lt;br /&gt;Maldivas&lt;br /&gt;Mal&#237;&lt;br /&gt;Malta&lt;br /&gt;Marruecos&lt;br /&gt;Martinica&lt;br /&gt;Mauricio&lt;br /&gt;Mauritania&lt;br /&gt;Mayotte&lt;br /&gt;M&#233;xico&lt;br /&gt;Micronesia&lt;br /&gt;M&#243;naco&lt;br /&gt;Mongolia&lt;br /&gt;Montserrat&lt;br /&gt;Mozambique&lt;br /&gt;Myanmar&lt;br /&gt;Namibia&lt;br /&gt;Nauru&lt;br /&gt;Nepal&lt;br /&gt;Nicaragua&lt;br /&gt;N&#237;ger&lt;br /&gt;Nigeria&lt;br /&gt;Noruega&lt;br /&gt;Nueva Caledonia&lt;br /&gt;Nueva Zelanda&lt;br /&gt;Ocean&#237;a Americana&lt;br /&gt;Ocean&#237;a Australiana&lt;br /&gt;Ocean&#237;a Neozelandesa&lt;br /&gt;Om&#225;n&lt;br /&gt;Pa&#237;ses Bajos&lt;br /&gt;Pakist&#225;n&lt;br /&gt;Palau&lt;br /&gt;Palestina&lt;br /&gt;Panam&#225;&lt;br /&gt;Papua Nueva Guinea&lt;br /&gt;Paraguay&lt;br /&gt;Per&#250;&lt;br /&gt;Pitcairn&lt;br /&gt;Polinesia Francesa&lt;br /&gt;Polonia&lt;br /&gt;Portugal&lt;br /&gt;Puerto Rico&lt;br /&gt;Qatar&lt;br /&gt;Reino Unido&lt;br /&gt;Rep&#250;blica Checa&lt;br /&gt;Rep&#250;blica Dominicana&lt;br /&gt;Rep&#250;blica Centroafricana&lt;br /&gt;Rep&#250;blica Democr&#225;tica del Congo&lt;br /&gt;Reunion&lt;br /&gt;Ruanda&lt;br /&gt;Rumania&lt;br /&gt;Samoa&lt;br /&gt;Saint Christopher y Nevis&lt;br /&gt;San Pedro y Miquelon&lt;br /&gt;San Vicente&lt;br /&gt;Santa Helena&lt;br /&gt;Santa Luc&#237;a&lt;br /&gt;Santo Tom&#233; y Pr&#237;ncipe&lt;br /&gt;Senegal&lt;br /&gt;Seychelles&lt;br /&gt;Sierra Leona&lt;br /&gt;Singapur&lt;br /&gt;Siria&lt;br /&gt;Somalia&lt;br /&gt;Sud&#225;frica&lt;br /&gt;Sri Lanka&lt;br /&gt;Sud&#225;n&lt;br /&gt;Suecia&lt;br /&gt;Suiza&lt;br /&gt;Surinam&lt;br /&gt;Swazilandia&lt;br /&gt;Tailandia&lt;br /&gt;Taiwan&lt;br /&gt;Tayikist&#225;n&lt;br /&gt;Tanzania&lt;br /&gt;Timor Oriental&lt;br /&gt;Togo&lt;br /&gt;Tonga&lt;br /&gt;Trinidad y Tobago&lt;br /&gt;T&#250;nez&lt;br /&gt;Turkmenist&#225;n&lt;br /&gt;Turqu&#237;a&lt;br /&gt;Tuvalu&lt;br /&gt;Uganda&lt;br /&gt;Ucrania&lt;br /&gt;Uruguay&lt;br /&gt;Uzbekist&#225;n&lt;br /&gt;Vanuatu&lt;br /&gt;Venezuela&lt;br /&gt;Vietnam&lt;br /&gt;Yemen&lt;br /&gt;Yugoslavia&lt;br /&gt;Zambia&lt;br /&gt;Zimbabwe&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 24 Sep 2007 16:28:23 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4567</guid>
      <author>laura_vidal (laura)</author>
    </item>
    <item>
      <title>Country List (english)</title>
      <link>http://snippets.dzone.com/posts/show/4566</link>
      <description>List of countries without formatting.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Afghanistan&lt;br /&gt;Albania&lt;br /&gt;Germany&lt;br /&gt;Andorra&lt;br /&gt;Angola&lt;br /&gt;Antigua and Barbuda&lt;br /&gt;Antilles&lt;br /&gt;Netherlands Antilles&lt;br /&gt;Saudi Arabia&lt;br /&gt;Svalbard&lt;br /&gt;Algeria&lt;br /&gt;Argentina&lt;br /&gt;Armenia&lt;br /&gt;Aruba&lt;br /&gt;Australia&lt;br /&gt;Austria&lt;br /&gt;Azerbaijan&lt;br /&gt;Bahamas&lt;br /&gt;Bahrain&lt;br /&gt;Bangladesh&lt;br /&gt;Barbados&lt;br /&gt;Belgium&lt;br /&gt;Belize&lt;br /&gt;Bermuda&lt;br /&gt;Bhutan&lt;br /&gt;Belarus&lt;br /&gt;Bolivia&lt;br /&gt;Bosnia and Herzegovina&lt;br /&gt;Botswana&lt;br /&gt;Brazil&lt;br /&gt;Brunei&lt;br /&gt;Bulgaria&lt;br /&gt;Burkina-Faso&lt;br /&gt;Burundi&lt;br /&gt;Cape Verde&lt;br /&gt;Cambodia&lt;br /&gt;Cameroon&lt;br /&gt;Canada&lt;br /&gt;Chad&lt;br /&gt;Chile&lt;br /&gt;China&lt;br /&gt;Cyprus&lt;br /&gt;Vatican City&lt;br /&gt;Colombia&lt;br /&gt;Comoros&lt;br /&gt;Congo&lt;br /&gt;North Korea&lt;br /&gt;South Korea&lt;br /&gt;C&#244;te d'Ivoire&lt;br /&gt;Costa Rica&lt;br /&gt;Croatia&lt;br /&gt;Cuba&lt;br /&gt;Benin&lt;br /&gt;Denmark&lt;br /&gt;Djibouti&lt;br /&gt;Dominica&lt;br /&gt;Ecuador&lt;br /&gt;Egypt&lt;br /&gt;El Salvador&lt;br /&gt;United Arab Emirates&lt;br /&gt;Eritrea&lt;br /&gt;Slovakia&lt;br /&gt;Slovenia&lt;br /&gt;Spain&lt;br /&gt;United States of America&lt;br /&gt;Estonia&lt;br /&gt;Ethiopia&lt;br /&gt;Russian Federation&lt;br /&gt;Malay States&lt;br /&gt;Fiji&lt;br /&gt;Republic of the Philippines&lt;br /&gt;Finland&lt;br /&gt;France&lt;br /&gt;Gabon&lt;br /&gt;Gambia&lt;br /&gt;Georgia&lt;br /&gt;Ghana&lt;br /&gt;Gibraltar&lt;br /&gt;Grenada&lt;br /&gt;Greece&lt;br /&gt;Greenland&lt;br /&gt;Guadeloupe&lt;br /&gt;Guatemala&lt;br /&gt;Guinea&lt;br /&gt;Guinea-Bissau&lt;br /&gt;Equatorial Guinea&lt;br /&gt;Guiana&lt;br /&gt;French Guiana&lt;br /&gt;Haiti&lt;br /&gt;Honduras&lt;br /&gt;Hong Kong&lt;br /&gt;Hungary&lt;br /&gt;India&lt;br /&gt;Indonesia&lt;br /&gt;Iraq&lt;br /&gt;Iran&lt;br /&gt;Ireland&lt;br /&gt;Isle of Man&lt;br /&gt;Iceland&lt;br /&gt;Channel Islands&lt;br /&gt;Cayman Islands&lt;br /&gt;Cook Islands&lt;br /&gt;Faeroes&lt;br /&gt;Falkland Islands&lt;br /&gt;Northern Mariana Islands&lt;br /&gt;Marshall Islands&lt;br /&gt;Solomon Islands&lt;br /&gt;Turks and Caicos Islands&lt;br /&gt;British Virgin Islands&lt;br /&gt;Wallis and Futuna Islands&lt;br /&gt;Israel&lt;br /&gt;Italy&lt;br /&gt;Jamaica&lt;br /&gt;Japan&lt;br /&gt;Jordan&lt;br /&gt;Kazakhstan&lt;br /&gt;Kenya&lt;br /&gt;Kyrgyzstan&lt;br /&gt;Kiribati&lt;br /&gt;Kuwait&lt;br /&gt;Laos&lt;br /&gt;Lesotho&lt;br /&gt;Latvia&lt;br /&gt;Lebanon&lt;br /&gt;Liberia&lt;br /&gt;Libya&lt;br /&gt;Liechtenstein&lt;br /&gt;Lithuania&lt;br /&gt;Luxemburg&lt;br /&gt;Macao&lt;br /&gt;Macedonia&lt;br /&gt;Madagascar&lt;br /&gt;Malaysia&lt;br /&gt;Malawi&lt;br /&gt;Maldives&lt;br /&gt;Mali&lt;br /&gt;Malta&lt;br /&gt;Morocco&lt;br /&gt;Martinique&lt;br /&gt;Mauritius&lt;br /&gt;Mauritania&lt;br /&gt;Mayotte&lt;br /&gt;Mexico&lt;br /&gt;Micronesia&lt;br /&gt;Monaco&lt;br /&gt;Mongolia&lt;br /&gt;Montserrat&lt;br /&gt;Mozambique&lt;br /&gt;Myanmar&lt;br /&gt;Namibia&lt;br /&gt;Nauru&lt;br /&gt;Nepal&lt;br /&gt;Nicaragua&lt;br /&gt;Niger&lt;br /&gt;Nigeria&lt;br /&gt;Norway&lt;br /&gt;New Caledonia&lt;br /&gt;New Zealand&lt;br /&gt;Polynesia&lt;br /&gt;Micronesia&lt;br /&gt;Melanesia&lt;br /&gt;Oman&lt;br /&gt;Netherlands&lt;br /&gt;Pakistan&lt;br /&gt;Palau Islands&lt;br /&gt;Palestine&lt;br /&gt;Panama&lt;br /&gt;Papua New Guinea&lt;br /&gt;Paraguay&lt;br /&gt;Peru&lt;br /&gt;Pitcairn Island&lt;br /&gt;French Polynesia&lt;br /&gt;Poland&lt;br /&gt;Portugal&lt;br /&gt;Puerto Rico&lt;br /&gt;Qatar&lt;br /&gt;United Kingdom&lt;br /&gt;Czech Republic&lt;br /&gt;Dominican Republic&lt;br /&gt;Central African Republic&lt;br /&gt;Democratic Republic of the Congo&lt;br /&gt;R&#233;union&lt;br /&gt;Rwanda&lt;br /&gt;Romania&lt;br /&gt;Samoa&lt;br /&gt;Saint Christopher-Nevis&lt;br /&gt;Saint Pierre and Miquelon&lt;br /&gt;Saint Vincent and the Grenadines&lt;br /&gt;Saint Helena&lt;br /&gt;Saint Lucia&lt;br /&gt;S&#227;o Tom&#233; e Principe&lt;br /&gt;Senegal&lt;br /&gt;Seychelles&lt;br /&gt;Sierra Leone&lt;br /&gt;Singapore&lt;br /&gt;Syria&lt;br /&gt;Somalia&lt;br /&gt;South Africa&lt;br /&gt;Sri Lanka&lt;br /&gt;Sudan&lt;br /&gt;Sweden&lt;br /&gt;Switzerland&lt;br /&gt;Surinam&lt;br /&gt;Swaziland&lt;br /&gt;Thailand&lt;br /&gt;Taiwan&lt;br /&gt;Tajikistan&lt;br /&gt;Tanzania&lt;br /&gt;East Timor&lt;br /&gt;Togo&lt;br /&gt;Tonga&lt;br /&gt;Trinidad and Tobago&lt;br /&gt;Tunisia&lt;br /&gt;Turkmenistan&lt;br /&gt;Turkey&lt;br /&gt;Tuvalu&lt;br /&gt;Uganda&lt;br /&gt;Ukraine&lt;br /&gt;Uruguay&lt;br /&gt;Uzbekistan&lt;br /&gt;Vanuatu&lt;br /&gt;Venezuela&lt;br /&gt;Vietnam&lt;br /&gt;Yemen Republic&lt;br /&gt;Yugoslavia&lt;br /&gt;Zambia&lt;br /&gt;Zimbabwe&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 24 Sep 2007 16:24:12 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4566</guid>
      <author>laura_vidal (laura)</author>
    </item>
    <item>
      <title>Create a 'countries' table for rails</title>
      <link>http://snippets.dzone.com/posts/show/1727</link>
      <description>I use rails.  It's great.  It automatically creates a select list of countries.  It doesn't, however, know about the 2 and 3 character country code.&lt;br /&gt;&lt;br /&gt;So, I need a country table, with countries.&lt;br /&gt;&lt;br /&gt;This migration creates and populates a 'countries' table.&lt;br /&gt;&lt;br /&gt;You'll have to &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;  ./script/generate model Country&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;before you run it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;class CreateCountryTable &lt; ActiveRecord::Migration&lt;br /&gt;  def self.up&lt;br /&gt;    ## Create country table&lt;br /&gt;    create_table :countries do |t|&lt;br /&gt;      t.column :iso, :string, :size =&gt; 2&lt;br /&gt;      t.column :name, :string, :size =&gt; 80&lt;br /&gt;      t.column :printable_name, :string, :size =&gt; 80&lt;br /&gt;      t.column :iso3, :string, :size =&gt; 3&lt;br /&gt;      t.column :numcode, :integer&lt;br /&gt;    end&lt;br /&gt;&lt;br /&gt;    Country.reset_column_information&lt;br /&gt;    Country.create(:iso =&gt; 'AF', :name =&gt; 'AFGHANISTAN', :printable_name =&gt; 'Afghanistan', :iso3 =&gt; 'AFG', :numcode =&gt; '004') &lt;br /&gt;    Country.create(:iso =&gt; 'AL', :name =&gt; 'ALBANIA', :printable_name =&gt; 'Albania', :iso3 =&gt; 'ALB', :numcode =&gt; '008') &lt;br /&gt;    Country.create(:iso =&gt; 'DZ', :name =&gt; 'ALGERIA', :printable_name =&gt; 'Algeria', :iso3 =&gt; 'DZA', :numcode =&gt; '012') &lt;br /&gt;    Country.create(:iso =&gt; 'AS', :name =&gt; 'AMERICAN SAMOA', :printable_name =&gt; 'American Samoa', :iso3 =&gt; 'ASM', :numcode =&gt; '016') &lt;br /&gt;    Country.create(:iso =&gt; 'AD', :name =&gt; 'ANDORRA', :printable_name =&gt; 'Andorra', :iso3 =&gt; 'AND', :numcode =&gt; '020') &lt;br /&gt;    Country.create(:iso =&gt; 'AO', :name =&gt; 'ANGOLA', :printable_name =&gt; 'Angola', :iso3 =&gt; 'AGO', :numcode =&gt; '024') &lt;br /&gt;    Country.create(:iso =&gt; 'AI', :name =&gt; 'ANGUILLA', :printable_name =&gt; 'Anguilla', :iso3 =&gt; 'AIA', :numcode =&gt; '660') &lt;br /&gt;    Country.create(:iso =&gt; 'AG', :name =&gt; 'ANTIGUA AND BARBUDA', :printable_name =&gt; 'Antigua and Barbuda', :iso3 =&gt; 'ATG', :numcode =&gt; '028') &lt;br /&gt;    Country.create(:iso =&gt; 'AR', :name =&gt; 'ARGENTINA', :printable_name =&gt; 'Argentina', :iso3 =&gt; 'ARG', :numcode =&gt; '032') &lt;br /&gt;    Country.create(:iso =&gt; 'AM', :name =&gt; 'ARMENIA', :printable_name =&gt; 'Armenia', :iso3 =&gt; 'ARM', :numcode =&gt; '051') &lt;br /&gt;    Country.create(:iso =&gt; 'AW', :name =&gt; 'ARUBA', :printable_name =&gt; 'Aruba', :iso3 =&gt; 'ABW', :numcode =&gt; '533') &lt;br /&gt;    Country.create(:iso =&gt; 'AU', :name =&gt; 'AUSTRALIA', :printable_name =&gt; 'Australia', :iso3 =&gt; 'AUS', :numcode =&gt; '036') &lt;br /&gt;    Country.create(:iso =&gt; 'AT', :name =&gt; 'AUSTRIA', :printable_name =&gt; 'Austria', :iso3 =&gt; 'AUT', :numcode =&gt; '040') &lt;br /&gt;    Country.create(:iso =&gt; 'AZ', :name =&gt; 'AZERBAIJAN', :printable_name =&gt; 'Azerbaijan', :iso3 =&gt; 'AZE', :numcode =&gt; '031') &lt;br /&gt;    Country.create(:iso =&gt; 'BS', :name =&gt; 'BAHAMAS', :printable_name =&gt; 'Bahamas', :iso3 =&gt; 'BHS', :numcode =&gt; '044') &lt;br /&gt;    Country.create(:iso =&gt; 'BH', :name =&gt; 'BAHRAIN', :printable_name =&gt; 'Bahrain', :iso3 =&gt; 'BHR', :numcode =&gt; '048') &lt;br /&gt;    Country.create(:iso =&gt; 'BD', :name =&gt; 'BANGLADESH', :printable_name =&gt; 'Bangladesh', :iso3 =&gt; 'BGD', :numcode =&gt; '050') &lt;br /&gt;    Country.create(:iso =&gt; 'BB', :name =&gt; 'BARBADOS', :printable_name =&gt; 'Barbados', :iso3 =&gt; 'BRB', :numcode =&gt; '052') &lt;br /&gt;    Country.create(:iso =&gt; 'BY', :name =&gt; 'BELARUS', :printable_name =&gt; 'Belarus', :iso3 =&gt; 'BLR', :numcode =&gt; '112') &lt;br /&gt;    Country.create(:iso =&gt; 'BE', :name =&gt; 'BELGIUM', :printable_name =&gt; 'Belgium', :iso3 =&gt; 'BEL', :numcode =&gt; '056') &lt;br /&gt;    Country.create(:iso =&gt; 'BZ', :name =&gt; 'BELIZE', :printable_name =&gt; 'Belize', :iso3 =&gt; 'BLZ', :numcode =&gt; '084') &lt;br /&gt;    Country.create(:iso =&gt; 'BJ', :name =&gt; 'BENIN', :printable_name =&gt; 'Benin', :iso3 =&gt; 'BEN', :numcode =&gt; '204') &lt;br /&gt;    Country.create(:iso =&gt; 'BM', :name =&gt; 'BERMUDA', :printable_name =&gt; 'Bermuda', :iso3 =&gt; 'BMU', :numcode =&gt; '060') &lt;br /&gt;    Country.create(:iso =&gt; 'BT', :name =&gt; 'BHUTAN', :printable_name =&gt; 'Bhutan', :iso3 =&gt; 'BTN', :numcode =&gt; '064') &lt;br /&gt;    Country.create(:iso =&gt; 'BO', :name =&gt; 'BOLIVIA', :printable_name =&gt; 'Bolivia', :iso3 =&gt; 'BOL', :numcode =&gt; '068') &lt;br /&gt;    Country.create(:iso =&gt; 'BA', :name =&gt; 'BOSNIA AND HERZEGOVINA', :printable_name =&gt; 'Bosnia and Herzegovina', :iso3 =&gt; 'BIH', :numcode =&gt; '070') &lt;br /&gt;    Country.create(:iso =&gt; 'BW', :name =&gt; 'BOTSWANA', :printable_name =&gt; 'Botswana', :iso3 =&gt; 'BWA', :numcode =&gt; '072') &lt;br /&gt;    Country.create(:iso =&gt; 'BR', :name =&gt; 'BRAZIL', :printable_name =&gt; 'Brazil', :iso3 =&gt; 'BRA', :numcode =&gt; '076') &lt;br /&gt;    Country.create(:iso =&gt; 'BN', :name =&gt; 'BRUNEI DARUSSALAM', :printable_name =&gt; 'Brunei Darussalam', :iso3 =&gt; 'BRN', :numcode =&gt; '096') &lt;br /&gt;    Country.create(:iso =&gt; 'BG', :name =&gt; 'BULGARIA', :printable_name =&gt; 'Bulgaria', :iso3 =&gt; 'BGR', :numcode =&gt; '100') &lt;br /&gt;    Country.create(:iso =&gt; 'BF', :name =&gt; 'BURKINA FASO', :printable_name =&gt; 'Burkina Faso', :iso3 =&gt; 'BFA', :numcode =&gt; '854') &lt;br /&gt;    Country.create(:iso =&gt; 'BI', :name =&gt; 'BURUNDI', :printable_name =&gt; 'Burundi', :iso3 =&gt; 'BDI', :numcode =&gt; '108') &lt;br /&gt;    Country.create(:iso =&gt; 'KH', :name =&gt; 'CAMBODIA', :printable_name =&gt; 'Cambodia', :iso3 =&gt; 'KHM', :numcode =&gt; '116') &lt;br /&gt;    Country.create(:iso =&gt; 'CM', :name =&gt; 'CAMEROON', :printable_name =&gt; 'Cameroon', :iso3 =&gt; 'CMR', :numcode =&gt; '120') &lt;br /&gt;    Country.create(:iso =&gt; 'CA', :name =&gt; 'CANADA', :printable_name =&gt; 'Canada', :iso3 =&gt; 'CAN', :numcode =&gt; '124') &lt;br /&gt;    Country.create(:iso =&gt; 'CV', :name =&gt; 'CAPE VERDE', :printable_name =&gt; 'Cape Verde', :iso3 =&gt; 'CPV', :numcode =&gt; '132') &lt;br /&gt;    Country.create(:iso =&gt; 'KY', :name =&gt; 'CAYMAN ISLANDS', :printable_name =&gt; 'Cayman Islands', :iso3 =&gt; 'CYM', :numcode =&gt; '136') &lt;br /&gt;    Country.create(:iso =&gt; 'CF', :name =&gt; 'CENTRAL AFRICAN REPUBLIC', :printable_name =&gt; 'Central African Republic', :iso3 =&gt; 'CAF', :numcode =&gt; '140') &lt;br /&gt;    Country.create(:iso =&gt; 'TD', :name =&gt; 'CHAD', :printable_name =&gt; 'Chad', :iso3 =&gt; 'TCD', :numcode =&gt; '148') &lt;br /&gt;    Country.create(:iso =&gt; 'CL', :name =&gt; 'CHILE', :printable_name =&gt; 'Chile', :iso3 =&gt; 'CHL', :numcode =&gt; '152') &lt;br /&gt;    Country.create(:iso =&gt; 'CN', :name =&gt; 'CHINA', :printable_name =&gt; 'China', :iso3 =&gt; 'CHN', :numcode =&gt; '156') &lt;br /&gt;    Country.create(:iso =&gt; 'CO', :name =&gt; 'COLOMBIA', :printable_name =&gt; 'Colombia', :iso3 =&gt; 'COL', :numcode =&gt; '170') &lt;br /&gt;    Country.create(:iso =&gt; 'KM', :name =&gt; 'COMOROS', :printable_name =&gt; 'Comoros', :iso3 =&gt; 'COM', :numcode =&gt; '174') &lt;br /&gt;    Country.create(:iso =&gt; 'CG', :name =&gt; 'CONGO', :printable_name =&gt; 'Congo', :iso3 =&gt; 'COG', :numcode =&gt; '178') &lt;br /&gt;    Country.create(:iso =&gt; 'CD', :name =&gt; 'CONGO, THE DEMOCRATIC REPUBLIC OF THE', :printable_name =&gt; 'Congo, the Democratic Republic of the', :iso3 =&gt; 'COD', :numcode =&gt; '180') &lt;br /&gt;    Country.create(:iso =&gt; 'CK', :name =&gt; 'COOK ISLANDS', :printable_name =&gt; 'Cook Islands', :iso3 =&gt; 'COK', :numcode =&gt; '184') &lt;br /&gt;    Country.create(:iso =&gt; 'CR', :name =&gt; 'COSTA RICA', :printable_name =&gt; 'Costa Rica', :iso3 =&gt; 'CRI', :numcode =&gt; '188') &lt;br /&gt;    Country.create(:iso =&gt; 'CI', :name =&gt; 'COTE D\'IVOIRE', :printable_name =&gt; 'Cote D\'Ivoire', :iso3 =&gt; 'CIV', :numcode =&gt; '384') &lt;br /&gt;    Country.create(:iso =&gt; 'HR', :name =&gt; 'CROATIA', :printable_name =&gt; 'Croatia', :iso3 =&gt; 'HRV', :numcode =&gt; '191') &lt;br /&gt;    Country.create(:iso =&gt; 'CU', :name =&gt; 'CUBA', :printable_name =&gt; 'Cuba', :iso3 =&gt; 'CUB', :numcode =&gt; '192') &lt;br /&gt;    Country.create(:iso =&gt; 'CY', :name =&gt; 'CYPRUS', :printable_name =&gt; 'Cyprus', :iso3 =&gt; 'CYP', :numcode =&gt; '196') &lt;br /&gt;    Country.create(:iso =&gt; 'CZ', :name =&gt; 'CZECH REPUBLIC', :printable_name =&gt; 'Czech Republic', :iso3 =&gt; 'CZE', :numcode =&gt; '203') &lt;br /&gt;    Country.create(:iso =&gt; 'DK', :name =&gt; 'DENMARK', :printable_name =&gt; 'Denmark', :iso3 =&gt; 'DNK', :numcode =&gt; '208') &lt;br /&gt;    Country.create(:iso =&gt; 'DJ', :name =&gt; 'DJIBOUTI', :printable_name =&gt; 'Djibouti', :iso3 =&gt; 'DJI', :numcode =&gt; '262') &lt;br /&gt;    Country.create(:iso =&gt; 'DM', :name =&gt; 'DOMINICA', :printable_name =&gt; 'Dominica', :iso3 =&gt; 'DMA', :numcode =&gt; '212') &lt;br /&gt;    Country.create(:iso =&gt; 'DO', :name =&gt; 'DOMINICAN REPUBLIC', :printable_name =&gt; 'Dominican Republic', :iso3 =&gt; 'DOM', :numcode =&gt; '214') &lt;br /&gt;    Country.create(:iso =&gt; 'EC', :name =&gt; 'ECUADOR', :printable_name =&gt; 'Ecuador', :iso3 =&gt; 'ECU', :numcode =&gt; '218') &lt;br /&gt;    Country.create(:iso =&gt; 'EG', :name =&gt; 'EGYPT', :printable_name =&gt; 'Egypt', :iso3 =&gt; 'EGY', :numcode =&gt; '818') &lt;br /&gt;    Country.create(:iso =&gt; 'SV', :name =&gt; 'EL SALVADOR', :printable_name =&gt; 'El Salvador', :iso3 =&gt; 'SLV', :numcode =&gt; '222') &lt;br /&gt;    Country.create(:iso =&gt; 'GQ', :name =&gt; 'EQUATORIAL GUINEA', :printable_name =&gt; 'Equatorial Guinea', :iso3 =&gt; 'GNQ', :numcode =&gt; '226') &lt;br /&gt;    Country.create(:iso =&gt; 'ER', :name =&gt; 'ERITREA', :printable_name =&gt; 'Eritrea', :iso3 =&gt; 'ERI', :numcode =&gt; '232') &lt;br /&gt;    Country.create(:iso =&gt; 'EE', :name =&gt; 'ESTONIA', :printable_name =&gt; 'Estonia', :iso3 =&gt; 'EST', :numcode =&gt; '233') &lt;br /&gt;    Country.create(:iso =&gt; 'ET', :name =&gt; 'ETHIOPIA', :printable_name =&gt; 'Ethiopia', :iso3 =&gt; 'ETH', :numcode =&gt; '231') &lt;br /&gt;    Country.create(:iso =&gt; 'FK', :name =&gt; 'FALKLAND ISLANDS (MALVINAS)', :printable_name =&gt; 'Falkland Islands (Malvinas)', :iso3 =&gt; 'FLK', :numcode =&gt; '238') &lt;br /&gt;    Country.create(:iso =&gt; 'FO', :name =&gt; 'FAROE ISLANDS', :printable_name =&gt; 'Faroe Islands', :iso3 =&gt; 'FRO', :numcode =&gt; '234') &lt;br /&gt;    Country.create(:iso =&gt; 'FJ', :name =&gt; 'FIJI', :printable_name =&gt; 'Fiji', :iso3 =&gt; 'FJI', :numcode =&gt; '242') &lt;br /&gt;    Country.create(:iso =&gt; 'FI', :name =&gt; 'FINLAND', :printable_name =&gt; 'Finland', :iso3 =&gt; 'FIN', :numcode =&gt; '246') &lt;br /&gt;    Country.create(:iso =&gt; 'FR', :name =&gt; 'FRANCE', :printable_name =&gt; 'France', :iso3 =&gt; 'FRA', :numcode =&gt; '250') &lt;br /&gt;    Country.create(:iso =&gt; 'GF', :name =&gt; 'FRENCH GUIANA', :printable_name =&gt; 'French Guiana', :iso3 =&gt; 'GUF', :numcode =&gt; '254') &lt;br /&gt;    Country.create(:iso =&gt; 'PF', :name =&gt; 'FRENCH POLYNESIA', :printable_name =&gt; 'French Polynesia', :iso3 =&gt; 'PYF', :numcode =&gt; '258') &lt;br /&gt;    Country.create(:iso =&gt; 'GA', :name =&gt; 'GABON', :printable_name =&gt; 'Gabon', :iso3 =&gt; 'GAB', :numcode =&gt; '266') &lt;br /&gt;    Country.create(:iso =&gt; 'GM', :name =&gt; 'GAMBIA', :printable_name =&gt; 'Gambia', :iso3 =&gt; 'GMB', :numcode =&gt; '270') &lt;br /&gt;    Country.create(:iso =&gt; 'GE', :name =&gt; 'GEORGIA', :printable_name =&gt; 'Georgia', :iso3 =&gt; 'GEO', :numcode =&gt; '268') &lt;br /&gt;    Country.create(:iso =&gt; 'DE', :name =&gt; 'GERMANY', :printable_name =&gt; 'Germany', :iso3 =&gt; 'DEU', :numcode =&gt; '276') &lt;br /&gt;    Country.create(:iso =&gt; 'GH', :name =&gt; 'GHANA', :printable_name =&gt; 'Ghana', :iso3 =&gt; 'GHA', :numcode =&gt; '288') &lt;br /&gt;    Country.create(:iso =&gt; 'GI', :name =&gt; 'GIBRALTAR', :printable_name =&gt; 'Gibraltar', :iso3 =&gt; 'GIB', :numcode =&gt; '292') &lt;br /&gt;    Country.create(:iso =&gt; 'GR', :name =&gt; 'GREECE', :printable_name =&gt; 'Greece', :iso3 =&gt; 'GRC', :numcode =&gt; '300') &lt;br /&gt;    Country.create(:iso =&gt; 'GL', :name =&gt; 'GREENLAND', :printable_name =&gt; 'Greenland', :iso3 =&gt; 'GRL', :numcode =&gt; '304') &lt;br /&gt;    Country.create(:iso =&gt; 'GD', :name =&gt; 'GRENADA', :printable_name =&gt; 'Grenada', :iso3 =&gt; 'GRD', :numcode =&gt; '308') &lt;br /&gt;    Country.create(:iso =&gt; 'GP', :name =&gt; 'GUADELOUPE', :printable_name =&gt; 'Guadeloupe', :iso3 =&gt; 'GLP', :numcode =&gt; '312') &lt;br /&gt;    Country.create(:iso =&gt; 'GU', :name =&gt; 'GUAM', :printable_name =&gt; 'Guam', :iso3 =&gt; 'GUM', :numcode =&gt; '316') &lt;br /&gt;    Country.create(:iso =&gt; 'GT', :name =&gt; 'GUATEMALA', :printable_name =&gt; 'Guatemala', :iso3 =&gt; 'GTM', :numcode =&gt; '320') &lt;br /&gt;    Country.create(:iso =&gt; 'GN', :name =&gt; 'GUINEA', :printable_name =&gt; 'Guinea', :iso3 =&gt; 'GIN', :numcode =&gt; '324') &lt;br /&gt;    Country.create(:iso =&gt; 'GW', :name =&gt; 'GUINEA-BISSAU', :printable_name =&gt; 'Guinea-Bissau', :iso3 =&gt; 'GNB', :numcode =&gt; '624') &lt;br /&gt;    Country.create(:iso =&gt; 'GY', :name =&gt; 'GUYANA', :printable_name =&gt; 'Guyana', :iso3 =&gt; 'GUY', :numcode =&gt; '328') &lt;br /&gt;    Country.create(:iso =&gt; 'HT', :name =&gt; 'HAITI', :printable_name =&gt; 'Haiti', :iso3 =&gt; 'HTI', :numcode =&gt; '332') &lt;br /&gt;    Country.create(:iso =&gt; 'VA', :name =&gt; 'HOLY SEE (VATICAN CITY STATE)', :printable_name =&gt; 'Holy See (Vatican City State)', :iso3 =&gt; 'VAT', :numcode =&gt; '336') &lt;br /&gt;    Country.create(:iso =&gt; 'HN', :name =&gt; 'HONDURAS', :printable_name =&gt; 'Honduras', :iso3 =&gt; 'HND', :numcode =&gt; '340') &lt;br /&gt;    Country.create(:iso =&gt; 'HK', :name =&gt; 'HONG KONG', :printable_name =&gt; 'Hong Kong', :iso3 =&gt; 'HKG', :numcode =&gt; '344') &lt;br /&gt;    Country.create(:iso =&gt; 'HU', :name =&gt; 'HUNGARY', :printable_name =&gt; 'Hungary', :iso3 =&gt; 'HUN', :numcode =&gt; '348') &lt;br /&gt;    Country.create(:iso =&gt; 'IS', :name =&gt; 'ICELAND', :printable_name =&gt; 'Iceland', :iso3 =&gt; 'ISL', :numcode =&gt; '352') &lt;br /&gt;    Country.create(:iso =&gt; 'IN', :name =&gt; 'INDIA', :printable_name =&gt; 'India', :iso3 =&gt; 'IND', :numcode =&gt; '356') &lt;br /&gt;    Country.create(:iso =&gt; 'ID', :name =&gt; 'INDONESIA', :printable_name =&gt; 'Indonesia', :iso3 =&gt; 'IDN', :numcode =&gt; '360') &lt;br /&gt;    Country.create(:iso =&gt; 'IR', :name =&gt; 'IRAN, ISLAMIC REPUBLIC OF', :printable_name =&gt; 'Iran, Islamic Republic of', :iso3 =&gt; 'IRN', :numcode =&gt; '364') &lt;br /&gt;    Country.create(:iso =&gt; 'IQ', :name =&gt; 'IRAQ', :printable_name =&gt; 'Iraq', :iso3 =&gt; 'IRQ', :numcode =&gt; '368') &lt;br /&gt;    Country.create(:iso =&gt; 'IE', :name =&gt; 'IRELAND', :printable_name =&gt; 'Ireland', :iso3 =&gt; 'IRL', :numcode =&gt; '372') &lt;br /&gt;    Country.create(:iso =&gt; 'IL', :name =&gt; 'ISRAEL', :printable_name =&gt; 'Israel', :iso3 =&gt; 'ISR', :numcode =&gt; '376') &lt;br /&gt;    Country.create(:iso =&gt; 'IT', :name =&gt; 'ITALY', :printable_name =&gt; 'Italy', :iso3 =&gt; 'ITA', :numcode =&gt; '380') &lt;br /&gt;    Country.create(:iso =&gt; 'JM', :name =&gt; 'JAMAICA', :printable_name =&gt; 'Jamaica', :iso3 =&gt; 'JAM', :numcode =&gt; '388') &lt;br /&gt;    Country.create(:iso =&gt; 'JP', :name =&gt; 'JAPAN', :printable_name =&gt; 'Japan', :iso3 =&gt; 'JPN', :numcode =&gt; '392') &lt;br /&gt;    Country.create(:iso =&gt; 'JO', :name =&gt; 'JORDAN', :printable_name =&gt; 'Jordan', :iso3 =&gt; 'JOR', :numcode =&gt; '400') &lt;br /&gt;    Country.create(:iso =&gt; 'KZ', :name =&gt; 'KAZAKHSTAN', :printable_name =&gt; 'Kazakhstan', :iso3 =&gt; 'KAZ', :numcode =&gt; '398') &lt;br /&gt;    Country.create(:iso =&gt; 'KE', :name =&gt; 'KENYA', :printable_name =&gt; 'Kenya', :iso3 =&gt; 'KEN', :numcode =&gt; '404') &lt;br /&gt;    Country.create(:iso =&gt; 'KI', :name =&gt; 'KIRIBATI', :printable_name =&gt; 'Kiribati', :iso3 =&gt; 'KIR', :numcode =&gt; '296') &lt;br /&gt;    Country.create(:iso =&gt; 'KP', :name =&gt; 'KOREA, DEMOCRATIC PEOPLE\'S REPUBLIC OF', :printable_name =&gt; 'Korea, Democratic People\'s Republic of', :iso3 =&gt; 'PRK', :numcode =&gt; '408') &lt;br /&gt;    Country.create(:iso =&gt; 'KR', :name =&gt; 'KOREA, REPUBLIC OF', :printable_name =&gt; 'Korea, Republic of', :iso3 =&gt; 'KOR', :numcode =&gt; '410') &lt;br /&gt;    Country.create(:iso =&gt; 'KW', :name =&gt; 'KUWAIT', :printable_name =&gt; 'Kuwait', :iso3 =&gt; 'KWT', :numcode =&gt; '414') &lt;br /&gt;    Country.create(:iso =&gt; 'KG', :name =&gt; 'KYRGYZSTAN', :printable_name =&gt; 'Kyrgyzstan', :iso3 =&gt; 'KGZ', :numcode =&gt; '417') &lt;br /&gt;    Country.create(:iso =&gt; 'LA', :name =&gt; 'LAO PEOPLE\'S DEMOCRATIC REPUBLIC', :printable_name =&gt; 'Lao People\'s Democratic Republic', :iso3 =&gt; 'LAO', :numcode =&gt; '418') &lt;br /&gt;    Country.create(:iso =&gt; 'LV', :name =&gt; 'LATVIA', :printable_name =&gt; 'Latvia', :iso3 =&gt; 'LVA', :numcode =&gt; '428') &lt;br /&gt;    Country.create(:iso =&gt; 'LB', :name =&gt; 'LEBANON', :printable_name =&gt; 'Lebanon', :iso3 =&gt; 'LBN', :numcode =&gt; '422') &lt;br /&gt;    Country.create(:iso =&gt; 'LS', :name =&gt; 'LESOTHO', :printable_name =&gt; 'Lesotho', :iso3 =&gt; 'LSO', :numcode =&gt; '426') &lt;br /&gt;    Country.create(:iso =&gt; 'LR', :name =&gt; 'LIBERIA', :printable_name =&gt; 'Liberia', :iso3 =&gt; 'LBR', :numcode =&gt; '430') &lt;br /&gt;    Country.create(:iso =&gt; 'LY', :name =&gt; 'LIBYAN ARAB JAMAHIRIYA', :printable_name =&gt; 'Libyan Arab Jamahiriya', :iso3 =&gt; 'LBY', :numcode =&gt; '434') &lt;br /&gt;    Country.create(:iso =&gt; 'LI', :name =&gt; 'LIECHTENSTEIN', :printable_name =&gt; 'Liechtenstein', :iso3 =&gt; 'LIE', :numcode =&gt; '438') &lt;br /&gt;    Country.create(:iso =&gt; 'LT', :name =&gt; 'LITHUANIA', :printable_name =&gt; 'Lithuania', :iso3 =&gt; 'LTU', :numcode =&gt; '440') &lt;br /&gt;    Country.create(:iso =&gt; 'LU', :name =&gt; 'LUXEMBOURG', :printable_name =&gt; 'Luxembourg', :iso3 =&gt; 'LUX', :numcode =&gt; '442') &lt;br /&gt;    Country.create(:iso =&gt; 'MO', :name =&gt; 'MACAO', :printable_name =&gt; 'Macao', :iso3 =&gt; 'MAC', :numcode =&gt; '446') &lt;br /&gt;    Country.create(:iso =&gt; 'MK', :name =&gt; 'MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF', :printable_name =&gt; 'Macedonia, the Former Yugoslav Republic of', :iso3 =&gt; 'MKD', :numcode =&gt; '807') &lt;br /&gt;    Country.create(:iso =&gt; 'MG', :name =&gt; 'MADAGASCAR', :printable_name =&gt; 'Madagascar', :iso3 =&gt; 'MDG', :numcode =&gt; '450') &lt;br /&gt;    Country.create(:iso =&gt; 'MW', :name =&gt; 'MALAWI', :printable_name =&gt; 'Malawi', :iso3 =&gt; 'MWI', :numcode =&gt; '454') &lt;br /&gt;    Country.create(:iso =&gt; 'MY', :name =&gt; 'MALAYSIA', :printable_name =&gt; 'Malaysia', :iso3 =&gt; 'MYS', :numcode =&gt; '458') &lt;br /&gt;    Country.create(:iso =&gt; 'MV', :name =&gt; 'MALDIVES', :printable_name =&gt; 'Maldives', :iso3 =&gt; 'MDV', :numcode =&gt; '462') &lt;br /&gt;    Country.create(:iso =&gt; 'ML', :name =&gt; 'MALI', :printable_name =&gt; 'Mali', :iso3 =&gt; 'MLI', :numcode =&gt; '466') &lt;br /&gt;    Country.create(:iso =&gt; 'MT', :name =&gt; 'MALTA', :printable_name =&gt; 'Malta', :iso3 =&gt; 'MLT', :numcode =&gt; '470') &lt;br /&gt;    Country.create(:iso =&gt; 'MH', :name =&gt; 'MARSHALL ISLANDS', :printable_name =&gt; 'Marshall Islands', :iso3 =&gt; 'MHL', :numcode =&gt; '584') &lt;br /&gt;    Country.create(:iso =&gt; 'MQ', :name =&gt; 'MARTINIQUE', :printable_name =&gt; 'Martinique', :iso3 =&gt; 'MTQ', :numcode =&gt; '474') &lt;br /&gt;    Country.create(:iso =&gt; 'MR', :name =&gt; 'MAURITANIA', :printable_name =&gt; 'Mauritania', :iso3 =&gt; 'MRT', :numcode =&gt; '478') &lt;br /&gt;    Country.create(:iso =&gt; 'MU', :name =&gt; 'MAURITIUS', :printable_name =&gt; 'Mauritius', :iso3 =&gt; 'MUS', :numcode =&gt; '480') &lt;br /&gt;    Country.create(:iso =&gt; 'MX', :name =&gt; 'MEXICO', :printable_name =&gt; 'Mexico', :iso3 =&gt; 'MEX', :numcode =&gt; '484') &lt;br /&gt;    Country.create(:iso =&gt; 'FM', :name =&gt; 'MICRONESIA, FEDERATED STATES OF', :printable_name =&gt; 'Micronesia, Federated States of', :iso3 =&gt; 'FSM', :numcode =&gt; '583') &lt;br /&gt;    Country.create(:iso =&gt; 'MD', :name =&gt; 'MOLDOVA, REPUBLIC OF', :printable_name =&gt; 'Moldova, Republic of', :iso3 =&gt; 'MDA', :numcode =&gt; '498') &lt;br /&gt;    Country.create(:iso =&gt; 'MC', :name =&gt; 'MONACO', :printable_name =&gt; 'Monaco', :iso3 =&gt; 'MCO', :numcode =&gt; '492') &lt;br /&gt;    Country.create(:iso =&gt; 'MN', :name =&gt; 'MONGOLIA', :printable_name =&gt; 'Mongolia', :iso3 =&gt; 'MNG', :numcode =&gt; '496') &lt;br /&gt;    Country.create(:iso =&gt; 'MS', :name =&gt; 'MONTSERRAT', :printable_name =&gt; 'Montserrat', :iso3 =&gt; 'MSR', :numcode =&gt; '500') &lt;br /&gt;    Country.create(:iso =&gt; 'MA', :name =&gt; 'MOROCCO', :printable_name =&gt; 'Morocco', :iso3 =&gt; 'MAR', :numcode =&gt; '504') &lt;br /&gt;    Country.create(:iso =&gt; 'MZ', :name =&gt; 'MOZAMBIQUE', :printable_name =&gt; 'Mozambique', :iso3 =&gt; 'MOZ', :numcode =&gt; '508') &lt;br /&gt;    Country.create(:iso =&gt; 'MM', :name =&gt; 'MYANMAR', :printable_name =&gt; 'Myanmar', :iso3 =&gt; 'MMR', :numcode =&gt; '104') &lt;br /&gt;    Country.create(:iso =&gt; 'NA', :name =&gt; 'NAMIBIA', :printable_name =&gt; 'Namibia', :iso3 =&gt; 'NAM', :numcode =&gt; '516') &lt;br /&gt;    Country.create(:iso =&gt; 'NR', :name =&gt; 'NAURU', :printable_name =&gt; 'Nauru', :iso3 =&gt; 'NRU', :numcode =&gt; '520') &lt;br /&gt;    Country.create(:iso =&gt; 'NP', :name =&gt; 'NEPAL', :printable_name =&gt; 'Nepal', :iso3 =&gt; 'NPL', :numcode =&gt; '524') &lt;br /&gt;    Country.create(:iso =&gt; 'NL', :name =&gt; 'NETHERLANDS', :printable_name =&gt; 'Netherlands', :iso3 =&gt; 'NLD', :numcode =&gt; '528') &lt;br /&gt;    Country.create(:iso =&gt; 'AN', :name =&gt; 'NETHERLANDS ANTILLES', :printable_name =&gt; 'Netherlands Antilles', :iso3 =&gt; 'ANT', :numcode =&gt; '530') &lt;br /&gt;    Country.create(:iso =&gt; 'NC', :name =&gt; 'NEW CALEDONIA', :printable_name =&gt; 'New Caledonia', :iso3 =&gt; 'NCL', :numcode =&gt; '540') &lt;br /&gt;    Country.create(:iso =&gt; 'NZ', :name =&gt; 'NEW ZEALAND', :printable_name =&gt; 'New Zealand', :iso3 =&gt; 'NZL', :numcode =&gt; '554') &lt;br /&gt;    Country.create(:iso =&gt; 'NI', :name =&gt; 'NICARAGUA', :printable_name =&gt; 'Nicaragua', :iso3 =&gt; 'NIC', :numcode =&gt; '558') &lt;br /&gt;    Country.create(:iso =&gt; 'NE', :name =&gt; 'NIGER', :printable_name =&gt; 'Niger', :iso3 =&gt; 'NER', :numcode =&gt; '562') &lt;br /&gt;    Country.create(:iso =&gt; 'NG', :name =&gt; 'NIGERIA', :printable_name =&gt; 'Nigeria', :iso3 =&gt; 'NGA', :numcode =&gt; '566') &lt;br /&gt;    Country.create(:iso =&gt; 'NU', :name =&gt; 'NIUE', :printable_name =&gt; 'Niue', :iso3 =&gt; 'NIU', :numcode =&gt; '570') &lt;br /&gt;    Country.create(:iso =&gt; 'NF', :name =&gt; 'NORFOLK ISLAND', :printable_name =&gt; 'Norfolk Island', :iso3 =&gt; 'NFK', :numcode =&gt; '574') &lt;br /&gt;    Country.create(:iso =&gt; 'MP', :name =&gt; 'NORTHERN MARIANA ISLANDS', :printable_name =&gt; 'Northern Mariana Islands', :iso3 =&gt; 'MNP', :numcode =&gt; '580') &lt;br /&gt;    Country.create(:iso =&gt; 'NO', :name =&gt; 'NORWAY', :printable_name =&gt; 'Norway', :iso3 =&gt; 'NOR', :numcode =&gt; '578') &lt;br /&gt;    Country.create(:iso =&gt; 'OM', :name =&gt; 'OMAN', :printable_name =&gt; 'Oman', :iso3 =&gt; 'OMN', :numcode =&gt; '512') &lt;br /&gt;    Country.create(:iso =&gt; 'PK', :name =&gt; 'PAKISTAN', :printable_name =&gt; 'Pakistan', :iso3 =&gt; 'PAK', :numcode =&gt; '586') &lt;br /&gt;    Country.create(:iso =&gt; 'PW', :name =&gt; 'PALAU', :printable_name =&gt; 'Palau', :iso3 =&gt; 'PLW', :numcode =&gt; '585') &lt;br /&gt;    Country.create(:iso =&gt; 'PA', :name =&gt; 'PANAMA', :printable_name =&gt; 'Panama', :iso3 =&gt; 'PAN', :numcode =&gt; '591') &lt;br /&gt;    Country.create(:iso =&gt; 'PG', :name =&gt; 'PAPUA NEW GUINEA', :printable_name =&gt; 'Papua New Guinea', :iso3 =&gt; 'PNG', :numcode =&gt; '598') &lt;br /&gt;    Country.create(:iso =&gt; 'PY', :name =&gt; 'PARAGUAY', :printable_name =&gt; 'Paraguay', :iso3 =&gt; 'PRY', :numcode =&gt; '600') &lt;br /&gt;    Country.create(:iso =&gt; 'PE', :name =&gt; 'PERU', :printable_name =&gt; 'Peru', :iso3 =&gt; 'PER', :numcode =&gt; '604') &lt;br /&gt;    Country.create(:iso =&gt; 'PH', :name =&gt; 'PHILIPPINES', :printable_name =&gt; 'Philippines', :iso3 =&gt; 'PHL', :numcode =&gt; '608') &lt;br /&gt;    Country.create(:iso =&gt; 'PN', :name =&gt; 'PITCAIRN', :printable_name =&gt; 'Pitcairn', :iso3 =&gt; 'PCN', :numcode =&gt; '612') &lt;br /&gt;    Country.create(:iso =&gt; 'PL', :name =&gt; 'POLAND', :printable_name =&gt; 'Poland', :iso3 =&gt; 'POL', :numcode =&gt; '616') &lt;br /&gt;    Country.create(:iso =&gt; 'PT', :name =&gt; 'PORTUGAL', :printable_name =&gt; 'Portugal', :iso3 =&gt; 'PRT', :numcode =&gt; '620') &lt;br /&gt;    Country.create(:iso =&gt; 'PR', :name =&gt; 'PUERTO RICO', :printable_name =&gt; 'Puerto Rico', :iso3 =&gt; 'PRI', :numcode =&gt; '630') &lt;br /&gt;    Country.create(:iso =&gt; 'QA', :name =&gt; 'QATAR', :printable_name =&gt; 'Qatar', :iso3 =&gt; 'QAT', :numcode =&gt; '634') &lt;br /&gt;    Country.create(:iso =&gt; 'RE', :name =&gt; 'REUNION', :printable_name =&gt; 'Reunion', :iso3 =&gt; 'REU', :numcode =&gt; '638') &lt;br /&gt;    Country.create(:iso =&gt; 'RO', :name =&gt; 'ROMANIA', :printable_name =&gt; 'Romania', :iso3 =&gt; 'ROM', :numcode =&gt; '642') &lt;br /&gt;    Country.create(:iso =&gt; 'RU', :name =&gt; 'RUSSIAN FEDERATION', :printable_name =&gt; 'Russian Federation', :iso3 =&gt; 'RUS', :numcode =&gt; '643') &lt;br /&gt;    Country.create(:iso =&gt; 'RW', :name =&gt; 'RWANDA', :printable_name =&gt; 'Rwanda', :iso3 =&gt; 'RWA', :numcode =&gt; '646') &lt;br /&gt;    Country.create(:iso =&gt; 'SH', :name =&gt; 'SAINT HELENA', :printable_name =&gt; 'Saint Helena', :iso3 =&gt; 'SHN', :numcode =&gt; '654') &lt;br /&gt;    Country.create(:iso =&gt; 'KN', :name =&gt; 'SAINT KITTS AND NEVIS', :printable_name =&gt; 'Saint Kitts and Nevis', :iso3 =&gt; 'KNA', :numcode =&gt; '659') &lt;br /&gt;    Country.create(:iso =&gt; 'LC', :name =&gt; 'SAINT LUCIA', :printable_name =&gt; 'Saint Lucia', :iso3 =&gt; 'LCA', :numcode =&gt; '662') &lt;br /&gt;    Country.create(:iso =&gt; 'PM', :name =&gt; 'SAINT PIERRE AND MIQUELON', :printable_name =&gt; 'Saint Pierre and Miquelon', :iso3 =&gt; 'SPM', :numcode =&gt; '666') &lt;br /&gt;    Country.create(:iso =&gt; 'VC', :name =&gt; 'SAINT VINCENT AND THE GRENADINES', :printable_name =&gt; 'Saint Vincent and the Grenadines', :iso3 =&gt; 'VCT', :numcode =&gt; '670') &lt;br /&gt;    Country.create(:iso =&gt; 'WS', :name =&gt; 'SAMOA', :printable_name =&gt; 'Samoa', :iso3 =&gt; 'WSM', :numcode =&gt; '882') &lt;br /&gt;    Country.create(:iso =&gt; 'SM', :name =&gt; 'SAN MARINO', :printable_name =&gt; 'San Marino', :iso3 =&gt; 'SMR', :numcode =&gt; '674') &lt;br /&gt;    Country.create(:iso =&gt; 'ST', :name =&gt; 'SAO TOME AND PRINCIPE', :printable_name =&gt; 'Sao Tome and Principe', :iso3 =&gt; 'STP', :numcode =&gt; '678') &lt;br /&gt;    Country.create(:iso =&gt; 'SA', :name =&gt; 'SAUDI ARABIA', :printable_name =&gt; 'Saudi Arabia', :iso3 =&gt; 'SAU', :numcode =&gt; '682') &lt;br /&gt;    Country.create(:iso =&gt; 'SN', :name =&gt; 'SENEGAL', :printable_name =&gt; 'Senegal', :iso3 =&gt; 'SEN', :numcode =&gt; '686') &lt;br /&gt;    Country.create(:iso =&gt; 'SC', :name =&gt; 'SEYCHELLES', :printable_name =&gt; 'Seychelles', :iso3 =&gt; 'SYC', :numcode =&gt; '690') &lt;br /&gt;    Country.create(:iso =&gt; 'SL', :name =&gt; 'SIERRA LEONE', :printable_name =&gt; 'Sierra Leone', :iso3 =&gt; 'SLE', :numcode =&gt; '694') &lt;br /&gt;    Country.create(:iso =&gt; 'SG', :name =&gt; 'SINGAPORE', :printable_name =&gt; 'Singapore', :iso3 =&gt; 'SGP', :numcode =&gt; '702') &lt;br /&gt;    Country.create(:iso =&gt; 'SK', :name =&gt; 'SLOVAKIA', :printable_name =&gt; 'Slovakia', :iso3 =&gt; 'SVK', :numcode =&gt; '703') &lt;br /&gt;    Country.create(:iso =&gt; 'SI', :name =&gt; 'SLOVENIA', :printable_name =&gt; 'Slovenia', :iso3 =&gt; 'SVN', :numcode =&gt; '705') &lt;br /&gt;    Country.create(:iso =&gt; 'SB', :name =&gt; 'SOLOMON ISLANDS', :printable_name =&gt; 'Solomon Islands', :iso3 =&gt; 'SLB', :numcode =&gt; '090') &lt;br /&gt;    Country.create(:iso =&gt; 'SO', :name =&gt; 'SOMALIA', :printable_name =&gt; 'Somalia', :iso3 =&gt; 'SOM', :numcode =&gt; '706') &lt;br /&gt;    Country.create(:iso =&gt; 'ZA', :name =&gt; 'SOUTH AFRICA', :printable_name =&gt; 'South Africa', :iso3 =&gt; 'ZAF', :numcode =&gt; '710') &lt;br /&gt;    Country.create(:iso =&gt; 'ES', :name =&gt; 'SPAIN', :printable_name =&gt; 'Spain', :iso3 =&gt; 'ESP', :numcode =&gt; '724') &lt;br /&gt;    Country.create(:iso =&gt; 'LK', :name =&gt; 'SRI LANKA', :printable_name =&gt; 'Sri Lanka', :iso3 =&gt; 'LKA', :numcode =&gt; '144') &lt;br /&gt;    Country.create(:iso =&gt; 'SD', :name =&gt; 'SUDAN', :printable_name =&gt; 'Sudan', :iso3 =&gt; 'SDN', :numcode =&gt; '736') &lt;br /&gt;    Country.create(:iso =&gt; 'SR', :name =&gt; 'SURINAME', :printable_name =&gt; 'Suriname', :iso3 =&gt; 'SUR', :numcode =&gt; '740') &lt;br /&gt;    Country.create(:iso =&gt; 'SJ', :name =&gt; 'SVALBARD AND JAN MAYEN', :printable_name =&gt; 'Svalbard and Jan Mayen', :iso3 =&gt; 'SJM', :numcode =&gt; '744') &lt;br /&gt;    Country.create(:iso =&gt; 'SZ', :name =&gt; 'SWAZILAND', :printable_name =&gt; 'Swaziland', :iso3 =&gt; 'SWZ', :numcode =&gt; '748') &lt;br /&gt;    Country.create(:iso =&gt; 'SE', :name =&gt; 'SWEDEN', :printable_name =&gt; 'Sweden', :iso3 =&gt; 'SWE', :numcode =&gt; '752') &lt;br /&gt;    Country.create(:iso =&gt; 'CH', :name =&gt; 'SWITZERLAND', :printable_name =&gt; 'Switzerland', :iso3 =&gt; 'CHE', :numcode =&gt; '756') &lt;br /&gt;    Country.create(:iso =&gt; 'SY', :name =&gt; 'SYRIAN ARAB REPUBLIC', :printable_name =&gt; 'Syrian Arab Republic', :iso3 =&gt; 'SYR', :numcode =&gt; '760') &lt;br /&gt;    Country.create(:iso =&gt; 'TW', :name =&gt; 'TAIWAN, PROVINCE OF CHINA', :printable_name =&gt; 'Taiwan, Province of China', :iso3 =&gt; 'TWN', :numcode =&gt; '158') &lt;br /&gt;    Country.create(:iso =&gt; 'TJ', :name =&gt; 'TAJIKISTAN', :printable_name =&gt; 'Tajikistan', :iso3 =&gt; 'TJK', :numcode =&gt; '762') &lt;br /&gt;    Country.create(:iso =&gt; 'TZ', :name =&gt; 'TANZANIA, UNITED REPUBLIC OF', :printable_name =&gt; 'Tanzania, United Republic of', :iso3 =&gt; 'TZA', :numcode =&gt; '834') &lt;br /&gt;    Country.create(:iso =&gt; 'TH', :name =&gt; 'THAILAND', :printable_name =&gt; 'Thailand', :iso3 =&gt; 'THA', :numcode =&gt; '764') &lt;br /&gt;    Country.create(:iso =&gt; 'TG', :name =&gt; 'TOGO', :printable_name =&gt; 'Togo', :iso3 =&gt; 'TGO', :numcode =&gt; '768') &lt;br /&gt;    Country.create(:iso =&gt; 'TK', :name =&gt; 'TOKELAU', :printable_name =&gt; 'Tokelau', :iso3 =&gt; 'TKL', :numcode =&gt; '772') &lt;br /&gt;    Country.create(:iso =&gt; 'TO', :name =&gt; 'TONGA', :printable_name =&gt; 'Tonga', :iso3 =&gt; 'TON', :numcode =&gt; '776') &lt;br /&gt;    Country.create(:iso =&gt; 'TT', :name =&gt; 'TRINIDAD AND TOBAGO', :printable_name =&gt; 'Trinidad and Tobago', :iso3 =&gt; 'TTO', :numcode =&gt; '780') &lt;br /&gt;    Country.create(:iso =&gt; 'TN', :name =&gt; 'TUNISIA', :printable_name =&gt; 'Tunisia', :iso3 =&gt; 'TUN', :numcode =&gt; '788') &lt;br /&gt;    Country.create(:iso =&gt; 'TR', :name =&gt; 'TURKEY', :printable_name =&gt; 'Turkey', :iso3 =&gt; 'TUR', :numcode =&gt; '792') &lt;br /&gt;    Country.create(:iso =&gt; 'TM', :name =&gt; 'TURKMENISTAN', :printable_name =&gt; 'Turkmenistan', :iso3 =&gt; 'TKM', :numcode =&gt; '795') &lt;br /&gt;    Country.create(:iso =&gt; 'TC', :name =&gt; 'TURKS AND CAICOS ISLANDS', :printable_name =&gt; 'Turks and Caicos Islands', :iso3 =&gt; 'TCA', :numcode =&gt; '796') &lt;br /&gt;    Country.create(:iso =&gt; 'TV', :name =&gt; 'TUVALU', :printable_name =&gt; 'Tuvalu', :iso3 =&gt; 'TUV', :numcode =&gt; '798') &lt;br /&gt;    Country.create(:iso =&gt; 'UG', :name =&gt; 'UGANDA', :printable_name =&gt; 'Uganda', :iso3 =&gt; 'UGA', :numcode =&gt; '800') &lt;br /&gt;    Country.create(:iso =&gt; 'UA', :name =&gt; 'UKRAINE', :printable_name =&gt; 'Ukraine', :iso3 =&gt; 'UKR', :numcode =&gt; '804') &lt;br /&gt;    Country.create(:iso =&gt; 'AE', :name =&gt; 'UNITED ARAB EMIRATES', :printable_name =&gt; 'United Arab Emirates', :iso3 =&gt; 'ARE', :numcode =&gt; '784') &lt;br /&gt;    Country.create(:iso =&gt; 'GB', :name =&gt; 'UNITED KINGDOM', :printable_name =&gt; 'United Kingdom', :iso3 =&gt; 'GBR', :numcode =&gt; '826') &lt;br /&gt;    Country.create(:iso =&gt; 'US', :name =&gt; 'UNITED STATES', :printable_name =&gt; 'United States', :iso3 =&gt; 'USA', :numcode =&gt; '840') &lt;br /&gt;    Country.create(:iso =&gt; 'UY', :name =&gt; 'URUGUAY', :printable_name =&gt; 'Uruguay', :iso3 =&gt; 'URY', :numcode =&gt; '858') &lt;br /&gt;    Country.create(:iso =&gt; 'UZ', :name =&gt; 'UZBEKISTAN', :printable_name =&gt; 'Uzbekistan', :iso3 =&gt; 'UZB', :numcode =&gt; '860') &lt;br /&gt;    Country.create(:iso =&gt; 'VU', :name =&gt; 'VANUATU', :printable_name =&gt; 'Vanuatu', :iso3 =&gt; 'VUT', :numcode =&gt; '548') &lt;br /&gt;    Country.create(:iso =&gt; 'VE', :name =&gt; 'VENEZUELA', :printable_name =&gt; 'Venezuela', :iso3 =&gt; 'VEN', :numcode =&gt; '862') &lt;br /&gt;    Country.create(:iso =&gt; 'VN', :name =&gt; 'VIET NAM', :printable_name =&gt; 'Viet Nam', :iso3 =&gt; 'VNM', :numcode =&gt; '704') &lt;br /&gt;    Country.create(:iso =&gt; 'VG', :name =&gt; 'VIRGIN ISLANDS, BRITISH', :printable_name =&gt; 'Virgin Islands, British', :iso3 =&gt; 'VGB', :numcode =&gt; '092') &lt;br /&gt;    Country.create(:iso =&gt; 'VI', :name =&gt; 'VIRGIN ISLANDS, U.S.', :printable_name =&gt; 'Virgin Islands, U.s.', :iso3 =&gt; 'VIR', :numcode =&gt; '850') &lt;br /&gt;    Country.create(:iso =&gt; 'WF', :name =&gt; 'WALLIS AND FUTUNA', :printable_name =&gt; 'Wallis and Futuna', :iso3 =&gt; 'WLF', :numcode =&gt; '876') &lt;br /&gt;    Country.create(:iso =&gt; 'EH', :name =&gt; 'WESTERN SAHARA', :printable_name =&gt; 'Western Sahara', :iso3 =&gt; 'ESH', :numcode =&gt; '732') &lt;br /&gt;    Country.create(:iso =&gt; 'YE', :name =&gt; 'YEMEN', :printable_name =&gt; 'Yemen', :iso3 =&gt; 'YEM', :numcode =&gt; '887') &lt;br /&gt;    Country.create(:iso =&gt; 'ZM', :name =&gt; 'ZAMBIA', :printable_name =&gt; 'Zambia', :iso3 =&gt; 'ZMB', :numcode =&gt; '894') &lt;br /&gt;    Country.create(:iso =&gt; 'ZW', :name =&gt; 'ZIMBABWE', :printable_name =&gt; 'Zimbabwe', :iso3 =&gt; 'ZWE', :numcode =&gt; '716') &lt;br /&gt;&lt;br /&gt;  end&lt;br /&gt;&lt;br /&gt;  def self.down&lt;br /&gt;    drop_table :countries&lt;br /&gt;  end&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 22 Mar 2006 22:51:25 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1727</guid>
      <author>jmoses (jon)</author>
    </item>
    <item>
      <title>Country Codes ISO-3166 German SQL</title>
      <link>http://snippets.dzone.com/posts/show/1051</link>
      <description>This are the 2letter country codes according to ISO 3166 in German.&lt;br /&gt;Create statement is mysql, the inserts should do anywhere. Dont forget that copy and pasting this will probably give you UTF8 encoding, depending on your browser (and butterflies in Australia) &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;CREATE TABLE `laendercodes` (&lt;br /&gt;  `code` char(2) collate latin1_bin NOT NULL default '',&lt;br /&gt;  `name` varchar(50) collate latin1_bin NOT NULL default '',&lt;br /&gt;  PRIMARY KEY  (`code`)&lt;br /&gt;) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AF', 'Afghanistan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('EG', '&#196;gypten');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AL', 'Albanien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('DZ', 'Algerien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AD', 'Andorra');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AO', 'Angola');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AI', 'Anguilla');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AQ', 'Antarktis');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AG', 'Antigua und Barbuda');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GQ', '&#196;quatorial Guinea');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AR', 'Argentinien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AM', 'Armenien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AW', 'Aruba');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AZ', 'Aserbaidschan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('ET', '&#228;thiopien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AU', 'Australien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BS', 'Bahamas');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BH', 'Bahrain');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BD', 'Bangladesh');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BB', 'Barbados');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BE', 'Belgien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BZ', 'Belize');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BJ', 'Benin');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BM', 'Bermudas');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BT', 'Bhutan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MM', 'Birma');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BO', 'Bolivien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BA', 'Bosnien-Herzegowina');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BW', 'Botswana');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BV', 'Bouvet Inseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BR', 'Brasilien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('IO', 'Britisch-Indischer Ozean');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BN', 'Brunei');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BG', 'Bulgarien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BF', 'Burkina Faso');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BI', 'Burundi');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CL', 'Chile');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CN', 'China');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CX', 'Christmas Island');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CK', 'Cook Inseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CR', 'Costa Rica');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('DK', 'D&#228;nemark');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('DE', 'Deutschland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('DJ', 'Djibuti');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('DM', 'Dominika');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('DO', 'Dominikanische Republik');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('EC', 'Ecuador');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SV', 'El Salvador');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CI', 'Elfenbeink&#252;ste');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('ER', 'Eritrea');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('EE', 'Estland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('FK', 'Falkland Inseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('FO', 'F&#228;r&#246;er Inseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('FJ', 'Fidschi');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('FI', 'Finnland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('FR', 'Frankreich');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GF', 'franz&#246;sisch Guyana');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PF', 'Franz&#246;sisch Polynesien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TF', 'Franz&#246;sisches S&#252;d-Territorium');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GA', 'Gabun');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GM', 'Gambia');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GE', 'Georgien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GH', 'Ghana');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GI', 'Gibraltar');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GD', 'Grenada');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GR', 'Griechenland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GL', 'Gr&#246;nland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('UK', 'Gro&#223;britannien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GB', 'Gro&#223;britannien (UK)');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GP', 'Guadeloupe');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GU', 'Guam');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GT', 'Guatemala');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GN', 'Guinea');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GW', 'Guinea Bissau');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GY', 'Guyana');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('HT', 'Haiti');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('HM', 'Heard und McDonald Islands');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('HN', 'Honduras');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('HK', 'Hong Kong');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('IN', 'Indien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('ID', 'Indonesien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('IQ', 'Irak');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('IR', 'Iran');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('IE', 'Irland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('IS', 'Island');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('IL', 'Israel');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('IT', 'Italien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('JM', 'Jamaika');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('JP', 'Japan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('YE', 'Jemen');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('JO', 'Jordanien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('YU', 'Jugoslawien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KY', 'Kaiman Inseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KH', 'Kambodscha');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CM', 'Kamerun');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CA', 'Kanada');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CV', 'Kap Verde');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KZ', 'Kasachstan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KE', 'Kenia');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KG', 'Kirgisistan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KI', 'Kiribati');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CC', 'Kokosinseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CO', 'Kolumbien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KM', 'Komoren');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CG', 'Kongo');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CD', 'Kongo, Demokratische Republik');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('HR', 'Kroatien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CU', 'Kuba');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KW', 'Kuwait');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LA', 'Laos');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LS', 'Lesotho');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LV', 'Lettland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LB', 'Libanon');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LR', 'Liberia');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LY', 'Libyen');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LI', 'Liechtenstein');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LT', 'Litauen');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LU', 'Luxemburg');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MO', 'Macao');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MG', 'Madagaskar');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MW', 'Malawi');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MY', 'Malaysia');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MV', 'Malediven');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('ML', 'Mali');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MT', 'Malta');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MP', 'Marianen');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MA', 'Marokko');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MH', 'Marshall Inseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MQ', 'Martinique');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MR', 'Mauretanien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MU', 'Mauritius');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('YT', 'Mayotte');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MK', 'Mazedonien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MX', 'Mexiko');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('FM', 'Mikronesien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MZ', 'Mocambique');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MD', 'Moldavien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MC', 'Monaco');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MN', 'Mongolei');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('MS', 'Montserrat');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NA', 'Namibia');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NR', 'Nauru');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NP', 'Nepal');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NC', 'Neukaledonien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NZ', 'Neuseeland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NI', 'Nicaragua');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NL', 'Niederlande');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AN', 'Niederl&#228;ndische Antillen');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NE', 'Niger');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NG', 'Nigeria');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NU', 'Niue');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KP', 'Nord Korea');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NF', 'Norfolk Inseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('NO', 'Norwegen');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('OM', 'Oman');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AT', '&#246;sterreich');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PK', 'Pakistan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PS', 'Pal&#228;stina');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PW', 'Palau');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PA', 'Panama');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PG', 'Papua Neuguinea');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PY', 'Paraguay');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PE', 'Peru');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PH', 'Philippinen');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PN', 'Pitcairn');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PL', 'Polen');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PT', 'Portugal');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PR', 'Puerto Rico');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('QA', 'Qatar');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('RE', 'Reunion');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('RW', 'Ruanda');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('RO', 'Rum&#228;nien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('RU', 'Ru&#223;land');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LC', 'Saint Lucia');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('ZM', 'Sambia');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AS', 'Samoa');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('WS', 'Samoa');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SM', 'San Marino');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('ST', 'Sao Tome');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SA', 'Saudi Arabien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SE', 'Schweden');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CH', 'Schweiz');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SN', 'Senegal');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SC', 'Seychellen');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SL', 'Sierra Leone');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SG', 'Singapur');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SK', 'Slowakei -slowakische Republik-');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SI', 'Slowenien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SB', 'Solomon Inseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SO', 'Somalia');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('GS', 'South Georgia, South Sandwich Isl.');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('ES', 'Spanien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('LK', 'Sri Lanka');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SH', 'St. Helena');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KN', 'St. Kitts Nevis Anguilla');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('PM', 'St. Pierre und Miquelon');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('VC', 'St. Vincent');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('KR', 'S&#252;d Korea');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('ZA', 'S&#252;dafrika');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SD', 'Sudan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SR', 'Surinam');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SJ', 'Svalbard und Jan Mayen Islands');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SZ', 'Swasiland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('SY', 'Syrien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TJ', 'Tadschikistan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TW', 'Taiwan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TZ', 'Tansania');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TH', 'Thailand');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TP', 'Timor');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TG', 'Togo');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TK', 'Tokelau');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TO', 'Tonga');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TT', 'Trinidad Tobago');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TD', 'Tschad');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CZ', 'Tschechische Republik');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TN', 'Tunesien');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TR', 'T&#252;rkei');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TM', 'Turkmenistan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TC', 'Turks und Kaikos Inseln');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('TV', 'Tuvalu');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('UG', 'Uganda');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('UA', 'Ukraine');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('HU', 'Ungarn');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('UY', 'Uruguay');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('UZ', 'Usbekistan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('VU', 'Vanuatu');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('VA', 'Vatikan');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('VE', 'Venezuela');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('AE', 'Vereinigte Arabische Emirate');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('US', 'Vereinigte Staaten von Amerika');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('VN', 'Vietnam');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('VG', 'Virgin Island (Brit.)');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('VI', 'Virgin Island (USA)');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('WF', 'Wallis et Futuna');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('BY', 'Weissrussland');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('EH', 'Westsahara');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CF', 'Zentralafrikanische Republik');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('ZW', 'Zimbabwe');&lt;br /&gt;INSERT INTO `laendercodes` VALUES ('CY', 'Zypern');&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 04 Jan 2006 17:25:42 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1051</guid>
      <author>jevv ()</author>
    </item>
  </channel>
</rss>
