Category Archives: In English

Email semi-hosted @ Gmail

I’ve got a domain name which need to be able to receive email from (anything)@domainname.com (catch all). However, as you know already, these days it means getting a lot of spam. And by a lot I’m talking like hundreds everyday.

I’ve setup a server with all sorts of anti spam & anti virus defenses. Unfortunately, the spam is still coming through in bulk. These vermints really need to be on the receiving end sometimes, enjoying their important mailbox bombarded by torrents of cheap viagra offers. Anyway …

I got an idea 2 days ago – how about if I redirect the incoming email to a Gmail account, let Gmail kill the spam, then I can fetch the (clean) mailbox with their POP3 feature ?
Sounds good to me, since I assumed Google would have far better resources to deal with spam, and therefore able to defend their mailbox better that me.

So I setup my mailserver to redirect the incoming mail for that domain to Google, and I waited.

After a day, I got about 5 spam in my Gmail Inbox… and 300 of them in the Spam folder. Hooray ! 😀

My server loves Google too now. SpamAssassin (and others) has been torturing it for some time, especially with those massive influx of spam. Now it just redirect the whole lot, and forget about it.
And I’m happy for obvious reasons.

Kudos to Google.

Save the Indonesian Catholics

I read a news titled “Indonesian Catholics to face firing squad on Saturday” on Catholic News this morning. Seems like many Catholic groups are asking Indonesian Gov’t to spare the life of the accused.

Actually some non-Catholic groups are asking the same thing too. Although for different reason – several Muslim organization suspected that these 3 men are just puppets. The masters are still safe behind the curtain.
If these men got executed, then the secrets will die with them. And justice will not be delivered.

By saving the life of these 3 men, then hopefully we’d be able to investigate further and find the real masters behind the massacre. The ones who really responsible for it.

The chance is really slim though.

PHP: ajax without XMLHTTP-request

Got a request to make a quick hack; but this quick hack will be immensely helpful and able to cut like 3 hours of work / employee everyday. Naturally, seeing such huge cost / benefit ratio, I agreed to make it my priority.

The hack is to make pricing become automatic for a client. At the moment, they have to look up a pricing table manually for each order that they received. Even though they’re pretty big, built their own IT system from scratch, they’re still doing this particular topic manually. I can’t believe that their previous developer missed this stuff.

Until I realized the full scope of the job…. suffice to say, it’s complicated enough to scare most programmers. Their pricing scheme almost got no pattern at all, almost fully customized for every client. Yet we can’t afford to just enter the whole thing as it is to the database – it’d be too cumbersome.
The previous developers spent 3 years developing the system, and still managed to avoid this particular bit.

More time would be required to develop the algorithm and proper database schema, than the actual coding itself. Anyway, more to that probably later; one particular thing that I’d like to avoid in this job is the XMLHTTP-request stuff.
Why ? Because I’m too lazy 🙂 too lazy to implement it myself from scratch, and I don’t have the time to use the available implementations (and deal with their quirks/bugs).

I like things as simple and as fast as possible. I think I’m kinda a control freak, yes that explains it.

Anyway, here’s the requirement:

1. Once the staff entered an order into the system, he’ll clink into a link on the form.
This link will fill the textbox next to it with the right price for that order

That’s it. What’s going on behind the curtain is of course much more than that. Here you go :

1. The link actually invokes a JavaScript function called do_ajax()
2. The function will then append a JS element – which actually a PHP script. Thus executing the “AJAX” call
3. The JavaScript function can communicate with the server-side PHP script by way of GET method.
4. The PHP script produced its output as JavaScript code.

As simple as that.

Here are the details:

The HTML form

cn-ajax.js

cn-ajax.php

It may look complicated at first, but if you think of the cn-ajax.js as a blackbox,
then it became very simple.

NOTE: Another plus is that this form become usable for mobile warriors as well. Sure today’s PDA can do JavaScript – but speedily? Thought so.
This trick moves most of the processing to the server, with as little JavaScript code as possible. Therefore giving the best performance for these audience.

Other advantages are : clean, cross browsers, adherence to standards.
(thanks rendy ak)

Credit goes to PHPit.com for figuring these out.

TIP: Use Firefox while debugging this stuff. Its JavaScript console was a massive help to me.

OK, back to work.

PayPal “Buy Now” problems

Just setup PayPal “Buy Now” buttons in an eCommerce website. In short, with this facility, people can pay even without becoming a PayPal member. Very convenient indeed.

First I created one “Buy Now” button, and tested it. It worked very well.
So I created several more.

Then the problems started.

I got all sort of errors, including “Message 3104”. Basically, all the error messages asked me to login with existing PayPal account. Which pretty much defeats the purpose.

Googling around, all suggestions are about lowering security settings, allow cookies, and so on. Tried them, and still the same problem occured.

After hours of messing around, finally I found the culprit – instead of one <form> tag for EACH button, there was only one of it for ALL buttons.
No wonder PayPal got so confused with it.

I put one <form> tag for each button, and tried again – voila, I can pay for the goods just with my credit card now.

Hope it helps someone out there.

WordPress 2.0.4

WordPress 2.0.4 has been released. Not only it closes down critical security holes, it also fixes at least 50 bugs. So you really should install this version.

Thankfully this website is hosted on Dreamhost.com, and one click is all it took me to upgrade it.
Kudos again to Dreamhost.

