Posts

Showing posts from 2016

Javascript - Preview an image before it is uploaded

phpMyAdmin - Config Authentication Type to Cookie

phpmyadmin \ config.inc.php /* Authentication type */ $cfg['Servers'][$i]['verbose'] = 'mysql wampserver'; $cfg['Servers'][$i]['auth_ type'] = 'cookie'; //$cfg['Servers'][$i]['auth_ type'] = 'config'; //$cfg['Servers'][$i]['user'] = 'root'; //$cfg['Servers'][$i][' password'] = ''; /* Server parameters */ $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['connect_ type'] = 'tcp'; $cfg['Servers'][$i]['compress' ] = false; /* Select mysql if your server does not have mysqli */ $cfg['Servers'][$i][' extension'] = 'mysqli'; $cfg['Servers'][$i][' AllowNoPassword'] = false;

MySQL - Change MySQL Root Password

MySQL 5.7.6 and later: mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass'; ------------------------------ ------------------------------ ------------------------------ - MySQL 5.7.5 and earlier: mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass'); ------------------------------ ------------------------------ ------------------------------ -

OOP (Object Oriented Programming)

OOP สำหรับภาษา C# มีหลักอยู่ 3 ข้อ ดังนี้ Encapsulation   http://www.kontentblue.com/site/article/article.php?id=encapsulation-what-is https://thaioop.wordpress.com/2006/11/10/%E0%B8%95%E0%B8%AD%E0%B8%99-4-encapsulation/ Inheritance   http://www.kontentblue.com/site/article/article.php?id=inheritance-what-is https://thaioop.wordpress.com/2006/11/11/%E0%B8%95%E0%B8%AD%E0%B8%99-5-inheritance/ Polymorphic http://www.kontentblue.com/site/article/article.php?id=polymorphism-what-is https://thaioop.wordpress.com/2006/11/13/%E0%B8%95%E0%B8%AD%E0%B8%99-6-polymorphism/

C# - Split Byte Array

C# - Generate Password

Reference From : stackoverflow.com

CodeIgniter - where-do-i-put-image-files-css-js-etc-in-codeigniter

Follow the instruction from this link My choise is "Phalcon PHP's Bootstrap method"