mrBadak.com

anything funny and interesting. pictures, videos, news and links.

when i do my coding, i like them to be neat and readale cuz I always thought of what other people/programmers will think of me when they see my code. all those curly brackets for if-then-else must be vertically aligned.. I even re-write my comments many times in the code as if i’m writing a speech.

that is why i must disable ‘word wrap’ when i code because the wrapped line always pollute the nice views of the indented codes, i turn them on only when i cannot find the error after scrolling the page horizontally to the right.

well this slight “perfectionism” is called a girly-code, or girl-code.

but i guess most programmers are like that - programming lines are their treasure and their identity - never mind the shaggy hair, sleepy eyes or bulging tummy.. as long as the code is o’right.

this programmer blogs about this. an enjoyable read.

How many times have you found yourself holding up the tomato ketchup bottle over your KFC chicken wings, waiting for the liquid to blanket those meat but its taking ages for it to come out.

So you decide to pat the bottle from the back like comforting someone with a bad cough. Still its not coming out.

Now you decided to shake the bottle and you end up splashing more red lipstick on your girlfriend’s face!

Well - that’s because we have been doing it wrong. This is the correct way to do it.

Read the technical explanation on it (getting dumped for splashing ketchup too many times on her prompted him to write this).



Hacking misunderstood

This story needs to be told to everyone, whenever there’s something not working right on your servers or computers, please get a geek/nerd to study the situation first - BEFORE you send an email to the maker of your operating system, accuse them of hacking you and threaten to call the police.

The city manager Oklahoma’s Tuttle city did just that when four of his computers showed the Apache’s web server default page when he tried to access his town’s website. Well - actually the page itself explained what it is about but I guess when he didn’t see his town’s default page, all those blood draining out from his brain made his vision blurry.

Read the rest of this entry »

Ever get the most wonderful idea when you are taking a shower? Or right before going off to sleep?

Well that’s because we are smarter when we are relaxed and not thinking too much of something *like work*.

But it’s really, really hard, if not impossible, for the human brain to come up with fresh new ideas when its owner is overworked, overtired, and stressed out. And in today’s wonderful world of nonstop work, 40% of American adults get less than seven hours of sleep on weeknights.

“The physiological effects of tiredness are well-known. You can turn a smart person into an idiot just by overworking him,” notes Peter Capelli, a professor of management at Wharton.

Work smart, not hard.

Link : Be smarter at work, slack off

Flying fish

Is this the biggest flying fish ever. its salmon btw.

i think if this plane fly over some lost tribes in amazon or wherever, they will stop eating fish as they’ve seen their gods giving the species superior place on the earth. okay that was pointless.

Link : Alaska Airlines Nets Largest King Salmon on Earth

« Previous Entries