Bullies @ Office

When you’re a kid, bullies intimidates you physically. You are constantly under risk of getting physical abuse whenever he/she sees fit.

When you’re an adult, bullies now also does psychological intimidation. Which is worse.
It kills your productivity, and your boss will become upset at your lack of performance – which in turn makes you more frustated (because it’s not your fault)

On developed countries, there are numerous laws that intended to curb bullying. An example of such law in action can be read in this excellent BBC article.

However;
The more corrupt the state, the more numerous the laws” — Tacitus

And vice versa, the more numerous the laws, the more corrupt the state — because there will be numerous loopholes that can be exploited by the wicked.
Therefore, even a victim can be actually the bully.

An example; one of my past colleague is actually a bully. He talks sweet to important people, but he stomps on the less significants. He tried to stomp on me too, trying to make me do what he wished. I stood up, and, quite wisely, he never tried to cross path with me again.

My manager was not so lucky.

This bully is actually quite incompetent and lazy. And to think that he’s paid more than me (at first). Anyway, I can see that he kept on trying to avoid doing his task, and finally he hit jackpot.

One thing about this bully is he’s very well-versed with employment laws, and he keeps on trying to find a loophole that he can exploit for his own gain. One day he got it – my manager got a bit harsh on him, he got the proof, and before my manager knew it; he was reported for bullying to the HR department.

I was flabbergasted.

HR department is tend to be politically correct, and this bully has a way with words. He managed to convince HR guys that he’s the victim here, and he won the case.
Since then, my manager no longer able to fully control this bully, and he was able to do whatever he pleases. Leaving US to do his job.

Needless to say, I was VERY pissed off.

Applying law/rules without knowing what really happened is plain dumb. Yet, this is what happens today. Criminals got away with their crime, for their knowledge of loopholes in the system. And honest people got punished for things others did.

Thankfully, it has a kinda happy ending. After some time, and a few lobbying from our side (here’s the key folks – you have to do something [1] about it), finally senior management realized what he really is, and pressed him to do his work. Bumbling his way around, because he’s really not an IT expert (even I, with my weaknesses, am still much better than him), he finally had to earn his pay.

It may not always the case everywhere though.
So, just say no to bullies !

[1] – Among the work I’ve done was hacking his computer to find evidence of his bullying activities. A colleague said that he suspected this bully was stupid enough to store his private files in his office computer, and asked me to hack my way into it. I was only too happy to comply, and managed to found several evidence there.
My manager also managed to find several evidence on his own, and together we worked to bring this bully down.

Mission (almost) Impossible

On December 2005 I was asked to help manage a shop which is in brink of closure due to mismanagement. By May 2006, the shop is ranked #2 best performer.
Work is still ongoing to make it to become the number #1, but suffice to say that everyone’s already happy with that result.

On May 2006 I was asked to help manage another shop, located near to Pondok Indah. This shop is about to be closed down too, since it’s been plagued by multitude of problems. Worse, the revenue is only about 25% of the previous shop.
Seemed like an impossible case to me, but I accepted it nonetheless.

Summary :

The problems:

1. Very low staff morale
2. Very low sales, most likely due to market saturation (about 6 competitors in the same area)
3. Low profit margin
4. Losing money every month / not profitable.

Actions:

1. Working together with the staff. Developing team work. Increasing staff morale.
2. Diversifying into stationery business
3. Process optimizations
4. Profit margin increase, by various stock optimization methods
5. Creative promotion strategies
6. etc

Results so far :

1. Since May 2006, revenue has been climbing steadily. Average revenue nowadays are about 33% more than before.

2. Profit margin is becoming better

3. The shop is no longer losing money.

Not too bad for 3 months job I think.

The owner is very happy with the result. He’s extended the shop’s lifeline until December 2006 – the shop will have to start performing (target: increase revenue by at least 33% more), or it will be closed down then.

So it’s clear that my work is not yet done here, because of these:

1. Again, this is a management problem. I may have to fire the second-in-command. I’ll give him chance to change until end of this month, otherwise he’s gone.
Problem: lack of initiative, lazyness, failure to keep promises, lack of discipline.

2. Staff morale is still rather low. It’s a bit better, but it’s now clear that the human resources in this shop is not of good quality. Some of them are lazy, lacking in initiative, avoid tasks that they don’t like, etc.

Some of them are plain idiots too. Example; we have a profit-sharing policy in this shop.
Any profit will be shared with the employee. I don’t think Indomart, Alfamart, or others has such generous policy.
However, some of these employees are keep asking for their share – to which I replied, rather sarcastically, “from which profit ?”

When there’s no profit (the shop is not losing money, but it’s not making money too at the moment), what’s there to share ?
I wonder if some people actually have brain inside their head.

I may have to fire some of them, but again I will first give them chance to change. If they still refuse to change, then it’s their own fault.

Note that your employees are your most important asset. We value them highly – we treat them as colleagues, we try to understand their problems and help them resolve it, we even share our profits with them. We believe in fairness and wealth distribution.

Usually, this works wonders. However, some people are not able to appreciate this.
It may seem cruel of me to fire these kind of people (of course, after giving them chance to change first). But :

1. They may just not belong here. They may be happier working somewhere else.

2. A non-performer not only cost the shop money, but most importantly, they’re a burden to their colleagues.

