Thursday, February 26, 2009

I am a quiet person

And a very private one too. Believe it or not, I was a class clown when I was 13 for that odd 6 months of my life. I moved on after that realizing there was no fun in it. Sure I had lots of friends and it was fun in a way that I had alot of people to talk to when I felt like it but real friends was what I was looking for. Besides, I wasn't being myself.

I have this one thing about me that bothers me alot. Sometimes it can a be a nuisance, but probably a virtue in some other different circumstances. But still it bothers me. I can be very direct with my words. Now, old friends know this very well and they put up with me everytime (I hope), which I'm very grateful for. New friends on the other hand are very hard to tackle. Usually I end up being quiet as to restrain myself from saying stuff that might hurt other people's feelings. Or sometimes, the words escape my mouth halfway but then I stop and making up other words to finish the sentence that don't make sense and I get these faces staring back at me. To make things worse is my natural tone of voice. If I don't hold eye contact while conversing I swear the person I talk to would think I was mad at them for something. But like I said before, this isn't the case with old friends.

Ok now I sound like I scold people for a living... heh!

Thursday, February 12, 2009

Yay it's a post filler! *cough* umm... Sad Eyes

Some answers make sense, some not but it was fun.

RULES

1. Put your music player on shuffle.
2. For each question, press the next button (ONLY ONCE!!!) to get your answer.
3. YOU MUST WRITE THAT SONG NAME DOWN NO MATTER HOW SILLY IT SOUNDS - even if it is incredibly embarrassing.
4. Tag 15 friends who might enjoy doing the same as well as the person you got the note from.


1) IF SOMEONE SAYS "IS THIS OKAY" YOU SAY...
Addicted To Me - The Click Five

2) WHAT WOULD BEST DESCRIBE YOUR PERSONALITY?
All I Wanna Do - Sheryl Crow (oh yeaaaaaaaaaahhh!!)

3) WHAT DO YOU LOOK FOR IN A GUY/GIRL?
Nothing Else Matters - Lucie Silvas

4) HOW DO YOU FEEL TODAY?
Cry For You - September

5) WHAT IS YOUR LIFE'S PURPOSE?
Landslide - Dixie Chicks (heyyyy apa landslide2 nih! certainly not my purpose)

6) WHAT IS YOUR MOTTO?
I'll Never Love This Way Again - Vonzell Solomon

7) WHAT DO YOUR FRIENDS THINK OF YOU?
Stop - Spice Girls

8 ) WHAT DO YOU THINK ABOUT VERY OFTEN?
7 Things - Miley Cyrus

9) WHAT IS 2+2?
If I Let You Go - Westlife

10) WHAT DO YOU THINK OF YOUR BEST FRIEND?
Takbir raya aidilfitri (hahahahahah forgot that I have my raya song list too there)

11) WHAT DO YOU THINK OF THE PERSON YOU LIKE?
What Becomes of The Brokenhearted - Westlife

12) WHAT IS YOUR LIFE STORY?
Bunga Bunga Cinta - Misha Omar (HAH??!!)

13) WHAT DO YOU WANT TO BE WHEN YOU GROW UP?
I'm A Slave For You - Britney Spears

14) WHAT DO YOU THINK WHEN YOU SEE THE PERSON YOU LIKE?
I Saw You - Josh Kelly

15) WHAT DO YOUR PARENTS THINK OF YOU?
The Anthem - Good Charlotte (good god! hahahhaha oh yea oh yea!)

16) WHAT WILL YOU DANCE TO AT YOUR WEDDING?
Pulanglah - Aishah (oklaaa I can still slow dance)

17) WHAT WILL THEY PLAY AT YOUR FUNERAL?
Someone Else's Life - Joshua Radin

18) WHAT IS YOUR HOBBY/INTEREST?
Bold as Love - John Mayer

19) WHAT DO YOU THINK OF YOUR FRIENDS?
Yellow - Coldplay (hahahahahah I have yellow friends)

20) WHAT'S THE WORST THING THAT COULD HAPPEN?
All That I Need - Boyzone

21) HOW WILL YOU DIE?
My Sacrifice - Nickelback

22) WHAT IS THE ONE THING YOU REGRET?
Aidilfitri di Alaf Baru - Siti Nurhaliza (ummm... why would I regret aidilfitri?)

23) WHAT MAKES YOU LAUGH?
El Bacan Yol - Pablo Bachata

24) WHAT MAKES YOU CRY?
Billie Jean - David Cook

25) WILL YOU EVER GET MARRIED?
Corazon de Melon - Son Damas (melon heart??)

