Sunday, February 26, 2012

Absolute Filters, Fuzzy Logic, Rumours

In the beginning stage of an investing process, is to select a stock. Selecting a stock is a very frustrating task to me because there are many factors I need to take into consideration. I found there are two common methods that people always do in selecting a stock: absolute filters, fuzzy logic, and rumours from newspaper.

Absolute filters is a process of screening through every stocks and filter out those stocks that doesn't meet your minimum requirement. For example, those stocks that have dividend yield more that 3% and growth rate over 15%.

Fuzzy Logic is to go through a list of interview question, such as the product, future development plan, any achievement base on the last three years track record. And then from that answer will be given a score. Those stock with high scores will be short-listed candidate into buy/sell list.

Rumours from newspaper always the last to know, and always miss out the golden opportunity to buy/sell. But don't few bad on it, some people usually overlook the opportunity that hide inside the newspaper.

Saturday, February 25, 2012

gnome-vfs is require for the compilation

There was an error when I issue the command ./autogen.sh when I was compiling LibreOffice where I couldn't find a compatible version of gnome-vfs package in Fedora 16. Below is the detail output of the error:
configure: error: Package requirements (gnome-vfs-2.0 >= 2.6.0 ) were not met:
No package 'gnome-vfs-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GNOMEVFS_CFLAGS
and GNOMEVFS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
According to developer guide, there are some dependencies are required before the compilation can begin. gnome-vfs is one of it. Here is the text of the solution:

sudo yum install gnome-vfs2-devel

The journey with Libre Office has began

My journey with Libre Office has began. Long long time ago, I was trying to start up a journey with Open Office. At the end we break off due to the lacking of documentation at the start up stage and the development speed was terrible slow.

Now I have continue my journey with Libre Office, hope it will bring me a wonderful and exciting journey.

Boredom and fascination

I just downloaded a book with title Think Complexity from greenteapress.com. When I was reading the preface section, I was trying to understand the motivation that drive him to wrote this book. He wrote this book is due to the reason of boredom and fascination.

When the message reached me, I translate it into this form: boredom of weekend, and fascination of the book. This is true. I love theory and prove, hope this book could greatly improve on my problem solving skills.

Sunday, February 19, 2012

Beware of case statement in Informix

I just realize there was a difference between Informix and Oracle when using case statement. Let's take a look at the sample code below:

select
   case
      when Col1 = 'A' then "Blank"
      when Col1 = 'B' then "Portfolio"
   end Channel
from table_A;

Need to be aware that the length of the Channel column will follow the value with longest length stored inside the particular column. Thus those values with shorter length will append with white-space at the end of the string.

In this case, the length of Portfolio is 9, then the length of Blank is 5, as a result, the actual string for blank is [Blank    ]. Do take note that if you want to do string comparison, you have to trim the string from Channel in order to get the actual string. If not, the result will always return false.

Good luck.

Saturday, February 11, 2012

Do not waste the value of multicore processor

Do you really need multi-core processor? The problem behind of this question is that multiprocessing always come with a cost. Sometimes it could be cheaper if the problem could be solved using sequential programming rather than spawning a new thread.

Thus programmer have to make the right decision when doing reverse engineering analysis. Do not waste the value of multi-core processor.

Think twice! :o)

Facebook is equavalent to Apple

Recently there are many nonsense in Facebook. In the same time, I keep updating my nonsense as well. At the end everyone is publishing nonsense into it, and commenting on the nonsense. But so interesting that everyone is looking good into Facebook share. This remind me that even though Macbook Pro doesn't has an up-to-date hardware spec, but there are still people died died say it is a good product.

:o)