NginX Web Server Issues

Apache is a good web server. However it’s big, fat, like a lorry. It consume RAM like water.

So I’ve been toying with NginX to serve PHP webpage. You can install it on Debian by using Minstall script (just google & get it from github).

1st issues: 404 Not Found / 403 Forbidden

NginX running as user www-data. My directory is under user ismail. You would think think that by given the directory & its file chmod 0644 permission is enough since everybody can read the file. Wrong!

The key thing is the directory permission. It need to be executable. So just give chmod +x <directory name>. Then you’re up to go!

I’ll update with more issues fix here.

Fast Food Online Order Experience

My office is at IOI Business Park, Puchong. The area where there is several fast food restaurant that provide drive-thru, pick-up, delivery etc.

My first experience is with Dominos.

The ordering process went quite smooth. I paid by using credit card therefore I had to pay RM 0.01 extra (lol) because of the rounding price adjustment does not apply for credit card payment.

So I paid and it says I can collect it in 15 min.

Now the story get interesting.

When I reach the Dominos (from the location that I specified near to my office). It is about 15 min to be there. So when I walk in there is like a commotion of something. The staff just goes on checking pizza one by one and ignoring me standing there.

Then I just stand in line behind a guy who is ordering pizza.

I overheard from the staff a bit panicking voice telling her superior (or so) about they gave a wrong pizza to another customer. Then the right customer come in and no pizza for her, she had to wait for them to make a new one.

Well… No point of her go and check all the pizza there few times just to make sure that the pizza is really not there while ignoring customer coming in to pick up his order.

And when I am serve by the staff, turn out he is a trainee. A new staff. When I told him my order id (as I show to him on my phone email) he is like …. Blur … Then ask his senior that is still going through the pizza order.

Apparently they dont use the order id. Instead they use customer name. No wonder there is a mix up.

Dominos… Good ordering, bad delivery (when picking up myself).

My second experience is with McDonald McDelivery.

This one still use their website to order.

My office is in their database. But my home is not (even though they do deliver there when called).

What I order is Double Burger Samurai. Trust me…. Worth to go for Double since the beef is sooooo tasty!

What happen is…. When I took the delivery, paid in exact amount, sit back at my desk…. Carefully open the Samurai Burger wrapping…. Damn! They give me a SINGLE when I ordered for DOUBLE.

Now.. On their website there is no way to get them. No email. No Online chat. Only phone number to call.

Called in and give the order id (thank god they use order id), explain the situation and the lady said will need few min to get back to the store and rectify the issues.

Around 10 min later, the McDonald store called me and then I had to explain again that I had SINGLE delivered when I ordered DOUBLE. She ask can they send a new one to me. I said, ok. I mean… What do you expect me to eat this single one when I had paid for double? lol.

Drillz for Single Burger Samurai:

Drills for Double Burger Samurai:

So McDonald McDelivery…. Have to check when delivery… Again… They might not used the same order id to refer back when delivering it.

Hopefully their service will be better when I decide to use them again.

Outlook.com email setup as Exchange activesync in Android

I was stuck. Apparently my china tablet (Ainol Novo 7 Fire) somehow can’t use gmail account to sync my calendar. And it need an account to sync into for me to use the calendar apps. Can’t save on the device itself I guess. Maybe this is Android restrictions, I don’t know.

So I stumble on settings to add new account. I can only add Exchange account. I never use one in my life. I never know what is Exchange account. You can google it if you don’t know. Maybe you already know if you come here by google search.

Anyway, it turn out I can use my outlook.com email as the Exchange account. They got this Exchange Activesync where you can sync emails, contact and most importantly what I want… Calendar!

So here it is, a camera snap of the steps to setup Outlook.com email as Exchange account to use in Android device.

 

Step 1 – Add an account.

This is done in the default email apps. When you open it, there is an ADD ACCOUNT text that you can touch. Tap it.

 

Step 2 – Fill in the necessary info

Here you can just fill in your real email address or some fake one, because we just fill in here to be able to tap the MANUAL SETUP button down there. When nothing filled, you can’t tap that.

 

Step 3 – Tap that Exchange button

