Blogging with attitude! You jump I watch!

8Aug/110

[Prestashop] Disabling country list in one go

Default installation prestashop included all the country in the world, as for me I don't realy need all of them to be enable which because I'm only selling items in my local country only.

This which require me to disable all 200+ entry which is a tremendous clicking task, but someone posted this in the prestashop forum which only require 1 SQL query statement to disable all of the entry beside your choosing:

UPDATE ps_country SET active=0 WHERE iso_code NOT LIKE 'MY'

of course you need to change the ps_ to your database prefix :)

Cheers!

15Jul/110

MEPS blood donation drive 10AM – 4PM

MEPS doing a blood donation drive at The Sphere Bangsar south kuala lumpur, sila datang beramai-ramai :d

3Jun/110

BNZRetail ENTERPRISE!

Finally it official :) , It only take me around 1 hrs to register online!

24May/110

ESX: Entering maintainance mode via command line

To enter Maintenance Mode, at the ESX console type:

vimsh -n -e /hostsvc/maintenance_mode_enter

To exit Maintenance Mode type:

vimsh -n -e /hostsvc/maintenance_mode_exit

To display whether the ESX Server is currently in maintenance mode or not type:

vimsh -n -e"hostsvc/hostsummary" | grep inMaintenanceMode
30Apr/110

Mounting External USB Drive on DNS-323 with Readonly NTFS

I recently bought a DNS-323 NAS and I also bought a 2TB Seagate, manage to get the disk working but the problem is I have 500GB extra disk full of data.

I began copying my the data from the extra 500GB disk to my WD My Book 1TB, since DNS-323 will always need to format new inserted disk to it, and my plan is to make this disk to store all the fun_plug and some extra hack that I plan for my DNS-323 :)

Setting up fun_plug was easy just follow the guide from here wiki.dns323.info/howto:ffp

After FFP installed we need to ssh to it, first we need 2 modules to make DNS-323 can use usb storage and read ntfs files system

usb-storage.ko
ntfs.ko

I copy them to /mnt/HD_a2/.bootstrap/

next we need to load the modules:

insmod ntfs.ko
insmod usb-storage.ko

then time to plug-in my usb disk dmesg should show my disk is detected

SCSI device sdc: 1953525168 512-byte hdwr sectors (1000205 MB)
sdc: assuming drive cache: write through
SCSI device sdc: 1953525168 512-byte hdwr sectors (1000205 MB)
sdc: assuming drive cache: write through
sdc: sdc1
Attached scsi disk sdc at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi2, channel 0, id 0, lun 0,  type 0
usb-storage: device scan complete

now I need to mount it so I can get access to all those data and copy it over to my 2TB disk on the NAS

mkdir -p /mnt/usb
mount -t ntfs /dev/sdc1 /mnt/usb

NOTE: please bare in mind ntfs read-write support is buggy I only use it for read only not write so you the modules with your risk!

after I done copying need to umount it

umount /mnt/usb

Done!

reference:
fun_plug 0.5: wiki.dns323.info/howto:ffp
ntfs.ko: forum.dsmg600.info/viewtopic.php?pid=30039#p30039
usb-storage.ko: dev.skcserver.de/dns323/modules_v1.03/kernel/drivers/usb/storage/

29Apr/110

Sony Malaysia Buat lawak?

Petang tadi dalam pukul 3 lelebih la dpt email dari sony malaysia berikut adalah sedutan email tu la:

Dear Nor idzuwan,

Congratulations!

You have been selected as one of our lucky winners for participating in our Sony Panel Cyber-Shot camera survey!

You have won yourself an exclusive Cyber-shot Travelling premium gift.

To redeem your gift, kindly email your personal details along with your unique PIN number to CIC@sony.com.my with the following:

Email Subject: RE: Sony Cyber-shot Customer Survey
Name (as per I.C):
Address:
Contact Number:
Your unique PIN number:

Please reply by Friday, 6th May 2011 with the above details.

Your gift will be sent to the designated address provided upon verification.

Thank you for your valuable feedback and time participating in our customer survey.
 
Yours sincerely,

My Sony Team
Sony (Malaysia) Sdn Bhd

wah dalam hati ada taman tapi di sebabkan baru bangun tido time baca email tu biar je la dulu jab2 lagi baru buat nyer, akan tetapi selang beberapa puluh minit selepas itu blekberi duk alert email baru dari sony malaysia:

Dear Sir/Madam,
You may have received an email entitled, 'My Sony Cyber-shot Customer Survey' that was sent out on 28/4/2011.

We are currently investigating this incident. Please ignore the email receieved prior to this one.

We sincerely apologize for the inconvenienced caused.
 

Yours sincerely,

My Sony Team
Sony (Malaysia) Sdn Bhd

apa ke jadah nyer ini? boleh lak cam tu? systems dah fakaped ke? atau ada org buat dajal? dah la tengah kecoh pasal PSN server kene compromised tambah lak ni? mmg EPIC PHAIL sony cam ni

:30: :11: :01: