Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X
Articles

How To Write Unmaintainable Code

  • Use “asd” or a,b,c as variable names.
  • Use acronyms.
  • Use an alternate vocabulary to refer to the same action, e.g. display, show, present.
  • Randomly capitalize a letter in the middle of a word (e.g. ComputeRasterHistoGram()).
  • Use Åccented characters (e.g. typedef struct { int i;  ínt;} where the second ínt’s í is actually i-acute.
  • Use foreign language dictionaries as a source for variable names.
  • Choose variable names with irrelevant emotional connotation (e.g.: marypoppins = (superman + starship) / god;). #nosense!!
  • Use lower case L to indicate long constants. e.g. 10l mistaken for 101.
  • Consider variant spellings as a variant on the ploy, e.g. mixing International colour, with American color and dude-speak kulerz. If you spell out names in full, there is only one possible way to spell each name.
  • Use misleading names for methods (e.g. a method named isValid(x) should as a side effect convert x to binary and store the result in a database).
I love this article.. #soevil xD
Quotes

يا جبل مايهزك ريح!!

ما همني القـال و القيـل لأن البشر حتى الميت ما يرحمونه !!

Unknown

ما همني القـال و القيـل
لأن البشر حتى الميت ما يرحمونه !!
ما يدرون انهم مجرد ارواح و تندفن
لا عاد تثق بأحد
لأن حتى روحـك رح تخونك
تخرج منك و تبقيك في المقـابر
و تبقى بين الاموات و لسـان البشر
اترك النـاس تتكلم عنك
عسى بكلاهم تعيش بين الملَك
و هم يعيشون
بين فلان قـال و فعـل
و خليهم مثل الريح
ما يقدرون يهزون جبـل

Post

Work hold-ups

Last Thursday (11th August) I had to contact IT department regarding domain name transfer from the old server to a new one. My main contact was one of the heads of the IT center.

He said he can only transfer the IP address without changing the physical path. To complete the full process I have to wait for an another guy, which is supposed to come back from his vacation the following Sunday (and there is no one else who can solve this in his place).

So,  patiently, I waited for Sunday through the weekend. Thankfully, the guy came back and he was very responsive when I contacted him. Eventually, I got the complete response the following Thursday (yesterday), saying that this cannot be done this week. Note that that Thursday was the last working day as we were froced to take our annual leave from 21st to 31st August (last 10 days of Ramadan).

So, now I’m stuck without an update for the site and facing constant insistence from my supervisor to complete that website as we face a long vacation afterwards. So, instead of pointing fingers without anything to be solved, I decided to use the old server by replacing the old design of the website to the new one. As simple as that!

The good side is that I get to work 1 hour overtime which means extra $!!!
The bad side is that I’m not sure how professional it looks like, though the director did mention he didn’t care even if the registration was plain white page with black text, since this what matters the most with the website!

I’m really proud that I came up with the replacing idea (thanks to khawater 7 by Ahmed Al-Shugairi *), yet frustrated that I didn’t think of this earlier >.<

Anyways, take a look: www.econf.uob.edu.bh and tell me what you think!!

 

* http://www.andalusiah.com/

Links

“Antheism & Religion” via Piers Tonight

@piersmorgan: “You can not write a book basically telling to billions of people around the world believing in God ‘You are all wrong, and by the way, I don’t have any explanations!’ !!!”

Mr. Morgan, you rock!
Articles

Post-Banicon (thanks)

Hello everyone :)

How are you guys after yesterday’s madness? I know and the rest of the organizers/volunteers are beat and most likely sleeping all day!

First of all, I’d like to express my gratitude to ”Whisper’s Corner” for sponsoring the event, if it wasn’t for them, this wouldn’t happen.

Second of all, I’d like to give a big thanks to my friends who came all the way from KSA just to sponsor our gaming section; V7 guys (Voltage 7)! Thanks guys, I really wish you guys the best of luck <3

Also, I’d like to thank the people from MEFCC for their support and appearance. You guys better attend their event later this year! You’ll miss a lot if you don’t!

Thank you Mr. Qais for attending and sharing your wonderful experience, also wishing you best of luck! P.S. Can’t wait to read vol. 2 of ”Gold Ring” ;)

Thanks to Mr. Baraa for throwing his voice out, thanks to Mr. Yacoub for his time, thanks to Al-Jawhara people for their awesome manga whishing them the best of luck in their project!

A special thanks go to the organizers and volunteers who did this with me just to make my dream come true, and they wished nothing in return! Thank you Ahmed Al-Kooheji, Isa Al-Shamsi, Mohammed Ahmed, Khalid Ismaeel, Marwan Al-Zahrani; Thank you Essa Al-Seesi, Rashid Al-Buainain, Rashid Al-Sulaity, Yasmeen Al-Sinan, Nadeine Al-Maskati, Mishal Nassim, Abdulrahman Farooq, Omar Alireza, Akbar Khan, Ebrahim Al-Khan, Omar Al-Shomily, Mohammed Isa, Ahmed Ali, Mohammed Abdulhameed :) Love you guys <3

