[Update] boost::decay documentation issue
Posted on January 14th, 2010 at 17:35 by fr3@K

The issue with boost::decay documentation that I blogged about 10 days ago has been fixed in trunk.

del.icio.us:[Update] boost::decay documentation issue digg:[Update] boost::decay documentation issue spurl:[Update] boost::decay documentation issue newsvine:[Update] boost::decay documentation issue furl:[Update] boost::decay documentation issue Y!:[Update] boost::decay documentation issue 黑米共享書籤:[Update] boost::decay documentation issue 推推王:[Update] boost::decay documentation issue
Bit-fu
Posted on January 3rd, 2010 at 11:40 by fr3@K

Did you know, for x is an integer, that -~x yields x + 1 and ~-x yields x - 1?

via: Advanced bit manipulation-fu.

del.icio.us:Bit-fu digg:Bit-fu spurl:Bit-fu newsvine:Bit-fu furl:Bit-fu Y!:Bit-fu 黑米共享書籤:Bit-fu 推推王:Bit-fu
So, You Think C++ is Slower than C
Posted on November 6th, 2009 at 2:01 by fr3@K

It is true that C++ provides programming constructs those consume more CPU cycles than it would when done without higher level of abstractions. But, hey, that’s the cost of abstractions, why pay when they are not needed?

Stop laying out your C++ design like Java. Avoid inheritance when possible. Don’t make every member function and destructor virtual without really thinking. They not only increase your run time overhead, they boost the complexity (read coupling) of your code like nothing else.

C++ does every C-style stuff the same way as C does. Not to mention it is capable of more compile time computation than C. I just fail to see how C++ could be slower than C in run time, seriously.

del.icio.us:So, You Think C++ is Slower than C digg:So, You Think C++ is Slower than C spurl:So, You Think C++ is Slower than C newsvine:So, You Think C++ is Slower than C furl:So, You Think C++ is Slower than C Y!:So, You Think C++ is Slower than C 黑米共享書籤:So, You Think C++ is Slower than C 推推王:So, You Think C++ is Slower than C
The “Zw” Prefix
Posted on June 4th, 2009 at 22:53 by fr3@K

I’ve always wondered: What does the “Zw” prefix (of some NT kernel functions) mean?

As it turns out – nothing.

del.icio.us:The  digg:The  spurl:The  newsvine:The  furl:The  Y!:The  黑米共享書籤:The  推推王:The
It’s Better Without Asus
Posted on May 30th, 2009 at 19:05 by fr3@K

Okay. Asus, this move is not cool.

Perhaps it’s better without you, altogether. Bye.

Cited from: The Register.

del.icio.us:It's Better Without Asus digg:It's Better Without Asus spurl:It's Better Without Asus newsvine:It's Better Without Asus furl:It's Better Without Asus Y!:It's Better Without Asus 黑米共享書籤:It's Better Without Asus 推推王:It's Better Without Asus
Observer Pattern, Done Differently
Posted on May 24th, 2009 at 20:43 by fr3@K

In a recent post of Scott Wheeler’s – C and C++ are not the same language. He talked about differences between C and C++, and applications of different programming languages (C, C++, Java, Ruby) in his company.

In the post, Wheeler implemented observer pattern in C, C++ and Java, demonstrating some of his points – including how C and C++ are different from each other, and how C++ and Java are actually more alike.

Though I do agree with Wheeler’s conclusion for the most part, I failed to share his view in C, C++ and Java comparison. IMHO, his observer implementation in C++ is rather old school, or should I say it’s so Java.

(more…)

del.icio.us:Observer Pattern, Done Differently digg:Observer Pattern, Done Differently spurl:Observer Pattern, Done Differently newsvine:Observer Pattern, Done Differently furl:Observer Pattern, Done Differently Y!:Observer Pattern, Done Differently 黑米共享書籤:Observer Pattern, Done Differently 推推王:Observer Pattern, Done Differently
Author of NoScript Apologized
Posted on May 7th, 2009 at 11:38 by fr3@K

Giorgio (author of NoScript) apologized and explained things from a somewhat different (i.e. his) perspective.

As Giorgio said himself, it was wrong and there is no excuse. Though, from a user’s point of view, I do not agree with his doings in this instance. However, from a geek’s (i.e. my) point of view, they were not unthinkable.

My take, Giorgio was hacking, not for the greater good obviously, but there was no intention to takeover the world (or helping bad guys doing so) neither. That is if it is his true thinking that he told us.

For now, I am keeping NoScript.

del.icio.us:Author of NoScript Apologized digg:Author of NoScript Apologized spurl:Author of NoScript Apologized newsvine:Author of NoScript Apologized furl:Author of NoScript Apologized Y!:Author of NoScript Apologized 黑米共享書籤:Author of NoScript Apologized 推推王:Author of NoScript Apologized
NoScript Gone Bad!? WTF!
Posted on May 5th, 2009 at 0:55 by fr3@K

Users of NoScirpt, read this (in Chinese) and this (in English)!

I am researching for alternatives to NoScript, if anyone has any idea, please drop me a line.

[Update]
Author of NoScript apologized.

del.icio.us:NoScript Gone Bad!? WTF! digg:NoScript Gone Bad!? WTF! spurl:NoScript Gone Bad!? WTF! newsvine:NoScript Gone Bad!? WTF! furl:NoScript Gone Bad!? WTF! Y!:NoScript Gone Bad!? WTF! 黑米共享書籤:NoScript Gone Bad!? WTF! 推推王:NoScript Gone Bad!? WTF!
Contemplation of Prejudice
Posted on April 7th, 2009 at 23:09 by fr3@K

Not long ago, I blogged about how it was difficult to adopt Free libraries in my previous projects at work.

Just today, when I was exploring the compay repository, I see boost sits comfortably under a folder named “3rd_party” in one of my previous projects, along with a couple of tiny Free libraries I wrote.

Apparently, I was wrong and didn’t try hard enough. Going to find the man who made it happen and pay him my respect tomorrow.

del.icio.us:Contemplation of Prejudice digg:Contemplation of Prejudice spurl:Contemplation of Prejudice newsvine:Contemplation of Prejudice furl:Contemplation of Prejudice Y!:Contemplation of Prejudice 黑米共享書籤:Contemplation of Prejudice 推推王:Contemplation of Prejudice
[Note] Installing Review-Board on Ubuntu Linux 8.10
Posted on March 27th, 2009 at 23:32 by fr3@K

This is a note to myself just in case if I have to do it again – installing a Review Board server.

The installation process took me more than a few hours and spanned over three days. Here are the few things that caused me a grief. They are things I managed to remember and are by no mean complete.
(more…)

del.icio.us:[Note] Installing Review-Board on Ubuntu Linux 8.10 digg:[Note] Installing Review-Board on Ubuntu Linux 8.10 spurl:[Note] Installing Review-Board on Ubuntu Linux 8.10 newsvine:[Note] Installing Review-Board on Ubuntu Linux 8.10 furl:[Note] Installing Review-Board on Ubuntu Linux 8.10 Y!:[Note] Installing Review-Board on Ubuntu Linux 8.10 黑米共享書籤:[Note] Installing Review-Board on Ubuntu Linux 8.10 推推王:[Note] Installing Review-Board on Ubuntu Linux 8.10

Page 1 of 3[ 1 ]23»