I’ve worked with some non-performers before, and I have had to work twice or thrice as hard to cover their inabilities / laziness. And, to say it politely, I don’t like that. So I can empathize with my employees in such similar position.

3. There are people out there that can use a good job like these

Note that this is not the only thing that I’m doing. I’m also handling about 3 IT projects, and some personal businesses too. And of course, most importantly, my family.
I’ve went over my (previously thought) limits many times, and although it’s very tiring, it’s definitely is very rewarding to my own personal developments.
I felt like dying at times, but what doesn’t kill you makes you stronger.

So we’ll see this shop again in Dec 2006, and see how it fare then.
Wish me luck. I’ll need it, and a lot of Paracetamol 🙂

Indonesian Bloggers Condemns Israel

I just posted a simple script on the sidebar of this blog to support Indonesian Blogger’s movement to condemn Israel. Instructions to join are available here.

In short, Israel is the root of the problems in Middle East.
First, it took over other people’s land, so it can create the country of Israel. Second, it has now employed policies so racist, it has became the Nazi of middle east. And so on.

There are propaganda campaigns going on all over the Internet that says the points above are wrong. But when you check with unbiased sources, you will find out that they are correct.

We have been invaded as well (Dutch & Japan), so we know that the ordeal of the Palestinians and others around Israel are worse. Back at that time, our freedom fighters too were branded as terrorists. Guess who ended up unmasked as the real terrorist ?

My heart goes to the victims of Israel’s atrocities.

To other Indonesian bloggers – you can do something. You are not helpless.

Sex Education

I’ve not yet encountered this event, but I know it will come sometime. One day, one of my children will ask about sex, and I will have to explain it to them. I’m not scared (well ok, not much 😀 ), but I think I’ll have the hardest time of keeping my face straight. :mrgreen:

Mbak Santi have endured this twice apparently. But her second event is more special, because Baby is an active and very inquiring little girl.
My jaw dropped at first when I read this article , and then I feel pain in my stomach as I was trying hard not to burst into laughter in my office room.

But I think you handled it alright mbak. Thanks for the ideas and inspirations ! 😀

note: here’s an article with photo of this very clever girl. May you grow to be a very good girl, insyaAllah.

Expats are miserable in Indonesia…. ?

After reading countless complaints from Indonesian about discriminations against them over their expat counterparts (eg: same skill level, but the expats got paid like 5x, etc), I can’t believe that there are expats who are still complaining that their live in Indonesia is miserable 🙂

Holy Batman… you got paid in USD, spend in the cheap Rupiah, with Indonesians admiring your white skin – and you’re still complaining ?
Some people are just impossible to please 😀

I was an expat too, and I’ve had it worse. I’m quite sure that most expats are having it (way) better in Indonesia.
We also had our share of racial abuse. It seems that all races are capable of racism and xenophobia.
But we’re grateful with what we have.

So come on guys, think positive, then your life will be better. You did that to yourself.

I just hope Treespotter won’t get any backlash from all this, but he seems to be a very capable guy. So no worries here 🙂

AnsweringIslam.org

I noticed that a member of my family was browsing this website. I mentioned to him that he’ll need to take everything with the biggest grain of salt, but had to finish my tasks and he was gone before I could elaborate or listen to his inquiries.

Anyway, there’s so much disinformation in this website, it’s going to need a dedicated team to clarify them. I’m just a layman with almost no spare time, so I decided to pick up only 2 pages from that website and clarify them.

[ 1 ] Hamzah’s “Testimony”

The author began by saying :

This testimony of Hamzah is very special. He was a learned Muslim scholar. He was educated and shaped under Islamic and Quranic teachings since his childhood. After getting his Islamic education for more than 16 years he successfully obtained his Islamic School Certification. It is clearly evident that his knowledge of the Quran and Islam has already been sufficiently deep and well developed. Nevertheless after three years of struggling with his theological and spiritual questions – searching honestly within both Islam and Christianity, Hamzah finally surrendered his life into the gracious hands of Isa Al-Masih (Jesus Christ) – his most loving and compassionate Saviour!

Somehow I doubt that. (the emphasized text)

An example, he said that :

I was surprised to learn who shall come to release the World from the evil Dajjal’s hand – he is no other than ISA Al-Masih (Jesus Christ) as the Imam Mahdi himself!

He got this messed up. Imam Mahdi is not the same person as Al-Masih.

Imam Mahdi is an Arab, whose lineage can be traced back to Muhammad. While Al-Masih is Prophet Isa (Jesus), who’s sent back down by God to destroy Dajjal.
When reading the whole text in relation to this story, it’s mentioned that after defeating Dajjal, Isa Al-Masih then pledged allegiance to Imam Mahdi and recognize him as his leader (King).
Imam Mahdi then ruled the Muslims (including Al-Masih) and bring back peace and prosperity to them.

This is a fairly well-known story, and Hamzah (the scholar) missed it ?
Is he really a scholar ?

The next example :

But he (the christian) said very coolly: “Oh for me that is not a problem, whether there is a new religion or not … because for me, by FAITH I will surely enter heaven!”

Hearing this, I was very shocked …! Because in my 10-plus years of study at the Islamic pesantren centres and four years study at the advanced Islamic Institute, never had I heard that entering heaven is something sure or definite for normal Moslems!

That’s is really weird – because all muslims will enter heaven. But this “scholar” doesn’t know.

