Ekkmanz in geeky life!

22 กรกฎาคม 2013

AngularJS reusing controller

Filed under: personal — ekkman @ 12:22

Of all I’ve seen, this looks simplest to use:

https://gist.github.com/wookets/4718161

No this javascript madness.

12 เมษายน 2013

Piano resources (Thai and Eng)

Filed under: personal — ekkman @ 12:41

Music sheet notation:

http://en.wikipedia.org/wiki/List_of_musical_symbols

บันไดเสียง:

http://www.oknation.net/blog/print.php?id=757533

http://en.wikipedia.org/wiki/Key_signature

8 กุมภาพันธ์ 2013

Return to old-school blog

Filed under: personal — ekkman @ 00:19

. . .

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

2 พฤษภาคม 2012

Drawing bordered rectangle in GIMP in simple steps

Filed under: personal — ekkman @ 23:47

Once in a while you may have to do this and that editing on photos / pictures on Ubuntu. Once I want to put a simple shape on my image but how to do it on GIMP since it’s default image editing tools on Ubuntu. It’s less (much less perhaps) than obvious how to do this on GIMP. I present you with 3 options:

  1. Follow this simple easy 9 steps! http://pbs01.wordpress.com/2007/09/30/145/
  2. Take a look on GIMP documentation itself. It’s simpler; just only 5 steps. http://www.gimp.org/tutorials/Borders_On_Selections/
  3. Installing Pinta (available on Ubuntu software centre) instead. Looking at the screenshot on the website it’s pretty obvious how to draw rectangle http://pinta-project.com/

Dear Canonical, I understand that GIMP is one of the biggest trademark of FOSS image editing tools but if you want to smoothen user experience, consider replace GIMP with Pinta. GIMP is big and GIMP is powerful. That is out of question, sure. GIMP is also not a newbie-friendly program, too! Same thing goes for windows. Ignoring the cost, I still choose Paint.NET over Adobe Photoshop unless I have to do serious editing regularly. Not to say that Photoshop is not powerful but it’s too complicated for most of our everyday uses. 

21 กันยายน 2010

SwingBuilder: Accessing Swing component based on “ID”

Filed under: personal — ekkman @ 17:00

ไม่ได้เขียนมานานล่ะ วันนี้มีเรื่องให้โน้ตเลยสักหน่อยแล้วกันเพราะเวลาเขียน Groovy SwingBuilder มันหา method แอบยาก

เวลาเขียน SwingBuilder แล้วปกติพอเวลาจะ add component ชื่อตัวแปรมันก็จะอยู่ในสโคปของ closure พออยู่นอก scope ก็หาไม่เจอ วิธีแก้คือใช้ id อ้างอิง แล้วใช้ method getVariable(id) ในการเรียก element เอา คิดง่ายๆ ว่าเหมือนกับเขียน HTML แล้วใช้ getElementById()

หน้าถัดไป »

สร้างเว็บไซต์หรือบล็อกฟรีที่ WordPress.com.