Archive for May, 2013

JavaScript: Serialize JSON object to a query string

JavaScript (of course nested objects would require more efforts)

var data = { one: 'first', two: 'second' };
var result = '';
for(key in data) {
    result += key + '=' + data[key] + '&';
}
result = result.slice(0, result.length - 1); 
console.log(result);

jQuery (api.jquery.com/jQuery.param/)

var data = { one: 'first', two: 'second' };
var result = $.param(data);
console.log(result);

YUI (yuilibrary.com/yui/docs/api/classes/QueryString.html#method_stringify)

var data = { one: 'first', two: 'second' };
var result = Y.QueryString.stringify(data);
console.log(result);

Android file transfer

It’s been a while since Android is out but apparently there is still no way to connect an Android device to a Mac OS computer without extra efforts.

If you ran into this problem then look no further as Google has an official Android File Transfer desktop app. No need for any third party solutions.

android_file_transfer

P.S.: It is interesting how it says: “For Mac users only. You don’t need extra software to connect your Android device to a Windows computer.”

SAT Vocabulary made it to YesCollege.com

Another win for SAT Vocabulary as it has been selected to be listed on YesCollege.com among other sites and apps for ACT/SAT preparation.

sat_vocabulary

It’s #59 out 100 but still a huge success for the app!