Search This Blog


Check out these Pages


Hash 12

See you again. 

Hash 11


Hash 10n


Simple Converter of Java ResultSet into JSONArray

I am now working on a program to upload Data from SQLite to MySQL database on the server. This is one of the tasks to complete this. I found this function on this blog

Here's your full code :

import org.json.JSONArray;
import org.json.JSONObject;
import java.sql.ResultSet;

public class Convertor {
     * Convert a result set into a JSON Array
     * @param resultSet
     * @return a JSONArray
     * @throws Exception
    public static JSONArray getJSON(ResultSet resultSet)
            throws Exception {
        JSONArray jsonArray = new JSONArray();
        while ( {
            int total_rows = resultSet.getMetaData().getColumnCount();
            JSONObject obj = new JSONObject();
            for (int i = 0; i < total_rows; i++) {
                obj.put(resultSet.getMetaData().getColumnLabel(i + 1)
                        .toLowerCase(), resultSet.getObject(i + 1));
        return jsonArray;

Hash 9ine

Look beyond

Andrew Rowat - Collision Yangon Timelapse

Published on Oct 4, 2014
A short series of time-lapse videos that were shot in conjunction with Andrew Rowat's "Collision Yangon" project ( These time lapse sequences were shot between 2012 and 2014.. The sequences were shot by Lee Satkowski, Algirdas Bakas, and Andrew Rowat and the final edit produced courtesy of LeJit Productions.

Skype crashes unexpectedly OS-X Yosemite-10-10-2

A few days ago, the Skype application on my mac started crashing on launches. I googled around and found the following solutions and fixed the problem.

Possible Causes :
1. Some webcam application call ecamm installed on your mac.
2. The Office 2016 Mac Preview (in my case)

Solutions :

1. Uninstall those applications you recently installed.
2. Re-install your Skype with fresh download from Skype website.
3. I will post as I found it on

Open a Finder window. Select the Go menu. Press and hold the alt key. You'll see Library showing up in the list. Click on Library. Double click Application Support folder to reveal its content.
Drag and drop the Skype folder to the trash. Empty trash. Open Skype.

And this works for me.. i hope it will work for you too. Have a good day. ;)

This is my mac specification in case you need to refer to.

Hash 8ight

Business hour