OMFG, tickle your mind!
Biasanya aku tidak pernah ambil peduli akan hal-hal lain di luar IT. Tetapi, kadangkala aku juga tergelitik dan gemmesss bukan main terhadap peristiwa-peristiwa yang terjadi di luar sana.
Barusan saja aku baca post di Tausyiah275(coba ini klo link sebelah gk jalan). Tak habis pikir aku. Bear in your mind, I’m no Gusdur fan or anything and I’m not talking about any particular religion here. Thus, you don’t have to bother yourself by asking me about my competency in any religous manners. Tak habis pikir aku, jika seorang Gusdur bilang bahwa: "Kitab suci yang paling porno di dunia adalah Al Qur’an", kemudian kita akan segera menganjurkan Gusdur untuk bertobat dan segala macamnya?
Oh My Fucking God (terlalu gemes untuk kusingkat), apakah pernyataan seperti itu akan anda telat bulat-bulat mentah-mentah? Oh My Fucking God, itu artinya kan bisa macem-macem. Pernyataan tersebut bisa jadi adalah sebuah otokritik. Pernyataan itu bisa jadi adalah suatu gelitik untuk membuat anda berpikir: apakah ibu menyusui anaknya dengan mengeluarkan teteknya terus anda bisa bilang bahwa ibu tersebut adalah cabul?
Oh My Fucking God, apakah semuanya harus ditelan bulat-bulat mentah-mentah?! Don’t you think that there’s something to read between the lines?
sex^Hd
Given this text stream:
SELECT md.Access, md.Allowance FROM SomeTable md ;
I want to translate "table.FieldName" to "table.FieldName AS FieldName"
Using this script below:
#!/bin/sed -rf
# Transfrom table.FieldName to table.FieldName AS FieldName
# sed sux!
# :foo
# {
# s/\n/ /g
# s/\t/ /g
# s/\s+/ /g
# N
# bfoo
# }
:control
{
/^SELECT$/{
d
n
}
/^FROM*/{
N
b_dropall
}
/./ {
#central processing
#N
#s/\n/ /g # remove \n
#s/\s+/ /g # keep one space only
#s/^\s+//g # throw preceeding spaces
b_cpu
}
}
b_end
:_dropall
{
N
d
b_dropall
}
:_cpu
#s/([\t\s]*(.*?)\.?(.*?))\,?\n/\2 AS \2/g
#s/([\t\ ]+)(((.*?)?(\.?(.*?))+)\,?)+/\0 AS \4/g
#s/^\s*(.*(\.(.*))){1}(\,)?/\0|\1|\2|\3|\4/g
s/^\s*(((.*?)\.)?((.*?)))\,?/\0|\1|\2|\3|\4|\5/g
I managed to get:
[geek@toni GTFW]$ ./postgres.sed < ./test
md.Access,|md.Access,|md.|md|Access,|Access,
md.Allowance|md.Allowance|md.|md|Allowance|Allowance
You see, I don’t want a greedy match, but anyhow I still got it. Now where those people who claims nothing better than sex^Hd?!
Reference:
- http://sed.sourceforge.net/grabbag/tutorials/do_it_with_sed.txt
- http://www.grymoire.com/Unix/Sed.html
Uninstalling make install
Few days ago, I was on such an urge to install php4 side by side with php5 in my PC. I was about to test my code which is apparently not working on php4. Since I don’t have php4 on my localhost, and since asking for space on my office server was somehow not in my option list, I decided to compile php4 from source. I barely know nothing about keeping two version of php in one machine. So luck was all that I was hoping for.
CSS and Amarok
It’s obvious. I get bored fast. Thus, I always found myself looked like a monkey when having nothing to do. Finally, today wasn’t so bad. I did several nice thing. I fix kopete-now-listening script for amarok. It was a fatal but silly mistakes. I missed some quotes within the script :D.
Other thing, I hack my first amarok theme out of danna. I don’t remember why I choose danna as a base theme. I dunno either why I hack it tobe a last.fm theme. Enough words. All I can say is: it was really a painful hack. I’m not gonna switch to a web desiner anytime soon :p. See yourself, my amarok last.fm theme!
This was only one part out of three part that I need to create (copy and hack from danna). So it’s obvious, it’s far away from complete :D. Please be patient
A small update. This theme has been released via kdelook.org.
Vi(m)’s Lesson
Don’t bother making a joke of being a diehard vi(m) fanatic if you cannot not even write a correctly aligned source code in it. Believe me, it’s not funny at all.
Or, was it Vi(m) who’ve been over generous when dealing with tab and spaces? Or was it you who mix tab and spaces? Which ever the truth is, reality won’t change. It won’t be readable unless in Vi(m). I think Vi(m) has done some sort of vendor locking mechanism.
You evil Vi(m), shame on you!
Man of the Day
It’s definitely Juper Takasi Perangin-angin. Makasih bro udah mau melatih (baca: dipaksa melatih) aku tenis meja hari ini :D. Jangan takut lagi ya klo tak ajak maen (baca: dipaksa melatih).
Aku doain laptopnya segera terwujud, okeeee? Aminnnn
Bang Joe ganteng deh, awww
Long Weekend Recap
It was a darn long weekend. Thursday to Sunday, four days in a row. So, how’s my achievement during the long weekend?
As you can guess, off course :p. It almost equal to zip, nil. I only played a bit with my long due task and accidentally crashed into some bugs. It was last for just a few hour though. I’ve found a work around but I just stopped there :p.
Other thing? These past few days had been my debut of playing table tennis. Last time I play table tennis was during KKN. And if I traced back further, I can recall playing table tennis during elementary school :). And to sum all the play, I made no progress at all :p.
What about the task that spans across this long weekend? I’ve made a tinny weeny progress before the long weekend started. But I’ve never touch any code ever since :p. Maybe tonight is the perfect time to make an excuse :D.
So, what else to tell. I guess there are no more. stwn brought me some anime DVD yesterday. But it was not as attractive as I’ve expected. not stwn fault, it’s just the story that just can’t get into me.
Okay, bath time!
PS:
Here is some mplayer tips and tricks
[geek@toni ~]$ mplayer smb4k/ANDI/Macross/VTS_01_2.VOB -aid 131 -sid 0
Play VTS_01_2.VOB with audio ID 131 (japanese in my case) and sid 0 (english subtitle in my case). You can use mplayer -identify to get infos on available audio. I was forced to use mplayer because somehow the subtitle was not correctly rendered (it was big and not centered and wrapped on both screen edge) in VLC and xine.











