液體蛋 (Liquid Egg Product)
Preparing for when Beijing takes over in 2025
"Don't talk so much, let's just fight."
-- Jack Do, Mafia vs. Ninja (undoubtedly found in most other kung-fu movies)

Interviews

Write a function that prints the numbers 1 through 100 in order, with the following exceptions:

If the number’s a multiple of 3, print “foo” instead of the number.
If the number’s a multiple of 5, print “bar” instead of the number.
If the number’s a multiple of 3 and 5, print “foobar” instead of the number.

Can use pseudocode or the language of your choice.

(Note for non-programmers: this is a very easy task.)
(Note 2: Pseudocode is not real code with formal syntax; it’s just jotting down how code’s going to work.)

Interview 1

So this guy interviews today, seems nice and possibly adequate. According to him, his strength is VB.NET, and although 95% of our stuff is C#, I don’t sweat someone learning a new language syntax.

Towards the end of the interview, my colleague gave him the programming question above. After stammering for a few seconds, the guy explained, “Well, you know, pseudocode was one of the first classes I took, and I can’t really remember back that far.” While I tried to prevent myself from bursting, my colleague suggested he write out the code in Visual Basic, since that was supposed to be his strength. The shirking candidate claimed he couldn’t write the function without looking in a reference book.

At that moment, I felt like saying “Interview over, time for our next contestant.” However, my co-worker went on to explain the solution, which would use a loop to print out all the numbers. “A loop. You know, a for loop?” he asked. The candidate muttered, “Oh, a for loop…”, obviously with no knowledge of what it was (who knows, he may have been thinking it was a “4 loop”.)

Interview 2

This guy seems pretty sharp, and I thought he’d easily write the function we asked for. He knew what he wanted to do, but couldn’t remember the math operator to do it. “Mod? Square root?”, he muttered.

After a few minutes he came up with this bloat, where he rolled out his own test for mod equalling 0. He almost got the function right. As a point of comparison, the function can be done in C# in 5 lines, 7 if you count the braces.

Roll your own mod

We reminded him of what the mod operator does, and had a chuckle over it. I told him that if we hired him, I’d frame his solution above his desk. Er, cubicle.

September 26th, 2007 7 comments
Posted by Donnie Filed under Science/Technology

Gender, please

Cosplay or cross play?

Yahoo! news thought the growth of cosplay in Taiwan might make for an interesting article (cosplay is dressing up like cartoon or video game characters).

What’s more interesting is the picture used to accompany the story (see right). Although the article mentions that cosplay is most popular among high school girls, these cosplayers don’t look very much like high school girls to me. Or Taiwanese girls are just naturally ugly. Well, er, em, except of course like all the Taiwanese girls I know personally…all of y’all are cuties…*coughs uncomfortably*

Anyway, I am taking suggestions as to what the gender of these cosplayers are.

September 26th, 2007 4 comments
Posted by Donnie Filed under Babes & Alleged Babes

Speaking of slow on the uptake…

Probably everyone’s had the experience where they’ve had a dream, awakened, and finally figured out how non-sensical the dream was after a couple minutes.

This morning’s was rather awkward. I was in a bathroom with a female while she was going pee. No, there were no closed-in stalls, just a toilet against a wall. She was wearing a pair of jeans, but was topless (although I saw her from the back only). I was aware enough that this situation would generate some uncomfortability, so I gracefully slipped out the door.

You may realize that it’s strange that I saw her from the back, not front. That’s because she was standing using a urinal. Obviously not realistic, but it took me a couple minutes of being awake to realize it.

September 26th, 2007 no comments
Posted by Donnie Filed under Uncomfortability

How to beat the cernal

Search terms used to stumble on this site recently:

  • 1998 norelco advantage electric shaver
  • hijabi pickup line
  • www.guess bag product.com
  • chinese cigarets
  • superchick sisters how to beat the cernal [ie, Cernal Sanders of KFC]
  • liquid egg meaning [as if there is one]

