วันเสาร์, สิงหาคม 30, 2551

CSS ทำภาพ Headshot หน้าบ้าน กับ reply ให้เป็นคนละภาพ

ส่วนที่หนึ่ง หลักการเหตุผล  

ที่มาของไอเดียนี้คือ แวะไปบ้านสวัสดีมัลติพลาย http://sawasdeemultiply.multiply.com/notes/item/687 แล้วเห็นโจ้ กำลังพูดถึงตัว P ของ premium member โดยกำลังพัฒนาโลโก้ SM อยู่

ผมก็เลยปิ๊งไอเดียต่อยอดครับ 

เริ่มจาก หาข้อมูลว่าตัวพี ที่โจ้พูดถึง นั้นมีที่มาอย่างไร จึงพบว่า ตัวพี นั้นถูกเติมเข้ามาในรูป ที่แสดงใน reply ของพรีเมี่ยม แต่ที่หน้าบ้านนั้นจะไม่มีตัว พี ที่รูป เนื่องจากมีคำว่า พรีเมี่ยม อยู่แล้ว

ดังนั้น ผมเลยเกิด ไอเดียว่า เอ ถ้าผมลองทำรูป HS ที่มีตัวอักษร สมมติว่าตัว เอ็ม ที่นี้ก็ เท่ส์ คล้ายๆพวกพรีเมี่ยมแล้วสิ 

แต่ปัญหาที่ตามมาคือ เอ๊ะ แต่ที่หน้าบ้านเรา ก็จะมีตัวเอ็มใหญ่ ขึ้นมาหราเลยสิ ไม่งามๆ

เลยลองยืมมืออากู๋ค้นหาดูสิว่ามีวิธีใด ที่จะเอารุปมาแปะตรง HS ในหน้าบ้านได้บ้าง โดยไม่ตรงกับ HS reply






ส่วนที่สอง แนวคิดทฤษฎี

แต่นแต๊น สุดท้ายก็พบวิธีครับ (จำไม่ได้แล้วว่าไปอ่านจากที่ไหนมา ไว้จำได้จะมาบอก) แค่เติมโค้ดสองตัวลงใน CSS ครับ


โค้ด บรรทัดแรก จะสั่งให้ไม่แสดง HSจริง ในหน้าบ้านเราครับ
โค้ด บรรทัดสองจะสั่งว่า แล้วไปหารูปที่ไหนมาใส่แทน HS เราในหน้าบ้านครับ (รูปเคลื่อนไหวก้ได้นะเออ แต่ทั้งนี้ทั้งนั้น size กว้างคูณยาว ควรจะท่ากับ hs เดิมๆของเรา)




.railbody .userlogo a img#user_logo_image {visibility:hidden;
}
.railbody .userlogo {
background:white url(รูปที่เราเอามาแทน);
background-repeat: no-repeat;
}





ส่วนที่สามสรุปผลการทดลอง
1.ทดลองทำ HS M ขึ้นมา ด้วยความช่วยเหลือของเพื่อนที่มากความสามารถ ลองก้อป HS ธรรมดาของผมไปเติม M
2.อัพโหลด HS M เข้าไปครับ ที่นี้ก็ M  หรามาเลย
3.ใส่โค้ดสองชุดลงไปในCSSครับ โดยในโค้ดชุดสอง ก็เอา URL ของHS เดิมที่ไม่มี M มาใส่ 




ส่วนที่สี่ วิธีประยุกต์ใช้
เราเอารูปอะไรก็ได้ ที่ไม่อยากอัพโหลดมาใส่ใน HS จริงของเรา มาโชว์ที่หน้าบ้านเราได้เสมอ รวมถึงรูป GIF เคลื่อนไหวด้วย



เสร็จแล้วครับ

งงไหมครับ อิอิ 


Scribd เวปสำหรับคนชอบ docs

http://www.scribd.com/
doc ที่ว่านี้คือ documents อะครับ ทั้งอ่าน ทั้งอัพ ทั้งแชร์
ส่วนมากภาษาอังกกฤษ ของพี่ไทยก็มีบ้างเช่นกัน

