Laravel : File Structure

ครั้งแรกกับเรื่อง Folder Structure ว่าเราจะจัดการเรื่อง File หรือ Folder ยังไง ก็มี Guideline มาให้ จริงๆอ่านจากเว็บ Tutorial นี้ก็เข้าใจง่ายดี

Routing

Route::get('/', function()
{
    return View::make('pages.home');
});
Route::get('about', function()
{
    return View::make('pages.about');
});
Route::get('projects', function()
{
    return View::make('pages.projects');
});
Route::get('contact', function()
{
    return View::make('pages.contact');
});

File Structure

โครงสร้างของ File และ Folder 

Laravel : Basic Authentication

หลังจากที่เล่น Bootstrap ก็ลองมาเล่น Laravel หน่อย โดยใช้จาก Tutorial ของ Blog นี้ และลองนั่งทำตาม ก็ได้แต่ทำตาม ยังดัดแปลงไม่ได้ แถมเจอปัญหาระหว่างทางนิดหน่อย เลยมาจดไว้ดีกว่า

หน้าจอ

ในเว็บเป็นการทำงานเกี่ยวกับ authentication แบบง่าย เรื่อง Front-End ก็ใช้ Bootstrap ซึ่งก็สะดวกดี มีหน้าจอตามนี้

  • Login
  • Register
  • Dashboard

2014-12-14_2109

(login)

2014-12-14_2109_001

(register)

2014-12-14_2113

(dashboard : after login)

Twitter Bootstrap

วันหยุดนี้นั่งเล่น Twitter Bootstrap โดยใช้งานร่วมกับ Laravel Framework หลังจากนี้คงจะหายไปอีกนาน เลยมาจดไว้หน่อยเพื่อจะได้ทำ Lab ต่อในโอกาสหน้า

Bootstrap เรียกง่ายๆก็คือ ตัว template ในส่วนของ GUI ที่ถูกทำมาเรียบร้อยเสร็จสรรพ (Front-end Framework) ดังนั้นทุกปัญหาที่เราเคยเผชิญที่เกี่ยวกับในส่วนของ Front-end ทั้ง js, css, cross platform, drop down list ก็จะหายไปหมด เพราะ framework ตัวนี้แก้ไขให้หมดแล้ว 

Bootstrap

(เจอคนรวม tag attribute ของ twitter bootstrap หมดเรียบร้อย ดูง่ายดี)

มาเริ่ม Project กันเลย ก่อนอื่นก็ทำการสร้าง project ด้วย composor ก่อน (ไม่เคยเขียนไว้ อ่านใน Docs แทนแล้วกัน) ส่วน Tutorial ที่เหลืออ่านจากเว็บนี้ 

Install NTP Server ON Redhat 6

It's so easy!!

Server

  • Install ntp

    #yum install ntpd
  • Configure ntp by restriction

    restrict 203.107.139.0 mask 255.255.254.0 nomodify notrap
  • Firewall Policy By Remote Server (UDP123)

Client

Just Recheck!

#ntpdate -d 203.11.11.1 

Finish!!

Reference 

CentOS / Red Hat Configure an NTP Client And Server

F5 : iRules

ตั้งใจว่าจะบรรลุให้ใช้งาน iRules ให้ได้เสียที จะแปลวันละบทแล้วกันจาก Blog นี้

  • iRules 101 – #01 – Introduction to iRules
  • iRules 101 – #02 – If and Expressions
  • iRules 101 – #03 – Variables
  • iRules 101 – #04 – Switch
  • iRules 101 – #05 – Selecting Pools, Pool Members, and Nodes
  • iRules 101 – #06 – When
  • iRules 101 – #07 – Catch
  • iRules 101 – #08 – Classes
  • iRules 101 – #09 – Debugging
  • iRules 101 – #10 – Regular Expressions
  • iRules 101 – #11 – Events
  • iRules 101 – #12 – The Session Command
  • iRules 101 – #13a – Nested Conditionals
  • iRules 101 – #13b – TCL String Commands Part 1
  • iRules 101 – #14 – TCL String Commands Part 2
  • iRules 101 – #15 – TCL List Handling Commands
  • iRules 101 – #16 – Parsing String with the TCL Scan Command
  • iRules 101 – #17 – Mapping Protocol Fields with the TCL Binary Scan Command 

Pages