Another list from my daily work. All IATA and ICAO airline codes along with the official airline’s name can be found in this CSV list.
Category: Miscellaneous
Everything that doesnt fit elsewhere
Firefox: Enabling local links
By default, Firefox has disabled local links in websites. So no network site can link a file on your local filesystem. However, sometimes you want to enable that cause files are shared among project groups on shared folders mounted on your local PC. Here is how you enable these links to open.
Go to your Firefox profile directory. Usually this is at
Documents and Settings\myloginname\Application Data\Mozilla\Firefox\Profiles\somehash
and open user.js. You might need to create this file. Append or change the following lines accordingly:
1 2 3 | user_pref("capability.policy.policynames", "localfilelinks"); user_pref("capability.policy.localfilelinks.sites", "http://webaddress1.com http://webaddress2.com"); user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess"); |
Line 1 defines a name for the policy. You can actually set any name you want. localfilelinks is a good choice though.
Line 2 defines the websites that you want to enable to have local links enabled. Be careful to include only sites that you really trust. Multiple sites are separated by spaces.
Line 3 is the actual policy setting that allows these sites to load all URIs.
Prevent Spamming
I usually get annoyed by spam robots. They are able nowadays to even bypass captchas. So what helps? I recently read an article saying that scientists work on a new kind of spam filters that can identify spam by the way the actual text looks like. That raised an idea in my head. Why not just count the number of links that a new guestbook entry contains? Usually this is what they do at my guestbook. They leave dozens of links. So I added a simple count in my guestbook plugin. Whenever there are too many links, I just ignore the entry. 🙂
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.
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.