This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
o.validity_date.strftime('%d-%m-%Y') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /etc/samba/smb.conf | |
Konfigurasi file smb.conf: | |
[nama_folder] | |
path = /path_folder | |
writeable = yes | |
guest ok = yes | |
guest only = yes | |
create mode = 0777 | |
directory mode = 0777 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
via DB psql: | |
DELETE FROM ir_attachment WHERE res_model='ir.ui.view' | |
restart Odoo Service | |
linux = sudo service odoo-service restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add in builg.gradle | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
Example: | |
apply plugin: 'com.android.application' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR NON-STRING NEEDLES WILL BE INTERPRETED AS STRINGS IN THE FUTURE. USE AN EXPLICIT CHR() CALL TO PRESERVE THE CURRENT BEHAVIOR | |
Cara Memperbaikinya adalah sebagai berikut : | |
1.buka folder application/third_party/MX/Router.php | |
2.Berikutnya cari code function set_class, anda bisa menggunakan fasilitas pencarian di text editor yang anda gunakan, dengan menekan tombol CTRL + F, jika sudah ketemu, silahkan ubah codenya seperti dibawah ini | |
code sebelumnya : | |
public function set_class($class) | |
{ | |
$suffix = $this->config->item('controller_suffix'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CALL TO UNDEFINED METHOD MY_LOADER::_CI_OBJECT_TO_ARRAY() | |
Berikutnya kita akan perbaiki error Call to undefined method MY_Loader::_ci_object_to_array(), langkah – langkahnya adalah sebagai berikut : | |
1.Silahkan buka file application/third_party/MX/Loader.php | |
2.Berikutnya cari function view (kurang lebih di line 290), lalu ubah code didalam function tersebut | |
Code Sebelumnya : | |
public function view($view, $vars = array(), $return = FALSE) | |
{ | |
list($path, $_view) = Modules::find($view, $this->_module, 'views/'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Laravel telah menerapkan hal ini dengan menyimpan berbagai macam informasi dan konfigurasi sistem pada file .env, meliputi : | |
1.Akun database, memcached atau storage lain | |
2.Akun pihak ketiga atau layanan eksternal | |
3.Beberapa variabel lain yang nilainya bisa berubah tergantung environment sistem (staging, production, development). | |
Enkripsi file .env | |
Untuk menandai variabel yang akan kita enkripsi, kita akan menggunakan prefix pada nilai variabel, contoh (menggunakan prefix "IN") : | |
DB_DATABASE=IN:laravel | |
DB_USERNAME=IN:user_db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Langkah yang harus diperhatikan: | |
1.Gunakan HTTPS / SSL | |
Anda dapat menginstal SSL certificate dan migrasi web Anda ke HTTPS sebagai pilihan protokol yang lebih aman. Ketika Anda membuat koneksi dengan website melalui HTTPS, maka data yang dikirim akan dienskirpsi sehingga dapat melindungi data-data yang Anda kirimkan. Selain itu, data pengunjung juga akan lebih aman ketika berinteraksi melalui web Anda, seperti ketika memasukkan password, user ID, atau data personal lainnya. | |
2.Backup data secara rutin | |
Untuk meminimalisir dampak dari serangan hacker, Anda dapat melakukan backup untuk mengamankan data-data penting Anda. Backup dapat Anda lakukan secara rutin atau bahkan setiap hari. Dengan data yang telah terbackup dengan baik, Anda dapat mengembalikan website seperti keadaan semula jika terkena serangan. | |
3.Selalu menggunakan platform dan software terbaru | |
Langkah lain yang dapat Anda lakukan adalah dengan memastikan bahwa CMS, plugins, atau script yang Anda gunakan merupakan versi terbaru. Banyak dari tools ters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
State = Penyimpanan state data yang dapat melakukan perubahan didalam component function / class itu sendiri | |
Props = Data Props / Property dari component function / class parent ke function / class child | |
Kelebihan React Hooks lebih terstruktur dan mendekati Typescript, karena dideklarasikan di awal, sehingga dapat meminimalisir bug. | |
React Class: | |
class DataTable extends Component { | |
constructor(props) { | |
super(props); |