Our Daily Bread

what I need to do ...

  • Continious learning -unlearn as necessary
  • Reach out to family & loves ones
  • Maintain fitness - strong core and clear IPPT
  • Pick up parenting skills
  • Save up and plan for renovation
  • Build passive business & investment income
  • Back up Data
  • Manage $ Cash flow
  • Learn sinan mori

Sunday, November 20, 2011

Open Water Basic

Safety out on the sea
-- Breath with the rhythm of the sea bobbing up and down relax – not the traditional trap water head facing down
-- Lay on you back and last for at least 5 minutes, hand plan in water at the back of the head.

Sighting
--  Like Crocodie, 1 ,2, 3rd stroke eyes up and slide forward following stroke breathe. Every 7 stroke sight.  Don’t lose sight of the target

Turning - 'L'
--Lift any over and continue

Drafting
--Line Drafting
--Triangular drafting

Running in start / Water Start
--Run legs side ward, cannot lift knee any further dive in 
--Stay in breast Stroke position, breast stroke kick and move forward.

Bicycle Stock-Take

My  Bicycle Built
1 x carbon Frame - Kinesis Racelight KR-510 SPF Frameset MED 166
-176cm
1 Set x Brake, Gear -Shimano 105
2 x LEZYNE carbon bottle cage (black,white)
1 x Prologo Pro Kappa Saddle Pro Rail White
1 x "Pipe" below Saddle - Essen Carbon
2 x Vredestein Fiammante Duocomp road tyre -Folding bead. 700c x
23mm (23-622 ISO). 26 TPI. 131 max. PSI.
2 x Mavic AKSIUM RACE WHEELSET
1 x Handle bar - FSA Compact Wing, FSA OS 150
1 x Cat Eye Velo 5
1 x BlackBurn Mars 3.0 Rear Red LED
1 x infini Wukong front LED
 
Accessories 
1 x Cervelo water bottle
1 x Laser Sphere XStatic Helmet
1 x Air pump expert Zero


Tools to get  

1. tube x 2 - 23/700c
2. pretral pump
3. multi-tool
4. tire lever
5. bag to house all
6. patch kit/tire boot
7. Chain master link
8. infini Wukong rear LED for Helmet

Good to have
Cycling Shoes.

Monday, September 12, 2011

Resolving tbb_debug.dll in OpenCV 2.3.1

To resolve the tbb_debug.dll, for windows: 

Download tbb files at http://threadingbuildingblocks.org/ver.php?fid=171



You may choose to place the folder at ..\OpenCV2.3\build\common
 

Set up the following:

• Environment variables
$(TBBROOT)bin\ia32\vc10

C/C++ Properties
• General: add an additional include directory:
"$(TBBROOT)\include"

Linker Properties
• General: add an additional library directory (shown for Visual
Studio 2010 32-bit library):
$(TBBROOT)lib\ia32\vc10

• Input: add an additional dependency
tbb_debug.lib or tbb.lib


This should resolve the error message.

Wednesday, June 15, 2011

OpenCV play video

During school days when i use OpenCV 1.1-2.0 for my final year project,
I had a hard time trying to capture video frame from .avi files.
I ran into codec issues having to convert my video dataset before i can capture
via OpenCV.

With the following code snippets below i am able to play .avi,.mpg and wmv files!


#include "highgui.h"
int main( int argc, char** argv ) {
  
    //Some validation can be included here for argv
    if( argc<2 ) return 1;
    CvCapture* capture = cvCreateFileCapture( argv[1] );
    if( !capture ) return 1;   
     /* get fps, needed to set the delay */
    int fps = ( int )cvGetCaptureProperty( capture, CV_CAP_PROP_FPS );
    IplImage* frame;
    cvNamedWindow( "video", CV_WINDOW_AUTOSIZE );
    while(1) {
        frame = cvQueryFrame( capture );
        if( !frame ) break;
        cvShowImage( "video", frame );
        char c = cvWaitKey( 1000 / fps );
        if( c == 27 ) break;
    }
    cvReleaseCapture( &capture );
    cvDestroyWindow( "video" );
    return 0;
}

Writing your first OpenCV hello world program!



Download OpenCV 2.2 from SourceForge.
Download VisualC++ Express if you do not have an IDE

