Pages

Your Ad Here

This Blog is not to read or go through

because, I have never been such a mess


Search the blog instead

Monday, December 21, 2009

Domain Name .TLD .com, .net, .org , etc...

ac Ascension Island
ac.uk Education (UK)
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
az Azerbaijan
ba Bosnia Hercegovina
bb Barbados
bd Bangladesh
be Belgium
bf Burkina Faso
bg Bulgaria
bh Bahrain
bi Burundi
bj Benin
bm Bermuda
bn Brunei Darussalam
bo Bolivia
br Brazil
bs Bahamas
bt Bhutan
bv Bouvet Island
bw Botswana
by Belarus (Byelorussia)
bz Belize
ca Canada
cc Cocos Islands (Keeling)
cd Congo, Democratic Republic of the
cf Central African Republic
cg Congo, Republic of
ch Switzerland
ci Cote d'Ivoire (Ivory Coast)
ck Cook Islands
cl Chile
cm Cameroon
cn China
co Colombia
co.uk Commercial United Kingdom
com Commercial
cr Costa Rica
cs Czechoslovakia
cu Cuba
cv Cape Verde
cx Christmas Island
cy Cyprus
cz Czech Republic
de Germany
dj Djibouti
dk Denmark
dm Dominica
do Dominican Republic
dz Algeria
ec Ecuador
edu Educational Institution
ee Estonia
eg Egypt
eh Western Sahara
er Eritrea
es Spain
et Ethiopia
fi Finland
fj Fiji
fk Falkland Islands
fm Micronesia, Federal State of
fo Faroe Islands
fr France
ga Gabon
gd Grenada
ge Georgia
gf French Guiana
gg Guernsey
gh Ghana
gi Gibraltar
gl Greenland
gm Gambia
gn Guinea
gov Government (US)
gp Guadeloupe
gq Equatorial Guinea

gr Greece
gs South Georgia and the
South Sandwich Islands
gt Guatemala
gu Guam
gw Guinea-Bissau
gy Guyana
hk Hong Kong
hm Heard and McDonald Islands
hn Honduras
hr Croatia/Hrvatska
ht Haiti
hu Hungary
id Indonesia
ie Ireland
il Israel
im Isle of Man
in India
int International Organizations
io British Indian Ocean Territory
iq Iraq
ir Iran, Islamic Republic of
is Iceland
it Italy
je Jersey
jm Jamaica
jo Jordan
jp Japan
ke Kenya
kg Kyrgyzstan
kh Cambodia
ki Kiribati
km Comoros
kn Saint Kitts and Nevis
kp Korea, Democratic People's
Republic
kr Korea, Republic of
kw Kuwait
ky Cayman Islands
kz Kazakhstan
la Lao People's Democratic
Republic
lb Lebanon
lc Saint Lucia
li Liechtenstein
lk Sri Lanka
lr Liberia
ls Lesotho
lt Lithuania
lu Luxembourg
lv Latvia
ly Libyan Arab Jamahiriya
ma Morocco
mc Monaco
md Moldova, Republic of
me Montenegro
mg Madagascar
mh Marshall Islands
mil Military (US Dept of Defense)
mk Macedonia, Former Yugoslav Republic
ml Mali
mm Myanmar
mn Mongolia
mo Macau
mp Northern Mariana Islands
mq Martinique
mr Mauritania
ms Montserrat
mt Malta
mu Mauritius
mv Maldives
mw Malawi
mx Mexico
my Malaysia
mz Mozambique
na Namibia
nc New Caledonia
ne Niger
net networks
nf Norfolk Island
ng Nigeria
ni Nicaragua
nl Netherlands
no Norway
np Nepal
nr Nauru
nt Neutral Zone
nu Niue
nz New Zealand
om Oman
org Organization (non-profit)
pa Panama
pe Peru
pf French Polynesia
pg Papua New Guinea