However, there’s a difference. While some Christians boasted that they’ll go straight to heaven, Muslims with sins will be cleansed first in Hell. Once they’ve paid for their sins, then they’ll enter Heaven. Personally, I think this is justice.
Imagine if by faith only you’re guaranteed heaven – then you can wreak havoc, rape/steal/lie/kill people, and still got heaven ? This world will soon fall into chaos, with people trying to avoid becoming the victim / loser.

And so on. AnsweringIslam.org tried to convince their case by presenting this “scholar”, but it only exposes their true identity.

[ 2 ] Top ten reasons why Islam is NOT the religion of peace

Some zealots are going to label me as “muslim apologetics” because of this 🙂 without even trying to read it thoroughly, but I have a duty to rebuke these lies/misinformation within my capability, so here it goes :

10. Muhammad nicknames his weapons : This is a pretty silly argument, but anyway – These (weapons) are instruments which is crucial to one’s continued life, so I guess it’s ok if one gets a bit sentimental about it. This is common practice among soldiers – even to this day. Yes, today’s modern, God-less, soldiers.

9. Muhammad commands in his Quran that adulterers and adulteresses should receive a hundred lashes : Well, most westerners indeed may have problems with this because of vast culture differences. If you’re one of them, remember; just a few centuries ago, you were doing it as well, and you find it ok.
But while western moral standards changes continuously (causing some to become confused as to what is right and what is wrong, now), Islam’s moral standards remains consistent, even after centuries of the Prophet’s death.

Another poison is this, in relation to the execution of a woman due to adultery :

It is true that Muhammad told Khalid to be gentler, but how gentle does one have to be when one throws a rock at a woman buried up to her breasts? Is the rock required to go only 30 miles per hour or 40? Perhaps Muhammad was ordering Khalid not to curse her. In any case, the prophet prayed over her dead body and then buried her. Truthfully, how effective was the prayer when Muhammad and his community murdered her in cold blood? They should have forgiven her and let her go to raise her child.

Seems that the author doesn’t understand Islam. Yet, somehow managed to create this long article.

Even the Prophet, much less the others at that time, does not have the right to forgive such sin – a sin which is committed against God. Which only God alone have right to forgive.
The lady understood this, therefore she knows that if she does not receive her punishment in her lifetime (because of Muhammad’s hesitation to execute it), then she’ll receive it in Hell; and it’ll be far worse.

Therefore, she forced Muhammad (by her persistence) to deliver the punishment. After many tries in many months, finally Muhammad agreed, and did it.

After the execution, Muhammad then praised her bravery :
Thereupon he said: She has made such a repentance that if it were to be divided among seventy men of Medina, it would be enough. Have you found any repentance better than this that she sacrificed her life for Allah, the Majestic?“.

Same event, but now it no longer seems that Muhammad is a cold blooded bastard as portrayed in the original article.
This event also act as a caution to Muslims – when someone is accused of adultery, do not believe it (and definitely don’t punish) straight away ! Because even when it’s already proven, Muhammad still give the choice – now, or later.

8. Muhammad in his Quran permits husbands to beat their wives. – what they failed to mention is that it’s strongly encouraged to solve the problem amicably, and the punishment only as last resort.

Unfortunately, our own fault too, many Muslim tend to execute the last resort first, and in abundance.
It has become the local culture in many places. In some cases, women got killed because of this.

It’s said that “Among the Muslims, the most perfect as regards his faith is the one whose character is most excellent, and the best among you are those who treat their wives well.

And so on…. sorry I’m running out of time, so I’ll skip right to the number one :

1. Muhammad launches his own Crusades. – as if Islam taught us to “convert, or kill, everyone”, like how the Christians were instructed on the Crusades. Not.

Muhammad actually give other nations choice. Agreed to be lead by Muslims, and pay tax like everyone else. The concept of dhimmitude saves and protects people, not humiliate them. Or you can refuse (a King was asked; he refused politely, and treated the messenger well. Nothing happened)
But if you acted dishonourably, then we promised you an honourable war.

If you look into that time, there’s simply no other nation doing this. If you can’t defend yourselves, then be prepared to either die or become slaves.

For example, the past Christians’ crusades – very cruel and sadistic :

Radulph of Caen said : “In Maarra our troops boiled pagan adults in cooking pots; they impaled children on spits and devoured them grilled.“

Islam defined a very strict code of conduct on war. Even the trees are not to be harmed (hello suicide bombers). Only combatants (those that endanger your life) may be killed.

Summary: methods of brainwashing used by AnsweringIslam.org = one sided facts, partial information, failure to discuss the data in the proper context, and so on.

Again, a team of (truly) knowledgeable scholar (unlike our friend Hamzah) will have no problem rebutting this website. Gotta go now, hope it helps to clarify things.

MuslimHeritage.com

Found this website by accident – MuslimHeritage.com. Shows what Muslims were in the past – rahmatan lil ‘alamin, a blessing for all.
Unfortunately, that’s not the case now. Not yet, I hope.

Note: If you’re a Muslim (or not) blogger, please help spread the word. Link to this article (or the website), so others may find it as well.
We may not have the money and facilities of the big media, but together, we can bring back the balance. Thank you.

A few interesting articles :

[ 1 ] The tolerant & humane muslims

The conquest of Mecca :

