/* Internet Addiction */

Learn it, Live it, Love it.

Archive for the ‘Technology’ Category

Google closure compiler

without comments

Google recently release Closure Compiler service (labs version)

use for optimising a few simple functions in the service’s web UI for JavaScript.

You can try to execute JavaScript for optimisation, check for warning and error, compressed into small files, see what is the post data looks like and more. It is worth to check it out.

Written by Charles Ling

14 November, 2009 at 11:34 PM

Posted in Javascript

Tagged with ,

Unable to extract trial version of Flex Builder 3

without comments

Recently, i wanted to try out to install Flex Builder 3 from Adobe website and after successfully downloaded the file i was unable to extract the files. It came out this error “Please select another location to extract the installer”.

I checked the hard drive and i have more than 10gb spaces in all my drives. I kept getting the error no matter what. I clear my Windows temp folders, tried in different OS such as XP and vista. I also tried to disable my firewall and remove my anti-virus software.None of them is working. I suspected that the downloaded file have been corrupted.

Oh yea. I forgot to mention that i have downloaded the file in my office. Apparently, the package i have downloaded have been scanned through proxy and Inter-scan anti-virus checked. That’s why the files get corrupted even i downloaded the Flex SDK packages. So, i went to my friend place and re-downloaded the files. All have been working fine without any errors.

So my conclusion is that, if you have the same error and tried the Adobe troubleshoot, and none of the steps above worked for you, you might try to re-download the packages from different computer or proxy, virus scan free.

Check out some of the solutions here :
http://forums.adobe.com/thread/85013
http://kb2.adobe.com/cps/858/f8582407.html

Written by Charles Ling

27 October, 2009 at 8:31 PM

PayPal AU Developer Program

without comments

Just went to Australia first PayPal developer program in Melbourne. The seminar was fantastic and interesting. The fact that only few certified PayPal developer around Australia and Asia Pacific quite shock me. According to their research, almost half of merchant websites customer will turn away from their website if PayPal is not supported as one of their payment methods. I supposed the Exam should be very hard or maybe not a lot of people ever heard of PayPal certification. For my own opinion, if your are frequently working with projects that involves with merchant or e-commerce getting PayPal certified will help you to gain credentials and trust at least. This is not some sort of certification that almost 6-7 out 10 have such as Microsoft Certificated when even 8 years old kids could get it.

PayPal actually came out several new products and APIs compare to last few years when i first time using their HTML based button for donation. Their even have widget that you can put on your website. Here are the website for United States : PayPal developer training and education and for the Australia version please refer to Australia PayPal : PayPal Australia and the AU Exam curriculum guide : PayPal Au Exam Curriculum Exam

The advance version is to improve user buying experience will be using Paypal Payflow Pro Gateway or Express Checkout where both allowed merchant to customise their own shopping cart(Paypal Payflow Pro Gateway) or using instant checkout experience that will redirect to PayPal website after buyer decided to place an order.

For more information about the exam.

Updated : 02/September/2009.
From now on, i am officially PayPal Certified Developer.

Written by Charles Ling

23 July, 2009 at 9:45 PM

Posted in PayPal, Technology

Tagged with

Google VS PHP

without comments

Here is the recent article Google published for Web optimisation technique for PHP. It got bad PHP community slap back especially from the Sitepoint.com and Google group forum. It is quiet interesting to see how beginner PHP will actually fall in the trap which recomemded so of the tips from the articles.

Written by Charles Ling

27 June, 2009 at 9:14 PM

Posted in PHP

Tagged with

JQuery get $.getJSON data

with one comment

Imagine you have server side data return to your Javascript client side.

   1:  var groupid = null;
   2:  
   3:  $.getJSON(url, data,
   4:      function(result){
   5:  
   6:       groupid = result.groupid;
   7:       //do whatehever you like here
   8:  
   9:      // you wanted to return the data that you have been parsed or assign
  10:      }
  11:  );
  12:  
  13:  alert(groupid ); //error : will return null

So instead of that, we need to use delegate or callback function that JQuery have provided to us. Remember the $.fn. thing.

Now let see how we can use the delegate function to return us the data:

   1:  $.getJSON(path + "?request=url.here",
   2:  function (data)
   3:  {
   4:     var selectOption = '';
   5:  
   6:     //do what ever you like with the json data
   7:     selectOption =  selectOption + "testing" + data; //example only
   8:     $.fn.delegateJSONResult(selectOption );
   9:  });
  10:  
  11:  $.fn.delegateJSONResult = function(data) {
  12:    alert(data);
  13:  }

Written by Charles Ling

27 June, 2009 at 6:42 PM

Posted in Javascript, jQuery

Tagged with ,