ph Philippines
pk Pakistan
pl Poland
pm St. Pierre and Miquelon
pn Pitcairn Island
pr Puerto Rico
ps Palestinian Territories
pt Portugal
pw Palau
py Paraguay
qa Qatar
re Reunion Island
ro Romania
ru Russian Federation
rw Rwanda
sa Saudi Arabia
sb Solomon Islands
sc Seychelles
sd Sudan
se Sweden
sg Singapore
sh St. Helena
si Slovenia
sj Svalbard and Jan Mayen Islands
sk Slovak Republic
sl Sierra Leone
sm San Marino
sn Senegal
so Somalia
sr Suriname
sv El Salvador
st Sao Tome and Principe
sy Syrian Arab Republic
sz Swaziland
tc Turks and Caicos Islands
td Chad
tf French Southern Territories
tg Togo
th Thailand
tj Tajikistan
tk Tokelau
tm Turkmenistan
tn Tunisia
to Tonga
tp East Timor
tr Turkey
tt Trinidad and Tobago
tv Tuvalu
tw Taiwan
tz Tanzania
ua Ukraine
ug Uganda
uk United Kingdom
um US Minor Outlying Islands
us United States
uy Uruguay
uz Uzbekistan
va Holy See (City Vatican State)
vc Saint Vincent and the Grenadines
ve Venezuela
vg Virgin Islands (British)
vi Virgin Islands (USA)
vn Vietnam
vu Vanuatu
wf Wallis and Futuna Islands
ws Western Samoa
ye Yemen
yt Mayotte
yu Yugoslavia
za South Africa
zm Zambia
zw Zimbabwe

New Domains


aero









Air-transport industry
asia Asian Countries
biz Businesses
coop Cooperatives
eu European Countries
info Unrestricted use
museum Museums
name Individuals
pro Accountants, lawyers, and physicians
travel Travel related businesses

Saturday, December 19, 2009

Zenphoto Version differences




After upgrading from zenphoto 1.2.3 to 1.2.7 through .4,.5,.6 there was a problem.

My Images and Albums tables were gone blank . Thanks to God that I had saved a backup for this.

...

Major Differences are here.

a)
Images table has not lots of modification in its structure. Addition of fields was not a concern. However there was a field which was removed in the latest version. It was ExifValid field. So, to import from the previous version to the current one, I had to remove that field and import.
Query - ALTER TABLE `prefix_images` DROP `EXIFValid`

Yes, it was imported.

b) Albums table was imported easily.

c) Every other tables were OK.

d) There was one thing more added to the zenphoto core, it was zenpage_pages
....

Everything was fine, but still I could not see any albums in the gallery. It showed the number of images, but in Gallery it was 0.

The problem was, it was fetching images from the default albums folder, but not from the custom folder.

And the BULLSHIT Happened..
It removed all the previous information. The description of images, and all.



Findings
a) config file was moved.
One of the reason for not reading from custom folder was that Zenphoto added a new folder zp-data and the config file was there instead of zp-core/zp-config.php

And finally to import the original information.
a) Reconfigured the config file to point to custom album location
b) From Admin Refreshed the Database
c) Emptied albums and images tables from the Database
- this was required to reset the autoincrement
d) Pulled the albums database first
(the original information was restored)
e) Emptied the images table again
(because some images were already cached)
f) restored from the original database removing the field (EXIFValid) from the old table.


YES, It was finally Restored.

Thank you Zenphoto :) lol. (for atleast leaving some clues to fix, but not for anything else. ).

Total time taken - 40 minutes & 2 seconds

Source:
http://blogs.meronepalma.com

Friday, December 18, 2009

Thursday, December 17, 2009

Online Network PING

Online Network Tools.

Very Simple, yet productive for everyone starting from novice to someone who knows what Ping and Traceroute are.

http://www.PING.eu

Features

Monday, December 14, 2009

git

git init
git remote add origin git@xxx.server.com:abc/project.git
git pull origin master

Git installing tutorials

The Best one is to do from source.
http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/

January 16th, 2009

Install the dependencies

yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel

Get the git source code

wget http://kernel.org/pub/software/scm/git/git-1.6.1.tar.gz

untar the git source code

tar xvfz git-1.6.1.tar.gz

Install

cd git-1.6.1.tar.gz

make prefix=/usr/local all

make prefix=/usr/local install


Thursday, October 22, 2009

Cross browser compatibility with CSS columns

http://warpspire.com/tipsresources/web-production/css-column-tricks/

Talks about IE6, firefox common CSS column problems and how to solve them.

