Natty’s blog

Stay hungry. Stay foolish. — Steve Jobs

ปัญหา Library not loaded: libmysqlclient.18.dylib ใน Mac

Posted by natty on November 16, 2011

ใช้ lib MySQL-python แล้วเจอ error ประมาณว่า

ImportError: dlopen(/Users/natty/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
  Referenced from: /Users/natty/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so
  Reason: image not found

สำหรับ Mac เราลองแก้โดยรันคำสั่งนี้ใน command

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/

แล้วก็ Work เลย
อ้างอิงจาก http://www.blog.bridgeutopiaweb.com/post/how-to-fix-mysql-load-issues-on-mac-os-x/

Posted in Uncategorized | Leave a Comment »

2010 in review

Posted by natty on January 4, 2011

The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads This blog is doing awesome!.

Crunchy numbers

Featured image

A helper monkey made this abstract painting, inspired by your stats.

A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 6,500 times in 2010. That’s about 16 full 747s.

 

In 2010, there were 3 new posts, growing the total archive of this blog to 29 posts.

The busiest day of the year was October 11th with 77 views. The most popular post that day was Google Code Fest 2010 #DevFest, What I have got?.

Where did they come from?

The top referring sites in 2010 were google.co.th, narisa.com, twitter.com, agile66.com, and blognone.com.

Some visitors came searching, mostly for twitter facebook, facebook twitter, twitter to facebook, twitter บน facebook, and facebook to twitter.

Attractions in 2010

These are the posts and pages that got the most views in 2010.

1

Google Code Fest 2010 #DevFest, What I have got? October 2010

2

[twitter] facebook-twitter May 2009
1 comment

3

[PHP] การเพิ่ม Performance ให้กับ PHP+MySQL ด้วย xDebug,APC,memcache June 2009
13 comments

4

[PHP] Class สำหรับ convert DBF to MySQL September 2008
7 comments

5

[Jasper] run Jasper Report from Java class October 2008
2 comments

Posted in Uncategorized | Leave a Comment »

Google Code Fest 2010 #DevFest, What I have got?

Posted by natty on October 11, 2010

I’m so proud about our work today with @juacompe at Google Code Fest 2010 about Maps and Twitter Integration (customized from Maps and Flickr integration). Please find the link below to see what we have done in only almost 1 hour in GMap v.3 session!

Thanks Shawn Shen for his kindness, talk, and advise.

https://sites.google.com/site/juacompe/google-code-fest-2010

What I have got from #DevFest

- Knowledge about GMap API, Google chrome extension, Buzz, Social API, Froyo android, HTML5 .. etc.
- Google Maps and Twitter integration code
- A bean bag from Q&A session (question about google chrome update period and version: 6 and 6)
- A google map T-shirt from GMap API session from Shawn Shen, Developer Advocate (while @juacompe got a chrome extension T-shirt)
- A google chrome T-shirt from devfest registration
- A google chrome book
- A google chrome sticker (I put it on my notebook cover already :D )
- Business cards from Shawn Shen, Developer Advocate at Google California and Alan Noble, Engineering Director at Google Australia and New Zealand

Thanks Google!

Posted in Uncategorized | Leave a Comment »

Agile66: A Great Pyramid of Agile / Planning poker

Posted by natty on March 19, 2010

ช่วงนี้ไม่ค่อยได้มา blog ของตัวเองเท่าไหร่ มัวแต่ไปเริงร่าที่ blog ชาวบ้าน เอาลิงค์มาแปะละกันค่ะ

- Planning poker มาโหวตกัน
- A Great Pyramid of Agile

Posted in Uncategorized | 2 Comments »

[grails] AcegiSecurity Plugin ในรูปแบบ Controller Annotations

Posted by natty on February 11, 2010

ลิงค์สำหรับ การใช้งาน AcegiSecurity Plugin ในรูปแบบ Controller Annotations ณ grails66

by natty

Posted in grails | 3 Comments »

วันแย่ๆ อีกวันหนึ่ง

Posted by natty on December 27, 2009

วันนี้ เป็นวันที่สูญเสียคนที่เคารพมากที่สุดท่านหนึ่ง

แม้เราจะไม่ใช่ญาติสนิทชิดเชื้อในสายเลือดเดียวกัน แต่เก๋ก็เคารพรักอาม่ามากๆ

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

ขอให้อาม่ามีความสุขบนสรวงสวรรค์ เก๋เชื่อว่าทุกคนที่ยังมีชีวิตอยู่ จะไม่ทำให้อาม่าผิดหวังเสียใจ จะทำเหมือนที่อาม่าต้องการ
เก๋เองก็เหมือนกันค่ะ

รักอาม่าค่ะ

Posted in general | 4 Comments »

ทำ readmore ใน blogger

Posted by natty on November 25, 2009

วิธีการทำ page break หรือ readmore ใน blogger ไปอ่านเจอมา เลยเอามาฝากค่ะ

วิธีทำลิงค์ Read More… ใน blogger

Posted in Uncategorized | Leave a Comment »

ทดสอบจาก google docs

Posted by natty on November 25, 2009

เทสการแก้ไขจาก google docs อีกรอบค่ะ

Posted in Uncategorized | Leave a Comment »

[PHP] การเพิ่ม Performance ให้กับ PHP+MySQL ด้วย xDebug,APC,memcache

Posted by natty on June 10, 2009

เขียนโปรแกรมเล็กๆ ไม่ค่อยมีปัญหาอะไร แต่เมื่อไหร่ก็ตาม ที่งานของเรา ต้องทำงานกับข้อมูลเยอะๆ และ Application ขนาดใหญ่ มีหลาย module โดยเฉพาะ หากใช้ object-oriented ด้วยแล้ว แม้จะมีประโยชน์ในด้านของการออกแบบก็จริง แต่ด้านของ performance ก็มีผลกระทบในแง่ร้ายเช่นกัน ดังนั้น จึงควรที่จะเรียนรู้เกี่ยวกับการ config ค่าต่าง ๆ ทั้งในส่วนของ PHP และ MySQL ค่ะ

blog นี้จะไม่กล่าวถึงการ install ในขั้นต้นนะคะ โดยเป็น Apache Server บน linux ค่ะ

Read the rest of this entry »

Posted in PHP | 17 Comments »

[twitter] facebook-twitter

Posted by natty on May 17, 2009

ด้วยความพยายามจะ sync facebook กับ twitter เข้าด้วยกัน เพื่อที่จะอัพเดท status ครั้งเดียวแล้วไปอัพเดททั้ง facebook และ twitter  ซึ่งตอนนี้ก็ทำได้แล้วโดยที่

  • อัพเดทจาก twitter แล้วจะไปอัพเดท status ใน facebook อัตโนมัติ
  • อัพเดทจาก twitter application ใน facebook แล้วไปอัพเดทใน twitter อัตโนมัติ
  • อัพเดทจาก facebook status แล้วอัพเดทอัตโนมัติใน twitter <– ยังไม่แน่ใจว่าได้หรือยัง

อ่ะ ก่อนอื่น มาทำให้อัพเดทจาก twitter ไป facebok ก่อนละกัน ง่ายๆ เลย แค่ใช้ application:http://apps.new.facebook.com/twitter/ ใส่ user/pass ของ twitter ของคุณ แค่นี้ก็เสร็จแล้ว หากคุณอัพเดท twitter จากหน้า application ใน twitter ใน facebook นี้ ก็จะไปอัพเดทใน twitter ของคุณ และจากคุณอัพเดทจาก twitter นอก facebook มันก็จะอัพเดทไปถึง facebook status เลย

และวิธีทำให้ อัพเดทจาก facebook status แล้วไปอัพเดท twitter อัตโนมัติ ทำได้ดังนี้ค่ะ

  1. เข้า twitter feed:http://twitterfeed.com แล้ว login เข้า twitterfeed (กรณีนี้เก๋ใช้ openid ในการ login ค่ะ)
  2. เลือก go to my twitterfeeds
  3. เลือก create new feed
  4. เอาลิงค์ไปใส่ที่ RSS feed url โดยไปที่หน้า facebook ของตัวเอง เข้าลิงค์ http://www.facebook.com/notifications.php แล้วไปที่ your notification ด้านล่างขวา ให้ copy ลิงค์นั้นมา
  5. ตั้งค่าตามต้องการ

หวังว่าคงเป็นประโยชน์กับทุกท่านนะจ้ะ

ส่วนหนึ่ง อ้างอิงจากที่นี่ค่ะ http://blog.kristibarrow.com/2008/11/19/how-to-update-twitter-with-your-facebook-status/

Posted in configuration | 1 Comment »

 
Follow

Get every new post delivered to your Inbox.