Categories
Java PHP Perl

URL Parameter Transforming

Need to transform URL parameters and decode values such as “Hello%20World!”? Here is how:

Perl:

$s =~ s/%([\da-f][\da-f])/chr( hex($1) )/egi;

Java:

s = java.net.URLEncoder.encode(s, "UTF-8");

PHP:

$s = urldecode($s);
Categories
Miscellaneous

Country Codes and Timezones

My current job often challenge me with various country codes and timezones. So I prepared two lists providing you with this information. country_codes.csv list all country codes (ICAO, ISO 2-letter, ISO 3-letter, ISO 3-digit), country names and continents. timezones.csv will list the ISO 2-letter code together with country name and Unix Timezone. Both lists might not be complete. So if you find errors or omissions, just let me know.

Country Code List (CSV)

Unix Timezones (CSV)

Categories
GoogleEarth

Icons for usage in GoogleEarth

You’ll find all available icons for use in GoogleEarth here:

http://www.cems.uwe.ac.uk/~cjwallac/apps/phpxml/showIcons.php

Thanks to Chris Wallace, I might copy the page and make it available here in case the original gets lost 😉

Categories
Miscellaneous

Hello world!

Welcome to my TechBlog. This blog is about to remember solutions to important and less important technical details, and of course, to share it with you. I hope you will find interesting details about whatsover here that helps you surviving on- and offline.