The first three I have no clue what sort of relevance they have to this site (and frankly, those are the best ones)

These two are nostalgia trips (as much as a four-month old blog can have nostalgia)

September 25th, 2007 3 comments
Posted by Donnie Filed under Science/Technology

Cool like Mahmoud

I was looking at that pixelish looking picture of M-Ahm (that’s hip-hop for Mahmoud Ahmadinejad) and thought it looked cool. So take a look at me in that pose:

Mascot Ahmadinejad Had to crop to 166px high…

Yep, yep. Pretty sweet.

By the way, a shout out to all my fan(s) who give me love, like l3rucewayne. And a thumbs-down and a “Boo” to those who doubt my manhood, like Annie. It’s not like you’re so masculine yourself.

September 24th, 2007 7 comments
Posted by Liquid E. P. Mascot Filed under CG

Monday Fighter!

Resume 3
Unfortunately, we’re looking for a candidate who doesn’t try their hardest.

Resume 4
A perfect example of why to understand the job you’re applying for. This even goes beyond misspelling “iLife” and “iMovie”…

We openly laugh at wanna-bes who actually consider Word, Excel, and Outlook to be “programming skills”. Maybe unless they actually did some VBA scripting or something. Being able to create a spreadsheet is not exactly why we need to hire someone.

September 24th, 2007 2 comments
Posted by Donnie Filed under Monday Fighter!

Iran: ‘We are not building A-bomb’

Headline from CNN: Iran: ‘We are not building A-bomb’*

*We are building 5 bombs. (Sorry. That was too obvious to resist.)

September 24th, 2007 no comments
Posted by Donnie Filed under In the News

Overstaying your welcome

Ahmadinejad, the icon

The Iranian president Mahmoud Ahmadinejad is over in the States for a visit, including a speech at Columbia University. He seems to have worn out his welcome before he got here, which is not all that easy to do.

Several months ago, I dreamt about getting to meet him face-to-face in Iran. He spoke heavily accented English and showed me around his mansion. He was very friendly, but the dream ended before I could ask any of the many questions I had in mind.

I suspect President Ahmadinejad is really a rather nice guy, except maybe that wanting to destroy Israel thing.

September 24th, 2007 6 comments
Posted by Donnie Filed under In the News

Experiment in TIR

In Bryce 6, there’s this feature called TIR (total internal reflection) which is supposed to be neat-o for renders of objects that naturally have…internal reflections.

Like gemstones. Looks a’ight, I suppose (click for bigger version).

Gemstone Experiment

September 23rd, 2007 4 comments
Posted by Donnie Filed under CG

E-mail filter and Chinese waitresses

The e-mail spam filter is slowly learning. All the pharmaceutical e-mails are getting sent straight away; now it’s mostly the “Busty Asian [etc, etc.]” mails that the filter has to figure out…

Speaking of Asian chicks…I learned an important lesson today.

Today my friend and I went to a Chinese buffet, and my friend reminded me that there was the potential for a pretty waitress to, er, introduce myself to. After determining that the women there were out of my league (ie, 40-50 years old and likely married), I set my primary focus to eating and trying the few new foods that this buffet had.

After getting seconds, we were chatting a bit, and a voice behind me indicated a desire to pick up the used dishes. Without thinking I brought the dishes towards the purple-clad arms near my right shoulder. 15 seconds later, my friend said, “What about her?”

Instantly, I realized none of the out-of-my-league employees had worn purple. Whipping my head around, I tried to catch a glimpse of the alleged potential target, but by then it was too late. So my next trip to an Asian restaurant, I will be sure to sit with the back to the wall, so as to not miss any potential opportunities.

(DISCLAIMER: I don’t really go around to restaurants trying to meet women. But the occasional waitress or cashier will be, er, especially friendly and attentive. You never know.)

September 22nd, 2007 3 comments
Posted by Donnie Filed under Grilled Cheese, Science/Technology