Wednesday, January 22, 2014

Solving You have started VMware Server with an out-of-date copy of the application.

If you get the following error message when running your VMWare Virtual Machine, please look at a great article by Anar Z. Taghiyev here.

You have started VMware Server with an out-of-date copy of the application. VMware Server cannot power on virtual machines using this copy (version 2.0.2). To power on this virtual machine, run VMware Server from the default location.

Tuesday, January 21, 2014

Solving Tomcat and VMWare issue "Unable to open service 'VMwareserverwebaccess'"

If you get the following error while trying to run Tomcat instance in VMWare on Windows Vista/7/8, the solutions are presented underneath.


  1. Go to: C:\Program Files (x86)\VMware\VMware Server\tomcat\bin (or where you have installed VMWare)
  2. Right Click on tomcat6.exe and click on Properties
  3. Change Compatibility mode to -> Windows XP (Service Pack 3)
  4. Change Privilege Level -> Check the box 'Run this program as an administrator'

Test it now.

If it does not work, add privilege to the current user using the following steps.

  1. Go to the same location and open the properties page of tomcat6.exe
  2. Go to 'Security' tab
  3. Click add button
  4. Find the user you want to give privilege to
  5. Click Ok
  6. Tick all boxes in the Allow column.
  7. Click Apply -> Ok



Incase this did not work, do the same thing to the file 'tomcat6w.exe' located at the same directory as tomcat6.exe (C:\Program Files (x86)\VMware\VMware Server\tomcat\bin)

More info at:

Thursday, January 16, 2014

Why would an engineer want to work at Google instead of Facebook?

As an engineer who worked at both:


  • Personally, I believe that Google works on bigger and more important ideas/projects than Facebook. I think it can have more positive impact on humanity in general.
  • Google's engineering culture is not "move fast and break things": things get done more slowly but in general designed, coded and tested much cleaner/better. This might fit well to some people better.
  • At Facebook, you typically write PHP. At Google, you typically write any of Java/JS/Python/C++. These are more widespread (and in my opinion, better) languages than PHP.
  • Google has more restaurants than Facebook : )
  • Breadth of product line is much bigger at Google.
  • Google has a much better research department. In fact, Facebook doesn't have one.
  • Google has much more learning opportunities (a lot of courses, codelabs, much better documentation and stricter code review)

Source: http://www.quora.com/

Wednesday, January 15, 2014

Get the current date in JavaScript

<script type="text/javascript">
    var currentDate = new Date()
    var day = currentDate.getDate()
    var month = currentDate.getMonth() + 1
    var year = currentDate.getFullYear()
    document.write("<b>" + day + "/" + month + "/" + year + "</b>")
</script>
The result will be like
15/1/2014
More:

Programmer Jokes


"Programming is like sex: One mistake and you have to support it for the rest of your life."


***************************************************************

"A man is smoking a cigarette and blowing smoke rings into the air. His girlfriend becomes irritated with the smoke and says, “Can’t you see the warning on the cigarette pack? Smoking is hazardous to your health!” 
To which the man replies, “I am a programmer. We don’t worry about warnings; we only worry about errors.”"

***************************************************************

Two bytes meet. The first byte asks, “Are you ill?”
The second byte replies, “No, just feeling a bit off.”

***************************************************************


A SQL query goes into a bar, walks up to two tables and asks, “Can I join you?”.

***************************************************************

Q: “Whats the object-oriented way to become wealthy?”
A: "inheritance"

Thursday, January 9, 2014

በነገራችን ላይ አስተሳሰብሽን ግን ወድጄልሻለሁ!

አስተማሪዋ ክፍል ውስጥ እያስተማረች ነው፡፡ በመሃል ትንሹ ቤቢ አትኩሮቱ ትምህርቱ ላይ እንዳልሆነ ስላየች የሚከተለውን
ጥያቄ ጠየቀችው
ቲቸር፡- “3 እርግቦች አጥር ላይ ብታይና አንዷን በጥይት ብትመታት ስንት ወፎች ናቸው አጥሩ ላይ የሚቀሩት?”
ትንሹ ቤቢ፡- “ምንም አይቀርም፡፡”
ቲቸር፡- “ለምን?”
ትንሹ ቤቢ፡- “ምክንያቱም የጥይቱ ድምፅ ሁሉንም ስለሚያስደነግጣቸው ሁሉም አይኖሩም፡፡”
ቲቸር፡- “አይ እንደሱ አይደለም፡፡ መልሱ 2 ነው እሺ፡፡ ግን አስተሳሰብህን ወድጄልሃለሁ፡፡”

በዚህ ጊዜ ትንሹ ቤቢ በጣም ተናደደ፡፡ ስለሆነም በተራው ይህንን ጠየቀ፡፡
ትንሹ ቤቢ፡- “እሺ 3 ሴቶች ከአይስክሬም መሸጫ ሱቅ አይስክሬም ገዝተው ወጡ እንበል፡፡
ከዛ አንደኛዋ አይስክሬሙን በቅብጠት ትልሰዋለች፣
አንደኛዋ ደግሞ በእርጋታ አይስክሬሙን ትመጠዋለች፣
ሦስተኛዋ ደግሞ አይስክሬሙን በችኮላ ትነክሰዋለች፡፡
እና ከሦስቱ መካከል ትዳር ያላት የትኛዋ ናት?”

ቲቸር፡- “አይስክሬሙን በእርጋታ የምትመጠው ናታ፡፡”
ትንሹ ቤቢ፡- ፈገግ ብሎ “ተሳስተሻል፡፡”
ቲቸር፡- “ለምን?”
ትንሺ ቤቢ፡- “ምክንያቱም ከሦስቱ መካከል ትዳር ያላት በእርጋታ አይስክሬም የምትመጠው ሳትሆን እጇ ላይ የትዳር ቀለበት ያረገችው ናት እሺ፡፡ በነገራችን ላይ አስተሳሰብሽን ግን ወድጄልሻለሁ፡፡”