I know I’m late but Happy Ied Mubarak 1436 for my brother and sister around the world. It has been quite sometime since I wrote on this blog. I have decided for long time ago the blog will focus on theory, practice and more technical than life. As you already knew or feel, I wrote two or three articles mostly in English. As a matter of fact, I will write in English for now. You can find Indonesian version in here http://qudori.tumblr.com (in Indonesian Language) and my not ready Japanese and maybe mix between Bahasa Indonesia and English in here https://medium.com/@andreyferriyan. As I wrote this article, I’m still in Banyumanik with my family.
Please, I’m not gonna talk about explosive things :). I’m talking about packages delivery. Yes, a courier.
== Friday May 15, 2015 ==
It’s Friday May 15, 2015, I have deadline for submitting application to Japan. The deadline is May 20, 2015 the document must arrive in that date. Meanwhile in saturday I have to attend my cousin’s wedding ceremony. Its a sacred moment and I can’t skip it because all of my family will be gather and it will be suspicious if I’m not coming, hehehe. And also saturday is day off because Isra Miraj Day and that means holiday for everyone and all offices will be close. I can’t send my application before day because I’m still waiting from them to confirm that I can send my application. Although I can send in Monday May 18 but it will be late to arrive because normally it takes 4 days. I have promised too in Monday for taking my children and wife for vacation. Sigh!. Can you imagine that ?, a very strict date and all of them is important to me. I’m not skipping anything so I take my chances and improvise :). My last opportunity is Friday, that is all!.
1. Windows 8
2. Oracle Virtualbox for Windows 4.3.26-98988
If you ever met this error “Error -5600 in supR3HardenedWinReSpawn!” and your Virtual Machine (VM) won’t start, not just one but all of them cannot start then you must check your Windows Update. If you want to know the detail just follow this Oracle Virtualbox – VM Cannot Start ntdll Error
After KB3045999 uninstalled your computer will reboot. After reboot try again your Oracle Virtualbox and voila it works again. FYI, KB3045999 is a security update. If you want to know the detail just search it.
Back then before I choose FreeBSD as my favourite operating system for server and Ubuntu for my desktop, Gentoo become my favourite one. The most optimize operating system because its compiling from the source based on our processor, very light and faster boot and we can freely and manually tuning it with our likes. I don’t have to worry for slow bandwidth because I works in ISP. Almost every week I’m updating my kernel and apply the most stable one or I feel seem stable (I’m not measuring with any parameter, please don’t follow my example).
I know maybe it’s already too late for discussing raspberry pi (raspi) but hey, it’s my first time touching this little one and playing with it. I’m not gonna write the history behind or anything related but i’m gonna share my experience. Actually this is not my own raspi, my friend gave me. He has a project related with raspi and python, some kind of robot project. It’s because he doesn’t have python knowledge so he asked me to do some research with his raspi. So first we have to know what kind of model, how much memory and so on. I’m in hurry so my first target is to install raspi (yeay!) using operating system that available on the site. How about the models?, how much memory this raspi have ?. We’ll talk about it later.
Okay my choice is Arch Linux. Why ?, Smaller size than Raspbian. Actually there is another one like RISC OS but i’m afraid some packages are unavailable to download or modify or there is too much dependencies but the choice is yours. The other reason is because I have slow internet connection :). That’s all. Remember, raspi using SD Card for installation. So prepare your SD Card, Image OS (choose your own OS and download from http://www.raspberrypi.org/downloads/) and Win32 Disk Imager (download from http://sourceforge.net/projects/win32diskimager/).
Ok here is my raspi from Element 14. Figure 1 in the box and Figure 2.
Figure 2. Raspberry Pi
Installing OS to raspi is very simple. First, we have to format SD Card and injecting the image. Insert the SD Card into your notebook (assuming your notebook has SD Card slot) then open the win32diskimager like this Figure 3.
Browse your downloaded image and don’t forget to point into the right device. BEWARE !, WRONG POINTING DEVICE can ruined your notebook drive. After that push the “Write” button and wait until the process is done. If the format successfull we can forward to the next step. Insert the SD Card into the back of your raspi like Figure 4 here.
There are 2 ways to display your raspi on a monitor or TV. We can use RCA cable to connect to TV or we can use HDMI connector. Because I don’t have any HDMI cable so I choose RCA cable. The RCA cable are the most common cable so I hope you can find it in the general store or any store that sell electrical appliances. The RCA cable is like this in Figure 5.
Figure 5. RCA Cable
The cable has 3 connectors, i’m using the yellow one. Plug in into your TV (find the the yellow hole in front or back). Prepare your USB keyboard and mouse to configure. I only use USB keyboard though :). Okay the last one we plug the power cord. And here is the alarmpi (Arch Linux Arm) in Figure 6.
Login to the shell using root and password root. Tada !, congratulation. That’s all for now.
Figure 7. Login shell
Imagine when your pillow can elevate the snore or even checking your health. Imagine when all of your appliances connected and you can check, monitor even control it via smartphone. Imagine if you can control your own house and everything within it. The examples I give to you just one of the implementation of Internet of Things.
Yup, Internet of Things become interesting topic this year. We are not just talking about human interaction with computer or human with appliances, but we are talking about computer no… but machines communicate with other machines. Before talking further, we need to know where and when the of terms of Internet of Things started.
The terms of the Internet of things come from Kevin Ashton when he made a presentation at P&G in 1999. Ashton said in RFID Journal, today computers -and therefore the Internet- are wholly almost dependent to human beings for information. Nearly all of the roughly 50 petabytes (a petabyte is 1,204 terabytes) of data available on the Internet were first captured and created by human beings- by typing, pressing a record button, taking digital pictures or scanning a bar code. Conventional diagrams of the Internet include servers and routers and so on, but they leave out of the most numerous and important routers of all: people. The problem is, people have limited time, attention and accuracy– all of which means they are not very good at capturing data about things in the real world.
When we talk about accuracy, computers are better than people. People are physically limited in attention and time. Different than people, computer can survive in extreme condition without food and water.
Many researchers and practitioners studying this technology and trying to create and connecting all devices. Communication is important thing like people talk each other. If you want people to know what your talking about you need to communicate with them using the same language. This also applies to IoT. To work and communicate with other devices, IoT using a protocol. One of them is MQTT.
Refer to mqtt.org, MQTT stands for MQ Telemetry Transport. It’s a extremely simple and lightweight messaging protocol created by Dr Andy Stanford-Clark of IBM and Arlen Nipper of Arcom (now Eurotech) in 1999. Here is an example of the Internet of Things implementation.
Sebelumnya kita telah menjelaskan apa itu AppGyver dan sudah pula dijelaskan bagaimana melakukan installasi AppGyver Steroids. Selanjutnya pada bagian ketiga ini kita akan langsung mencoba bagaimana membuat sebuah aplikasi dengan menggunakan AppGyver. Semoga dengan penjelasan ini akan dapat lebih memudahkan kita dalam mengembangkan sebuah aplikasi multiplatform dengan AppGyver.
Pastikan steroids telah terinstall. Kita akan coba buat aplikasi sederhana terlebih dahulu. Lakukan langkah-langkah sebagai berikut.
1. Buat project terlebih dahulu dengan mengetikkan pada command prompt sebagai berikut.
Sebelumnya saya telah membuat artikel berkenaan dengan error pada AppGyver steroids tanpa menjelaskan lebih awal apa itu AppGyver. Kenapa sekarang mulai membahas AppGyver ?. Awalnya tertarik untuk mengembangkan aplikasi berbasis HTML5 yang dapat berjalan pada dua buah platform Android atau iOS ya (disamping sebuah tuntutan ? :D). Ada hikmah yang dapat diambil sekalipun nanti pengembangan tidak menggunakan AppGyver. Ketertarikan pada AppGyver dimulai ketika salah satu client meminta tolong membuatkan sebuah aplikasi yang dapat diakses multiplatform (Android, iOS, Blackberry, Windows Phone ??). Sebelum masuk ke dalam ranah mobile (kalau untuk sekedar develop sudah pernah) saya tidak berani coba-coba apalagi ini menyangkut nama baik tentu butuh masukan lebih banyak. Solusi awal adalah meminta nasehat kepada sahabat saya yang sudah terjun sebelumnya di bisnis mobile dan turunannya.
Ada yang sudah pernah coba AppGyver ?. Ada yang sudah pernah menemukan error AppGyver steroids ?. Bagi mereka developer android dan iOS mungkin sudah pernah mendengar. AppGyver merupakan salah satu tool yang dapat digunakan untuk mempermudah developer mengembangkan aplikasi yang bergerak pada Android atau iOS. Biasanya sebelum mencoba sebuah tool saya buat artikel pengantar cuma karena sudah mendesak dan mungkin banyak yang menemukan permasalahan ini maka tidak ada salahnya saya coba share pengalaman saya ketika awal mau mencoba. Artikel pengantar semoga bisa dituliskan dalam beberapa waktu ke depan.