as Scott says: `with a magnanimity unequalled in the annals of war, a general amnesty was proclaimed and but four persons, whose offences were considered unpardonable, suffered the penalty of death.’

Unequalled indeed, as the norms was as below :

…in 1098, during the first crusade (begun in 1096), when the Crusaders took Ma’arrat an’Numan, the slaughter never stopped for three days so that the Franks killed more than 100,000 people.

“‘Our men’ said the pious and charitable chronicler (Lebon’s words) `walked through the roads, places, on the roofs, and feasted on the slaughter just like a lioness who had her cubs taken from her. They cut into pieces, and put to death children, the young, and the old crumbling under the weight of the years. They did that in groups… Our men grabbed everybody who fell into their hands. They cut bellies open, and took out gold coins. Oh detestable cupidity of gold! Streams of blood ran on the roads of the city; and everywhere lay corpses. Oh blinded nations and destined to death; none of that multitude accepted the Christian faith. At last Bohemond brought out all those he had first invited to lock themselves in the tower of the place. He ordered that all old women be put to death, and also old men, whose age had rendered useless; then all the rest he ordered to be taken to Antioch to be sold as slaves. This massacre of the Turks took place on 12 December; on Sunday; but on this day not all work could be accomplished; so the following day our men killed all the rest.” — Robert the Monk

Radulph of Caen said : “In Maarra our troops boiled pagan adults in cooking pots; they impaled children on spits and devoured them grilled.

And yet, even when Muslims were slaughtered en masse, still they found reserves of unequalled humanity. Finucane tells how in 1221, the defeated Christians were visited by their (Muslim) enemies, who brought them food to save them from starvation.

Be valiant; die rather than yield; be merciful; slay neither old men, nor women, nor children. Destroy no fruit trees, grain, or cattle. Keep your word even to your enemies.” — Caliph Abu Bakr

That’s how jihad is really done.
Bus bombings, bali bombings, civilian killings – it’s now clear that those are not jihad. Very contrary to what the media / propaganda machines tells us nowadays, isn’t it.

About tolerance :
“the Muslims of the seventh century had abstained from persecution and had permitted Jews and Christians to practise their own laws and to elect their own judges. Yet nearly a thousand years later, people in Europe were still being tortured and burned alive for their faith. And in general, the Ottomans continued the policy of religious toleration which they had inherited from the Arabs.” —- Glubb

Muslims, Christians, Jews living together — an absurd and crazy idea ?
Definitely not. And it has been done, when Muslims were in charge and practiced the true Islam :

Araya Goubet, too, notes how `religious tolerance, Islamic inspiration, permitted the harmonious coexistence of Christians, Moors, and Jews until the end of the fifteenth century. The dominance of the Christian clergy led to the gradual exclusion, subjugation, and expulsion of the other religious groups, starting in 1492 but culminating in 1567 when Philip II published a decree forbidding Moriscos [Christianised (ex) Muslims] from using Muslim names and the Arabic language. The Moriscos were finally expelled in 1609. Ultimately the history of the Iberian people can be summed up as `living togetherness’ until ‘its breaking apart beginning in the fifteenth century.

In this article I’d like also to call my brothers & sisters in Islam to start washing away their kafir-phobia.
There are bad kuffars (kafir/kuffar = non-muslim) indeed, but there are much more of the good ones (although most of them are silent). It’s injustice to sentence them all as bad, and Islam abhors injustice.

We can live together in peace. Deal with the bad ones, and live peacefully with the rest of them.

In Cordoba, there were eight hundred public schools frequented alike by Moslems, Christians and Jews, where instruction was imparted by lectures. The doors of the college were open to students of every nationality, and the Andalusian Moor, Scott adds, received the rudiments of knowledge at the same time and under the same conditions as the literary pilgrims from Asia Minor and Egypt, from Germany and France and Britain.

In this very field of scholarship, doors were open to all scholars whether they were Chinese, Indians, Africans, Europeans, Jews, and all thrived. Some of Islam’s earliest and most prominent scientists at the Abbasid court, Ishaq Ibn Hunayn and Hunayn Ibn Ishaq were Nestorian Christians. Thabit ibn Qurrah, the astronomer, was a Sabean. The Bakhishtu family who held most prominent positions in the court in the ninth century were Christians, too. And so were the historian-physicist Abu’l Faraj; ‘Ali ibn Ridwan, the Egyptian, who was the al-Hakem’s Doctor; Ibn Djazla of Baghdad, and Isa ibn ‘Ali, another famed physicist; and so on. The Jews had the most glorious pages of their civilisation under Islam, too. If one just sifts through the hundreds of pages of Sarton’s Introduction to the History of Science, one is amazed at the many names of Jewish scholars who worked in the midst of Islamic civilisation on all subjects. Some were not only scholars, but even occupied some of the most trusted positions in the Islamic jurisdictions. Maimonides (philosopher-physicist) was Salah Eddin Al-Ayyubi’s doctor, and Hasdai ibn Shaprut, followed by his sons, held some of the most prominent positions in Muslim Spain. Nearly all Muslim envoys to Christian powers were Jews; and most Muslim trade was in the hands of the Jews.

