Happy Android Development with Gradle

Recently I have been working a lot on migrating android projects to use gradle building system. Seriously it is much better than the old time. I can easily use libraries on maven repositories and customize my building process. I also no long need to create a desperate project for testing. Awesome!

Read more...

Tons of things working on

it’s been a while since the last post. After coming to new york, I have been very busy on my study, personal projects and (of course) playing around. studying in new york university is harsh, but not as hard as i think. I met nice people, hanged out with my beloved new friends. I even…

Read more...

Capitalizing Words in Javascript

This is a very old draft stuck at the bottom of my draft list. lol [sourcecode language=”javascript”] var str = "hello world"; str = str.toLowerCase().replace(/b[a-z]/g, function(letter) { return letter.toUpperCase(); }); alert(str); //Displays "Hello World" [/sourcecode] Making it as a function, we can do this. [sourcecode language=”javascript”] function capitalize(str) { return str.toLowerCase().replace(/b[a-z]/g, function(letter) { return letter.toUpperCase();…

Read more...

InstaMusic Version 1.0.1

Version 1.0.1 Changelog Fixed music pausing bug Fixed bug to open now playing with no song Fixed bug such that music should stop after playing the last song Fixed minor bug that now playing screen will be opened when notification is clicked Fixed bug that the app crashed when back is pressed during song playing

Read more...

Detecting browsers of iPhone, iPod, iPad, Android and BlackBerry with JavaScript and PHP

To begin with, we need to understand that in the HTTP protocol, browser send its identity called user agent to the server to request the wanted webpage. Every browser has its only unique user agent value, and therefore we can check that value to identify the user browser. So, first we have to take a…

Read more...

How do I construct a website

To construct a website, from nothing to a pretty one, what is needed is not only technique, but also ideas. When I was young, I constructed my website with Microsoft Frontpage. Later, I uses Dreamwaver to handle coding, programming web functions with PHP and javascript. Now, I even start using templates such as the Grid…

Read more...

Database failed

In my chrome extension, the javascript injector, localStorage is used as the database to store the clients’ data. However, as localStorage support only data in string, information has to be stringified and parsed whenever saving and retrieving. The database seems unable to hold anymore data. It corrupted and became incorrect data. I need to rewrite…

Read more...

Posting source codes on WordPress

This is visual basic. [sourcecode language=”vb”] Private Function TempPath() As String Const MaxPathLen = 256 ‘Max length of the path, just as big as possible Dim FolderName As String ‘Name of the folder Dim ReturnVar As Long ‘Return Value End Function [/sourcecode] To do so, you need to wrap the code between [‌‌‌‌‌sourcecode language=”vb”] and…

Read more...

Making use of Adobe Script

I have been using adobe products such as illustrator and photoshop for years to support my works. The lastest work would be making icons for my Chrome Extensions =]. Adobe script has no doubt saved me a lot of time. And what make me excitied is that the script can be Javascript. Adobe script is…

Read more...

Home-made “Recent Comments” for Blogger

I suddenly want to write a “Recent Comment” for this Blogspot as I am not satisfied with the default one. It is not difficult as I made use of jQuery to dual with the comment feed in Json format. All the data is avaliable and ready, what I do is just adjusting the location into…

Read more...