1. Create your new project for C++ , empty console application
2. Go to Tools > Option
3. Go to VC++ Directories
4. Add 2 new Include Directories (it's the path where you installed OpenCV, include folder):
- C:\OpenCV2.2\include
- C:\OpenCV2.2\include\opencv
5. Add 1 new Library Directory (it's the path where you installed OpenCV, lib folder):
- C:\OpenCV2.2\lib
6. Go to Linker in the left menu and select Input option
7. Add these entries on Additional Dependencies option:
"C:\OpenCV2.2\lib\opencv_core220d.lib"
"C:\OpenCV2.2\lib\opencv_highgui220d.lib"
"C:\OpenCV2.2\lib\opencv_video220d.lib" 
"C:\OpenCV2.2\lib\opencv_ml220d.lib"
"C:\OpenCV2.2\lib\opencv_legacy220d.lib"
"C:\OpenCV2.2\lib\opencv_imgproc220d.lib"

A sample hello world program :

#include "highgui.h"


int main ( int argc, char **argv )
{
  cvNamedWindow( "My Window", 1 );
  IplImage *img = cvCreateImage( cvSize( 640, 480 ), IPL_DEPTH_8U, 1 );
  CvFont font;
  double hScale = 1.0;
  double vScale = 1.0;
  int lineWidth = 1;
  cvInitFont( &font, CV_FONT_HERSHEY_SIMPLEX | CV_FONT_ITALIC,
              hScale, vScale, 0, lineWidth );
  cvPutText( img, "Hello World!", cvPoint( 200, 400 ), &font,
             cvScalar( 255, 255, 0 ) );
  cvShowImage( "My Window", img );
  cvWaitKey();
  return 0;
}
Run the program and you should see the above screen.


For OpenCV 2.3.1 
The steps are similar.
However the path varies depending on which build version you would want to use.
I am sticking with Win32 and VS2010


Some updates to the path:


5. Add 1 new Library Directory (it's the path where you installed OpenCV, lib folder):
- C:\OpenCV2.3\build\x86\vc10\lib


6. Go to Linker in the left menu and select Input option 


7. Add these entries on Additional Dependencies option


C:\OpenCV2.3\build\x86\vc10\lib\opencv_core231d.lib
C:\OpenCV2.3\build\x86\vc10\lib\opencv_highgui231d.lib
C:\OpenCV2.3\build\x86\vc10\lib\opencv_video231d.lib
C:\OpenCV2.3\build\x86\vc10\lib\opencv_ml231d.lib
C:\OpenCV2.3\build\x86\vc10\lib\opencv_legacy231d.lib
C:\OpenCV2.3\build\x86\vc10\lib\opencv_imgproc231d.lib



Sunday, May 8, 2011

Blessing through Suffering by Dr Kim

Dr Kim and her students were at the beach to relax one fine day.
They make a stopover at the breakwater to take some photos.
It was a beautiful sight, the sun, the sand and the sea.
"1, 2" before the cameraman would say "3". A  huge wave surge above the breakwater
and engulf Dr Kim and her students. They were drench head to toes.
It was unexpected! The group's hand phones and camera got soaked!
Like the unexpected wave, life is unpredictable.

Life is filled with trials and testings.

You can achieve blessing through suffering through these 4 ways:

1. Overcome the devil's temptation with GOD - Matt 4:1-25
Do not be blinded in your ways and fall for temptation. Stand firm!
Shout "Away from me ____________________" loud when you are challenge.


2.Pray when you are faced with trials. John 15:5

Overcome situation by the blood of Jesus through prayers.
God provides a way out 1 Cor 10:13

Dr Kim shares about her Mum who passed away 20 years ago. Her Mum had a good
voice and she sang in the neighbor hood. In 1958, they had no TV or radio. The songs were
their source of entertainment. Dr Kim's mum when around singing and brought around candy and biscuits.
There was not enough to go around. Dr Kim's mum had to bite the candy and break it into smaller pieces for
all the little one to have a tiny piece. Those were the days of poverty and GOD provided a way out through their situation.

 3.Upgrade yourself through trials Roman 15:13

You need to sit for a test in order to receive your driving license.
With regards to Filament , the stronger the resistance the brighter the light.

4. Obey and rely on GOD Jeremiah 42:6



Favorable or Unfavorable obey and lean  on GOD, Det 28:1-6


As Dr Kim shared this message on Mother' day, she herself is undergoing
some trials. Who does not ? Stay strong.

Sunday, April 3, 2011

Rich vs. Middle Class

I was at a fair and picked up the following sharing from the speaker Dennis.

  • The rich don't ask 20 questions like a middle class when it comes to making an investment.
  • The rick asks 2 simple questions - (1) what is the upside? (2) What is the downside?
  • If the upside is about [ 4 multiply the downside ] they  invest, if not they don’t.
  • The rich was once a disaster who learnt, of course unless he or she has silver spoon, 
  • The middle class want to be debt free while the rich borrows to get richer.

 According to Dennis, most rich people make stock and property investment.



Tuesday, March 15, 2011

MIA

It has been a over year since i make an entry on my blog!
Having switch to face book i have been making hardly no entry here ....
How many of you are in the same boat ?

Probably i will make an entry when i have something significant to share!

Quotes

  • You are your thoughts.The thoughts in your head are what institute the laws of attraction. You think therefore you are. - Joe Vitalli, The Laws of Attraction
  • Don't react blatantly in Anger and become a Zero - Papati
  • Don't miss out in the learning values of problems by over-looking the root causes but starting at the occurences - Raj
  • You can do almost anything if you have a steady income. Little or much, what matters is that you can count it, month after month.Without the regular flow of funds, you will be constantly distracted from you goals - Norm & Bo
  • Time is greater than money, you can never really buy time. Don't let time slip away. - Raj
  • Ignore technology advancement and you will either be left behind or you have to fork out more - Raj
  • Without passion nothing happens in life but without compassion the wrong things happen - Jan Eliasson
  • The poorer you are the more you need to plan and act wisely. Any undesired outcome you have little resource to manoeuvre.
  • “Life changes when you least expect it to. The future is uncertain. So, seize this day, seize this moment, and make the most of it.”
  • To get to where you want to go in life you must start from where you are - Tan
  • Maturity does not come with age,it comes with the acceptance of responsibilities - Tan

ACM TechNews