The importance of proofreading

150 Funniest Resume Mistakes, Bloopers and Blunders Ever

Besides its funny bloopers, the article does stress the importance of first impression.  When you are fighting for that interview, first impression is what will make the difference.  It is said that employers spend, on average, 20 seconds to scan your resume.  Study shows, the average user reads about 200 - 250 wpm.  In other words, about 67 to 84 words in 20 seconds.  That is, roughly the length of this paragraph.

Therefore, write wisely and concisely.

 

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Joined Technorati

Joined Technorati. Here is my profile Technorati Profile.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Microsoft Palindrome Interview Question

I recently came across Gary Daniels and Evan Goldring - Mock whiteboard posting on Channel9 and I thought to give it a shot. In short, Microsoft created a reputation of asking job candidates to write a mock up solution to a predefined problems during the interview process. The posting makes mention of one past question that asked a candidate to write a code snippet to determine a palindrome string. A palindrome phrase can get complex, and can allow for adjustment of punctuations and spaces between words (Wikipedia).

From a business point of view, I have found two valuable outcomes from this approach. For one, it can act as an ice breaker allowing for a good discussion between the interviewer and a competent candidate. Second, you are testing communication, logic, analytical thinking, information gathering, and problem solving skills rather than code and syntax memorization. The answer to such problem does not have to be in code, it can simply be in pseudo code.  The goal is to adequately assess a potential prospect.

The following code is my attempt at the problem. Download the code

using System;
using System.Collections.Generic;
using System.Text;
 
namespace PalindromeConsole
{
  class Program
  {
    static void Main(string[] args)
    {
      string sLine;
 
      // Wait for response to exit
      do
      {
        Console.WriteLine("Press return to exit or enter a Palindrome word (case ignored). ");
        if ((sLine = Console.ReadLine()) == string.Empty)
          break;
 
        try
        {
          string str1stHalf = string.Empty, str2ndHalf = string.Empty;
          // Check Palindrome  
          bool isPalindrome = IsPalindrome(sLine, out str1stHalf, out str2ndHalf);
 
          if (sLine.Length <= 1)
            Console.Out.WriteLine("IsPalindrome result: {0} is not Palindrome.", str1stHalf);
          else
            Console.Out.WriteLine("IsPalindrome result: {0} {1} {2}.", str1stHalf, (isPalindrome ? "=" : "!="), str2ndHalf);
 
          // Check Palindrome using method 2
          isPalindrome = IsPalindrome2(sLine, out str1stHalf, out str2ndHalf);
 
          if (sLine.Length <= 1)
            Console.Out.WriteLine("IsPalindrome2 result: {0} is not Palindrome.", str1stHalf);
          else
            Console.Out.WriteLine("IsPalindrome2 result: {0} {1} {2}.", str1stHalf, (isPalindrome ? "=" : "!="), str2ndHalf);
        }
        catch (Exception ex)
        {
          Console.Out.WriteLine(ex.Message);
        }
        finally
        {
          Console.Out.WriteLine();
        }
      } while (1 == 1);
    }
 
    private static bool IsPalindrome(string value, out string firstHalf, out string secondHalf)
    {
      if (value.Length <= 1)
        throw new Exception(string.Format("Value given {0} is not a Palindrome.", value));
 
      int iMid = (int)(value.Length / 2);
      int iOdd = (value.Length % 2 == 0) ? 0 : 1;
      bool isValuePalindrome = true;
 
      // Set out two halves
      firstHalf = value.Substring(0, iMid + iOdd);
      secondHalf = value.Substring(iMid);
 
      // Compare character by character
      for (int item = 0; item <= iMid; item++)
        if (value[item] != value[value.Length - (item + 1)])
        {
          isValuePalindrome = false;
          break;
        }
 
      return isValuePalindrome;
    }
 
    private static bool IsPalindrome2(string value, out string firstHalf, out string secondHalf)
    {
      if (value.Length <= 1)
        throw new Exception(string.Format("Value given {0} is not a Palindrome.", value));
 
      int iMid = (int)(value.Length / 2);
      int iOdd = (value.Length % 2 == 0) ? 0 : 1;
 
      // Set out two halves
      firstHalf = value.Substring(0, iMid + iOdd);
      secondHalf = value.Substring(iMid);
 
      // Use a collection and take advantage of the Array.Reverse method.
      char[] aList =  secondHalf.ToCharArray();
      Array.Reverse(aList);
      string secondHalfReverse = new string(aList);
 
      // Compare two halves
      return (firstHalf.Equals(secondHalfReverse, StringComparison.CurrentCultureIgnoreCase));
    }
  }
}

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

My joy and peace

While reading the below passage, I recalled a few instances when it was commented on the internal calm, joyful and unexplainable peace that is projected onto my face. At times, this same peace remains eminent despite of hardships. To state simply that the person of Christ, His residence and influence upon my life is the cause may seem obscure or irrelevant. On the contrary, the Apostle Paul from the book of Romans explains this in the most profound way. According to Jeff Lasseigne (2004), the theme of this book is “Salvation by Grace through Faith."  On the second read, subsitute the word we with I (or Wael :)).

Romans 5: Peace and Joy

Therefore, since we have been justified through faith, we have peace with God through our Lord Jesus Christ, 2 through whom we have gained access by faith into this grace in which we now stand. And we rejoice in the hope of the glory of God. 3 Not only so, but we also rejoice in our sufferings, because we know that suffering produces perseverance; 4 perseverance, character; and character, hope. 5 And hope does not disappoint us, because God has poured out his love into our hearts by the Holy Spirit, whom he has given us.

6 You see, at just the right time, when we were still powerless, Christ died for the ungodly. 7 Very rarely will anyone die for a righteous man, though for a good man someone might possibly dare to die. 8 But God demonstrates his own love for us in this: While we were still sinners, Christ died for us.

9 Since we have now been justified by his blood, how much more shall we be saved from God's wrath through him! 10 For if, when we were God's enemies, we were reconciled to him through the death of his Son, how much more, having been reconciled, shall we be saved through his life! 11 Not only is this so, but we also rejoice in God through our Lord Jesus Christ, through whom we have now received reconciliation.

Lasseigne, J. and Laurie, G. (2004). Highway 66: A Unique Journey Through the 66 Books of the Bible.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Initial launch

Hello and welcome to MWRabadi.com.

MWRabadi.com is finally up and running and the hard part of creating my own blog is done.  The process took some time as I had to learn BlogEngine.NET which I will comment on in the near future.

BlogEngine.NET

You can find BlogEngine.NET on the official website. Here you will find tutorials, documentation, tips and tricks and much more. The ongoing development of BlogEngine.NET can be followed at CodePlex where the daily builds will be published for anyone to download.

Thank you for visting. 

Wael

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5