Predictable Design
Posted by mkhairul - February 28, 2010 at 02:02:13 am - No CommentsCategories: blog
A Quote from Predictable Design (UX Magazine)
For a design process to produce an extraordinary product, two conditions must be met: stakeholders and participants must unequivocally accept that they aren’t designers, and trust the real designers’ abilities.
jquery context menu problem in chrome and IE
Posted by mkhairul - February 25, 2010 at 01:02:33 pm - No CommentsCategories: blog
I was doing some image uploading with swfupload and added context menu to the pictures that were uploaded. I was told by a colleague (who helped me testing in other browsers) that the context menu is overlapped by the browser’s context menu (for those who don’t know what ‘context menu’ is, its the menu when you right click).
I’m using jquery’s contextmenu. There’s a code needed to be changed.
Search for (which is probably at line 141)
$(el).add('UL.contextMenu').bind('contextmenu', function() { return false; });
Replace it with
$(el).add($('UL.contextMenu')).bind('contextmenu', function() { return false; });
Reference
jQuery Contextmenu DOESN’T WORK IN JQUERY 1.4 CHROME & SAFARI
MySQL Service Error 1067: The program terminated unexpectedly
Posted by mkhairul - February 17, 2010 at 03:02:38 am - No CommentsCategories: blog
I was bugged by this error for 30 minutes, wondering what the hell is it? No spaces in data dir path? Or no spaces in some other paths?
What is needed is just to set the bin directory in the windows path.
If that does not work, check this steps out, MySQL Error 1067.
Refreshing PHP.ini on IIS
Posted by mkhairul - February 17, 2010 at 03:02:34 am - No CommentsCategories: Troubleshoot
One of the SOAP script that I did is not working (it works fine when using apache), so I know its not the script’s fault (most probably its the php configuration). I’m using a PHP script for sending SOAP data to a 3rd party server. The data needs to be encrypted (mcrypt) using an IV (initialisation vector) provided by the vendor.
It also requires cURL to send data through an SSL connection (curl). I checked up on the php configuration and as I have suspected, mcrypt and curl is not loaded.
To enable the extensions, go to php.ini, and uncomment it (remove the semicolon). Reload the php.ini from IIS by recycling the application pool.
Start -> Run -> inetmgr -> ApplicationPools -> DefaultAppPool (Right click, Recycle)
Run a test script containing phpinfo() and check if the extension is loaded.
Reference
nuSOAP problem – Method not allowed
Posted by mkhairul - February 3, 2010 at 10:02:39 am - No CommentsCategories: Tips, Troubleshoot
I got a call from a friend working at the previous company that I worked for. I did the integration between their flagship application with a 3rd party payment gateway involving SOAP.
As usual, people call me expecting me to troubleshoot problem on the phone. At first I was a little bit confused as to what the problem is, but then I remembered that I had already solved it and went through my notes.
The web service client is calling the web service on SSL, it requires the use of cURL. Enable php_curl extension and everything should work fine.
GimpStyle Theme design by Horacio Bella.