26) WHAT SCARES YOU THE MOST?
It Had To Be You - Elliot Yamin

27) DOES ANYONE LIKE YOU?
Ain't No Other Man - Christina Aguilera

28) IF YOU COULD GO BACK IN TIME, WHAT WOULD YOU CHANGE?
Come Back To Me - Vanessa Hudgens (why do I even have her on my list?)

29) WHAT HURTS RIGHT NOW?
Can't Fight This Feeling Anymore - Air Supply

30) WHAT WILL YOU POST THIS AS?
Sad Eyes - Josh Rouse

Tuesday, February 3, 2009

Bash.org IRC quotes in terminal

You know Bash.org right? The place where you can find funniest IRC quotes said by real people all over the world. So I just want to read a random quote everytime I fire up my terminal, to start my day, sort off. But yea if I'm so inclined, I can get it by ./getquote anytime too.

Some screenshots follows:


Media_httpblogcawanpi_hdbwr


Media_httpblogcawanpi_iqwjq


Media_httpblogcawanpi_fsuhq



You get the idea right. Just that if I want to read another quote in terminal, I have to cd ~/<script folder> and ./getquote from there (I keep my scripts organized). I'm kinda lazy so I just Ctrl-Shift-T, Ctrl-Shift-W all the time. :p Works for me.

This is what I did. I have 2 main files:

  • ./import - this one is for importing the quotes all at once from any of their RSS feed provider. Then I use xmlstarlet to extract information I need and format it the way I want (so painlessly, I might add). and then save it as plain text file.



# retrieve quotes from bash.org and save it to bashquotes.xml
# -one of the RSS provider http://quotes.sydv.net/
echo "Retrieving from bash.org..."
wget -O bashquotes.xml http://feeds2.feedburner.com/top100-bash-quotes

# extract the feed to file bashquotes
echo "Extracting RSS feed..."
xmlstarlet sel -t -m '//item' -o '==%%==' -v 'description' -n  bashquotes.xml > bashquotes
echo "RSS feed saved in bashquotes"

# replacing html entities to proper character for viewing
sed 's/&lt;/' bashquotes > bashquotes2
sed 's/&gt;/>/g' bashquotes2 > bashquotes
sed 's/<br />/n/g' bashquotes > bashquotes2
sed 's/&quot;/"/g' bashquotes2 > bashquotes
sed 's/&nbsp;/ /g' bashquotes > bashquotes2
sed 's/<img.*>//g' bashquotes2 > bashquotes.txt
echo "bashquotes.txt ready"




  • ./getquote - this one is for reading off that text file and get any one from the quote.



# reading from bashquotes.txt
old_IFS=$IFS
IFS=$'==%%=='
quotes=($(cat bashquotes.txt)) # array
IFS=$old_IFS

# form an array
j=0
for ((i=0; i



  • To get it displayed in the terminal, I appended this in my ~/.bashrc



echo "";
echo "--irc quotes--"
cd /home/cawanpink/bash/quotes/
./getquote
echo -e "================================"
home



Simple right. This is the result of me  being blocked by an SVN server earlier on, that in a way has cut me off from doing any real work. Heh.

Now I know the code is not the most elegant, most of them are copy and paste and modified but all in all it's worth my time coz the quotes are just freakin hilarious!

Note: my terminal is a modified version of this - I had wanted to post about it when I did it but too lazy now.

Monday, February 2, 2009

Dinner

[caption id="attachment_1488" align="alignleft" width="300" caption="Grilled chicken & tomato, with mushroom sauce"]

Media_httpblogcawanpi_hxvug

[/caption]

Fairly easy to do. Normally I take 2 pieces but today I didn't have lunch so there you go. Wish I had more green vegetables in the fridge - pepper and the like. Besides, I intend to stay up all night tonight to finish up some pending tasks so I need the energy boost.

I didn't catch any sleep last night, busying myself watching Christina Aguilera's Back To Basics tour. Whoa some tour! And then I tried installing Gyach. I have it running now but oh my god what an ass that app is. I should submit patches or something.

Tomorrow I'll have grilled steak, maybe. And at night grilled seafood. Yeah! Ever since my mom bought me that grilling pan the kitchen felt like heaven now. I mentioned to her only once that I had been looking for that pan, when I already had forgotten about it, it's on my bed one day. Hmm... mothers are timeless! For the record I did make an effort to buy it myself and I didn't ask her to buy it for me, but every time I found one it's like RM500 or something. Why in the world people high-price these days.

It's been so long since I had grilled pineapple. Sweet caramelized pineapple slices, dipped in chocolate sauce... oooohhh.... tomorrow it is!