country - language codes

Submitted by Anonymous (not verified) on Fri, 10/16/2009 - 13:20

Country names ISO 3166-1-alpha-2 code
A
AFGHANISTAN AF
ÅLAND ISLANDS AX
ALBANIA AL
ALGERIA DZ
AMERICAN SAMOA AS
ANDORRA AD
ANGOLA AO
ANGUILLA AI
ANTARCTICA AQ
ANTIGUA AND BARBUDA AG
ARGENTINA AR
ARMENIA AM
ARUBA AW
AUSTRALIA AU
AUSTRIA AT
AZERBAIJAN AZ
B
BAHAMAS BS
BAHRAIN BH
BANGLADESH BD
BARBADOS BB
BELARUS BY
BELGIUM BE
BELIZE BZ
BENIN BJ
BERMUDA BM
BHUTAN BT
BOLIVIA, PLURINATIONAL STATE OF BO
BOSNIA AND HERZEGOVINA BA
BOTSWANA BW
BOUVET ISLAND BV
BRAZIL BR

Hide your email address + mailto link with javascript from spammer

Submitted by Anonymous (not verified) on Wed, 10/14/2009 - 10:06

Of course you can write you email on an gif or jpeg image. But you cant give a mailto:link without your email appears clearly. Therefore use javascript, your email appears to visitors as a text but appears spam-bots crawlers as javascript code, which they ignore as usual.


Magento admin login issue {{base_url}} is not recommended

Submitted by Anonymous (not verified) on Mon, 10/12/2009 - 12:21

I have installed magento on a windows mashine, wammp. After install I have a problem, I cant login to admin zone. I dont get an error. When I try with false login I see an error. But with true login I get just login screen again each time. Why?

An feedback over login box:
{{base_url}} is not recommended to use in a production environment to declare the Base Unsecure Url / Base Secure Url. It is highly recommended to change this value in your Magento configuration.

Howto read/export firefox cookies in linux

Submitted by rex on Sat, 09/26/2009 - 12:00

Firefox cookies are stored in sqlite database.
in ubuntu the cookies are locate in /home/username/.mozilla/firefox/random.default/cookies.sqlite

to locate the cookies.sqlite just type

locate cookies.sqlite

To read the cookies we need to install sqlite3.

To install it in ubuntu/debian

sudo apt-get install sqlite3

open the cookies with sqlite3

sqlite3 /home/username/.mozilla/firefox/random.default/cookies.sqlite

after you have opened the db type

select * from moz_cookies;

to show mozilla firefox cookies.

How to recursively create md5 and sha1 sum of your files.

Submitted by rex on Wed, 09/23/2009 - 16:48

Sometimes you want to check if your files has been modified.
With this command you can create for all files in your working directory (and sub directories) md5 and sha1 sum and display them.

save this commands bottom as 'sum.sh' and run 'chmod a+x sum.sh' to make is executeable.

#!/bin/bash

md5=$(md5sum "$1"|awk '{print $1}')
sha1=$(sha1sum "$1"|awk '{print $1}')
path=$(echo $1|cut -c 3-)
echo "$path $md5 $sha1"


exit 0

run this command

find ./ -type f -exec ./sum.sh '{}' \;

output looks like: