Is AIT Heaven or Hell?

I have joined Asian Institute of Technology, Thailand(AIT) as a Master's student at the school of Science Engineering and Technology(SET)

I have been granted GMSARN scholarship which pays for all my fees and my living here but I must delicate 10% of my time to work for GMSARN project.

I live with 2 of friends from SIU in a house at the student village 1. The house has 3 bedrooms which none of them has AC. Early living there was very uncomfortable but now it is fine.



We can find many restaurants in AIT. Basically you can eat in any restaurant but the cafeteria. Why?

Cafeteria is the biggest canteen in AIT which is now operated by Sodexo(a company which manages all facilities here)



If you are happy with tasteless noodle menu, rice menu with less meat, and very expensive food. You should have your meal here. A certificate that the cafet should deserve ' is CLEAN FOOD, TERRIBLE TASTE. If ministry of health reads my block, please consider issue it the certificate.

Tired now...

Wish you all a good day :)
Nopash

Workaround for Google base "Missing required attribute: condition" for eBay feed

Problem

As the Google base has required condition attribute since June 30, sellers cannot upload their eBay store feed to it. It will give an error "Missing required attribute: condition".

Cause

There is no <g:condition> attribute in the eBay feed.

Solution

A. Download the xml file with your store listings:
Download your store feed and save as an xml file
http://esssl.ebay.com/GetListings/yourstorename?fmt=g

or

1. go to My eBay -> Manage my store
2. on the left Marketing tool menu, click Listing feeds
3. Find the line

Your Google Base-specific file will be located at http://esssl.ebay.com/GetListings/your_store_name?fmt=g

4. right click on the link and select 'save link as' or (save target as in IE) then change the extension of the file to .xml instead of .htm and save it to your computer.


B. Edit the downloaded XML file
1. Right click on the downloaded XML file and select "Open With" then select Notepad.
2. In Notepad, press Ctrl-H to open the find & replace box. Enter "condition>" in the find field and "g:condition>" in the replace field (exclude the quotation marks). Click Replace all.
3. Save the file with File --> Save.

This section is not done yet because
the "g:condition" attribute the only acceptable values are "new", "used" and "refurbished." but eBay values can be "used", "pre-owned", "like new", "very good", "good", "acceptable", "see description" etc.

You have to replace all of the incompatible values with either
"new", "used" and "refurbished." otherwise you cannot insert the items with incompatible attribute into Google Base.

Suppose I want to replace all "see description" as "new". I would press
Ctrl-H to open the find & replace box. Enter "<g:condition><!--[CDATA[see description]]--></g:condition>" in the find field and "<g:condition><!--[CDATA[new]]--></g:condition>" in the replace field (exclude the quotation marks). Then click Replace all.

C. Upload your edited XML file to Google
1. Login to your existing Google Base account.
2. Click tab "Data Feeds"
3. Click link "Manual: Upload File"
4. Point Google to the XML file that you have edited it in B.


Now you should see no error :)

If you think this article is helpful, please kindly buy me a cup of coffee :)




Best,
Nopash

Visit my eBay store at www.eDecalShop.com

เนิร์ด (Nerd) vs กี๊ก (Geek) vs ดอร์ก (Dork)

วันนี้มีคำศัพท์มาฝากกันครับ เป็นคำศัพท์เกี่ยวกับพวกกลุ่มคนเฉพาะ

เนิร์ด (Nerd) หมายถึง กลุ่มคนที่มีระดับสติปัญญาสูงกว่าเกณฑ์มาตรฐาน พูดง่ายๆก็คือฉลาดกว่าคนทั่วๆไป และชอบในเรื่องที่ชาวบ้านเขาไม่สนใจกัน ส่วนมากก็จะเป็นเรื่องวิทยาศาสตร์และคณิตศาสตร์ ซึ่งคำนี้จะใช้กันแพร่หลายที่สุดในอเมริกา ภาพลักษณ์ของพวกเขาก็คือ นึกภาพคนใส่แว่นหนาเตอะ ขลุกอยู่กับกองหนังสือทั้งวันนั้นแหละใช่เลย แต่ภาพลักษณ์ด้วยส่วนมากก็จะเป็นชายหนุ่มใส่แว่นหนากรอบดำ มีไม้โปรเทกเตอร์ติดกระเป๋า ใส่ชุดที่เป็นทางการมากเกินไป และบางครั้งภาพที่ออกมาก็เป็นคนที่ไม่รักษาความสะอาด และถ้าไม่ผอมก็อ้วนเกินไป เป็นคนเข้าสังคมไม่เก่ง ไม่สามารถสนทนาเรื่องที่ไม่ใช่เรื่องเทคนิคกับคนอื่นๆได้

