Skip to main content


As California Burns

For the past week, San Franciscans have been wearing respirators to protect their lungs from California's burned carcass in the sky.

Some of the particulates were once human flesh and expensive multi-story homes. Some were paint, pesticides, car batteries, and insulation.

One in five people are wearing masks matter-of-factly. No hysterics. No protests. No mention of the motherfuckers who brought catastrophic runaway climatic heating to our state, burning Californians alive without any warning.

What will Kamala Harris and Dianne Feinstein do after the cadaver dogs leave Paradise? They'll do the same as Repiglicans. They'll do what they've done their entire careers. They will say and do nothing to save us. That’s why they’re senators.
Recent posts

Silver City New Mexico November 2017

I don't take enough photos for compelling albums. I was once an amateur photographer with film cameras. Now I respect others’ privacy. I think our society has overdone it since everyone has a camera. Instead, I take mental pictures by talking to the locals in order to understand what I'm seeing in a historical dimension. It took me my whole life so far to see the invisible which is beautiful in its own right.

The frontier is alive and well in New Mexico. Silver City is where large-scale cattle ranching was attempted, start-up style, in the 19th century by venture capitalists. All of the operations went bankrupt due to drought. This was the approximate location of the television show Bonanza. The place looks exactly the same. Time has stood still.
If you want to buy a ranch, I know a place. It's amazing. But water is a problem.
Silver City is probably the most egalitarian city in the US. Although small, the government obviously has the typical jobs such as judge and p…

Upgrading brew

brew complaining that it doesn't support a prerelease version of OSX? Here is the only fix. A mere "brew update" will not work.

cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update

MySQL: This stored procedure inserts 'empty' rows into a specified table

This stored procedure accepts two arguments: a table name and a row count. It inserts the specified number of rows into the specified table. Of course, all columns in the table must either have default values or allow NULL.DROP PROCEDURE InsertDimension; DELIMITER $$ CREATE PROCEDURE InsertDimension(IN TableName VARCHAR(50), IN NumRows INT) BEGIN DECLARE i INT; SET i = 1; SET @sql_text = concat('INSERT INTO ', TableName, ' VALUES ()' ); PREPARE stmt FROM @sql_text; START TRANSACTION; WHILE i <= NumRows DO EXECUTE stmt; SET i = i + 1; END WHILE; COMMIT; DEALLOCATE PREPARE stmt; END$$ DELIMITER ;

Collecting and graphing metrics via Apache Camel, Statsd, and Graphite

If you're curious about Apache Camel's metrics reporting via Dropwizard, this guide will help you get Graphite running in a Docker container. Then you will run an instrumented Camel application and view its metrics via Graphite's browser UI.

(1) Install Docker

There are many ways to do this depending on your platform. Google it.

(2) Install and run the Docker container for Statsd and Graphite

Refer to

The instructions infer that you can run the container without specifying port mappings. This is plain wrong. So use the following command to start the container:

docker run -d --name graphite --restart=always -p 80:80 -p 8125:8125/udp hopsoft/graphite-statsd It is not necessary to enable Graphite's UDP listener. Statsd receives metrics via UDP and forwards them to Graphite over TCP. (3) On Windows and OSX, determine the IP address of the graphite Docker container

On Linux, you can use localhost.

On Windows and OSX, there are…