Scribd


Scribd began with a simple observation – there are billions of documents sitting siloed on people's hard drives. By making it easy for people to publish their documents to the internet, Scribd has unlocked this treasure trove of information. Every day, nearly a million people come to Scribd.com, most of them seeking some piece of information stored in this library. Some percentage of these people sign up for Scribd to be a part of the Scribd community and upload their own documents, perpetuating the cycle which powers Scribd's growth.

วันพฤหัสบดี, สิงหาคม 21, 2551

เมื่อคนที่คอยช่วยเราต้องการความช่วยเหลือ...

ได้รับฟอร์เวิดเมล์มาครับ   ท่านใด พอจะสามารถช่วยด้านยารักษาโรคได้ ก็ช่วยกันครับ     


 เนื่องจากรุ่นพี่ผมคนหนึ่งเขาเป็นทหารอยู่ที่ 3 จังหวัด ชายแดนภาคใต้ พี่เขาอยู่ที่ปัตตานีครับ และเขาขอความช่วยเหลือเรื่อง ยารักษาโรคต่างๆและอุปกรร์อาหารการกินที่นั่น

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

เด็ก ก็ไม่กล้าออกไปหาหมอเพราะไม่มีตังค์ตอนนี้ต้องเอาหมอทหารเข้าไปรักษาชาวบ้าน และที่สำคัญที่นั่นกองทัพเขามีงบประมาณในเรื่อง ยารักษาโรคน้อยมาก   

 จึง เรียนมาเพือ่ขอบริจาคยารักษาโรคทุกชนิด บางครั้งต้องประสานงานตามวัดต่างๆ เพราะเวลาถวายสัฆทานเขาจะมียามาให้ด้วยนะครับเลยเรียนมาเพื่อขอความกรุณา เพื่อนๆทุกท่านช่วยกันรวบรวมยาหรือเวศภัณฑ์ต่างๆ ส่งไปช่วยด้วยนะครับ เพราะที่นี่ขาดมาก

ส่งที่อยู่มาให้เพื่อจะได้ส่งของมาช่วยกันครับ

 พันตรี สุวพจน์   จุลกทัพพะ     รอง ผบ.ฉก 24 ( พัน.ร. 234)  
ศูนย์ฝึกอาชีพวัดช้างให้     ตู้ ปณ. 10 ปณ. นาประดู่ อ.โคกโพธิ์ จ.ปัตตานี   94180
เขียนมุมกล่อง บน ขวามือ ว่า   ' ทบ.สนามชายแดน'   ครับ


วันอังคาร, สิงหาคม 12, 2551

ของฟรี วันละโปรแกรม

http://www.giveawayoftheday.com/
Giveaway of the Day - free licensed software daily.

Welcome to Giveaway of the day project, the new initiative in the software distribution world! Every day we offer for FREE licensed software you’d have to buy otherwise!

Basically, every day we nominate one software title that will be a Giveaway title of that day. The software will be available for download for 24 hours (or more, if agreed by software publisher) and that software will be absolutely free. That means - not a trial, not a limited version - but a registered and legal version of the software will be free for our visitors*.

The software product will be presented in its full functionality, without any limitations save for those mentioned in Terms and Conditions.

The download link will remain on our web-site for the agreed period of time, together with the review of the software product and the information about other products from the software publisher presenting the giveaway title.

วันศุกร์, สิงหาคม 08, 2551

รับอาสาตรวจทานพยัญชนะพระไตรปิฏก

วันนี้มีข่าวบุญ มาฝากค่ะ
'รับอาสาตรวจทานพยัญชนะพระไตรปิฏก'

วัตถุประสงค์
1.เพื่อสืบทอดคำสอนของพระพุทธศาสนา
2.เพื่อจัดทำเป็นต้นฉบับในการเผยแพร่และจัดสร้างเป็นเสียงอ่านพระไตรปิฎก(mp3) เผยแพร่เป็น
ธรรมทานแก่พุทธศาสนิกชนทั่วโลก

