I AM NOT SLEEPY

by admin | January 22, 2008 | In Updates

Is it just circumstance or what, While working at UP System Budget Office, I felt so sleepy when my boss is around and felt awake when she stepped out of the office. I have been drinking coffee while working, I have tried black coffee and to my dissapointment still very sleepy ( to the extent that my hands are already shaking ). I've got memo'ed last week for fallen asleep while working, actually though it's my second memo since last 2 years. Those where the times when my kids are just babies and need to tend to them at night. The latest, which would I expect it will come soon due to the fact that I worked as a freelancer at night. My wife is 3 months pregnant need to raise some funds for our new baby. My co-worker, Jasmin told me a simple lame excuse, she said "You are sleepy when your boss is around because your doing your work, when shes not around your doing nothing." :D , LOL.

Actually would finished all the reports by the end of the day, just need a confirmation from the data that I requested from UP Los BaƱos yesterday. During breaks reviewed some simple subjects in Computer Programming which my favorite part is data structures. Created a set class in php today, I am practicing phpDocumentor syntax, documented a little bit.

  1. <?php
  2. /**
  3. * @author Carey R. Dayrit <carey.dayrit.org>
  4. * @version 1.0
  5. * @package clsSet
  6. * @uses Group of data that is sorted, no data would be repeated
  7. */
  8. /**
  9. * A simple class implementation of a Set object
  10. *
  11. * Example:
  12. * <code>
  13. * <?php
  14. * $oSet=new clsSet();
  15. * $oSet->insert('pogi');
  16. * $oSet->insert('carey');
  17. * $oSet->insert('pogi');
  18. * echo $oSet->length();
  19. * ?>
  20. * </code>
  21. */
  22. $oSet=new clsSet();
  23. $oSet->insert('pogi');
  24. $oSet->insert('carey');
  25. echo $oSet->length();
  26. class clsSet {
  27. /**
  28. * @var array $mData the repository of data
  29. */
  30. var $mData = array();
  31. /**
  32. * Insert mixed data to the set
  33. * @return bool $bResult
  34. * @param mixed $mSingleData
  35. */
  36. function insert($mSingleData) {
  37. $bResult = false;
  38. if (!in_array($mSingleData, $this->mData)) {
  39. array_push($this->mData, $mSingleData);
  40. sort($this->mData);
  41. $bResult = true;
  42. }
  43. return $bResult;
  44. }
  45. /**
  46. * Returns the length of the set
  47. * @return int $nResult
  48. */
  49. function length(){
  50. $nResult=& count($this->mData);
  51. return $nResult;
  52. }
  53.  
  54. }
  55. ?>

Leave a Reply