Thursday, 18 February 2016

Google Maps in Codeignter

Well short tutorial in here will talk about google maps, show multiple marker using Codeignter which is came from databse, here is screen shoot !

well map show multiple marker around some city in my case it show in Lampung i just input 2 place on it, all you need when put marker in goolge maps is lat and lang, you can read more  at here 

Input new entri google maps when you logged as admin
the url login http://localhost/map/login to the dashboard

user : admin
pass : admin


Thanks for visiting me, all file you can get at here

Sunday, 7 February 2016

Every Messangger has Their Role to Make it Become Fun for Users and Company

This is a free day "Gong Xi fat Cai" china people celebrate their happy new year, so i have free time to enjoy coffe and chating in the inet. today i'm going to write something not usefull for people but for me it worth it !

Well as single man i try as much as i can to approach the girl, by register dating online, install apps, etc ! but i'm not going talk about my sh*t, but analysis how compnay of messangger it self do their bussiness.


in 2010 facebook become familiar around the world, in television talk about facebook, school, public area, so facebook strat every apps come up with theology facebook "Connect every one around the World"


 by Mark Idea people who work and love technology do similiar but with little modification, if facebook should connect by laptop in the first time then came with application in mobile, another messsangger came with their style.

1. Whatsapp



The reason why i put whatsapp in the first place cause whatsapp there are no advertisement or spam which is annoyed people who used.

 yes i'm new in whatsapp about a month might be but after use it, i have life with flat but no too flat cause it will not give you addiction, i don't know why their programmer don't  create wall where is people status can see, put comment, liking or dislike. 

as long as become whatshapper i'm not trying to be familiar cause i already did, LOL. here is what i like in whatsapp 

i never put status like "Hey dude my coding working as well, can i get more coffe or send the girl for me" to attractive people to comment, like.

i never change profile picture with short time like in bbm with caption.

2. Line


Oh this is a worse messangger for me, there are multiple noticiation in this apps, people can invite you by random, there are sucks advertisement every minute if you have already friends,

 it give you addiction to comment, put status, like without your awareness you have already wasting time. and yes line giving a configuration of it but how people to read user guide and follow it, how many % users will spending time to configure it it might be 10-30% if line hired me i will disscuss it to research, disscuss how line become better without remove comfortable from users and get more benefit. 

Well i just compare those messangger cause in indonesia the most messangger use it even snapchat on the flying, 

Thanks for reading my article which is not usefull for you, happy chines new year lah. by the way my whatsapp 085664257224















Tuesday, 2 February 2016

Di Cari Bukan Mencari

Mungkin tulisan gw kali ini agak sedikit berat temanya apa lagi untuk para jomblo yang sudah memasuki masa-masa expired :D tapi ini bukan tentang jodoh saja, semua bisa masuk.

Beberapa minggu ini suka merasa kesepian padahal gw termasuk tipikal yang bocor, yang kata teman-teman gak ada loe fred gak rame (padahal gw gak datang dan gak kumpul juga masih bisa have fun)

Jujur sebagai laki-laki normal merindukan seorang belahan jiwa itu wajar ya, cuma ada omongan sudah jangan pilih-pilih yang mau langsung sikat, ah come on lah jelek-jelek gini gw bukan pemakan segalanya, oke move to main topic ! hari minggu kemaren firman Tuhannya adalah tentang Musa dan Yosua kalau gak salah (please correct me ya if i did wrong)

Yang inti dari semuanya, ketika masa kepemimpinan Musa sudah habis harus ada orang yang menggantikan kepimpinannya, ada seorang yang setia  menemani kemana Musa pergi dan juga teman ngopi, ngbrol.

Yang gw pikir adalah wajar ketika seorang pimpinan pergi musti ada yang harus menggantikan kalau bahasa anak kampus meregenerasi tapi ada point penting di situ !

  1. Yosua tidak mencari peluang untuk menjadi pemimpin
  2. Yosua tidak gusar sewaktu jadi bawahan
  3. Yosua tulus mengerjakan bagiannya dan Tuhan yang melakukan bagiannya
well secara gw tersentuh dan merasa tersendiri karena status jomblo berkarat ini (Fuck yeah but thanks for this i never broke woman heart), Karena gw akhir-akhir ini adalah berfokus bagaimana mendapatkan cewek yang cantik, sexy tanpa memperbaiki baut-baut yang sudah kendor, ah i'm still human it's oke lah do wrong things ?

Back to the topic,3 point di atas tentang Yosua agak sedikit gw ragukan karena dia masih bisa di katakan punya sifat manusia ? fine it's calling grace from God doesn't care who you are ! ingat tentang perempuan penzinah yang sujud di kaki Yesus, dia dapatkan grace itu bahkan lebih dari dari Yosua, ingat tentang siapa itu namanya yang pemberi hutang dengan bunga yang tinggi setelah ketemu Yesus uang yang pernah di hutangi di kembalikan oh iya Zakeus ya (Correct me please)