'การทำงานก็ไม่ได้ยุ่งยากอะไร เป็นงานง่าย ๆ แต่ต้องใช้ความเพียร งานนี้มีอานิสงส์ยิ่งใหญ่ ยังไงก็
อย่าได้พลาดบุญนี้นะคะ หากงานชิ้นนี้สำเร็จแล้ว ก็ไม่มีให้ทำแบบนี้ได้อีกต่อไปแล้ว'
**นอกจากจะได้บุญแล้วเพื่อเป็นการตอบแทนน้ำใจอาสาสมัครทุกท่าน
อาสาสมัครยังจะได้รับดีวีดีเสียงอ่านพระไตรปิฏกและดีวีดีพระไตรปิฏกฉบับ 91เล่ม
เมื่อโครงการสำเร็จแล้วจะได้จัดส่งไปให้ท่านทางไปรษณีย์จนถึงบ้านท่านต่อไป

((ผู้สนใจสมัครและลงทะเบียนได้ที่ คุณสมศักดิ์
Kasinaram@hotmail.com))

                สนใจดูรายละเอียดเพิ่มเติมที่เว็บไซต์ ด้านล่างนี้
             
http://www.volunteerspirit.org/?q=node/408


หากท่านไม่สามารถช่วยอาสาครั้งนี้ได้ก็ขอรบกวนช่วยส่งต่อเมลล์ฉบับนี้ต่อๆ ไป>>เพื่อร่วมสร้างมหากุศล
ด้วยค่ะ>>เพื่อบอกบุญต่อเผื่อผู้อื่นที่อาจพอมีเวลา และจะได้หาคนมาช่วยเยอะๆค่ะแค่ช่วยประชาสัมพันธ์
ข่าวบุญนี้ต่อๆไปก็สำเร็จเป็นบุญแล้ว!!

**ขอแจ้งเล่มที่ยังไม่มีอาสาสมัครทำ
(ซึ่งขณะนี้ยังต้องการอาสาสมัครอีกเป็นจำนวนมาก)
1 2 3 4 5 6 7 8 9 10 / 12 /15 16 /20 21 /25  / 27 28  /30 31 32 33 34 35
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
61 62 63 / 65 66 67 68 69

**กำหนดเวลาในการส่งไฟล์กลับคืนนั้น ไม่ได้กำหนดเวลาไว้ว่า กี่เดือน แต่ก็ขอให้ทำให้เสร็จภายใน
เวลาอันควร คือไม่กี่เดือน อีกอย่าง คุณอาจมีข้อจำกัดที่จะต้องส่งหนังสือคืนให้ทางวัดหลังจากที่ยืมมา ก็
ให้เอาระยะเวลาที่จะต้องคืนหนังสือเป็นเกณฑ์ก็ได้ค่ะ**
การสั่งสมบุญ นำสุขมาให้
บุญเมื่อยังไม่ให้ผล ก็เหมือนขุมทรัพย์ที่ฝังไว้ดีแล้วในแม่น้ำ
**********************************************************************
**********************************************************************



วันพุธ, สิงหาคม 06, 2551

สวมรอย password hotmail

เมื่อวาน  คนที่ทำงานมาขอให้ช่วย เข้าฮอตเมล์ของเค้าให้หน่อยไม่รู้เกิดไรขึ้นเข้าไม่ได้
เราลองๆดู หลายรอบก็เข้าไม่ได้ เลยสอบถามว่าไปทำไรมาป่าว
เค้าบอกว่า ก่อนหน้านี้มีเมล์มาจากฮอตเมล์ บอกว่าชื่อเมล์เค้าจะถูกลบ เนื่องจากเหตุผลบางประการ  ถ้าไม่อยากถูกลบ  ขอให้ยืนยัน ชื่อเมล์และพาสเวิดอีกครั้ง เพื่อยืนยันว่าเป็นตัวจริง และต้องการใช้งานต่อ