Even when Islamic land was threatened by both Crusaders and later the Mongols (mid-thirteenth century) so that much of the population was wiped out (800,000 deaths in Baghdad alone in 1258), minorities, whether Jewish or Christian (even if allies of the Crusaders) still survived under Islamic rule to our present day with all their powers, privileges and wealth intact. This fact is surely a far cry from the stereotyped image of Islam as the religion of intolerance. Which highlights the true character of Islamic civilisation, a character that has remained completely alien to their successors. The Muslims did not attack the faith and practice of others. Difference of faith is a state with which Muslims could, and can live.

In regard to race / skin colors :

In Islam, simply, and for fourteen centuries, no person was stigmatised for their colour. The offspring of a non-white mother and white father was entitled and admitted to full equality, and was not excluded from high office. From 946 to 968, Egypt was governed by Kafur, a Negro born in slavery. Whether in tenth century, or today, says Levi Provencal, there is no lack of coloured people in the ranks of aristocracy or the merchant classes: this has always been an essential feature of Muslim worldview.

I love the idea of Muslims as a group of colour-blind people :

….the colour-blindness of the Muslim world’s religious society and the colour blindness of the Muslim human society: these two influences had each been making a greater impact, and an increasing persuasion against my former way of thinking.” — Malcolm X

In Mecca there were `no segregationists-no liberals’; indifference to colour was spontaneous, and for Malcolm X this was evidently a shattering experience:
`I shared true, brotherly love with many white complexioned Muslims who never gave a thought to the race, or to the complexion, of another Muslim.

Do you think only westerner millionaires give inheritance to WWF or other animal-welfare causes ? Think again :

Thevenot noted persons who leave enormous wealth to feed cats and dogs.

Thevenot also observes that the charity of the Turks extends to animals and birds. On market days many people buy birds which they soon set free.

Benevolence was a form of charity which was commended by the Prophet as the first of all virtues; a benevolence which, indeed, is extended to all animals.

[ 2 ] The world-class University of Sankore, Timbuktu

The very mention of Timbuktu will give an image of a place so desolate, so remote, no one will go there except Donald Duck (even then just when he owe big to his Uncle Scrooge / when he need to disappear after messed something up real bad)
But do you know that way back to 989, Timbuktu used own a world-class university, with students coming from all over the world to study there ? Bet you didn’t know that (me neither).

Quoted:

The Sankore Mosque was founded in 989 by the erudite chief judge of Timbuktu, Al-Qadi Aqib ibn Mahmud ibn Umar. He had built the inner court of the mosque in exact dimension of the Ka’abah in holy Makkah. A wealthy Mandika lady then financed Sankore University making it the leading centre of education. The Sankore University prospered and became a very significant seat of learning in the Muslim world, especially under the reign of Mansa Musa (1307-1332) and Askia Dynasty (1493-1591).

The inventor of intellectual freedom in modern universities ?

The University of Sankore had no central administration; rather, it was composed of several entirely independent schools or colleges, each run by a single master (scholar or professor). The courses took place in the open courtyards of mosque complexes or private residences. The primary subjects were the Qur’an, Islamic studies, law and literature. Other subjects included medicine and surgery, astronomy, mathematics, physics, chemistry, philosophy, language and linguistics, geography, history and art. The students also spent time in learning a trade and business code and ethics. The university trade shops offered classes in business, carpentry, farming, fishing, construction, shoe making, tailoring, navigation etc. It prospered and became a very significant seat of learning in the Muslim world.

It was claimed that the intellectual freedom enjoyed in Western Universities was inspired from universities like Sankore and Qurtuba (Muslim Spain) universities.

University Campus

International students ? They’ve had it centuries ago :

Like all other Islamic universities, its students came from all over the world. Around the 12th century, it had an attendance of 25,000 students, in a city of 100,000 people. The university was known for its high standards and admission requirements. It produced world-class scholars recognised by their publications and graduates.
Quoting the French author Felix Dubois in his book, Timbuctoo the Mysterious:

The scholars of Timbuctoo (Timbuktu) yielded in nothing, to the saints in the sojourns in the foreign universities of Fez, Tunis, and Cairo. They astounded the most learned men of Islam by their erudition. That these Negroes were on a level with the Arabian savants is proved by the fact that they were installed as professors in Morocco and Egypt. In contrast to this, we find that Arabs were not always equal to the requirements of Sankore.” — Felix Dubois

Unfortunately, 10 centuries later, the Sankore University fell into darkness. Most, again including me, never heard about it. It’s waiting the Muslims to regain their glory again.

And there are tons of other excellent articles there. You can spend a whole day there and still not finished with it. Go now and take a look.
Enjoy.

Strange fireball just before Indonesian tsunami and earthquake

Just reporting here – my friends have reported watching news in TV7 (a local TV station) in relation to the recent earthquakes, which one of them then followed by a tsunami (killing about 500 people).

What’s intriguing was witnesses reporting sound of explosions, followed by fireball from the sea. Which then followed by the earthquake, and tsunami in one case.

We have had many reports not followed up here, for example; how the key witness in Bali bombing was “kidnapped” by Australian gov’t in good health (according to local doctors), and returned dead and no longer in human shape (ashes) — and nearly all written record about it then vanished from the Internet.

So here it is written as a record for anyone concerned.

IndonesiaMatters.com against muslim ?

At first I was happy to find another website that blogs in English and informs the outside world about Indonesia. However, when I started to read more of its article, it reminded me of muslim-haters such as faithfreedom.com and such.

