Posts

Showing posts from April, 2015

Hash 12

Image
See you again. 

American Musicians play with Burmese orchestra troupe 1961

Image
U Ant Gyi, Steve Addis & William Craw Ford

From youtube user Thuriya Sai

Royal Maids of Honour Group Dance and other Myanmar (Burma) Dances

Image
youtube playlist by maethan67

Hash 11

Image
Dinner

Paul Walker Tribute : Wiz Khalifa - See You Again ft. Charlie Puth [Official Video] Furious 7 Soundtrack

Image
from Wiz Khalifa youtube.

Hash 10n

Image
Shady

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 http://biercoff.blogspot.com

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 (resultSet.next()) {
            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));
            }
            jsonArray.put(obj);
        }
        return j…

Hash 9ine

Image
Look beyond

Andrew Rowat - Collision Yangon Timelapse

Image
Published on Oct 4, 2014 A short series of time-lapse videos that were shot in conjunction with Andrew Rowat's "Collision Yangon" project (https://www.youtube.com/watch?v=xX6gi...). 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

Image
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 http://community.skype.com/t5/Mac/Skype-quite-unexpectedly-OS-X-Yosemite-10-10-2/m-p/3874773#M74441

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

Image
Business hour