Country/Currency List for C#, JSON, PHP and HTML select

So often you find yourself needing a list of countries for use in your software and I keep having to re-use this code so here is a list of countries with their ISO codes in a variety of formats you can simply just use. # C# Dictionary ISO { countrycode, countryname } list new Dictionary<string, string>() {{“AD”,”Andorra”},{“AE”,”United Arab Emirates”},{“AF”,”Afghanistan”},{“AG”,”Antigua and Barbuda”},{“AI”,”Anguilla”},{“AL”,”Albania”},{“AM”,”Armenia”},{“AN”,”Netherlands Antilles”},{“AO”,”Angola”},{“AQ”,”Antarctica”},{“AR”,”Argentina”},{“AS”,”American Samoa”},{“AT”,”Austria”},{“AU”,”Australia”},{“AW”,”Aruba”},{“AX”,”Åland Islands”},{“AZ”,”Azerbaijan”},{“BA”,”Bosnia and Herzegovina”},{“BB”,”Barbados”},{“BD”,”Bangladesh”},{“BE”,”Belgium”},{“BF”,”Burkina Faso”},{“BG”,”Bulgaria”},{“BH”,”Bahrain”},{“BI”,”Burundi”},{“BJ”,”Benin”},{“BL”,”Saint Barthélemy”},{“BM”,”Bermuda”},{“BN”,”Brunei Darussalam”},{“BO”,”Bolivia, Plurinational State of”},{“BQ”,”Bonaire, Sint Eustatius and Saba”},{“BR”,”Brazil”},{“BS”,”Bahamas”},{“BT”,”Bhutan”},{“BV”,”Bouvet Island”},{“BW”,”Botswana”},{“BY”,”Belarus”},{“BZ”,”Belize”},{“CA”,”Canada”},{“CC”,”Cocos (Keeling) Islands”},{“CD”,”Congo, the Democratic Republic of the”},{“CF”,”Central African Republic”},{“CG”,”Congo”},{“CH”,”Switzerland”},{“CI”,”Côte d’Ivoire”},{“CK”,”Cook Islands”},{“CL”,”Chile”},{“CM”,”Cameroon”},{“CN”,”China”},{“CO”,”Colombia”},{“CR”,”Costa Rica”},{“CS”,”Czechoslovak Socialist Republic”},{“CU”,”Cuba”},{“CV”,”Cape Verde”},{“CW”,”Curaçao”},{“CX”,”Christmas Island”},{“CY”,”Cyprus”},{“CZ”,”Czech Republic”},{“DD”,”German Democratic Republic”},{“DE”,”Germany”},{“DJ”,”Djibouti”},{“DK”,”Denmark”},{“DM”,”Dominica”},{“DO”,”Dominican Republic”},{“DZ”,”Algeria”},{“EC”,”Ecuador”},{“EE”,”Estonia”},{“EG”,”Egypt”},{“EH”,”Western Sahara”},{“ER”,”Eritrea”},{“ES”,”Spain”},{“ET”,”Ethiopia”},{“FI”,”Finland”},{“FJ”,”Fiji”},{“FK”,”Falkland Islands (Malvinas)”},{“FM”,”Micronesia, … Continue reading

Using Amazon EC2 with C# .net

Amazon’s EC2 platform has a very in-depth console which allows you to do a lot, but what if you want to automate some of the processes or handling servers? I’ve been working with EC2 a lot recently and automating server starting/stopping based on parameters of the system we use here at MediaSkunkworks and thought I’d share some knowledge. Getting Started You’ll want to grab yourself the AWSSDK; this can be from the installer at http://aws.amazon.com/sdkfornet/ or as a NuGet package in your VS project. If you use the installer, be sure to add a reference to the AWSSDK.dll file (should … Continue reading