ด้วยความที่เค้าเห็นว่าส่งมาจากฮอตเมล์และเค้าไม่อยากถูกลบเมล์ เลยรีบยืนยันไป   ...............  หลังจากนั้นไม่นาน เค้าก็เข้าเมล์ไม่ได้อีกเลย

เมื่อคืน ตีสอง เพื่อนเค้าจากต่างแดนโทรมาหา สอบถามว่าเป็นอย่างไร ต้องการความช่วยเหลืออะไรบ้าง เห็นอีเมล์ไปหา

วันนี้ มีโทรมาจากสารพัดทิศ มาสอบถามว่าเกิดไรขึ้น ตกระกำลำบากอยู่ป่าว

เรื่องนี้สอนเค้าให้รู้ว่า  ยามเค้าลำบาก ก็มีคนเป็นห่วงปรากฏตัวออกมาเองนิ อิอิ


เมล์ที่เพื่อนๆเค้าได้รับมีข้อความดังนี้


Hi!,
 
How are you doing today?I am sorry i didn't inform you about my traveling to Europe for a program called Empowering Youth to Fight Racism,HIV/AIDS,Poverty and Lack of Education, the program is taking place in three major countries in Europe which are Dublin,Scotland and England,It as been a very sad and bad moment for me, the present condition that I found myself is very hard for me to explain.I am really stranded in England,London. because I forgot my little bag in the Taxi where my money, passport,documents and other valuable things were kept on my way to the Hotel am staying,I am  facing a hard time here because I have no money on me. I am now owning a hotel bill of $1,200 and they wanted me to pay the bill soon else they will have to seize my bag and hand me over to the Hotel Management.,I need this help from you urgently to help me back home,
 
I need you to help me with the hotel bill and i will also need $1,700 to feed and help myself back home so please can you help me with a sum of $2,700 to sort out my problems here? I need this help so much and on time because i am in a terrible and  tight situation here,I don't even have money to feed myself for a day which means i had been starving so please understand how urgent i needed your help.I am sending you this e-mail from the city England,London and I only have 30 min,I will appreciate what so ever you can afford to send me for now and I promise to pay back your money as soon as i return home,you need to transfer the money through Western Union, please email me back so that i can email you the information name that you will send the western union to.Thanks
Regards,

 ชื่อเค้า   


(บังเอิญเค้าเป็นคนที่ภาษาอังกฤษพอใช้ได้ แถมเดินทางบ่อยเสียด้วย ความจะเป็นในเนื้อหาเมล์จึงสูงอยู่พอสมควร ไม่รู้ว่ามีใครหลงโอนเงินไปให้หรือยังหว่า)

ความคืบหน้าล่าสุด ผมหาเบอร์ไมโครซอฟไทยแลนด์ให้เค้าโทรไปปรึกษา ทางโน้นตอบมาว่า ให้ส่งเมลืไปหาไมโครซอฟใหญ่เพื่อช่วยยืนยันตัวตนและขอพาสเวิดคืน โดยตรงต่อไป...

วันอาทิตย์, สิงหาคม 03, 2551

จดหมายจากเพื่อน Achievements of Thailand

เพื่อนส่งจดหมายมาให้ อ่านแล้ว อยากให้คนอื่นได้อ่านบ้าง


Achievements of Thailand

 
 
1)  Thai students have won another three gold medals in academic olympiad competitions - two in Mathematics in Spain and one in Chemistry in Hungary, at the 12-day-long 49th International Mathematical Olympiad from July 10-22 in Madrid.  
The Thai student team also scored sixth highest among the 97 countries participating, with 175 points.  www.bangkokpost.com/220708_News/22Jul2008_news04.php
 
2) Thai students earlier won another three gold medals and one silver at the International Biology Olympiad in India in 2008.
http://www.thaindian.com/news-snippet/thailand-and-india-shine-at-the-first-international-olympiad-on-astronomy-and-astrophysics-4497.htmld 
 
3)  Student teams from Chulalongkorn University, Thailand won 2008 RoboCup World Campionship
http://enews.mcot.net/view.php?id=5390