Last but not least, a huge shout out to you guys.. for everyone who attended, from people who traveled all the way from Kuwait, Qatar, UAE & KSA, especially those who were stuck at traffic at King Fahad bridge for hours, and to those who attended no matter what. If it wasn’t for you guys as well, this thing would fall down. Thank you very much.

Though we faced some technical problems with the networking for the PS3s and the schedule got messed up somehow, it was a nice experience and I learned a lot from it :) And personally, I think it went well for a first event! Especially that we were individuals, without any event management background!

Now, I don’t claim perfection, but we learn from our mistakes. This is all what life is about. You don’t expect it to go as you wish or as planned. Something somewhere will fall and break, and you’ll have to find either a solution or a back-up plan, or else, you’ll have to cope with it.

As some of you know, my real objective of Banicon was to introduce anime conventions to Bahrain, as promised 4 years ago. And I kept postponing the event one year after the other as I kept getting stuck in the middle due to some governmental issues. Until I met the right people that were meant to help me with this :)

Though, I wanted everyone to have fun and enjoy it, the fact is, it is difficult (actually, impossible!) to please everyone. And I’m still not sure 100% that I’d do Banicon again, I mean, c’mon! I just finished from the first yesterday! :P But if I got enough support and resources, I might ;) (no promises though!) Besides, I just finished from the first, so don’t even ask about the 2nd xD (now I know how mothers with new born baby feel when they’re asked to ‘bring’ a sibling to the baby!!!!).

I really don’t know what else to say, all of this was a very interesting -yet tiring!- experience. It was overwhelming. I like to see people have smiles on their faces. I want everyone to be happy. So, I apologize for anything that upset you in the event, and I hope I can compensate at the next – if there was one ;P

Take care and have a nice day! *^-^*

Quotes

Istighfar

The act of seeking forgiveness from Allah (God).

Images

New Skateboarding!

25th September, 2010. Part of my London trip, I went to Hyde Park. I saw some guys using weird skateboards.. basically, they weren’t boards! I loved the new idea. Though it could be old or not that new, I’m not really up to date with these things, but it was certainly interesting and fun to take pictures of!

Post

Back to work.. for an hour..!!

So.. I went to work (UOB) today to update some ‘critical’ information in the application I was working on. With the recent incident in the university, no one is to go there, except those with special permits.

This incident, if no one knew about it already, featured some vandalisms who attacked the university on Sunday, 13 March, 2011. Thankfully, I was on sick-leave on that day due to cold and a sore throat. Therefore, the university closed its doors, no students, no faculty and no staff to undergo investigations.
I’ve been stuck at home with nothing to do for two weeks until things got better and stable and was finally able to go out and enjoy my ‘open vacation’. Now, don’t get me wrong, it is indeed fun enjoying my free vacation, but it still hurts for what happened there.
People were hurt and injured badly. Sectarianism increased rapidly. Buildings were vandalized. Windows were broken. Cars were smashed. Trust was destroyed. Study was postponed until further notice (I worry for those who were supposed to graduate this semester :( ).
Back to original topic, as I went back to my office, I had a time limit to work only for an hour. I wasn’t worried as the update I needed to do would take me 5-10 minutes max. Sadly, I messed up the system as “Query Strings” were involved.
I’m not sure if I did mess it up or it was originally messed up and I just found out about it, but bottom line, the site now looks exactly the same with nothing edited :p I basically went there for nothing!
It really annoys me when something is working perfectly on your local machine, but it’s all f-ed up online.. especially when it has something to do with the path.. I hate fixing different versions of the path, one for local and one for online.. ugh..
Anyways, I took a copy of my application hoping I’d be able to install .NET on my personal laptop and work this shit out :)
Articles

Love is..

I stumbled upon an interesting article, talking about “love”. Now, how many of you wanted to know if they were in love or not? Maybe it was just physical attraction? Or at least just a simple crush? Well, here is the interesting answer :)

==========
“I thought necessary for some reason today to write about love. Many say that love is blind. Many say that love is painful, that he or she that loves gives everything up for the loved one and cries for the loved one. Others believe in a more passionate kind of love, with a lot of physical attraction and sex. Love may also become something you’re used to or settle for. But in reality, what is love? What is it? Is it this which I have described? Every couple is different. It would be difficult to identify who is in love for real. There is no definition or certainty. If there was, divorce wouldn’t exist. I ask myself, what is love?
In my life, I have experienced several kinds of love, but for a period of time I thought that I only loved when I suffered. Now I feel so different. I think that you only love once, and that is when you find the right person. Most of us settle with less than what we need or deserve. I have dreamt a thousand times of the man I want to be with. Only pieces of him have been granted to me. Every single relationship I’ve had has something my dream man has. It’s sort of like someone who needs a good Dominican meal. You need rice, beans, meat, salad and fried plantains. I have had each separately and I’m never full. I’m starving, hahaha. I think that love more than anything should be easy, it should come easy, without a lot of effort, without having to work hard to please the significant other, or make them think that we are what we are not. It’s necessary the interest and understanding of both parties, not have everything in common, but understand each other and have what the other needs in a partner. Maybe I should write a book about love. Too many thoughts come to mind that would take a long time to edit, and probably no one would want to read such an enormous speech. But in reality, can we really define love?”