Obviously you can select what type of account you want to set up. You’re here viewing this because you want to setup an Exchange account… Tap as highlighted, in case you lost.

 

Step 4 – Fill all the real deal

Now you must fill in all the correct info.

Your Domain\Username must look like the screenshot. Basically you type in \yourname@outlook.com (your outlook email address with character \ (a backslash) in front of it)

Then your fancy password.

Then the Server address. This is what I’m using and working right now: snt-m.hotmail.com

After this when you click next, your account should be able to login and set up automatically and email will sync.

Congrats!

 

Mencegah maksiat kah?

Merujuk kepada video ini: http://youtu.be/1lpJ9qz09qk (tak digalakkan untuk menonton, boleh menambahkan dosa anda melihat aurat wanita dan lelaki yang bukan mahram)

Sangatlah tidak bersetuju dengan apa yang golongan lelaki dan perempuan ini lakukan di dalam bilik hotel (murahan), tetapi sebenarnya lebih tidak puas hati dengan pihak *pencegah maksiat* (konon) ini.

Pertama sekali this so called operasi mencegah khalwat ini boleh dikatakan tidak berkesan… Kerana setiap tahun ada sahaja tangkapan dibuat SELEPAS aktiviti khalwat berlaku. Masih ada khalwat, maka boleh disimpulkan operasi PENCEGAHAN tidak berhasil. Namun begitu saya tidak ada data untuk membuat perbandingan statistik, mungkin peratusannya telah menurun dari tahun ke tahun.

Kedua adalah merakam video dan mengambil gambar mereka yang terdedah auratnya, yang bukan sahaja mereka sendiri melihat malah dirakam untuk dipaparkan semula? Diupload pulak ke youtube untuk tatapan seluruh dunia.

Nak bendung gejala maksiat, nak bawak golongan ini ke jalan yang benar, tapi dalam masa yang sama dedahkan, tonjolkan, zoom in lagi…. Dedahkan keaiban orang lain, ni bukan satu perkara yang mudah.

Sistem undang – undang kita mungkin memerlukan gambar dan video untuk bukti dakwaan mahkamah (tanggapan saya, tidak memahami undang – undang dengan fasih), tapi tak ada peruntukan untuk sebarkan ke serata dunia. Malah boleh dikatakan mereka ini *mencabul* ruangan peribadi mereka. Kan? Mereka berada di bilik yang secara asasnya telah dipinjamkan hak milik oleh pemilik hotel kepada mereka (melalui bayaran sewa), maka apa sahaja yang berlaku di bilik tersebut adalah kebebasan mereka sendiri. Memasuki ruangan peribadi seseorang secara paksa (oh dialog “buka pintu ni, kalau tak kami pecahkan, dah pecah kena bayar …” LOL), itu boleh dikira mencabul ruangan peribadi mereka.

Saya berpendapat pasangan berhalwat ini sebenarnya mempunyai hak untuk tidak membuka pintu kerana a) mereka tidak mengenali siapa yang nak masuk bilik tu b) mereka memegang hak untuk mengunci pintu (mereka di sebelah dalam bilik, yang boleh dikunci dari dalam, berlainan dengan penjara yang pintu bilik dikunci dari luar).

Dan saya juga berpendapat, jika pasangan terbabit ingin membenarkan penguatkuasa ini masuk, mereka boleh menetapkan syarat berapa orang yang boleh masuk. Contoh si pasangan lelaki yang menutup aurat seminimum mungkin keluar dan meminta penguatkuasa wanita sahaja yang masuk kerana pasangan wanitanya tidak menutup aurat lengkap.

Tak lah jadi macam pasar malam kat dalam bilik hotel bajet tu. Semua nak masuk, semua nak tengok (wayang free), semua nak check bahan bukti, semua sibuk nak rakam. Seolah – olah ini bukan lagi operasi mencegah maksiat, tetapi menjadi operasi tangkapan selepas aktiviti maksiat, serupa seperti mereka ini menantikan pasangan ini melakukan khalwat baru bertindak.

