The New Face of Indonesian Democracy 

A New Hope - Indonesian President Joko Widodo is a force for democracy
Indonesian new president-elect, Joko Widodo, has made Time's cover this week. Registration needed to read whole article.

The last Indonesian presidential election was held on July 9th, 2014, was the proudest moment for all of us here at Indonesia. As the largest muslim nation in the world at edge of the harshest transition period, we finally able to elect our new president, peacefully, tough through a lot of drama, and we seems will have a lot battle to come.

Why matter? Let me introduce a bit. Mr. Joko Widodo a former major of Solo city that recently took seat as Jakarta governor, has beaten Mr. Prabowo Subianto, a former general from the latest regime, which by himself has a lot of notes—who also the son-in-law of the latest dictator Soeharto, known as reigned Indonesian presidency for about 32 years. Just imagine, the general was backed up my major parties that made coalition more than enough to win over Mr. Widodo coalition, about 60% vs 40%. In the campaign, Mr. Widodo's opponent have tried all the brutal ways, conducted some series of serious attacks: from races, religions, corrupt allegiation—all proven to be wrong—all resulted public polarization, surprisingly this also invited public involvements through political activities. Me and wife included. We actively campaigning Mr. Widodo through social media and off media, via phone, and going to street. What a time we recalled them all now. All of these public encouragement in the last week drove Mr. Widodo popularity, that made Mr. Widodo won with 8% margin, about 8 million people votes. Followed the election result, Mr. Subianto claimed the election has many problems, he then filed an appeal to constitutional court, the court delivered a unanimous 9-0 verdict in favor of rejecting all aspects of the appeal. Seems enough, well not, it seems the gang planted holes on some new legislations that we Indonesian feels capable of destroying our democracy, for example the latest new legislation on choosing local leaders.

I promise this is the latest political message I put on this blog, because it's matter. Unless there seems new things matter I might post other. Mr. Joko Widodo presidency is our biggest hope to get this 230 million people nation to the brightest future, well at least, he is going to try his best to solve the biggest problem we have: corruption, inefficiency in bureaucracy, and making a lot development progress, and giving many bright ideas where to lead this nation. And if not him, the opposition seems ready to attack from many sides. Thankfully, Indonesian seems have a many hope, there seems a lot of new leaders that proven to be able to got people trust and willing to bring Indonesia move forward to a better future. But this start by Mr. Widodo is important. If he can manage his job well for the next 5 years, we have a lot more hope.

At October 20th, 2014—next four days—Indonesia will have new president. His name is Joko Widodo.

On Getting Feedbacks

Questions:

  • Do you know how…
  • Is it easy to…
  • How can we make it better?

Three don'ts:

  • Argue
  • Defend
  • Dismiss

(via WWDC 2014 Session 223)

Building OS X Apps With JavaScript 

My first thought, it's an interesting idea. It could have lot potential to many web developers out there to try to tap into OS X apps. I think if someone in future come up with a framework for this, it could turn into something great forward. Just my thought. I could be wrong if not really excited about this. Let's see how this will wrap up in the future. (Via Mike Gunderloy)

Top 10 Essays Since 1950 

If you crave for non-fiction reading pleasure, here is a chance to refill your Instapaper list. See Robert Atwan's full list and a few of his choices. (Via Kottke)

The Best You Can Make It 

From the previously linked website:

So it just has to be the best you can make it. You put all the best stuff into it so you can get the best out of it, and get your price or don’t sell it.

This is what craftmanship are all about.

The Distance 

The Distance is website that publishes stories about hard-working, long-lasting businesses and the people behind them. That from their tagline, and I think they really meant it. Formatted as an internet magazine. Beautifully designed. The illustration adds some level of enjoyment to the reading experience, which is already fulfilled. The website brought by Basecamp.

RubyMotion New Renewal Pricing 

RubyMotion just announced their new renewal pricing, after the long awaited Android support is now fully emerged. RubyMotion lets you develop full-fledged native apps for iPhone, iPad, Mac and Android (still in beta), using Ruby language, all of this toolchain would be sold as one unified product, you have to buy license for $199/year to use them. If the license expired and you need an updates, you have to pay full renewal price.

The pricing model seems simple and fair. I think it's affordable. I have a high hope their business is sustainable. I would consider to purchase one if I need to jump into Android wagon.

iPhone Camera Evolutions 

It's amazing seeing how the smartphone camera turning like in this presentation. Even today, me and wife decided we didn't buy a new 'real' camera. We'll happily maxed out the only iPhone 5c as our main camera. That alone is worth than the price we paid for the iPhone.

Kudos to the creator, the website is fully featured, like we able to see each photo detail by hovering then clicking it, and it's beautifully designed.

Full-text WWDC Transcripts 

For you out there who develop iOS apps, this is tremendous. Other than it helps people who not able to catch the fast spoken English, it definitely help discovering WWDC sessions by easily search there by topic, technology, etc.

Really useful.

Never Name a Field With "_change"

Three days ago I worked on a rails project. The fact is, I'm new to rails. Sure, there're many trial and error, but I knew coding is like that, and then I have no big problem. Except for the error on that day. I actually faced the error for couple of days. Headache. Bump.

Really, what's wrong?

I was working on a data retrieval, in rails it's called active record. I added a new field for capturing calculation result from the other fields, so I called the field price_change (note the _change here). I filled some values. I tried rails console. I tested loading some data, it prints in the console. Let's say I call the data to a variable named stuff. Then I wanted to manipulate the price_change of that stuff, and it turns out I got a 0 (zero!). It's totally different number than real number on the database. I tried to solve for couple of days, tried google, stackoverflow, I have no luck. What's wrong with my code?

The Solution

Fortunately, I stumbled upon to this site, Reserved Words in Ruby on Rails. Gotcha! Tough there is no reference to _change, but I think I knew something.

A something_change method will be created to every activerecord fields, It serves as a hook as well as capturing field behavior. If I have a field called price, rails will create price_change automatically. Then, yeah, I had a field called price beside the price_change. I finally proved this via simple .inspect and .methods from the particular object.

Lesson learned.

Other tips

  • Always check the method names carefully
  • Always look yourobject.inspect. And, every things in ruby is object. So be careful, and have fun.
  • And finally, take a look at the object.methods method.
  • Always check documentations.

Have a nice weekend. Happy coding!