ตัวอย่างที่เห็นได้ชัดคือ เวลม่า ดิงก์เลย์ ในเรื่อง สกูบีดู Tobey Maquire ในบท Peter Parker จาก Spider man Emma Wattson กับบท เฮอร์ไมโอนี่ ในเรื่องแฮร์รี่ พอตเตอร์

นอกจากนี้ยังมีศัพท์ที่ใกล้เคียงกับ เนิร์ด ดังนี้

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

ดอร์ก (Dork) เด็กกลุ่มนี้ค่อนข้างแตกต่างกับสองกลุ่มข้างบน เพราะมีลักษณะที่ค่อนข้างชัดเจน เพราะดอร์กจะออกแนวเป็นคนที่ซุ่มซ่าม เป๋อ กะเปิ๊บกะป๊าบ ไปที่ไหนก็จะสร้างเสียงหัวเราะอยู่เสมอ ด้วยความเฉิ่มและตลกของพวกเขานี้เอง

เอามาจาก wikipedia

สัญลักษณ์ i'm บน Windows Live Messenger




i’m is a new initiative from Windows Live™ Messenger. Every time you start a conversation using i’m, Microsoft shares a portion of the program's advertising revenue with some of the world's most effective organizations dedicated to social causes. We've set no cap on the amount we'll donate to each organization. The sky's the limit. So any time you have an i’m™ conversation using Windows Live Messenger, you help address the issues you feel most passionate about, including poverty, child protection, disease, and environmental degradation. It's simple. All you have to do is join and start an instant messaging conversation. We'll handle the donation.

คือไม่เคยสนใจจนกระทั่งวันนี้ครับ สรุปความหมายจากย่อหน้าข้างบนน่ะครับ คือเมื่อคุณเล่น windows live messenger แล้วคุณใส่สัญลักษณ์นี้แสดงขึ้นในส่วนของ display name ของคุณ Microsoft ก็จะเอากำไรส่วนหนึ่งของค่าโฆษณาที่ได้ มาบริจาคให้กับองค์กรการกุศลที่คุณได้เลือกไว้ครับ

วิธีใส่ i'm หน้าชื่อ display ก็แสนจะง่ายครับ ขั้นแรกเรามาดูโค้ดกันก่อน

Text Code Cause
*red+u American Red Cross
*bgca Boys & Girls Clubs of America
*naf National AIDS Fund
*mssoc National Multiple Sclerosis Society
*9mil ninemillion.org
*sierra Sierra Club
*help StopGlobalWarming.org
*komen Susan G. Komen for the Cure
*unicef The US fund for UNICEF

สมมุติว่าผมต้องการบริจาคให้ National AIDS Fund ผมก็ตั้งชื่อ display ของผมว่า

*naf Nopash

ก็จะเห็นเป็น

i'm Nopash ครับ

ทีนี้พอผม Online ขึ้นมา รายได้ส่วนหนึ่งจากค่าโฆษณาที่ MS ได้ก็จะไปบริจาคให้ National AIDS Fund แล้วล่ะครับ

ขอให้ทุกท่านมีความสุขนะครับ

PHP Class Structure

โพสเก็บไว้ เผื่อใช้อ้างอิงตอนหลัง PHP class structure ครับ
class Page {
var
$Title;
var
$Keywords;
var
$Content;

function
Display( ) {
echo
"\n\n";
$this->DisplayTitle( );
$this->DisplayKeywords( );
echo
"\n\n\n";
echo
$this->Content;
echo
"\n\n\n";
}

function
DisplayTitle( ) {
echo
"<title>" . $this->Title . "</title>\n";
}

function
DisplayKeywords( ) {
echo
'<meta name="keywords" content="">. $this->Keywords . '">';
}

function
SetContent( $Data ) {
$this->Content = $Data;
}
}

Now, at first glance this looks pretty simple. And you know what? It is. Its just basic PHP code wrapped into a class. Let me point a few things out before we go any farther though.

VAR -
All variables declared in the class must be placed at the top of the class structure, and preceeded with the VAR statement.

$THIS -
$this is a variable that incidates the current object. That way, the object knows how to find itself while running functions contained within it.
For instance, $this->Keywords gets the data from the $Keywords variable in the object. You'll also notice that when using variables contained
within a class, you can't use the $ to reference them - But you have to use it to reference the object itself.

Related Posts Plugin for WordPress, Blogger...