Tweeting #JustForFun

Java is an interesting fat lady if ur into BBW PHP is a supermodel still figuring out her identity JavaScript is a transvestite in Thailand: sexy, hot but not a woman still C is the girl that got away Objective C is someone you'd marry if you just spend more time understanding her Ruby is a definitely the best one night stand ever Bash is ugly but always there when you need her SQL can handle anything, works best on a threesome with NoSQL NoSQL is marriage material if only she understood me better Basic is the one we all shagged :p Virginity is a luxury lost over n over with developers alike with each new Hello World Python is muscular like her name but will u date muscular all the time? Your call lol Perl is autistic in her own space, mysterious and ur still finding reasons to get close to her Cassandra is sweet, exotic but doesn't speak english, but I guess love is universal :p

August 4, 2011 · Batista Harahap

Android - AsyncTask Is A Beauty - Part 2

Here goes the second part of a short tutorial of how beautiful AsyncTask is, the first tutorial is here. Now that we’re moving up to our second activity which is Hacktivate, a brief description about it is that this activity essentially puts all the data retrieved previously and populate a custom layout ListView. To make reading and understanding easier, here are the codes first before anything else. package com.bango.acerid; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.jsoup.Jsoup; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.os.AsyncTask; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; import android.widget.AdapterView.OnItemClickListener; public class Hacktivate extends Activity { private String jsonStr = ""; private JSONObject json; private List images = new ArrayList(); private List titles = new ArrayList(); private List writers = new ArrayList(); private List dates = new ArrayList(); private List links = new ArrayList(); private List body = new ArrayList(); private List description = new ArrayList(); private ArticleAdapter adapter = new ArticleAdapter(); private List l = new ArrayList(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.hacktivate); Bundle the = getIntent().getExtras(); jsonStr = (the != null) ? the.getString("listData") : ""; parseJson(jsonStr); ListView articleList = (ListView) findViewById(R.id.list); articleList.setAdapter(adapter); final Intent i = new Intent(this, PostViewer.class); articleList.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View v, int position, long id) { i.putExtra("wvUrl", links.get(position)); i.putExtra("wvBody", body.get(position)); Hacktivate.this.startActivity(i); } }); } private void parseJson(String j) { try { json = new JSONObject(j); JSONArray rss = json.getJSONArray("rss"); int max = rss.length(); for(int i=0; i...

May 26, 2011 · Batista Harahap

Android - AsyncTask Is A Beauty - Part 1

Since last weekend, I’ve been coding more on Android and although the topic about AsyncTask is nothing new, I just wanna bring it up again to appreciate its simplicity and more importantly in real world usable best practice. So I decided to create an RSS client from FeedBurner and this time to get feeds from AcerID.com. The application basically loads all the feeds with its first Activity, show it with the second activity and another helper Activity to send direct emails for questions related with Acer products. Do mind the layout, it’s quite plain but it’s usable nonetheless. So before going on with the tutorial, I’m gonna show some screenshots from and MDPI emulator running Eclair and XHDPI emulator running HoneyComb. ...

May 26, 2011 · Batista Harahap

Mobile Trends - Looking Back 1 Year

I’m still fairly new to mobile development, just a little over a year. As I dig deeper, it just gets more and more interesting. This won’t be a technical writing like a tutorial but more to how the development scene has been evolving for the past 1 year. Putting it simple: Trends. I started my mobile development efforts with Blackberry. Against all odds, I installed the SDK on a Windows virtual machine using Parallels Desktop. The experience developing using a virtual machine was painful. For long term use, it’s too slow and too awkward. Anyways, I managed to connect the Blackberry device with the IDE. So I created my first Hello World with it. It took me a great deal of my time learning about the platform. Most of the key information are for paid developers unfortunately and sadly enough, BIS is needed and I didn’t have it. A big roadblock for a newbie developer. ...

March 3, 2011 · Batista Harahap

Urbanesia API Wrapper Released - Merry Christmas!

Before anything else, I would love to say MERRY CHRISTMAS to everyone, have a great holiday and may the Christmas spirit make all of us ready for 2011. God bless you all :) This 2 days I’ve been working on a wrapper class to wrap Urbanesia’s OAuth and xAuth authentication for our API. The main idea was to keep it as simple and as easy as possible. Here’s my Christmas present :) ...

December 24, 2010 · Batista Harahap

Augmented Reality with #Wikitude API

I told you before that I’m gonna talk about another Augmented Reality framework. The framework is a great product from one of Augmented Reality’s early adopter namely Wikitude. Generally speaking, it’s more complicated than Mixare but offers more customization and definitely more features. I’m gonna build this tutorial with the following features: External Data Source - I'm using JSON from Urbanesia.com API. In-app WebView bindings - To display WebViews of any POIs URL. I haven't explore all the possibilities within Wikitude's API because of its lack of documentation. I'm really interested in its ability to handle Callbacks from clicked POIs. Haven't got the time to do so. That'll be another chapter of my tutorials. So to start off, for every project, you must include Wikitude’s API in your apps. Download it from here and get an API key while you’re at it. ...

May 12, 2010 · Batista Harahap