A few examples:
[ The Crusades and Liberal Islam ] (see comments by Patung, its owner)
[ Tennis Team won’t play is Israel ] – (quoted: “The Indonesian refusal to recognise the existence of Israel rears its ludicrous head again”)

It’s absolutely Patung’s rights to express his/her opinions. But with “Indonesia” in its website title, while the articles doesn’t reflect what many Indonesian think; well I was just hoping that he’d be able to be more neutral.
Or at least makes it clear that the website contains his personal opinions; which may not necessarily represent most Indonesian.

I’ve dealt with many muslim-haters before; some are just mislead / misinformed, some have flawed logic, but some intentionally use any way to destroy Islam. I’ll engage in a discussion here in my spare time, and we’ll be able find out who’s who.

Indonesia, land of disaster….

Today is again a very sad day for Indonesian. An earthquake and tsunami combo has hit from south of Java. Death toll has surpassed 100 mark, but it’s quite certain that it’d climb to much more than that.

The quake can be felt from Jakarta (north of Java). The tsunami was reported to be as high as 18 feet / 5 meters.

I read today’s newspaper frozen in shock, finding it hard to believe that it’s happening again to us in such a short time – tsunami in aceh, violent quake in yogya, landslides in many places; and now this.

Indonesia seem to be the place for experiencing off-the-scale disasters.

On 1851, Tambora mountain erupted.
The explosion shot so many ashes to the sky, it blocked much of the sunlight. Year 1815 ended up known as the “Year Without Summer”. Tens of thousands people died from famine, because crop failed to produce. The exact details of the explosion could never be found out, because all population around the mountain was killed on the event.

On 1883, Krakatoa (Krakatau) erupted.
The explosion was so violent, the mountain itself and the island it was on got destroyed in the process. It also produced the loudest sound in recorded history – reaching 180 dBSPL in places 160 km (100 miles) away, heard from Australia (3500 km away) and Island of Rodrigues (4800 km away).
There were no survivors on the island of Sebesi, about 13km from Krakatoa. Many other settlements were also destroyed so thoroughly; some, like Ujung Kulon, was never repopulated. Human skeletons still found washed up on east coast of Africa up to a year after the explosion. Worldwide temperature didn’t return to normal until 1888.

Welcome to Indonesia.

The curse of my praise

Just a few days ago, I moved the mailboxes of a client to Dreamhost while praising them for their technical support (they act very quickly and knows what they’re doing). For good measure, I also told my client how big Dreamhost is, and that they should be able to provide us with a very reliable email service.
I said that because email is vital to this client, since almost 100% of their businesses are done via email.

Then Dreamhost experienced what might be among the worst incident they’ve ever had in their history. Ouch.

Beginning since 15 July 2006, only now (18 July 2006) their services have started to be running again.
My client was already breathing very heavily just behind my neck, with all intent to kill me very soon; which he cancelled when suddenly we got our email back. Phew.

Then I remembered many years back, when I was still a junior staff at Takaful Indonesia. I just managed to secure the takaful.com domain, then hosted it with my friend at Indoglobal.com.
After a while, I said thanks for their service and I’m sure our website would be very secure in their hands. My friend was humble and realistic enough to politely said that (in summary) there’s no such thing as 100% secure server on Internet.

A few days later, Indoglobal got hacked pretty bad.

I’ve learned my lesson – from now on, I’ll stop praising my webhosters, and just enjoy their exceedingly good service for me 😀

Note that the incident re: indglobal happened years ago. I know that they’re much better now in regard to security; but I’ve promised not to praise my webhoster any more, so I’ll stop right here 😀

Backing up in Linux

I’ve been managing many Windows and Unix servers in the last 10 years, and this I know for sure – backing up in Windows can be a painful experience, and most of the time it require significant investment in special backup software (which tend to cost thousands of dollars, usually more).
Even then, the software will become buggy once you start setting up complex backup scenario.

In Unix/Linux however, you have powerful scripting tools at your disposal, usually already included in the package. These tools are very flexible, enabling you to develop almost any kind of backup scheme.
It does require some sort of programming skill. Point-and-click admins will have a hard time at first, but let me tell you, do give it a try. You’ll find that it’s very much worth the trouble.

Both require investment in time & effort to develop a good backup strategy.

Before we progress, first here’s a few rules in regard to backup :

  • You can never have too many backups.
    I backed up my personal data to several locations – my other PC, and also my brothers’ PC. So in total, I have 3 copies of it.
    One day, the hard drive in my main PC broke down. So I came to my brother, and asked him to copy my data which is in his PC. To my surprise, he said that his hard drive just died too. I ended up with only a single copy of my precious data.
    I quickly replaced the dead hard drive, restored the only copy of my data there, and made a new backup script for it. Nowadays, my data is usually available in 5 or more locations.
  • Automate all of its processes.
    If it require even the tiniest amount of manual intervention, believe me, it will end up not being executed. For once of twice, you may still willing to intervene. But when you need to do that everyday, it just won’t happen.
  • Check your backup.
    Check the result / logs everyday. Try restoring the backup about every week. Do NOT skip this, or you will find out that the backup is actually not restorable when that very important server died on you.

These are the most important ones, and I confess to have suffered from one or more of it in the past.
You don’t have to, but it’s your choice.

Anyway, here’s a sample script to get you started backing up in Linux.

Backing up the whole hard drive, over the network.

