Month: September 2005

ImageMagick and JMagick on Linux

INSTALL IMAGEMAGICK
Download libwmf-0.2.8.4-1.i386.rpm
rpm -ivh libwmf-0.2.8.4-1.i386.rpm
Download ImageMagick-6.2.4-6.i386.rpm
rpm -ivh ImageMagick-6.2.4-6.i386.rpm

INSTALL IMAGEMAGICK-DEVEL
yum install ghost-script-devel
Download ImageMagick-devel-6.2.4-6.i386.rpm
rpm -ivh ImageMagick-devel-6.2.4-6.i386.rpm

INSTALL JMAGICK
yum install libtiff-devel
yum install libjpeg-devel
Download JMagick-6.2.4-0.tar.gz
tar xvfz JMagick-6.2.4-0.tar.gz
cd JMagick-6.2.4-0
./configure (or. ./configure –with-java-home=/usr/lib/jvm/java-1.5.0-sun-1.5.0.03)
make all
make test
make javadoc
vi Make.def
Find INSTALL and change the value to /root/JMagick-6.2.4-0/install-sh
make install

To use JMagick, libJMagick.so must be in a directory where the runtime loader can find it or you must set the environment variable LD_LIBRARY_PATH. jmagick.jar must be in your Java class path.

Infernal Affairs

I’ll have to admit that I was leery of Infernal Affairs when my sister handed me the VCD. Coming from Hong Kong, I thought it is just another one of those gunfire blazing unlimited ammo action flicks. And the title didn’t help: It actually got me expecting some demonic horror twist. But haven’t watched a movie for so long that I actually popped it into the CD drive and played it. Fortunately, I was oh so wrong. The movie turned out to be pretty good. It is essentially a cat-and-mouse game between a police mole in a triad gang and a triad mole in the police force. There were no guns blazing. During the whole movie there were probably just over a dozen pistol shots. And there was absolutely no demonic horror twist. Instead, there was intense palpable drama full of twists and turns as the two moles hunt each other out while at the same trying striving to protect their identities and maintain a grasp on the false life (or is it their real life?) they both live. The game culminated in a tragic ending though not without a few more twists.

Rating: 4/5

F**k You And Your H2

F**k You And Your H2 is the home of the official Hummer H2 salute. So…why all the fuss? Well, it breaks down like this:

* The H2 is the ultimate poseur vehicle. It has the chassis of a Chevy Tahoe and a body that looks like the original Hummer; i.e. it’s a Chevy Tahoe in disguise.

* The H2 is a gas guzzler. Because it has a gross vehicle weight rating over 8500 lbs, the US government does not require it to meet federal fuel efficiency regulations. Hummer isn’t even required to publish its fuel economy (owners indicate that they get around 10 mpg for normal use). So while our brothers and sisters are off in the Middle East risking their lives to secure America’s fossil fuel future, H2 drivers are pissing away our “spoils of victory” during each trip to the grocery store.

* The H2 is a polluter. Based on G.M.’s optimistic claim that it gets13 mpg, an H2 will produce 3.4 metric tons of carbon emissions in a typical year, nearly double that of G.M.’s Chevrolet Malibu sedan.

* The H2 is a death machine. You’d better hope that you don’t collide with an H2 in your economy car. You can kiss your ass goodbye thanks to the H2’s massive weight and raised bumpers. Too bad you couldn’t afford an urban assault vehicle of your own. Or could you…?

* The H2 is a tax loophole. Under Bush’s new tax plan, business owners can deduct the entire cost of their $55,000 H2. If you are in the highest tax bracket, that’s a tax savings of nearly $20,000! The government rewards you more savings for buying an H2 than you’d get for buying an electric car.

Gasoline Blues

Fuel prices are rising like crazy. To you and me, that usually means gasoline. Unfortunately, it’s not as simple as the the evil cartel called OPEC choking the oil stupply. There are also other factors such as fuel refiners’ capacity, huge demand from China, etc. During times like these, as during the Oil Crisis, there is a great interest in alternative fuels. So what are the alternatives to gasoline?

The first thing that would come to mind is diesel. It got a bad rap before for being unreliable, noisy, and dirty. This is unfortunate since diesel is actually much more efficient than gasoline: It can go further per liter. Consequently, it also produces less greenhouse gases. The new generation of diesel engines are even cleaner. This was accomplished by improving the combustion process and by improving the quality of diesel fuel. The good thing about diesel is that you don’t have to wait, it’s here now. In Europe, 40% of the vehicles are diesel powered.

Then there’s the environmentalists’ wet dream: Bio-diesel. Not only is bio-diesel renewable, it is also much cleaner than dinosaur derived diesel (aren’t they also bio?). Bio-diesel is made from a variety of renewable sources: vegetable oil, rapeseed oil, coconut oil, etc. And you can often just pour them directly into the fuel tanks of most diesel engine vehicles without modifications. They will probably be widely use in 5 to 10 years’ time when awareness spreads and production ramps up. That’s about the same time the US leaves Iraq.

Hybrids are a combination of electric vehicles and gasoline vehicles. When running slowly and in stop-and-go traffic, the electric engine is active. When running at high speeds, where gasoline becomes more efficient, the gasoline engine takes over. The battery is automatically charged during braking and when the gasoline engine is active. There are no hybrid diesels yet but it’s only a matter of time before those come out too. Then you can use bio-diesel in hybrids too. They will probably be in widespread use in 5 to 10 years’ time.

Finally there’s fuel cell technology. It is the environmentalists’ thunderous orgasm. The ultimate in forseeable fuel technology. Fuel cell technology is actually an alternative to batteries as a power source for electric vehicles. Batteries have been lagging badly in terms of energy density and the search for a better energy source has led to it. Fuel cells rely on the reaction of hydrogen from the fuel and oxygen from the air to produce electricity and form water vapor, the byproduct. It is the cleanest and most sustainable fuel. It’s is also the most expensive and least viable at this time. My guess is that we can expect widespread fuel cells only in 15 to 20 years’ time.

So what does this mean to us? If you have a gasoline-powered vehicle: nothing much. Just have to keep your vehicle well maintained and drive as fuel-efficiently as possible. If you have a diesel-powered vehicle: use bio-diesels which are being marketed mainly as additives. And of course: WAIT.

Rainy Road Days

This week was full of rain with the heaviest rains falling yesterday. It rained so hard the SLEX got flooded and a lot of motorists were stranded. Now normally I like rain, it cleanses the earth that humans seem so ready to pollute. And it offers reprieve from the opressive heat of the sun. But when you’re on the road, it also means slooow moving traffic. For what exact reason I don’t know. Perhaps the flood-prone nature of the streets is a major contributor.  Times like these, you actually appreciate the effort of traffic controllers (when they are there). They may not be capable of capable of totally decongesting traffic  but they can at least keep things from getting into a gridlock.

to the traffic controller (and others like him) who stuck it out at his post at F. Ortigas cor J. Vargas despite the heavy rain doing what he can to keep traffic flowing. I know some of these guys have reputations for being corrupt and inept (or both) but that doesn’t mean all of them are and the dedication of some, including this guy, is admirable.
to the impatient driver who was shouting out the window like the idiot that he is because he can’t wait his turn at the intersection.