Wednesday, 2 November 2016

Notepad++ crashed data kosong


bagi yang mengalami masalah seperti di atas ini berikut solusinya
C:\Users\user_PC\AppData\Roaming\Notepad++\backup
ato
C:\Users\user_PC\AppData\Local\Temp\N++RECOV

semoga membantu

Thursday, 18 August 2016

Responsive Filemanager image Thumbs tidak muncul


buat temen2 yang mengalami masalah penggunaan Responsive Filemanager yang tidak muncul gambar thumsnya bisa coba solusi ini

 yaitu setting di file .htaccess anda atau langsung setting di php.ini
 php_value memory_limit 50M (terserah mau kasi berapa 100M juga boleh)

Penjelasan :
menurut saya image thumbsnya tidak muncul karena pada saat melakukan convert gambar ke ukuran kecil memori yang di butuhkan terlalu kecil sehingga tidak di hasilkan gambar thumbsnya di folder thumbs. tambahan sedikit jika tidak membesarkan memory limit maka pada saat akan image_resizing (convert gambar  ke ukuran kecil) juga akan terjadi error.

contoh image_resizing  pada file config.php

'image_max_width'                         => '750',
'image_max_height'                        => '600px',
'image_max_mode'                          => 'auto',
/*
#  $option:  0 / exact = defined size;
#            1 / portrait = keep aspect set height;
#            2 / landscape = keep aspect set width;
#            3 / auto = auto;
#            4 / crop= resize and crop;
*/

//Automatic resizing //
// If you set $image_resizing to TRUE the script converts all uploaded images exactly to image_resizing_width x image_resizing_height dimension
// If you set width or height to 0 the script automatically calculates the other dimension
// Is possible that if you upload very big images the script not work to overcome this increase the php configuration of memory and time limit
'image_resizing'                          => true,
'image_resizing_width'                    => 750,
'image_resizing_height'                   => 0,
'image_resizing_mode'                     => 'auto', // same as $image_max_mode
'image_resizing_override'                 => true,
// If set to TRUE then you can specify bigger images than $image_max_width & height otherwise if image_resizing is
// bigger than $image_max_width or height then it will be converted to those values

Tuesday, 5 January 2016

operator div (%) error

operator % error jika malakukan hitungan sampai miliran
contoh : 2250000022%1000000000 maka hasil yang muncul adalah -44967274
harusnya 250000022

untuk memperbaikinya harus menggunakan function FMOD

FMOD(2250000022,100000000) maka hasilnya pasti benar


sumber :http://php.net/manual/en/function.fmod.php

Sunday, 27 December 2015

jQuery “TypeError: invalid 'in' operand a” AjaX

Contoh Koding 

$(document).ready(function() {
     $("#blog").focusout(function() {
         alert('Focus out event call');
         alert('hello');
         $.ajax({
             url: '/homes',
             method: 'POST',
             data: 'blog=' + $('#blog').val(),
             success: function(result) {
                 $.each(result, function(key, val) {
                     $("#result").append('<div><label>' + val.description + '</label></div>');
                 });
             },
             error: function() {
                 alert('failure.');
             }
         });
     });
 });
muncul error "TypeError: invalid 'in' operand a"
solusinya adalah karena data result ajax yang dihasilkan adalah string sehingga tidak terbaca oleh karena itu di butuhkan fungsi eval().
$.each(eval(result), function(key, val)
semoga membantu

Sunday, 29 November 2015

how to fix the file or directory is corrupted and unreadable

cara memperbaiki masalah yang muncul diatas dimana ketika file akan di buka atau di copy

klik on Start --> Run --> ketik cmd dan tekan Enter. 

"Command Prompt" akan muncul

Jika file kalian terletak di drive D maka ketikkan perintah berikut

chkdsk /f d: --> tekan Enter setelah itu pilih Yes

semoga berhasil