4)  Humanitarian Award and Nobel Peace Award for Thai pharmacist Dr. Krisana Kraisintu. Also, she has been named Reader's Digest Asian of the Year for 2008 for her tireless work on researching and manufacturing generic HIV-Aids and malaria treatment drugs which have already saved millions of the poor people in African and Southeast Asian countries.

5)  Bangkok replaces Florence as the world's best city in 2008, up from third place last year.  
http://www.bangkokpost.com/170708_Horizons/17Jul2008_hori66.php
 

The proofs of the high calibre of the Thais are not only shown as the evidences above.  We won many academic Olympiads Competitions in the consecutive years before, particularly in the area of sciences as the following sample achievements:-
 
1)  In 2007:  A group of Thai students won one gold medal, three silver and two bronze medals from the International Mathematical Olympiad, held in the Vietnamese capital of Hanoi from 19-31 July 2007.  Earlier, other groups of Thai youths also won International Physics, Biology and Chemistry Olympiads 2007 held earlier in July in Iran, Canada and Russia respectively.
http://thailand.prd.go.th/view_focus.php?id=2174
 
2)  In 2007: Thai student team won a trophy for their rescue robot in Atlanta, Georgia.
http://www.bangkokpost.com/education/site2007/cvse1807.htm
 
3)  In 2006:  Four Thai students have won four medals - one gold, two silvers and one bronze, at the Academic Olympics chemistry competition held in South Korea from July 2-11.
 
4)  In 2006:  The Thai student team won three gold medals and one silver at the International Biology Olympiad (IBO) held in Argentina from July 9 to 16.
 
5)  In 2006:  A six-member team of Thai students won medals at the International Mathematical Olympiad, held in Slovenia, while five youngsters have won medals in the International Physics Olympiad 2006, held in Singapore from July 8 to 17.
 
6)  In 2006:  Thai student teams won the Asia Pacific ICT Awards (APICTA) 2006 held in China's Macau from November 2-5.  Its 16 member-economies include Australia, Brunei, China, Hong Kong, India, Indonesia, Korea, Macau, Malaysia, Myanmar, Pakistan, Philippines, Singapore, Sri Lanka, Thailand and Vietnam.


After earning just one bronze medal in the first year of participation in 1989, Thai students to date have obtained around 300 medals at these contests, which are not widely known. In comparison, other countries, many medalists have become famous mathematicians and scientists. Terence Tao, the Australian child prodigy, for example, won three IMO medals during 1986-88 and was the youngest person to receive a gold medal from the IMO at the age of 13. In 2006, he finally received the Fields Medal, often described as the 'Nobel Prize of Mathematics'.
 
These can show the facts that Thailand is actually one of the potentiality countries as we have high qualities of the country's geographical location, and the Thais.
 
I sent this to all of you because I've been feeling sorry for Thailand, which is the main problem of Thailand, that the patronage system has been deeply rooted in the Thai's state bureaucracies and socialisation, leading to the corruption and having the inefficient Gov't (stemming from the reciprocal benefits among the influencing groups).    They have been obstructive to the developments of human resources, the accepted norms and the country as a whole for decades. Even though, to me, Thailand and the Thais are not bad, able to compete with others internationally and shine on globle stage as well.   Let's help Thailand move forward by not getting involved in any corruption, starting from our generation.  Our next generation would be able to boost it up by following ours' examples!!
 
Poor Thailand!!
 
Nok

สปาดวงตา

ตั้งใจจะหาข้อมูลเรื่อง เหตุใด จึงไม่ควรเล่นคอมในห้องมืด

ได้เหตุมานิดหน่อย คือ

1.ความต่างของแสงหน้าจอที่สว่างและแสงรอบห้องที่มืด  ทำให้ดวงตาต้องเปลี่ยน pupil หรือค่าFสลับไปมาระหว่างเอฟกว้างและแคบ จึงทำให้ pupil จะเสื่อมเอา (อันนี้อ่านมา)

2.ห้องที่มืดจะหลอกให้ pupil เปิดออกกว้าง แสงสว่างจากจอจะพุ่งเข้าสู่ตาได้เยอะ นานๆไปเรตินา หรือCCD ตาจะเสื่อมเอา (อันนี้คิดเอง)

 

