Andri Yadi

A geeky technopreneur, trying to do something big with his startup

February 2009 - Posts

  • Are You Familiar with Kinematics?

    That’s my opening slide when I delivered a talk about VSTO on an event “MSDN Day by MUGI Bandung”. The event was held at Universitas Suryakencana, Cianjur, on Valentine Day, Feb 14, 2009.

    What’s on earth the relation between Kinematics and VSTO? Before I answer that, I need to tell that I did many talks about VSTO for the last 2 years. In all talks I always gave demo about how VSTO can be used to develop business-related apps.

    Honestly, I’m quite bored with that kind of demo app. So, instead of giving demo of boring business app, I use VSTO to simulate simple motions in Kinematics. Since the audiences are mostly students, I think their minds are still fresh on this fundamental Physics kind of stuffs.

    For you who are not familiar with Kinematics, it is a branch of classical mechanics that studies the motion of objects with consideration of ideal environment. Some motions those we are familiar since high school are linear motion (free fall, parabolic projectile motion, etc), and rotational motion.

    For the demo, I develop simulation for free fall and parabolic projectile motion. Before I talk about code, lets squeeze some brains.

    General form of linear motion equation:

    \boldsymbol{v}(t) =\boldsymbol{v}_0+\  \int_0^t \ dt' \ \boldsymbol{a} (t')
    \boldsymbol{r}(t) =\boldsymbol{r}_0+\  \int_0^t \ dt' \ \boldsymbol{v} (t')

    For constant acceleration:

     \boldsymbol r = \boldsymbol r_0 + \int_0^t \boldsymbol v dt' =\boldsymbol r_0 + \int_0^t \left( \boldsymbol v_0 + \boldsymbol a t \right) dt' =\boldsymbol r_0 + \boldsymbol v_0 t + \frac{1}{2} \boldsymbol a t^2

    By that equation, we can determine the exact location of an object at certain time.

    By using above equations, we can determine the equations involved in parabolic motion.

    image

    In free fall motion, where initial rate is zero and the only acceleration involved is gravity, then simplified equations are:

    image

    Using all those equations, I can simulate the motion using software. Off course you can use Mathematica or MATLAB to do comprehensive simulation and calculation. Well, those tools are for grownups (read: enthusiasts). Since I haven’t get my hand on those tools since college and since we are talking about VSTO, I’m gonna use VSTO to simulate the motion.

    The simulation app of free fall motion will look like this. For this purpose, I code the app using Word 2007 Document project template in Visual Studio 2008.

    image

    When you click “Simulasi” button, the object will start to free fall. When it touch the ground, the needed time will be determined by using simulation and by calculating it using the formula.

    image

    The crowd applause when the object hit the ground. Thanks for the enthusiasm.

    As for Parabolic Motion, I use Excel 2007 Workbook project template. The running app in Excel will look like this.

    image

    This is the photo when I was explaining about Kinematics:

    I won’t explain how to develop the apps, you better download the code and try for your self. The code is really simple and won’t cause brain damage, I guarantee. Please download at:

    http://dycode.com/files/folders/mugi/entry187.aspx

    So, who says VSTO is only for business apps. Who says Microsoft Office can only be used for office workers. Physicists can leverage Microsoft Office for their job. They don’t need to learn FORTRAN, C++, MATLAB, only for doing simple simulation.

    That’s it. Enjoy.

    Share this post: | | | |
  • Kunjungan Mahasiswa Ilmu Komputer Universitas Lambung Mangkurat

    Sepanjang sejarah DyCode, belum pernah kedatangan tamu 20an orang. Baru kemarin siang, Jumat, 6 Feb 2009, sekitar jam 10, kami kedatangan tamu dari rombongan Studi Tour Mahasiswa Ilmu Komputer, Universitas Lambung Mangkurat. Kurang lebih 20 orang "menyerbu" gubuk kami dan berdesak-desakan masuk ke dalam kantor yang sebenarnya diperuntukan untuk maksimal penghuni 20 orang. Anyway, kami akan senang dikunjungi dan sangat welcome menerima mereka.

    Dipimpin oleh dosen baru yang sebenarnya sudah tidak asing lagi di komunitas .NET Indonesia, Bapak M. Reza Faisal ( ciee...Bapak euy ;), rombongan mahasiswa tingkat 3 tersebut berkunjung ke DyCode dengan maksud melihat kondisi real industri IT, khusunya Independent Software Vendor (ISV). Begitu datang, mereka langsung masuk ke ruangan developer untuk melihat langsung para DyCoders yang sedang asyik coding.

    Dengan suasana yang crowded di ruang meeting DyCode, obrolan santai tapi tetap serius pun dimulai. Beginilah suasana waktu itu:

    Serasa raja apa gitu yang dikelilingi mahasiswi-mahasiswi

    Sesi pertama gw isi dengan sharing pengalaman jadi tukang software sampai bisa mendirikan dan me-maintain company. Sedikit bernarsis ria tentang apa yang udah di-achieve dengan tujuan men-encourage mahasiswa-mahasiswa tersebut supaya termotivasi.

    Setelah jumatan, sesi selanjutnya diisi oleh Iman Harmaen, GM Tech. Dept., yang berbagi tentang teknologi-teknologi yang digunakan DyCode selama ini, gimana cara mengelola proyek, bekerja tim, dan show off software-software yang sudah dibangun DyCode.

    Semangat bener bos... :)

    Sebagai penutup acara kunjungan ini secara formal, terjadilah hal yang nggak pernah terpikirkan sebelumnya. Terjadi serah terima cinderamata antara gw dan Bapak M. Reza Faisal. Hmm...tak menyangka Bapak ini bakal jadi dosen dan kita akhirnya bersalaman dalam sebuah keformalan :)

    Benar-benar awkward :)

    Demikian acara kunjungan ini. Rombongan meninggalkan DyCode sekitar pukul 14. Dan suasanapun kembali sepi.
    Thanks sudah mengunjungi kantor kami, thanks juga buat Reza yang sudah mengusulkan ide dan memimpin rombongan tersebut. Semoga sharing kita tadi bisa bermanfaat buat kita semua.

    Share this post: | | | |