| Subcribe via RSS

IETester:Cross(IE version) Browser Testing

September 26th, 2009 | 2 Comments | Posted in Program, นอกงาน, ฟรีสไตล์
IETESTER

รูปการเปรียนเทียบระหว่างเปิดเวปด้วย IE5-6(ที่ยังมีปัญหา Png Transparency) กับ IE7-8


Browser ตัวนี้มีฟีเจอร์ที่เป็นประโยชน์มากในการเช็คเรื่อง Compatibility ของ web browser ยอดนิยมอย่าง Internet Explorer [อันเป็น browser สุดที่รักของนักพัฒนาทั้งหลาย :-) ]  ได้ทุกเวอร์ชั่น
-เพียงกดปุ่ม All IE Versions แล้วพิมพ์ Url ของเวป เราก็จะดูหน้าตาของเวปที่ IE version ต่างๆกันได้ทันที

version ที่ลองเล่นอยู่นี้ คือ 0.4.1 เพิ่ง released มาเมื่อ 3 วันที่แล้วนี้เอง และรองรับ Aero ของ Windows 7 แล้ว

2009-09-23 : IETester v0.4.1 released

อ่านรายละเอียดเพิ่มเติมและดาวน์โหลด ที่นี่

Tags: , ,

English on Twitter for Dummies

September 19th, 2009 | 1 Comment | Posted in นอกงาน, ฟรีสไตล์

Twitter For Dummies

ใครจะรู้ว่าประโยชน์ของ Twitter ไม่ได้มีไว้แค่บนหรือเพิ่ม connection+relation ให้กับเพื่อนร่วมโลก (สีเหลือง สีแดงในที่นี้ไม่มีนัยยะทางการเมืองแต่อย่างใด :P )
แต่ด้วยคุณลักษณะอันพิเศษที่เราสามารถบ่นได้ตลอดเวลานี่แหละ ทำให้เราสามารถฝึกษาอังกฤษได้ในเวลาเดียวกัน!

อย่างที่คุณครูหรือแม้แต่ติวเตอร์ชื่อดังหลายสถาบัน ได้กล่าวไว้ว่าฝึกภาษาใดๆในโลกให้ได้ผลมากที่สุดคือ การอยู่กับมันตลอดเวลา!
แล้วทำไมเราไม่ Tweet เป็นภาษาอังกฤษหล่ะ!?

ตัวอย่างด้านล่างผ่านกระบวนการ C&E (Copy & Edit) จากผู้ที่นิยมการ Tweet เป็นภาษาอังกฤษเป็นส่วนใหญ่ ซึ่งผมก็หวังว่าคงไม่โดนฟ้องร้องจากการไม่ Reference จากเจ้าตัวก่อนนะครับ ^_^

บนเตียง
-wake up
-Lay down on bed…
-Up & ready for another day.

บ่น
-The indian tourists on my floor are so noisy, they open TV so loud and open the door! They keep shouting more than half a hour already!
-this is serious. I was stucked with 3 indian guys in a small elevator! I cannot breath! T.T
-All season hotel pattaya is full of indian tourists. So stinky smell!
-Very rushing… Why they so hurry but didn’t tell me… i’ll fly early flight.
-At Suwanabhumi… Automatic Ticket Kiosk of THAI betray me again.
-Raining on Rama IV !

Food
-pattaya has a lot of good seafood
-breakfast in the morning is just like a flesh market! they mess around the elevator! (smell like hell)
-Full from seafood spaghetti at my friends house.
-Having late dinner after a long day @ work
-Khao Na Ped as Working Lunch !
-Dinner at Home…Grilled Chicken and KaiJeaw !!

จะไปไหนซักที่
-On the way home from a long day of urgent work from MCOT.
-heading for dinner at SAXOPHONE.
-Heading back to ….. office
-Just Came Back from Bangkok Youth Stadium
-where to hang out tonight in Chachoengsao?
-back to the hotel.
-Arrived ko-khun pattaya. This is the 4th time of the week
-Heading to ……. office. Stuck at …….
- i’m heading from Siam to Rama 3
- At Rama4 expressway exit, going to set up booths at Thailand ICT Awards 2009
-Landed Chaingmai… Out of aircraft.
-schedule is on Sunday… Now he is flying to Chaingmai… after fly back from Osaka.
-Traffic bad everywhere.
-On the road again. Another day of work to progress the media development of Thailand.
-Another day of work! On the way to an early morning TV interview @ MCOT’s Modernine TV.

ถาม
-Are you in pattaya tonight?
-Is there any activity today?
-which kind of meat?
- can you see my car on top of flyover bridge? [สะพานลอย]

ตอบ
-if you have problem about browsing only. May be the dns problem
- Absolutely Yes krub !! Thanks for All Bangkok Angels !!
-Hope you liked it !
-I just watched it few weeks ago also !!