Realitinya ini hanya dirakam, dipaparkan apa yang terjadi di hotel – hotel murahan. Setakat ini tiada lagi video seumpama ini yang merakamkan situasi di hotel – hotel 5 bintang. Mungkin ada ye, cuma tiada paparan video. Kononnya di hotel 5 bintang lebih banyak VIP tempatan berada di situ… Tidak dapat disentuh katanya.

Anjing Liar dan Peronda

Kawasan rumah ada anjing liar,
Selalu makanan tak habis sengaja diberi,
Esoknya datang lagi mencari makan,
Dah hari – hari bagi makan,
Nampak kita dah tak salak, dah tak kejar,
Bagus kan?

Kawasan rumah selalu ada peronda,
Hampir setiap hari mencekup pesalah tersilap langkah,
Pesalah takut tapi sedikit lega bila dengar *mau setel?*
Esoknya ada lagi,
Selalu di*setel*,
Tapi masih *menyalak*, masih *mengejar*,
Bagus ke?

Tu dia Memorial Park kat Kulim habaq mai….

Bukan hajat di hati nak tengok berita TV3. Tapi dah tertengok sejak dari petang follow soccer kids (bestnyer naik air asia x pegi australia!). Lepas Maghrib siap – siap nak balik rumah, ada la berita cantik punya pasal Memorial Park kat Kulim dan bantahan oleh penduduk sekitar.

Isu ni dah lama sebenarnya. Aku spend masa sejam jugaklah google dan baca artikel2 berkaitan. Menarik perhatian sebab banyak isu yang aku kurang jelas.

  • Projek Memorial Park ni diluluskan pada tahun 2007 di bawah MB Kedah ketika itu Datuk Seri Mahdzir Khalid
  • Bantahan telah di hantar pada tahun 2007 jugak oleh penduduk setempat
  • 2008 Kerajaan BN tumbang di Kedah
  • Kerajaan PR take over, dan bantahan dihantar lagi oleh penduduk setempat (kurang jelas, assuming je)
  • Kerajaan PR adakan dialog
  • Salah seorang dari penduduk ada berkata yang kerajaan PR ada berkata dah batalkan projek ni (assuming again pada masa dialog atau selepas itu)
  • Tapi sebenarnya kerajaan PR tak boleh nak buat apa, sebab tanah tu dah jadi tanah persendirian, bukan lagi Rizab Melayu.
  • (Kurang fakta lagi) Tanah itu memang asal Rizab Melayu tapi telah dijual oleh pemilik asal kepada pemilik sekarang.
  • Dengan dialog, kerajaan PR memberi (atau meluluskan) lagi tanah untuk Memorial Park tersebut.
  • Tetapi tanah yang baru diluluskan/diberikan adalah untuk dijadikan Buffer Zone di antara Memorial Park tersebut dan kawasan penempatan terdekat.
  • Buffer Zone berjarak hampir 1 KM dari penempatan terdekat.
  • Di Buffer Zone tersebut digariskan pemaju perlu menanam pokok2 tinggi supaya Memorial Park tersebut tidak kelihatan dari penempatan terdekat.

Jadi mengikut dari berita TV3 yang baru ditonton sebentar tadi ada sedikit fakta yang tidak dinyatakan secara jelas ataupun memang tidak dinyatakan langsung. Kelihatan dari klip video menyatakan projek diluluskan pada tahun 2011 (assuming again, mungkin surat kelulusan tanah tambahan oleh kerajaan PR seperti dinyatakan di atas).

Kemudian, yang nampaknya berita ditonjolkan seolah – olah pemaju/pembina ni terjah masuk je tanah Rizab Melayu dengan kelulusan kerajaan PR sedangkan kronologi kes ini tidak dipaparkan secara jelas.

Siapa yang nak tanah Rizab Melayu diceroboh? Aku sendiri membesar di kawasan tanah Rizab Melayu. Tapi dalam kes ni, dari artikel2 yang dibaca tanah tersebut bukan lagi dimiliki oleh orang Melayu…. Siapa tuan tanah asal, bagaimana tanah Rizab Melayu menjadi milik bukan Melayu? Ini perlu dikaji secara lebih mendalam sebelum apa2 kenyataan dapat dibuat.

