ความชั่วของ Xanga
Xanga แม่ง..... (วันนี้ตาหวูดมานั่งพยายามแก้ planet ให้ใช้กะ xanga ได้) นอกเหนือจาก pubDate ที่แม่งไม่ยอมทำซะที ตาหวูดนั่งแก้จนดึกจนดื่น.. สรุปความว่า Xanga มันชั่วจริง ๆ พิมพ์ text ไทยไป... ตัว rss feeder ของแม่ง.. จะแปลงตัวอักษรไทยนั้นอ่ะ เป็นตัวที่อ่านไม่ออก - -"
เช่น (copy มาจาก blog คุณ kritt) "ความใส่ใจ ไม่ใช่ ความหึงหวง" ซึ่งถ้าเป็นเมื่อก่อนเราเขียน text เนี้ยแล้วเปิดด้วย browser ด้วย encoding 8859-1 ก็จะเห็นเป็นยังงี้ ¤ÇÒÁãÊè㨠äÁèãªè ¤ÇÒÁËÖ§Ëǧ
ทีนี้.. ไอ้ feeder ของ Xanga เนี่ย ไม่รู้มันแกล้งโง่หรืแกล้งฉลาด.... มันดันเข้าใจว่าไอ้ที่เราเขียนไปเนี่ย ที่เราต้องการให้เป็นคือไอ้อย่างข้างล่างเนี่ยแหละ... แล้วมันก็จะดันแปลง "ความใส่ใจ ไม่ใช่ ความหึงหวง" เป็น "¤ÇÒÁãÊè㨠äÁèãªè ¤ÇÒÁËÖ§Ëǧ" อย่างหน้าไม่อาย.. แถมแปลงเป็น utf-8 มาให้ทันที เหมือนกับว่ามั่นใจมาก ๆ ว่า ไอ้ตัวยึกยือเนี่ยแหละคืออันที่ถูก คือถ้าไปเปิดดูใน file ที่มันส่งมาจริง ๆ จะเป็น code ประมาณ \x01\0x5e\x12 อะไรทำนองเนี้ย ซึ่ง code ทั้งหลายมันจะ map ได้เป็น "¤ÇÒÁãÊè㨠äÁèãªè ¤ÇÒÁËÖ§Ëǧ"
(คือแม่งคงแปลงดื้อ ๆ จาก 8859-1 เป็น utf-8 โดยตรงโดยไม่แคร์ user เลยว่าเค้าเขียนมาใน encoding ไหน)
ใครใช้ Xanga อยู่อยากให้มันอ่านได้ใน planet กรุณาเขียนเป็น utf-8 ครับ จะเนียนมาก ๆ ตอนนี้ตาหวูดหมดแรงแก้แล้ว.... ไม่งั้นก็ย้ายไปอยู่ blogger กันดีกว่า google จงเจริญ....
โง้ย เว็ปผู้จัดการจะโดนปิดมั้ยวะเนี่ย?
- Log in to post comments
Why I switched to Firefox
Why I switched to Firefox by IE UI designer.... http://www.scottberkun.com/blog/?p=115
long live the firefox.
- Log in to post comments
Civilization 4
ช่วงนี้นั่งกด Civ4 อยู่นานทีเดียว เกมบ้าไรไม่รู้โคตรจะ addictive มีรูปที่ compare civ1 - civ4 ให้ดู โอ... ท่านคานธี... http://www.2kgames.com/civ4/compare_graphics.htm
เพลงก็เพราะ ตัว gameplay ก็เจ๋งสัด ๆ เฮ่อ.. เมื่อไรจะได้กลับบ้านไปกดต่อว้า
- Log in to post comments
Fixing Xanga's weird rss feed
Finally, I killed all my laziness in updating the planet. By the virtue of Michael Greene script that adds correct <pubDate> to rss feed of xanga (still don't know why they use this weird format). The script can be found in here. However, xanga had fixed their malformed <channel> tag already so you have to comment out these two lines in the original Greene's code
$xml = str_replace('</channel><item>','<item>',$xml);
$xml = str_replace('</rss>','</channel></rss>',$xml);
Well, from now on, when cache failed, century ago entries of xanga's bloggers wouldn't magically show up again. (or at least, show up in the correct date.)
- Log in to post comments
I am protanomaly...
Peam just finish his version of street fighter puzzle and I while i was playing with him, I had problem detecting a yellow gem from a green gem. I can detect, but hardly. I have to adjust the color value of the gem a bit so that I can clearly distinguish green from yellow. That is quite strange coz other guys in the lab can tell which one is green or yellow very easily.
So I took Ishihara Test, and it turned out that I am a color blind :O. Furthur investigation at wikipedia reveals that I am a kind of protanopic, i.e., having problem with the red color (so that I have a problem telling yellow and green apart). On the Ishihara test, i pass 4 out of 6. I cannot answer the number in the bottom test. Well, there are two kinds of protanopic, protanomaly and protanopia. The first one is anomaly, i.e., lesser sensitivity to the red color (both saturation and brightness) while the other is completely red defunct. I am protanomaly (the web said that it is about 1% of male population for white ppl.) Most color blind people is Deuteranomaly, green-weekness.
Now I remember that I had this Ishiara test before since my junior high, I have problem at that time too but never take it serious, (well, the code plate must be bad so that I cannot tell the number while the other can, what an ego of me hahaha). Back to my high school when I was playing the real street fighter puzzle with my dear Nick, I have problem also but again I blame capcom for not making the yellow and green one more distinguishable hahaha.
here is the test on wikipedia,
this one, I cannot tell the number.
However, for this one, I clearly see the number, I can see it very very clearly while the others in my lab can tell, but not clearly, strange, though.
How clearly, you may ask. Well, let just say that, for me, it is clearlier than this picture.
Everyone, color blind or not, should be able to identify the number in this picture.
This one is quite an informative article http://webexhibits.org/causesofcolor/2.html
Finally, I am lucky that I am Anomalous Trichromacy. For my protanopic case, it is called Protanomaly which means that I know all the color but having problem discriminating color in green-yellow zone. I know what is red, (at least, i agree that this object is red when other ppl do so) but saturation and brightness of my red is lesser than normal ppl. With low enough red value, i cannot separate it from black.
- Log in to post comments
Queuing System
ช่วงนี้ต้องทำงานเกี่ยวกะระบบ queue ก็เลยต้องหาอ่านนู่นอ่านนี่ ด้วยอาศัยที่ไม่เคยสนใจเรื่อง IE เท่าไร Operation Research ไม่เคยแตะ พออ่นา ๆ ไปก็จะเจอตัวย่อประมาณ D/M/1 หรือ M/M/4/-/\infty อะไรทำนองเนี้ย ก็เลยต้องไปไล่ ๆ search ดู ก็เลยเจอนี่...
Kendall Classification of Queuing Systems
The Kendall classification of queuing systems (1953) exists in several modifications. The most comprehensive classification uses 6 symbols:
A/B/s/q/c/p
where:
A is the arrival pattern (distribution of intervals between arrivals).
B is the service pattern (distribution of service duration).
s is the number of servers.
q is the queuing discipline (FIFO, LIFO, ...). Omitted for FIFO or if not specified.
c is the system capacity. Omitted for unlimited queues.
p is the population size (number of possible customers). Omitted for open systems.
These symbols are used for arrival and service patterns:
M is the Poisson (Markovian) process with exponential distribution of intervals or service duration respectively.
Em is the Erlang distribution of intervals or service duration.
D is the symbol for deterministic (known) arrivals and constant service duration.
G is a general (any) distribution.
GI is a general (any) distribution with independent random values.
อาฮ่า มันเป็นเยี่ยงนี้นี่เอง...
- Log in to post comments
แป้บดิมคง
อะไรเ่อ่ย? วันนี้คุยกะไอ้ซันผ่าน msn แล้วมีพิมพ์ไปว่า "แป้บดิมคง"
ซันมันถามว่า แป้บ ดิม คง แปลว่าไร.....
อึ้งเลย....... ตอนมันถาม... เรายังไม่รู้ตัวเลยว่ามันถามเรื่องไร.... เพราะจริง ๆ แล้วจะพิมพ์ว่า "แป้บ ดิ มึง" แต่ดันพิมพ์ มึงผิดเป็น มคง... ชิบหายเลยทีนี้ ไอ้ซันงงชิบ.....
นึกไปนึกมา ประมาณอาทิตย์ที่แล้วอ่าน manager เจอ นายกอบจ do this and that ถึงกะงงอยู่แป้บว่า ใครวะ? นาย กอ บจ
เฮ่อ...
- Log in to post comments
ความสามารถทุกคนเป็นอนันต์
Quote of the day of our teacher.....
โอร่า ๆ ๆ ๆ ๆ ๆ
- Log in to post comments
Linux Library
the stupidity attemp
I have to set up something.. (linux box, kind of..) but there are some problems about shared library. I never understand nething of shared lib, except that it ends with .so. After a few googling around, here are some useful links.
http://www.tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html http://www.visi.com/~barr/ldpath.html
Here are some new knowledges for me
- shared libraries are stored in
/usr/libor/usr/local/libwith a few exception for the very important ones used while booting which are stored at/lib. - the number behind .so (e.g.,
libvorbis.so.3.0.1) is the major and minor version of the library. Usually, the actual file is fully qualified and symlinked to the less clarity name (e.g.,libvorbis.so.3.0andlibvorbis.so.3andlibvorbis.soare symlinked to thelibvorbis.so.3.0.1). - At run-time, a binary search amongst the predefined standard library path. Unlike MS, the current directory is not the standard lib path. To add an additional directory to the search path, use
LD_LIBRARY_PATHenv. variable. This method is not prefered as discussed in the above link. - To add new library to the system, just copy the original one and then use ldconfig to create the appropriate symlink (according to the version of the library)
For more information, don't forget to read the provided link.
and now the light has shined on my
The fact is, the library that is needed to be upgraded is glibc. Almost everything, (i repeat almost everything) rely on this library. I can upgrade, but the most part of my box would be, well, virtually useless. I tried using LD_LIBRARY_PATH with the new glibc, the result is that i cannot even ls, luckily, i can reset the variable so that my box is back to life.
After googling (again), a good recommendation about upgrading glibc is
Are you sure that you want to try this? Just about everything on your system is linked against Glibc and as such an upgrade of that set of libraries has the potential of breaking many, if not most, of the system components. Personally I'd only do this by an upgrade of the OS that includes Glibc 2.3
Well, I will try other distro then....
- Log in to post comments
In Joy of a Touch of a Good Story
I always feel excited when experiencing a good story. A good story differs from person to person. I, myself, define a good story as ones that make me joy. Recursive definition, though, but it is the most correct definition. Anyway, the common of a good story is that it provides some good idea, some vista to which I never considered, a conspiracy that is hard to predict, blah blah blah. I love this, dunno why. Reading a good manga, playing FF series or other RPG with deep story, a nice novel, all of these make me happy. The recent one is The Moon is a Harsh Mistress. This is one of a good story. (I would not deny any PR money from ASK Media. Just finished it this morning. The concept propsed by Prof. de la Paz in the story is quite, well, in Aj. prabhas's words, ถูกจริต. The story is not quite complex as I expected but it is enough to keep me reading.
PS. Taksin is about to take over the whole country. Well, this is quite exaggerated but he indeed do many in appropriate things which require a very big deal of my optimism (I feel, and have been told, that I am a very very optimistic person) to keep thinking that he is with a good mind.
- Log in to post comments