Create wifi hotspot in ubuntu

Disable Wifi (Uncheck Enable Wi-Fi) Go to network connection (Edit Connections…) Click “Add” Choose “Wi-Fi” and click “Create” Type in Connection name like “wifi-hotspot” Type in SSID as you wish Choose Device MAC Address from the dropdown (wlan0) Wifi Security select “WPA & WPA2 Personal” and set a password. Go to IPv4 Settings tab, from […]

multiple actions from in single Form

<!– create the form –> <form name=”Form1″ method=”post”> <!– Add the data entry bits –> Your Name <input type=”text” name=”text1″ size=”10″ /><br /> <!– Add some buttons –> <INPUT type=”button” value=”Button1″ name=button1 onclick=”return OnButton1();”> <INPUT type=”button” value=”Button2″ name=button2 onclick=”return OnButton2();”> <!– close the form –> </form> <script language=”Javascript”> <!– function OnButton1() { document.Form1.action = “Page1.php” […]

Date Time Convert

<?php $this->widget(‘ext.CJuiDateTimePicker.CJuiDateTimePicker’, array( ‘model’ => $model, //Model object ‘attribute’ => ‘nama atribut’, //attribute name ‘mode’ => ‘datetime’, //use “time”,”date” or “datetime” (default) ‘language’ => ‘id’, ‘options’ => array( ‘regional’ => ‘id’, ) // jquery plugin options )); ?> $var = ’20/04/2012′; $date = str_replace(‘/’, ‘-‘, $var); echo date(‘Y-m-d’, strtotime($date));

Restart Ubuntu Dari Keyboard

Alt + SysRq(PrtSc) memerintah Kernel secara langsung: r – menyerahkan kendali keyboard dari X Server ke Kernel, sehingga kita bisa “memerintah” Kernel secara langsung. e – “terminate”  seluruh proses menutup diri. i – “kill”  seluruh proses  ditutup paksa. s – mem-flush (bisa dikatakan menyimpan) data dari cache ke disk u – melakukan mount seluruh file sistem menjadi read-only […]

Laravel

Versi Laravel alif@noname:/opt/lampp/htdocs/namaprojek$ php artisan –version Laravel Framework version 5.3.30 Stop artisan ctrl + c MVC app/Http/Controllers app/Http/Models resources/views