Thursday, March 27, 2008

"Pung Lae Pung".

I can't translate it to English so I'll post on Thai language. from my senior, P'Tao.(the person that like c++ very much)

พังและพัง
แต่งโดย พี่เต๋า cp 31
ถ้าบอกว่าโปรแกรมนี้ เขียนเสร็จแล้ว เธอจะเชื่อไหม
GUI มันอาจไม่สวยงาม เหมือนโปรแกรมทั่วไป
อยากให้รู้ ว่าโปรแกรมบัก ถ้าไม่ noob ก็เขียนไม่ได้
แต่กับ C++ รู้ไหมฉันเขียนง่ายดาย

เธอคงเคยได้ยินเกียรติศักดิ์C++ มานับร้อยพัน
มันอาจจะเกินไป แต่ก็เป็นจริงเหมือนกัน
แต่ถ้าเธอได้เห็นโปรแกรมนี้ อันที่เขียนจากภาษานั้น
เพื่อเธอเข้าใจความหมายแล้วจะได้เลี่ยงมันC++

ให้มันเป็นภาษา ที่ควรเอาไปขึ้นเขียง
ที่จะมีเพียงคนเสียสติเท่านั้น
จะอยู่กับมันนานนาน

ดังในใจความบอกใน IE ว่าตราบใดที่ใช้ C++ ย่อมมีพัง
คือทุกครั้งที่จอฟ้าสดใส ฉันเห็นลางลาง

มีความจริงอยู่ใน code ตั้งมากมาย
และที่ผ่านมาฉันใช้เวลาเพื่อหาแทบตาย
แต่ไม่นานก็พึ่งรู้ ว่าทุกครั้งที่ pointer เข้ามาใกล้
ว่าถ้าnewแล้วไม่delete Memoryก็จะleakแล้วwindowsก็ใกล้จะไป

มีภาษาอื่นให้เราเลือกเขียน แต่ดันเขียน C++ ทำไมนั่น


PS. If you can get this song mean that you used to coding in c++.

Wednesday, March 26, 2008

my x comed back.

about my report last time, now i can fixed it. i copy x config file from live cd. i ran ubuntu live cd and copy file "xorg.conf" from /etc/X11 and replaced the old one. (for do that, you must have root authorized.)

after replaced it, the resolution was better and the position of screen come back at the middle of the monitor except log in screen. it's still shift left for a littel. but when i enabled desktop effect, it became normal everything. i don't know why. but now i have normal screen ubuntu.

and the last one problem that i found is i can't use thai on my keyboard. i will solve it soon. when i can solve it, i will report agian.

Monday, March 24, 2008

try to config x server and make bad result.

hi. i didn't write this blog for long time but now i come back to write it.

i'm reading book for linux newbie. it's very old book and i bought it when it on sale. after read it, i tried to config x server from example from the book. in this book present 3 commands(programs) to config x server. these commands is
  1. XF86Setup
  2. Xconfigurator
  3. xf86config
but my ubuntu(7.10 - gutsy gibbon) don't have these. so i search the google for the way to config it. and found very long command that is
  • dpkg-reconfigure xserver-xorg
so i used it by don't have knowledge about this command. i don't think that it is text mode. oh. but that time i think that i will always enter and enter to make it finished quickly and return normally. but i thought wrong. when finised it, i found that my screen is shift left for a little and less resolution!!! i'm make exclamation. i don't know to restore it.

i tried to config it for many time and used another choice for brought it normally. but until now i can't do it yet. how should i do? i don't have knowledge about x server before. but i think if config save value in file, i will find the normal config file and replace the old. but how can i find normal file. i don't know it. maybe i will copy it from live cd. i don't know this will work? but i must try or reinstall ubuntu again.

if i'm not lazy, i will write the result in this blog. see you