ข้ามไปที่เนื้อหาหลัก

บทความ

กำลังแสดงโพสต์จาก พฤศจิกายน, 2008

[ phpunit ] How to log test results and represent it in graphical format [ untested ]

This memo is from Pratikshya. Actually I have just copied and paste. try at your own risk. The URL: http://www.phpunit.de/pocket_guide/3.1/en/logging.html contains the examples for logging the test results into various format. For representing the test result in graphical format, we need to install "Image_GraphViz" package. It can be done by executing: $ sudo pear install Image_GraphViz command inside php folder. Also additionally, graphviz should be installed. libgv-php5 can optionally be installed which is the Php5 bindings for graphviz (but not required to run dot command). The log file is saved in .dot format. Now the result of the test file can be logged using the following command: $ phpunit --log-graphviz testfile.dot testfile.php Now the .dot file can be converted into graphical format using the following command: $ dot -T png -o testfile.png testfile.dot or $ whateverCommandThatExportDotFormat| dot -Tsvg > whatever/path/to/picture.svg Succe

คัมภีร์จีน ว่าไว้

ช่วงนี้ใกล้สอบ + งานเยอะแยะที่ยังไม่สำเร็จ เลยเครียดๆ บังเอิญได้ไปอ่านที่มีคนโพสให้ เห็นว่าเจ๋งดี เลยเอามาโพสต่อ คัมภีร์จีน..ว่าไว้....!! คัมภีร์จีน..ว่าไว้ การวางเฉยเป็นมารยาทที่ดี แต่มากนักมักเป็นคนลับลมคมใน คัมภีร์จีน..ว่าไว้ ผู้ที่สามารถควบคุมความโกรธไว้ได้ เป็นผู้มีปัญญายอดเยี่ยม คัมภีร์จีน..ว่าไว้ การทำงานอย่าเอาแต่ทิฐิของตน ต้องเข้าใจเหตุผลของงาน คัมภีร์จีน..ว่าไว้ อารมณ์โกรธเข้าประตูหน้า สติปัญญาก็โผออกประตูหลัง คัมภีร์จีน..ว่าไว้ เมื่ออยากจะรู้ความในใจเขา ต้องฟังเขาพูด คัมภีร์จีน..ว่าไว้ ถอยสักก้าว ทะเลดูกว้าง ท้องฟ้าสดใส คัมภีร์จีน..ว่าไว้ คบหากันเพราะรูปโฉม ความงามร่วงโรย ความรักก็สลาย คัมภีร์จีน..ว่าไว้ ผู้ให้ไม่หวังผล ผู้รับไม่ควรลืม คัมภีร์จีน..ว่าไว้ ใคร่ครวญต้องช้า ๆ ลงมือทำต้องรวดเร็ว คัมภีร์จีน..ว่าไว้ ยามรุ่งเรืองไม่ประมาท ยามตกยากต้องอดทน คัมภีร์จีน..ว่าไว้ คุณธรรมความดีไม่ได้อยู่ที่ลิ้น หากเก็บไว้ในใจ คัมภีร์จีน..ว่าไว้ คนรักของเพื่อน อย่าได้รังแกล่วงเกิน คัมภีร์จีน..ว่าไว้ ปัจจุบันละเลยเรื่องเล็กน้อย ภายหน้าเสียใจอย่างใหญ่หลวง คัมภีร์จีน..ว

Default documentRoot route in Rails 2.0

map.root :controller => "controller_name" เช่น map.root :controller => "courses" ถ้าเปลี่ยน map.connect '', อาจจะต้อง remove index.html จาก /publics แล้วก็อาจจะต้อง restart server

[ rails ] สิ่งที่ ทำผิดแล้วมีปัญหาแน่ๆ

1. ชื่อโปรเจคตัวใหญ่ 2. Model หรือ Scaffold มี s script/generate scaffold Course s days _times:string 3. foreign key มี s script/generate Model Lecture course s _id:integer

dspace search index

หลังจากเราเข้าไป config dspace.cfg ตามนี้ เราสามารถพิมพ์ในช่อง 'for' ของ search ได้ publisher: aaaaaaaaaaaa publisher:aaaaaaaaa* publisher:aaaaaaaaa* && title:a* ลองเดะ

how to add php script in joomla

Download customcontent.zip DirectPHP_v1.55.zip loadmodule_for_category_description_v1.5.zip Installation 1. login to be admin 2. go to administrator page 3. select Extensions > install/uninstall 4. In Upload Package File you browse you .zip and click upload & install 5. make sure that all the extension that you have installed is enabled. 6. finish How to create a module with DirectPHP plugin 1. create new Arcticle by Arcticle Management. 2. in content write php code 3. select all and set format in paragraph and save 4. go to Extensions-> Module Manager 5. find custome content 6. edit custome content by change title. 7. change Position -> user 111 or anything else. 8. Don't forget enable it then save. ref : kksou Finally, How to input module in content item. 1. create new Article at article management 2. write Thanks you, Bo ^^

how to edit menu in joomla

click add ที่อยู่บนขวา สามารถคลิกเข้าไปที่ต้นไม้ได้ internal link, external link เลือกเอาเลย สมมติเราเลือก external link ละกันนะ ใส่ไปประมาณนี้

Google Thailand halloween

Java simple date format

SimpleDateFormat new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(request.getParameter("issued_date")) get seconds long milliseconds = date.getTime(); Long seconds = milliseconds / 1000L; set seconds long milliseconds = longDate * 1000L; Date date = new Date(milliseconds); Calendar Calendar calendar = Calendar.getInstance(); or init from date Calendar calendar= DateUtils.toCalendar(date); Set diff : i.e. Plus one day calendar.add(Calendar.DAY_OF_YEAR, 1); Set calendar.set(Calendar.HOUR_OF_DAY, 0); get time calendar.getTime() calendar.get cal.get(Calendar.ERA) Calendar.YEAR, Calendar.DAY_OF_YEAR