Jadi point di Cari bukan mencari bukan soal fisik, kemantapan ekonomi (tambahkan lagi point mu disini) tapi yang membuat di Cari itu adalah ada tangan Tuhan yang bekerja disaat kita mencari asal kita tetap dalam tracknya tidak melenceng ke kanan dan ke kiri sekalipun dosa itu segede gaban, bahkan sulit untuk lepas ntah itu karena keluarga kita bisa hidup disitu, ntah kita memang sudah terikat dengan dosa tapi gw sangat yakin, pasti ada suara dalam hati yang bilang "I'm tired being shit, will you keep Lord" karena gw juga alami hal itu.

well i'm sorry if i look like shit cause giving you preach no i don't wanna be preacher, just share random, so if you fell this blessing you please share in your media social.

Thanks for visiting me,













Friday, 29 January 2016

Full Calender Using Codeignter Which is Came from Database

Well this is my screen shot for you , please see the url so you can goes to file later on will be upload to dropbox












then in controller i use select data using where clause please see in controller
 public function date()  
   {  
     $this->db->select('*');  
     $this->db->from('cu_date_cuti');  
     $this->db->where('cu_date_cuti_id','1');  
     $query = $this->db->get();  
     foreach ($query->result_array() as $row)  
       {  
          $new_row['title']=htmlentities(stripslashes($row['cu_date_id']));  
          $new_row['start']=htmlentities(stripslashes($row['cu_date_date']));  
          $row_set[] = $new_row;   
       }  
     echo json_encode($row_set);  
   }  


when you need to echo date in full calender you need to convert data to be json, for more information fullcalender is here

file you can grab here

Note : This is bassically configuration and you need to be familiar with codeignter


Saturday, 23 January 2016

Load All Varibales in every Controller Using Codeignter

This post for people know Codeignter been one year lah especially for me. This is about load same varibale each controller, please see script bellow

 <?php  
 defined('BASEPATH') OR exit('No direct script access allowed');  
 class Welcome extends CI_Controller {  
 public function read1()  
   {  
  $data['notif']=$this->Notif_model->get_all_notif(); //same varibale  
  }  
 public function read2()  
   {  
  $data['notif']=$this->Notif_model->get_all_notif(); //same varibale  
  }  
 public function read3()  
   {  
  $data['notif']=$this->Notif_model->get_all_notif(); //same varibale  
  }  
 }  

as you can see there are same varibale in every function, that's not clean code i guess !
so idecide to search about this issue then i found it
  1. GLOBAL VARIBALE
  2. EXTENDS CONTROLLER
after few hours digging on global varibale hard to learn then i leave it, focus on extends controller from stackoverflow here, yes stackoverflow is the best place to throw fuckin stress.

Then i make extends controller 
 <?php  
 defined('BASEPATH') OR exit('No direct script access allowed');  
 class AppKaryawan extends CI_Controller  
 {  
  /**  
  * @return void  
  **/  
  function __construct()  
  {  
  parent::__construct();  
  //load variable global  
  $this->data = array(  
       'notif' => $this->Notif_model->get_all_notif()  
     );  
  if (($this->session->userdata('cu_level') === 'Pegawai') or ($this->session->userdata('cu_level') === 'Manajer'))   
  {  
   return TRUE;  
  }  
  else  
  {  
   //show_404(); // OR   
   redirect('login');  
   return FALSE;  
  }  
  }  
 }  


Please see my extends above only for level Manajer, but ignore it lah it doesn't important. then let see the controller after extends controller this is will change like this
 public function read1()  
   {  
  $data = $this->data;   
  }  
 public function read2()  
   {  
  $data = $this->data;   
  }  
 public function read3()  
   {  
  $data = $this->data;   
  }   

Please compare the controller, yes the second controller is really lite bite clean but after think and quit some minute it tottally same, wtf ! cause each function should write the $data, how can i make it more clean, i'm open disscuss guys !

if you any trick please throw the code so people will understanding, so i will reblog it again to make more clean, Thanks for visiting me !

Happy Weekend 

Thursday, 21 January 2016

Validations Input Type File Using Jquery

well honestly this is my simple demo about validations in modal bootsrap, but this very bassic for validations input type file in modal bootsrap using jquery.

You can adapot this style to yours !


  1. I give value in input type file by giving id 
  2. Then check it using if then execute every condition
Here is simple demo made for you out there

See the Pen Check input type file empty por not by Freddy Sidauruk (@sidaurukfreddy) on CodePen.


Thanks for visiting Me !

Get One Field in Codeignter

Get one field in Codeignter when we need to extract it in view or controller

here is controller
and here is model
Thanks for visiting me !

you can grab database is here