Wednesday, October 21, 2009

0utput results to a file in SQL

[SQL Query] into outfile "/file/path/here";

Note:
File path should be writable, and should not exist.

Sunday, October 11, 2009

Foxtab

A firefox Addon, which enables 3D firefox Tabs, with really cool features.

Its great, and yes its recommended by Firefox too.

Try it.

http://www.foxtab.com/

16 points for journalism

Source - http://blog.journalistics.com/2009/journalism_101_16_things_you_learn_in_j_school/



1. Name Your Sources – he said, she said. When you name sources, you lend credibility to your story and demonstrate your savvy as a reporter. Only use anonymous sources when divulging their identity would put them at risk of retribution or harm.

2. Protect Your Sources – not to contradict my first point, but when necessary, protect your sources. They are the lifeblood of your stories. Reporters should be willing to do whatever it takes to protect their sources when they need to remain anonymous.

3. Be Objective – journalism should be void of opinion. It’s hard to find content these days that is truly objective, but when you do, readers appreciate it more. Keep opinions for the Op-Ed section.

4. Offer Balance – there is more than one side to a story. Go to great lengths to get information from all sides. If the other side is unwilling to talk, say so in your piece. At least you tried.

5. Avoid Conflicts of Interest – don’t write about something because you like it. This works in the blogosphere, but not for traditional journalism. If you have a close tie to the source or organization in your story, let your audience know. Don’t let it come out later, people will question your judgment and integrity. And no matter how small, don’t accept gifts. Most media organizations have policies regarding gifts; follow them. This includes covering advertisers over non-advertisers as the sole criteria for determining sources. This may seem like commonsense, but it’s probably one of the most common offenses average journalists commit.

6. Don’t Censor – don’t leave a company out of a report because you don’t like their PR rep. Don’t be selective about the information you include, unless you’re confident your giving your audience the best of what you’ve got. They will figure it out, and it will tarnish your reputation.

7. Get It Right – better to be accurate than first. Many journalists face this challenge today, they need to be first with a story. Haste makes waste in reporting. Take your time to get the facts straight. Don’t let the pressure of a deadline jeopardize your journalistic integrity.

8. Don’t Plagiarize – it’s easier than ever to catch a copycat. A simple Google search will yield “cut and pasted” content. Don’t steal content from someone else. You wouldn’t like it if it happened to you. Why jeopardize your career like that? If you really like something somebody wrote, and you can’t say it better yourself, quote them on it.

9. Report the Facts – there’s no room for guesswork in journalism. If you don’t know the answer, find it. Go to your expert sources, your local library or your favorite search engine. There is no excuse for lazy reporting. If you don’t have facts, you don’t have a story.

10. Don’t Be Nasty – you’ve got influence, don’t abuse it. Avoid getting personal in your reporting. If it’s not relevant to your story, don’t attack the character of another individual. Keep it classy, not sassy.

11. Don’t Believe Everything – if it’s your byline, it’s your job to fact check. Don’t believe those stats sent to you by a PR firm. And don’t believe every quote you get. Do the legwork, verify the information, and save yourself from writing corrections later on.

12. Keep Good Records – when possible, record interviews. Take copious notes, and keep all those files as long as you would keep tax returns. You never know when you’re going to have to provide proof of the great job you did reporting on that story.

13. Don’t Write in a Stream of Consciousness – if you’re writing news, use the Inverted Pyramid. Give the reader what they want in the first few sentences, then provide your supporting information after that. Outline your story first, to avoid jumping all over the place. This advice is of particular importance to bloggers and PR pros.

14. Find Your Voice – at the end of the day, you have to separate yourself from the pack. Find the right voice for the way you write best. Readers will be more engaged and responsive to your genuine voice. Be original, be interesting and be relevant.

15. Never Stop Learning – whether you’ve been doing this for twice my age, or it’s your first year on the job, you can always improve as a journalist. Get involved with journalism organizations and groups, take part in new courses and pick up some new skills. Your future employment status depends on it.

16. Have Fun – I enrolled in a journalism program because I found writing to be fun. I thought telling stories for the enjoyment of others had to be the best job ever. I still feel the same. Think back to what got you on this track, chances are you wanted to have fun. Have fun with that next story you write, your readers will thank you for it.