#!/bin/bash
mkdir /mnt/backup
mount -t ext3 /dev/hdb1 /mnt/backup
chmod 777 /mnt/backup
cd /mnt/backup
/usr/bin/rsync -avuz --progress --rsh="ssh -l root -i /root/.ssh/id_dsa" 192.168.0.1:/ /mnt/backup

The 1st line is important – it tells the computer that we’d like this script to be processed by bash. Different shell has different syntax. So we need to be precise about this.

The 2nd line create the directory for mounting the backup drive. 3rd line mounts /dev/hdb1 (first partition of second IDE device) to /mnt/backup. 4th line gives full access to the drive. the 6th line does the actual backup process, copying only changed files on 192.168.10.101 to /mnt/backup.

It may seem simple at first, but make no mistake, rsync is one powerful tool. For example, quoted from rsync manual:

The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network connection, using an efficient checksum-search algorithm described in the technical report that accompanies this package.

This capability has enabled me to backup a 200 GB hard drive, over 100 Mbps network, in under 2 hours.
Without disturbing the 15+ users which are on that network as well. Simply amazing.

The next one is probably the kind of backup script you’d more often encounter – backup, compress, store to a safe location.


#!/bin/bash
tar cvf /backup/accounting-$(date +%Y%m%d).tar /home/accounting
bzip2 -9 /backup/accounting-$(date +%Y%m%d).tar
/usr/bin/scp -2 -i ~/.ssh/id_dsa /backup/accounting-$(date +%Y%m%d).tar.bz2 smith@192.168.0.10:/data/backup/

The 2nd line bundles up the whole content of /home/accounting into a single file named /backup/accounting-(today’s date).tar; example; /backup/accounting-20061230.tar would be the resulting file if this script is run on the 30th December 2006.
This trick needed to avoid the backup replacing the same file everytime it runs. This way, we’ll have multiple backups over time, instead of just one.

The 3rd line compresses the file above, as strong as possible (with the -9 switch)
The last line copies the file (now with .bz2 extension after compressed by bzip2) into directory /data/backup/ in a server with IP address of 192.168.0.10, as user smith.

The last example is a more complicated backup script.
I developed this to backup groups.or.id‘s (kinda like Yahoogroups) member database automatically, everyday to servers on different countries. Therefore, in case of disaster, the administrator can quickly restore the service on another server with little problem.

Backup member database, over the Internet.


#!/bin/bash
daftar_milis=( $(ls ~/) )

for element in $(seq 0 $((${#daftar_milis[@]} - 1)))
do

echo "---- MILIS: ${daftar_milis[$element]} ----" >> /backup/daftar-member-$(date +%Y%m%d).txt
/usr/bin/ezmlm-list ~/${daftar_milis[$element]} >> /backup/daftar-member-$(date +%Y%m%d).txt

done

/usr/bin/bzip2 -9 /backup/daftar-member-$(date +%Y%m%d).txt
/usr/bin/scp -2 -i ~/.ssh/id_dsa /backup/daftar-member-$(date +%Y%m%d).txt.bz2 harry@mydomain.com:/home/harry/backup/groups.or.id/

exit 0

A bit of background, the server uses ezmlm as the mailing list software, which is usually controlled by user “alias”.

2nd line is already interesting. Basically, we execute ls (which shows the content of directory) ~/. What is directory ~/ ? Well, the tilde character (~) is a shortcut for our home directory. So, when running this script as alias user, the “ls ~/” actually means “ls /var/qmail/alias/”
The result (list of files and directories) will then be stored in an (array) variable named “daftar_milis”

4th and 5th line sets us up for a looping. It will loop as many times as there are data in “daftar_milis”.

7th line will output a line, which is “—- MILIS: (current data in “daftar_milis”) —-“, and append ( >>) it into a file named /backup/daftar-member-(today’s date).txt

8th line runs ezmlm-list, which will list the members of the mailing list, and store in into the same file as above.

When all the data in “daftar_milis” has been processed, then the 12th line will be executed. It will compress the backup file with bzip2 compression.
Note that this compression algorithm is much more complex than standard Zip compression, therefore on a slow processor it may take a very long time to finish.

The 13th line will copy the backup file to a server somewhere on the Internet, on a secure tunnel encrypted with SSH2 protocol.

So there you are, a few examples to get you started backing up in Linux. Hope you find it useful.

A control panel for your webhosting business

A few years ago I was looking for a control panel for one of my server. This server is gonna be shared on the Internet, and many of its users are non-techies. So a control panel (like Plesk, cpanel, etc), will help them help themselves.

However, I was not able to find anything which suits me. The show stopper most of the time are either lack of an important feature, or the fact that the control panel software messes up your machine pretty good (cpanel, I’m looking at you).
Finally I understand why big webhosters tend to develop their own control panel.

So I gave it up, and administered it myself manually, with a few helper software that I cooked up myself. Still, it’s not ideal.

A few days ago I was looking at ISPconfig, because I’m interested to install it in a new server with Ubuntu 6.06 LTS. For a free control panel, I must say ISPconfig is pretty sweet.
But then I stumbled upon InterWorx-CP.

Interworx looks even better. For only about US$ 300, you get these: fantastico-like installer (user can install various web-app in one click), no-mess instalation (InterWorx is basically a bunch of php scripts), cluster-ready (sweet), and more.

If I need a commercial control panel in the future, InterWorx will be the first that gets evaluated.