[01:38] <fairuz> pagi pagi
[01:54] <excalibr> \o/
[02:09] <excalibr> apa cara org biasa guna utk pendekkan title/long string
[02:09] <fairuz> pakai acronym? :D
[02:09] <excalibr> abcdefghijklmnopqrstuvwxyz
[02:09] <excalibr> bukan..yg ada ... tu
[02:10] <fairuz> truncate lepas 25 character 
[02:10] <fairuz> lepas tu letak ...
[02:10] <fairuz> benda mcm tu eh?
[02:10] <excalibr> abcde..xyz
[02:10] <fairuz> aa
[02:11] <excalibr> mana lagi elok..masukkan ekor dia sekali ke atau potong ekor
[02:11] <excalibr> lol
[02:11] <fairuz> personally aku prefer masukkan ekor
[02:16] <excalibr> (y) good idea
[02:22] <fairuz> macam menarik gak koding.com nih
[02:22] <fairuz> cloud2 
[07:10] <excalibr> fairuz, tkda screenshot ke
[07:10] <excalibr> malas nak reg ^_^
[07:15] <fairuz> ala dia bagi ko VM 
[07:15] <fairuz> so takde gune jugak nak screenshot :D
[07:15] <fairuz> facebook + Ubuntu VM
[07:15] <excalibr> weh ni
[07:15] <excalibr> http://jsfiddle.net/MKyXU/
[07:15] <fairuz> ni summary dia bagi aku
[07:16] <excalibr> what do you think psl logik code tu
[07:16] <excalibr> klik Run
[07:18] <fairuz> first observation
[07:18] <excalibr> fairuz, js tu senang nak rfc tapi actual code dlm c
[07:18] <fairuz> ko tak handle case str kurang dari 32 character
[07:18] <fairuz> patut terus return str dlm function tu
[07:19] <fairuz> letak else return str; terus pun ok
[07:19] <excalibr> alamak..terlupa
[07:22] <fairuz> pastu kalau ko ada contoh string mcm ni, dia jadi pelik sikit
[07:22] <fairuz> abc xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[07:22] <excalibr> js ni var dlm func otomatik jadi local scope kan?
[07:23] <fairuz> aah
[07:26] <fairuz> jadi programmer plak ke encik excalibr
[07:31] <excalibr> haha..takat code 2-3 line je boleh la..nothing big
[07:33] <fairuz> keke
[07:33] <fairuz> adeh laptop tersangkut2
[07:39] <excalibr> mmm..blur la..camna nak buat dgn yg abc xxxx tu
[07:40] <excalibr> aku rasa cara aku chop tail tu mcm tak kena
[07:42] <fairuz> kira ko kena kira jugak length antara last " " dengan end of string
[07:42] <fairuz> truncate jadi 4 jugak ke
[08:17] <excalibr> http://jsfiddle.net/MKyXU/2/
[08:19] <angch> ? https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow
[08:19] <angch> text-overflow: ellipsis
[08:22] <excalibr> angch, i only want to get the logic right :D i wont be using js in actual code
[08:24] <angch> excalibr, there's probably a way to do it in a line of regexp.
[08:33] <excalibr> angch, im all ears for idea ^_^
[08:33] <angch> excalibr, *shrug* left as an exercise for the reader.