Monday, October 5, 2009

compress images gracefully without degrading quality

image compression service without degrading the original image quality.

http://www.gracepointafterfive.com/punypng
http://www.punypng.com

Wednesday, August 19, 2009

codeigniter tweak for find_in_set

It was really really frustrating when i could not find any good function in the Codeigniter Active Record Class for FIND_IN_SET type queries.

So, i just buit this.


$set = implode(',',$where);
$this->db->where('1 <=', "FIND_IN_SET(`".$field."`,".$this->db->escape($set).")",false);

Where $where is an array of values

And Yest , it works with a miracle now.

Sunday, August 16, 2009

not in the database

select src from (
select "node/1" as src
union select "node/2" as src
union select "node/3" as src
) temp where src not in (select src from drupal_url_alias)

Saturday, July 11, 2009

checking the distro name in linux

$ cat /etc/*-release
or
$ cat /etc/*-version

Thursday, June 25, 2009

ghazal ghuzzle गजल

Ghazal (pronounced "ghuzzle") is an Arabic word that means "talking to women."

Tuesday, June 9, 2009

Email validation in php

eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)

Wednesday, May 6, 2009

low level formatting in linux

Source: http://tldp.org/LDP/LGNET/issue37/tag/38.html


dd if=/dev/zero of=/dev/hda
... to wipe out the whole first IDE drive, or
dd if=/dev/zero of=/dev/sda
... to wipe out the whole first SCSI drive.
Actually you could just blow away one sector on these drives using
dd if=/dev/zero of=/dev/sda count=1
It wouldn't make sense to do this to other drives (/dev/hdb, /dev/hdc, /dev/sdb, etc) since their boot sectors aren't referenced as code and you can reformat those drives with normal DOS or Linux commands to re-make your filesystems on them. However, you can issue this command for all of your drives if you like. In fact you should be able to do something like:
for i in a b c d; do
dd if=/dev/zero of=/dev/hd$i
done
... to get four IDE drives or
for i in a b c d e f g ; do
dd if=/dev/zero of=/dev/hd$i
done
... to wipe out all seven disks on a SCSI chain.
(?)

Thursday, April 30, 2009

select maximum value from an auto increment field

$table_name = "jos_menu";
$resultset = mysql_query("desc $table_name");
while($a = mysql_fetch_assoc($resultset))
{
if($a["Extra"] == "auto_increment"){
$query = "SELECT max(".$a["Field"].") as auto from $table_name";
$resultset1 = mysql_query($query);
$answer = mysql_fetch_assoc($resultset1);
die($answer["auto"]);
break;
}
}

Note: It can be done just by subtracting 1 from the current Auto_increment value in a table. But, I never found this justifiable because what if the last row is deleted.

Thursday, March 12, 2009

DGC Modem installation

I tried my internal modem in MSI VR420 Notebook. I could not do configure that goddam thing.

So, I burrowed an USB Fax Modem and installed it.

It was a DGC Modem type so, for my ubuntu pc of 2.6.24-16 Kernel Version
This was the Almighty http://www.linuxant.com/drivers/dgc/downloads-ubuntu-x86.php

Then very easy process.
Unzip the file
sudo dpkg -i dgcmodem_{version,etc}.deb
sudo /usr/sbin/dgcconfig

then dmesg produces good logs

and finally wvdial connects with modem /dev/modem

WOW

Monday, February 16, 2009

Flash for linux

Two tools I found available to use here for Linux.

Flasm
Haxe

Have not explored properly, will post more if found any more.

Friday, January 23, 2009

Sound in MSI VR 420 Laptop

After I bought my first laptop MSI VR 420 with genuine Vista installed, I installed Kubuntu 8.04 Hardy. Everything one fine except the sound was not working.

dmesg produced this error
hda_codec: Unknown model for ALC883, trying auto-probe from BIOS..


... ... ...
lots of headaches
... ... ....

And finally,
This was how I made it working.
modprobe -r snd_hda_intel
modprobe snd_hda_intel model=3stack-dig


And it worked.

The first thing I played was
http://www.meronepalma.com/song/425
Your Ad Here