Posts

Mobile detect on Cakephp

 AppController.php          $ isMobile   =   false ;          if ( $ this -> request -> is ( ' mobile ' )){              $ isMobile   =   true ;          }          $ this -> set ( compact ( ' isMobile ' ));  Use if   ( $ this -> request -> isMobile ())   {              // code here }

Google Maps Custom Markers SVG full size

  var marker = new google.maps.Marker({                         optimized: false                   }); add this to fix the marker not display in full size or been cut off. optimized: false

Wordpress stuck at "Downloading"

add these lines in your .htaccess file : AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php

Drupal Access Denied

Recently i've moved my drupal files into a subdomain and somehow i cant manage to log into the admin page. Nothing wrong with the password or id but still it returns Access Denied. Then i found this fix somewhere on the net. In your settings.php looks for $cookie_domain = 'domain.com'; uncomment it and change it to your domain.

DIY repair kipas siling remote control

Bismillah hirRahmanir Rahim Semasa pindah rumah baru-baru ini, tiba-tiba sebanyak 5 biji kipas kawalan jauh rosak (gambar 1). Semua kipas yang ada sebanyak 11 buah. Membeli 5 biji kipas baru sebagai ganti memerlukan hampir atau lebih RM1k!! Saya membuka litar elektronik kawalan utama bahagian menerima (receiver) kipas tersebut. A. Alhamdulillah board utama litar (gambar 2) tidak terbakar. Motor kipas pula sangat susah untuk rosak. Maka ada dua kemungkinan besar. 1. Jika kipas berpusing tetapi sangat perlahan: Maka ia disebabkan oleh kapasitor hitam (gambar 3). Kipas saya menggunakan 2uF. Mempunyai wayar hitam dan merah bermakna ada +ve dan -ve. 2. Jika kipas tidak berpusing dan ada bunyi "tettt" ketika kawalan jauh ditekan: Ia disebabkan oleh kapasitor kuning (komponen warna kuning gambar 2). Kipas saya guna 1.5uF. Kapasitor jenis ini mempunyai kaki yang perlu disolder. Tiada +ve dan -ve bermakna mana-mana arah kaki boleh disambung. B. Jika papan litar uta...

Fontawesome icon tag in Cakephp link

echo $this -> Html -> link ( '<i class='fa fa-user'></i> Button' , array ( 'class' => 'btn btn-primary' , 'escape' => false ) );

[DRUPAL] Speed up drupal on localhost

at this in my.ini (MySQL) innodb_flush_log_at_trx_commit = 0