Archive

Archive for May, 2014

Android library

May 23, 2014 Leave a comment

Smoothie

Y2cCq2m.png (960×400)

เป็น Library ที่ช่วยในเรื่องการทำ AsyncListView และ AsyncGridView

รายละเอียด : http://lucasr.org/2013/01/06/introducing-smoothie/

 

QuiltViewLibrary

aJhsOcD.png (350×510)

https://github.com/jacobmoncur/QuiltViewLibrary

Categories: Android

แก้ Function Character Limiter ใน Codeigniter ให้รองรับภาษาไทย

May 20, 2014 Leave a comment
if ( ! function_exists('character_limiter'))
{
    function character_limiter($str, $n = 500, $end_char = '…')
      {
           if (mb_strlen($str, "UTF-8") < $n)
           {
               return $str;
           }
 
           $str = preg_replace("/\s+/u", ' ', str_replace(array("\r\n", "\r", "\n"), ' ', $str));
 
           if (mb_strlen($str, "UTF-8") <= $n)
           {
               return $str;
           }
 
           $out = "";
           foreach (explode(' ', trim($str)) as $val)
           {
               $out .= $val.' ';
 
               if (mb_strlen($out, "UTF-8") >= $n)
               {
                   $out = trim($out);
                   return (mb_strlen($out, "UTF-8") == mb_strlen($str, "UTF-8")) ? $out : $out.$end_char;
               }
           }
     }
}

Code: http://pastebin.com/AzWwswpt

UX Designer VS UI Designer

May 7, 2014 Leave a comment
UX-Inforgraphic

UX Designer VS UI Designer

Categories: ETC