Archive for 27th January 2007

A Simple Word / Logic Puzzle Solved

Recently asked on Yahoo! Answers:

Data organisation problem?

I have a data information like this…

The Word Puzzle

Now, based upon these data information i have to answer couple of questions.

As you see , the data information has been given in a haphazard manner ….we need to organise these data sets before answering the questions .

How do i organise these data ?

should i make a table ? i am bit confused here….i am getting confused with whole lots of data.

how do i organise these data for answering questions on this data set ?

could you please give me some tips ?

Thank you

Clearly this is some homework the person has been assigned. My general rule about answering homework questions is that I will provide you with part of what you need, but not everything you need, to answer the question.

For example, I may break down the problem into its parts; I may offer a code sample that resolves one part of the question; I may write the answer in a different programming language than asked for, and direct the person to convert it to their language.

Or, as in this case, I may simply supply the answer with no explanation.

Now that enough time has passed that I am sure the person can’t cheat if I explain how to do the problem, I’ll do just that.

Continue reading ‘A Simple Word / Logic Puzzle Solved’ »

Displaying An Image On A Web Page Based Upon The Current Time With JavaScript / DOM

Recently asked on Yahoo! Answers:

Picture on a schedule?

How do I run a photo based on a schedule on my website?? I’m using Microsoft Frontpage. I know HTML, but no other programming languages. HELP PLEASE?

This is fairly straightforward, provided we know what kind of schedule we want to use. Since the questioner didn’t give a specific schedule he wants to be on, I’ll provide three examples:

  • The current hour, from 12 a.m. (midnight) to 11 p.m.;
  • The current day, from Sunday through Saturday;
  • The current part of the day: Early morning, morning, afternoon, evening.

We also want to make sure we’ve done the following:

  • Resized all the images to be a common size; this will lessen the design issues we face.
  • Placed all the images we want to use in the same directory.
  • Written down all the names of the images we will use.

Continue reading ‘Displaying An Image On A Web Page Based Upon The Current Time With JavaScript / DOM’ »

Miss Maine Karissa Staples: A Contender, But A Longshot

Having just got off the topic of fielding a competitive team, I’m glad to say that Maine has sent a strong contestant to the Miss America pageant: Karissa Staples*.

The best thing about Staples is she has probably one of the greatest girl-next-door looks of all time.

Karissa Staples - Miss Maine 2007

I mean, Jesus H. Christ, she probably had to put up a deli-line number machine to field prom date offers. She’s from Biddeford, so it’s amazing no one was shot in the fight over her.

Continue reading ‘Miss Maine Karissa Staples: A Contender, But A Longshot’ »