บอกเล่า
-Getting ready for a meeting
-Have a Good Weekend…I Wish !!
-Watching Minister Korn on Ch.9 Now !!
-I hate watching myself on tv but am watching (NBT) anyway!
-Sunday is the day for praying. Visiting temples to make offerings for good merit.
-My gate is so far… A6 TG110 bound for Chaingmai. Now on Boarding
-Wow!! I like this seat position much… 32c Very comfort.
-I’m gonna fly now! See you soon Chaingmai people!! who interested in IT knowledge.
-Wow!! I’m the first one who out from Airport!  Staff pick me up suddenly… they said I need to go up stage in 10 mins. Hurry!
-@[A] oh! same flight with me? wow! I will stay in front for a while. Come and greet us!
-Stage talk is finished. Sit with Dr.Wittaya Dean of Faculty of Information and Communication, Mother Jo University.
-Oh~! After meeting, after everyone was out. I slept in Dolce cafe by accidentally.. I never fall as sleep in cafe before.
-Out of meeting and go to attend another meeting downstairs.
-Who will sleep when we are in pattaya? Sure we have place
-that’s only for free job!
-..[list of your friends name]…all of you can join me at ko-khun pattaya!
- sex is art and you don’t rush art
-Damn! So many young nice girls around here at samyan. Almost got car accident many times
-Live at pantip plaza, buying it stuffs for @figabyte office. Now looking for food
-There always has enough space for music lovers
-I really like Tata Young New Album READY TO LOVE. jing jing… Her music is so good!

ต้อนรับ
-[A] is planing to order pizza for warm welcome to [B] [C] [D]
-Welcome Reception for President of FIFA,Mr.Joseph Blatter at Government House 06:30 PM !!

ขอบคุณ
-thanks a lot. I have been there few times. It’s good to go there with friends, but not alone.
-thank you krub. See u at the next EAT!
-Thanks to All Bangkok United FC FanClub !! Keep Walking…We Are Bangkok Angels !!!

ง่วงanimalๆ
-Sleepy in the afternoon again
-Quite sleepy Now !!

ออกกำลังกาย
-Burn out for 20 mins

วันที่-เวลา
-last saturday of september
-then you will fly to germany next week anyway!
-Such a long meeting day and long driving night

ประชุม

- @A @B @C summon for @Z at ……OFFICE asap when you available

สื่อสาร[โทรศัพท์,Conference,]
-at least you still recall me, it’s much better than… Who the hell is keerati!
-Long conference call with ICq and @nantharak before flying… Thanks TG Crew to allow me talking in front of aircraft door for long time.

ลา
-Have to Go Now…Good Night !!
-Good Night…See You Tomorrow !!

ps. 1.1 ทั้งนี้ทั้งนั้นผมก็ยัง Tweet เป็นภาษาไทย 555+
1.2 Twitter คืออะไร? http://www.idayblog.com/archives/420

Tags: ,

Using logging for debugging

September 6th, 2009 | No Comments | Posted in Java, ในงาน

เพิ่ง Update version Wordpress เป็น 2.8.4 เพราะเห็นเขาว่าVersion ก่อนๆมีปัญหาเรื่องโดนhack  เห็นฝรั่งบางคนบ่นว่าโดนเพิ่ม admin2 เข้ามาแล้ว เข้าไปลบ article ที่เขาอุตส่าห์เขียนไว้ร่วม 2 เดือน!! ซึ่งตัวเขาเองก็ไม่ได้ backup ไว้ด้วย น่ากลัวจริงๆ (น่ากลัวนี่หมายถึงการที่เขาไม่ backup อะไรไว้เลย)

จะว่าไปเวปนี้ผมก็ไม่ได้ backup ไว้เหมือนกัน :( ฉะนั้นเชิญมา hackไปได้ตามสะดวก :)

เช่นเดียวกันกับการเขียนโปรแกรมหากไร้ซึ่งการเขียนLog ซึ่งTrack การทำงานของProgram เราจะพบว่าชีวิตจะลำบากขึ้นมากทีเดียวหากเกิด Exception ขึ้นมา ซึ่งหากเขียนLog พร้อมกับการเพิ่ม Message ที่ Throw Exception ออกมาแล้วเราจะพบตำแหน่งในCode ได้ง่ายขึ้น เช่นใน Block Catch เรามีการโยน Exception ดังนี้

throw new Exception(e.getMessage()+”-DatabaseControl.connectDatabase“);

เพียงแค่เราเพิ่ม ชื่อObject+ชื่อMethod เวลา write log ก็จะ Track ได้ง่ายดาย

ส่วนเรื่องการ Track Log ใน Program เรา ไม่ว่าจะเป็น java หรือ C# สามารถเขียนได้เหมือนกันหมดโดยใช้ Object ตัวนี้แต่ต่างกันที่ function ที่ใช้ในการ read/write/append ที่มันแตกต่างกันอยู่แล้ว ของทั้ง 2ภาษา ครั้งนี้จะเขียนเป็น Java ก่อนแล้วกัน

LogManager

การใช้งานก็เพียงสร้าง Instance ของ Object ขึ้นมา เช่น


LogManager log = new LogManager(“C://CreateLogs//TestLog.log”);
log.AppendLogs(“Begin Log :”);
log.AppendLogs(“========== Start: “+util.getTime()+”==========”);

หรือแม้ใน Block กระทั่งใน block Exception

log.AppendLogs(e.getMessage()+”DatabaseControl.connectDatabase”);

การ AppendLogs แต่ละครั้ง เปิดไฟล์->Append->ปิดไฟล์ บางคนอาจจะคิดว่า ทำไมไม่เปิดค้างไว้พอจบ ในfunction นั้นแล้วค่อยปิด นั่นเพราะถ้าหากเกิด Exception จะทำให้เกิดการเขียนไฟล์ที่ไม่สมบูรณ์ได้

Tags: , ,