The Heart of the Matter Lyrics
Artist(Band):Don Henley
I got the call today
That I didn't wanna hear
But I knew that it would come
An old, true friend of ours was talkin' on the phone
She said you'd found someone
And I thought of all the bad luck,
and the struggles we went through
And how I lost me and you lost you
What are these voices outside love's open door
Make us throw off our contentment
and beg for something more?
I'm learning to live without you now
But I miss you sometimes
The more I know, the less I understand
All the things I thought I knew, I'm learning again
I've been tryin' to get down
to the heart of the matter
But my will gets weak
and my thoughts seem to scatter
But I think it's about...forgiveness
Forgiveness
Even if, even if you don't love me anymore
Ah...these times are so uncertain
There's a yearning undefined
and people filled with rage
We all need a little tenderness
How can love survive in such a graceless age?
Ah...the trust and self-assurance that lead to happiness
They're the very things - we kill I guess...
Ohh pride and competition
cannot fill these empty arms
And the work I put between us
you know it doesn't keep me warm
I'm learning to live without you now
But I miss you, baby
And the more I know, the less I understand
All the things I thought I'd figured out
I have to learn again
I've been trying to get down
to the heart of the matter
But everything changes
and my friends seem to scatter
But I think it's about...forgiveness
Forgiveness
Even if, even if, you don't love me anymore
There are people in your life who've come and gone
They let you down, you know they hurt your pride
You better put it all behind you baby; cause' life goes on
If you keep carryin' that anger, it'll eat you up inside, baby
I've been trying to get down
to the heart of the matter
But my will gets weak
and my thoughts seem to scatter
But I think it's about forgiveness
Forgiveness
Even if, even if you don't love me
I've been tryin' to get down
to the heart of the matter
Because the flesh will get weak
and the ashes will scatter
So I'm thinkin' about forgiveness
Forgiveness
Even if, even if, you don't love me...
Forgiveness (yeah)
Forgiveness (baby)
Forgiveness (ohh)
Forgiveness (ahh yeaaahhh)
Forgiveness (ohh)
Forgiveness
Even if, you don't love me anymore...
วันพฤหัสบดีที่ 3 ธันวาคม พ.ศ. 2552
วันเสาร์ที่ 24 ตุลาคม พ.ศ. 2552
Session ใน Codeigniter
Session ของ Codeigniter เป็น cookie ผมเจอปัญหาอย่างหนึ่งคือเวลา coding ที่เครื่อง localhost แล้ว อัพโหลดขึ้นแม่ข่าย ขณะเดียวกัน นั้น หากมีการ check ตัว session เกิดขึ้น จะปรากฏว่ามันไม่สามารถทำงานได้สมบูรณ์
ข้อมูลการ login ที่เกิด จาก localhost นั้น จะถึงดึงไปใช้กับ login หากเรียกหน้าเว็บจาก web browser ในส่วนของแม่ข่ายโปรแกรมที่เขียนขึ้นจะเอา session ขอ ง localhost ไปใช้แทน
ผลที่เกิดขึ้นคือ
จะลองแก้โดยเขียนเพิ่ม config ให้ codeigniter หากมีการปิด Browser ให้ทำลาย session ทิ้ง
แล้วมาลองดูกัน
แก้ Session libraries
line 92:
ข้อมูลการ login ที่เกิด จาก localhost นั้น จะถึงดึงไปใช้กับ login หากเรียกหน้าเว็บจาก web browser ในส่วนของแม่ข่ายโปรแกรมที่เขียนขึ้นจะเอา session ขอ ง localhost ไปใช้แทน
ผลที่เกิดขึ้นคือ
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: check_school
Filename: models/user_model.php
Line Number: 34
แล้วมาลองดูกัน
แก้ Session libraries
line 92:
$this->sess_delete_after_browser_close = false; // adding this code
line 94: elseif($this->sess_expiration == -1) //Adding elseif statement
{
$this->sess_expiration = 60*60*24;
$this->sess_delete_after_browser_close = true;
}
แก้ confgi.phpline 235 :
$config['sess_expiration'] = -1;
Capital letter in Mul platform
Solution สำหรับโปรแกรมใหม่ที่กำลังจะออกใช้ในอาทิตย์หน้าเป็น Codeigniter jQuery MySQL
เขียนมันส์ใช้ได้เลย คือ ถูกใจทุกสุดแล้วตอนนี้สำหรับ PHP Framework ชุดนี้ รวมถึง jQuery นั้นเยี่ยมสุดๆ
ตอนเขียนบน Windows รันบน USBWebserver ใช้ Eclipse เพิ่งเอา Netbean มาใช้เมื่อวาน ดูเหมือนว่ามันหล่อกว่า Eclipse หน่อยนึง ทันสมัยและเหมือนเร็วกว่าหน่อยนึง ด้วย
ฮ่าๆๆ พออัพขึ้นแม่ข่าย Linux จบเลย หา My_Controller ตัว extend library ไม่เจอ คิดตั้งนาน รู้ไหมครับว่า Fatal error ที่เจอ คือ MY_Controller เปลี่ยนเป็น Y ตัวใหญ่จแล้ว ทำงานได้เลย
MY_Controller เอามาจาก Bambooinvoice
เขียนมันส์ใช้ได้เลย คือ ถูกใจทุกสุดแล้วตอนนี้สำหรับ PHP Framework ชุดนี้ รวมถึง jQuery นั้นเยี่ยมสุดๆ
ตอนเขียนบน Windows รันบน USBWebserver ใช้ Eclipse เพิ่งเอา Netbean มาใช้เมื่อวาน ดูเหมือนว่ามันหล่อกว่า Eclipse หน่อยนึง ทันสมัยและเหมือนเร็วกว่าหน่อยนึง ด้วย
ฮ่าๆๆ พออัพขึ้นแม่ข่าย Linux จบเลย หา My_Controller ตัว extend library ไม่เจอ คิดตั้งนาน รู้ไหมครับว่า Fatal error ที่เจอ คือ MY_Controller เปลี่ยนเป็น Y ตัวใหญ่จแล้ว ทำงานได้เลย
MY_Controller เอามาจาก Bambooinvoice
วันอาทิตย์ที่ 18 ตุลาคม พ.ศ. 2552
ปรับ IIS สำหรับใช้งาน PHP
IIS หรือเว็บเซิร์ฟเวอร์ที่ทำงานอยู่บน Windows Platform นั้นเมื่อนำมาใช้งานร่วมกับ PHP จะพบว่าทำงานได้ช้าและกินทรัพยากรมาก หากติดตั้งใช้งานแบบ CGI หรือการเรียกใช้งานโปรแกรมจากภากนอก
ทางเลือกที่ดีวิธีหนึ่งในการเพิ่มประสิทธิภาพให้กับ IIS ที่จะใช้ทำงานร่วมกับ PHP นั้นคือการนำเอา Fast CGI หรือเทคนิคการลดกระบวนการเรียกการทำงาน external program
โดยการทำ Fast CGI ไม่ยากเลย มีบน http://www.iis.net/extensions/FastCGI
ทางเลือกที่ดีวิธีหนึ่งในการเพิ่มประสิทธิภาพให้กับ IIS ที่จะใช้ทำงานร่วมกับ PHP นั้นคือการนำเอา Fast CGI หรือเทคนิคการลดกระบวนการเรียกการทำงาน external program
โดยการทำ Fast CGI ไม่ยากเลย มีบน http://www.iis.net/extensions/FastCGI
วันศุกร์ที่ 10 เมษายน พ.ศ. 2552
กราฟ 10Mbps ของ TT&T
ที่ทำงานของผมเพิ่งดำเนินการเปลี่ยนผู้ให้บริการอินเทอร์เน็ทรายใหม่และแน่ นอนกับขนาดของความเร็วใหม่ที่เพิ่มขึ้น จาก 4Mbps -> 8Mbps และล่าสุดที่ 10Mbps

SVG Graph ขณะใช้งานเต็มที่

RRD Graph
*กราฟแบบ realtime ของ pfSense เป็นอะไรที่ทำให้ผมติดใจมันมากกว่า Open source ไฟร์วอลตัวอื่น ความจริงมันไม่ได้ดีมีดีแค่ SVG Traffic Graph แล้วเราค่อยมาดู pfSense กันไปเรื่อยๆ นะครับ

SVG Graph ขณะใช้งานเต็มที่

RRD Graph
*กราฟแบบ realtime ของ pfSense เป็นอะไรที่ทำให้ผมติดใจมันมากกว่า Open source ไฟร์วอลตัวอื่น ความจริงมันไม่ได้ดีมีดีแค่ SVG Traffic Graph แล้วเราค่อยมาดู pfSense กันไปเรื่อยๆ นะครับ
สมัครสมาชิก:
บทความ (Atom)