นอกจากสองข้อดังกล่าวก็ได้ข้อมูลความเชื่อแถมมาว่า

-การดูทีวีใกล้ๆ ไม่ได้ทำให้สายตาสั้น ตาเสีย คำบอกเล่าที่ได้ยินมาแต่เด็ก (ก็เหมือนเราอ่านหนังสือนะแหละ ระยะเท่าไหร่ ตาก็ปรับโฟกัสและรับแสงสภาพเองได้ แต่แสงรอบทีวีต้องสว่างไม่มืดมากด้วย)

-การอ่านหนังสือในที่แสงน้อยไม่ได้ทำให้ตาเสีย ถ้านั่งอ่านดีดีท่าเหมาะๆ ไม่ให้เกิดความเครียดในกล้ามเนื้อตา

 

เข้ามาที่เรื่อง สปาดวงตา ดีก่า

นานมาแล้วเคยอ่านหนังสือเล่มนึงชื่อว่า สายตาดีไม่ต้องใส่แว่น เค้าเล่าถึงวิธีบริหารดวงตาต่างๆ ประกอบกับวันนี้นั่งค้นข้อมูลแล้วเจอหลายๆข้อที่แนะนำคล้ายกับหนังสือเล่มนั้น จึงขอมาเขียนใหม่ เรียกสปาดวงตาละกัน  จะได้ร่วมสมัย อิอิ เริ่มละนะ

- palmming คือการถูมือให้อุ่น แล้วยกมือสองข้างหันฝ่ามือขึ้น มาวางทับกันตรงช่วงนิ้วทั้งสี่  ให้มือเป็นมุมประมาณฉาก เสร็จแล้วก็ประกบลงที่เบ้าตาของเรา ให้ตาเราสองข้างอยู่ในฝ่ามืออุ่น ๆ  ก้มหน้าลงไป วางศอกลงบนโต๊ะ ให้ดีก็วางบนเข่าเราเอง    ปล่อยจิตให้ล่องลอย    ท่านี้ท่านว่าจะทำให้ดวงตาสบาย คลายเครียด

-sunning คือการนั่งหลับตา หันหน้าเข้าหาดวงอาทิตย์ในช่วงเช้าหรือเย็น เอียงหน้าไปมาให้แสงอาทิตย์ได้กระทบเปลือกตาทั้งสองข้างอย่างเท่าเทียม สัก 5 นาที พอ เดี๋ยวหน้าดำ เป็นการนวดร้อนด้วยพลังธรรมชาติ

-washing คือการให้น้ำเย็นไหลผ่านเปลือกตาทั้งสองข้าง อาจเอียงหน้าเข้าไปหาก้อกน้ำ ทีละด้าน เป็นการนวดเย็นธรรมชาติหลังจากไปนวดร้อนธรรมชาติมาแล้ว

-watching คือการฝึกมองตามนิ้ว ให้สายตาโฟกัสไปที่ระยะไกล แล้วให้เปลี่ยนมาโฟกัสที่นิ้วที่ยืดออกสุดแขนแล้วมองตามนิ้วที่หดเข้ามาแตะจมูก ทำกลับไปกลับมาครับ

-spining ให้กรอกตา ขึ้น-ลง ซ้าย-ขวา และเป็นวงกลมวนกลับไปมา ครับ

-swinging ให้ยืนตรงสายตามองไปที่จุดๆหนึ่งไกลตัวออกไป แล้วโยกตัวไปมาซ้ายขวาซ้ายขวา ช้าๆ เนิบๆ   โดยพยายามอย่าละสายตาจากจุดที่ท่านกำลังมองอยู่

-blinking กระพริบตาครับ การกระพริบตาถี่ๆ จะช่วยให้ตาใสและไม่แห้ง

 

จบแล้วครับ สปาดวงตา ใครไปลองใช้แล้วสายตาดีขึ้นอย่างไรบอกกันด้วยนะครับ