Really, such a word?

Standard

This is my biggest appreciation for everybody including you who still read this sentence word by word and keep going on building all of this alphabets into a word and translate it in your brain to make any meaning even there is nothing you got from this word neither this word while your eyes moving getting faster from left to right and it’s starting losing your mind because you don’t understand what the hell is this talking about in English.

For the past four years, there were so many things happen, memorable things. I summed up them in big three numbers (or chars?) the way they lived.
Continue reading

Normalisasi Data ke Dalam Suatu Rentang Nilai

Standard

Normalisasi data sangat diperlukan ketika data yang ada bernilai terlalu besar maupun terlalu kecil sehingga pengguna kesulitan dalam memahami informasi yang dimaksud. Tidak hanya untuk pengguna, terkadang nilai yang tidak ‘normal’ dapat mempersulit pemilik data dalam melakukan proses pengolahan untuk disajikan kepada pengguna. Berikut adalah salah satu cara menormalisasi data ke dalam suatu rentang nilai dengan tidak mengurangi bobot nilai sebenarnya.
Continue reading

Finding Location in a Range

Standard

 

  1. Based on Haversine Formula – http://s.eamca.com/haversine-formula
  2. Implementation of Haversine on JavaScript – http://s.eamca.com/calculate-dist-lat-lng
  3. Using MySQL query – http://s.eamca.com/store-locator-with-php-mysql
    Search any point between 10Km from the center point 37,-122

    SELECT id, ( 6371 * acos( cos( radians(37) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(-122) ) + sin( radians(37) ) * sin( radians( lat ) ) ) ) AS distance FROM markers HAVING distance < 10 ORDER BY distance;