Lazimnya kita memikirkan tanah Rizab Melayu akan kekal menjadi hak milik orang Melayu. Jelasnya dalam kes ini, ianya tidak sebegitu. Adakah lebih baik dihapuskan sahaja Rizab Melayu ini? Dan dengan itu tanah orang Melayu kita secara serta merta akan naik harga mungkin mencecah jutaan ringgit? Nyatanya hak milik orang Melayu dapat dibeli dengan wang ringgit.

Hate 2Checkout

The other day I was shopping for new domain. From WHT I found a cheap domain registrar. I am using namecheap, but recent price hike make them no longer cheap as their name suggest. But their service is very good!

Which registrar is that? Internet.bs

Now. This internet.bs website really all over the place. But they have cheap price. (Actually one of my client have even cheaper domain price, but then need to register under his name – I don’t want that!)

After pick my domain and now come to payment. One that I recognize is 2Checkout. Back in my mind I think okay, this 2co seems more legit and I’ve read good review of them before.

So I just proceed.

What happen is, 2co deduct the value from my visa debit card, then go on do nothing. After few minutes I go and have online chat with internet.bs support. He told me that 2co hold the payment for manual review. This usually takes 3 ~ 6 hours and maximum of 24 hours.

This is just stupid!

Also there is no email explaining that also. If I did not go and contact internet.bs support I wont know a thing.

So there goes my rant. I hate 2co!

My take on PTPTN demo

So they have a demo. In the demo they put Najib picture. And they go on and put a flower as if Najib passed away and offering prayer (or so).

This is wrong. The right way is to do it the muslim way. Najib is a muslim. So we need to kafan, do sembahyang jenazah, then usung the jenazah all the way to kubur, kebumikan, bacakan talkin….

You see. If do like this, there will be lots of pengajaran yang kita akan akan dapat.

Kita belajar Fardhu Kifayah. Kita dah belajar untuk menjalankan kerja – kerja yang orang lain (mostly) tak nak buat.

Kita berkerja sama dalam menguruskan jenazah. Ada leader yang guide, ada follower yang mengikut. Perhaps kita boleh adakan lebih dari satu jenazah Najib. So kita ada kumpulan. Then kita boleh bandingkan kumpulan mana yang lebih sempurna pengurusan jenazahnya….

Kita juga turut bekerjasama dalam mengusung dan mengebumikan jenazah Najib.

Selepas itu kita boleh insaf mendengar talkin yang dibacakan. Wahai anak adam… bla bla bla (Oh! I pun tak ingat apa inti sari talkin, kena attend jugak la aku ni…)

Jadi soalannya…. Nak buat benda ni, kat kelas pengurusan jenazah dah boleh buat semua benda ni.

Exactly! Pergi kelas pengurusan jenazah lagi bagus dari demo tak tentu pasal ni.

Hutang wajib bayar. Nak tentang pasal interest & service charge, go on. Nak hapuskan hutang 100%? Jauh sikit.

So PR nak offer hapuskan hutang 100%? Lets vote them to be the real government first, then we do DEMO to demand their PROMISE (if they dont do that).

Create Symbolic Link in Windows

I did use Linux years ago. But always resort back to Windows. Why? Games! But now I have no time to play games anymore. Work work work. And I love working with coding, trying out new codes, new logic, new fix blah blah blah.

So, I use Dropbox to have a backup and to sync with my laptop at home.

In my Fedora 16 LXDE laptop, I create a symlink into the dropbox directory/folder. So whatever changes I did at source location, will reflect there and dropbox will update it. Walla!

But on my office laptop, it’s a bit older. Running Windows Vista. I did upgrade all to latest update, uninstall whatever not needed. But still a bit slow…..

So in Windows I cant figure out how to do symlink like on Linux. At first I make the code to run directly from dropbox folder. It work fawlessly, until I added css and js file. Owh… This file need to be in htdocs folder (or can still stay in Dropbox directory, I just dont want to config Apache in doing so).

I google!

Found it!

To create a symlink like in Linux:

mklink /j c:/dropbox/project1 c:/xampp/htdocs/project1

And thats all. Now able to access from http://localhost/project1 and any changes done in Dropbox folder can be viewed instantly on browser.

Really make it easy now! :)

[ source 1 ] [ source 2 ]