[ WeekendProjects ] SGD2IDR

sejak beberapa pekan lalu, pas wiken iseng-iseng bikin android app yang simpel tapi berguna, minimal berguna selama jadi TKI di Singapore ini..  [emoji grinning face with smiling eyes]

biasanya orang-orang Indo di Singapore, kalau hendak transfer duit ke Indonesia, mereka menggunakan jasa Bank BNI yang berlokasi di Lucky Plaza..

lalu, ada juga yang melakukan transaksi via milis Indo-Sing dengan sesama orang Indo, nah di milis tersebut umumnya rate yang digunakan adalah rate tengah ((jual+beli)/2) dari Bank BCA.. Continue reading

[ WeekendProjects ] How to Root NEXUS 5 with Android 4.4.2 KitKat

But, wait… I write here for my own reference, so if you want to try and follow this reference, DO IT AT YOUR OWN RISK..  [emoji expressionless face]

  1. Download and extract Android SDK. Make sure you could find fastboot tool in {AndroidSDKfolder}/sdk/platform-tools
  2. Download CWM Recovery for NEXUS 5, and put it in the folder where you found fastboot above.
  3. Enable USB Debugging Mode, find in Setting > Developer Option
  4. Download a zip file of SuperSU (UPDATE-SuperSU-v1.80.zip)
  5. Connect your Nexus 5 to your PC/Laptop, and then copy/paste the downloaded SuperSU zip file to SDcard in your Nexus 5.
  6. Turn off your Nexus 5.
  7. Now, set your Nexus 5 to Fastboot/Bootloader mode by holding Volume Down + Power buttons together until you got a red text “Fastboot Mode”.
  8. Install the CWM Recovery : use the Terminal or CommandPrompt in your PC/Laptop, goes to the folder where you found the fastboot tool and then type following commands.
  9. fastboot flash recovery recovery-clockwork-

  10. When, it’s done, select Recovery menu in your Nexus 5 (use Volume Up/Down for scrolling and Power button to select).
  11. In Recovery menu, select “Install zip”, and then browse to the SDcard folder where you have put the SuperSU zip file. Select the file and confirm the installation to begin.
  12. When it’s done, select “++++++Go Back+++++”, and reboot you Nexus 5 by selecting “reboot system now”.
  13. It may take time for the first reboot, but once your phone is up, do reboot again.

[ WeekendProjects ] Python and GPU

Wiken kali ini pengen nyobain gimana menggunakan python untuk gpu programming.. ga sampe terlalu detil, cuma instalasi dan running sample codenya doank.. yang penting link-link pentingnya sudah diamankan.. [emoji grinning face with smiling eyes]

1. PyCUDA = python + cuda

Download: pypi/pycuda
Instalasi: PyCuda/Installation
Dokumentasi: documen.tician.de/pycuda/

2. PyOpenCL = python + opencl

Download: pypi/pyopencl
Instalasi: PyOpenCL/Installation
Dokumentasi: documen.tician.de/pyopencl/

Untuk sementara itu dulu.. kalau ada kesempatan dan mood, kita lanjut lagi..  [emoji grinning face with smiling eyes]

[ WeekendProjects ] Upgrading Xperia X10 to Jelly Bean

My wife has an old Sony Xperia X10 phone, it’s an android phone. When she bought it in 2010, the Android version was Eclair (2.1), and it’s never been upgraded before. Now, she let me play around to upgrade the phone. [emoji grinning face]

In its website, Sony only provides official update up to GingerBread (2.3) version. Yeaa, it’s too old really, and actually I want a 4.x version. After searching android ROMs through google, I decided to port the JellyBean (4.1) version. However, since it’s not an official update from Sony, it needs a little bit hacking to make it work in X10. It sounds difficult, indeed.. but actually, it’s a fun weekend project for me. [emoji face with look of triumph]

If you go search through google, there are lot of tutorials on how to upgrade android phones to JellyBean. But the problem is, in Xperia X10, the bootloader cannot be unlocked, while most tutorials out there are for unlocked bootloader phones. Fortunately, FeraLab have successfully managed JellyBean ROM that supports both locked and unlocked bootloaders. Here are the steps to port it to Xperia X10:

Continue reading

shiva3d causes memory leaks on iphone

if you are working with shiva3d game engine on iphone, you may notice two memory leaks once you convert the runtime package (.stk file) to xcode project using shiva authoring tools.

the memory leaks are
1. related to AudioToolbox framework
2. related to NSString

for the first one, i have no idea how to resolve it, since it was related to one of ios frameworks, and even google didn’t know :D.

and for the second, it seems the authoring tools forgot to release a dynamic NSString variable. see the image below. red rectangle is the suspect variable that you could find in initWithCoder method of S3DEngine_EAGLView class (blue rectangles). to resolve this, simply release the variable as shown in green rectangle.

click for bigger image