Stan’s Obligatory Blog

2/5/2016

My Pet Project Turns Ten

Filed under: — stan @ 11:00 pm

The USGS Earthquake Notification Service, also known as My Pet Project, went online to the public on January 31, 2006. It all started back in about 2000, when I was talking to someone from Caltrans, and he was asking if we could set up something where they could put in lat/lon coordinates of key freeway bridges and interchanges, and then be notified any time there was an earthquake within some distance of any of them. At the time, we couldn’t do anything like that. But then, fate intervened.

We have occasional cookouts at the office, and in 2003, I thought it would be nice if I could set up a web form for people to fill out online so that I knew who was coming and what food they wanted. I thought this would be sort of like a gift registry, so I went on Sourceforge and found a little gift registry program that someone wrote. I downloaded it, and I hacked it to make an online signup for our office cookouts. In the process of doing this, I learned a bit of MySQL. And then, when I was riding my bike in one morning, I realized that a database like MySQL could do something like what the guy from Caltrans had asked for. So I whipped up a simple database with some rudimentary geographic information, I plugged in the worldwide earthquake feed, and it started sending me earthquakes from all over the world.

I recruited a few ‘guinea pigs’ around the office to set up accounts in it for testing. They suggested other things they would like it to do. At first, it could only define geographic regions as lat/lon points defining a box. People asked for circles, and then arbitrary polygons. Drawing a polygon on the map and figuring out if a given earthquake fell inside it kept me thinking for a while, but I worked out a reasonable way to do it. And while all this was happening, my little system was being shown around to everyone, until the National Earthquake Information Center saw it and decided that it should be an official product of the Earthquake Hazards Program.

We had a few old-style mailing lists that were open to the public at that time. One for worldwide quakes M5.5 and over, and two for California quakes. One for M3 and higher, and one for M4. Those mailing lists formed the initial subscriber base. I wrote some scripts to port the mailing lists over, creating an account for each person with notification rules that would give them the same earthquakes they had been getting before. All told, this made for about 100,000 initial subscribers.

Now it’s been ten years, and it now has about 400,000 subscribers. Over ten years, that’s an average of about 80 new subscribers every day. Most days get about 30-35 new subscribers, but this goes way up after big earthquakes. The largest jump was about 75,000 new subscribers in the two weeks after the 2011 M9 Tohoku Earthquake in Japan.

Because this all started from wanting to have an online signup form for the office cookouts, I thought we should have a cookout for the occasion. I made a cake, and we all gathered out on the patio behind the office. It was a nice time. And it’s still amazing to me that this thing I wrote that started out as a little Pet Project has turned into a thing. And that’s it’s used by 400,000 people. And in the end, I guess that’s the greatest satisfaction.

4/9/2010

Another milestone for my Pet Project

Filed under: — stan @ 6:56 am

Last summer, I was very pleased to see when the Earthquake Notification Service passed 150,000 subscribers. On average about 30-50 people sign up for it every day, and more after each large earthquake. And this week’s M7.2 Baja California earthquake pushed it over the top to more than 200,000 subscribers.

The earthquake also set a new record for the amount of mail sent in one day. The previous record of 2,326,000 messages was set after the M8.8 Chile earthquake in February. But this earthquake blew right past that record with 4,508,522 messages sent. And it would have been more if the database problems hadn’t slowed the system to a crawl. At the end of the first day, there were over 600,000 messages waiting to be sent, and over 500 earthquakes waiting to be processed.

Fortunately, I’ve found a workaround to keep the system from getting slow while processing large numbers of earthquakes, and I’m working on a re-architecture of the database to be able to handle heavier loads in the future.

10/7/2009

More on my Pet Project

Filed under: — stan @ 7:12 pm

earthquake map
There have been a lot of earthquakes this afternoon. In particular, there have been these three big ones:

M7.3 2009/10/07 23:13:49 -13.145 166.297 33.3 VANUATU
M7.7 2009/10/07 22:18:26 -12.554 166.320 35.0 SANTA CRUZ ISLANDS
M7.8 2009/10/07 22:03:15 -13.052 166.187 35.0 VANUATU

In the Earthquake Notification Service, also known as My Pet Project, subscribers can pick their own location and magnitude criteria for notification, but the general rule is that the larger the earthquake, the more people want to know about it. And anything over M7 will generate a lot of mail. So I went and poked through the logs to see just how many messages it’s sent in the last few hours.

It’s currently not quite 7:00PM here in Los Angeles. I looked at logs back to 2:00PM, which is about when these big events started coming through the system. And the notification system has sent 642,590 messages in that time. That averages out to about 36 messages a second for five hours. No wonder some ISPs with automatic filters have blocked our mail servers as suspected spam sources.

Just for perspective, the system has sent about 775,000 messages in the past 24 hours. And this is not a record. The 24-hour record for the system is 943,833 messages in 24 hours, and that was set last Saturday.

6/29/2009

My Pet Project

Filed under: — stan @ 6:16 am

150,000 subscribers
I checked this morning, and the subscriber list for the USGS Earthquake Notification Service passed 150,000 at about 07:34 GMT on Monday morning. This is a momentous occasion. I never imagined that something I invented could be so popular, useful, or entertaining. It’s come a long way from its beginnings as my Pet Project.

8/17/2006

A new use for my pet project

Filed under: — stan @ 12:47 pm

I just noticed today that someone is using the email generated by my pet project to feed a blog:

http://thequakequack.blogspot.com

Now this person is just taking the default mail profile. This is for earthquakes M5.5 and larger worldwide, and M4.5 and larger within the United States. The system allows for users to set up custom mail rules. Maybe I should figure out how to post here by email. Then I can set up a rule to have it display all earthquakes in the Los Angeles area.

2/9/2006

More on my pet project

Filed under: — stan @ 8:11 pm

I just noticed this link on the USGS Earthquake Hazards Program site today:

New USGS Website and Earthquake Notification Service Simplify Ways to Get Information You Need

“The new Earthquake Notification Service will replace the old system. Now with a user-friendly interface, users will be able to define their own multiple regions of interest, enter various notification addresses, set magnitude thresholds for day and night, and opt for “Aftershock Exclusion,” among many other options. The system can be found on the “Earthquake Center” section of the site.”

So it’s official now. It’s been public for a little over a week. About 1,000 people have signed up for accounts on it so far. We moved about 5,000 more over from the old ‘Bigquake’ mailing list. So far it’s been working like a champ. And today I found and squashed one little bug that’s been bothering me for months. So I’m pretty happy with it, even as I’ve been so obsessed with it that I’ve actually had dreams about PHP and Perl this week.

So check it out.

1/31/2006

My pet project

Filed under: — stan @ 10:51 pm

ens screenshot
I don’t usually write much about work here, but today was a momentous day. It was the most excitement I’ve had since the last M6 earthquake.

My project is the Earthquake Notification System. This is a system for automatic email notification of worldwide earthquakes. We’ve had public mailing lists for earthquake notification since about 2000, but they were ‘one size fits all’ in that people could choose only to get either M4 or M3 events, and they had a choice of Southern California, Northern California, or the whole world. This new system is the first time subscribers can pick their own custom geographic boundaries and notification thresholds.

This all started a bit over two years ago as my pet project. People have been asking for something like this for years, but it’s only recently that I figured out how to do it. So for the past two years, it’s been my little office pet. Every so often, I would trot it out and show it to people. They would suggest some more features they’d like to see, and then I’d put it away.

But about a year ago, the people at the National Earthquake Information Center took an interest in it. And it went from being a pet project to being a real project. They even got some web designers to help it look pretty. And today it went public. Yikes. There’s even a link to it off the front page of the Earthquake Hazards Program web site.

It’s kind of fun seeing something I invented being used by lots of people. At the same time, it’s kind of scary, since if it fails, I’m the one who will look stupid.

Have I mentioned recently that I really like my job?

9/14/2014

what if?

Filed under: — stan @ 5:52 pm

On Sunday afternoon, we took a trip to Santa Monica to go to a talk and book-signing with Randall Munroe of XKCD. He has a new book out: What If?: Serious Scientific Answers to Absurd Hypothetical Questions. It’s a collection of his what if? columns, and it’s all very entertaining.

The basic format was a conversation between Randall and Wil Wheaton. They talked about the book, about science in general, told stories, and took questions from the audience. It was a fun time, and at the end, we all lined up to get our books signed by Randall. And I got to thank him for the little bit of geek fame I got from when he mentioned my Pet Project in the mouseover text for this cartoon: http://xkcd.com/723/

4/7/2014

400,000 (!)

Filed under: — stan @ 9:52 am

The Earthquake Notification Service, also known as My Pet Project, passed 400,000 subscribers over the weekend. It’s still hard to believe that something I built is being used by so many people.
400 thousand

2/14/2012

This is great, and for more than one reason this time…

Filed under: — stan @ 10:40 pm

Tonight was yet another stair practice at the Aon building in downtown Los Angeles. And as always, I was dreading it all the way there on the train. I got a bit of a late start, due to some computer problems with My Pet Project today, but I finally managed to get out the door. Kathleen was coming downtown, too. I told her I was planning on doing one run up the building for time, and then I’d walk up it again with her.

There was some sort of problem on the Metro Red Line tonight. I rode the train to the 7th St station, and that was fine. But when I got off, there was an announcement on the PA. I missed the first part of it, and all I heard was “delays – Metro apologizes for any inconvenience.” They also had the announcement as a text crawl on the monitors in the station, but it seemed that no matter which monitor I looked at, all I ever saw was, “Metro apologizes…” So I figured I was there, so I might as well hit the stairs and get it over with. The last I’d heard from Kathleen was that she was getting on the train at 5:26, so she would be there about 6:00, plus whatever the delay was.

I headed up to the building and got ready to go. I’d gotten a pair of the rubber-palm football gloves that Mark recommends, and I was going to try them out tonight. So I started my watch and headed up. The gloves made little rubber-squeaky noises on the railing all the way up. I was just sort of cruising, but when I got to 56, I had a look at my watch and realized that I had a chance to do a good time if I really hit it for the last four floors. So I made some faster rubber squeaky noises and ran up the last four flights. I stumbled out of the stairwell and flopped on the floor. And when I looked at my watch, I saw 9:48, which is yet another best time for me. Can’t complain about that at all.

I rested for a few minutes and then went back to the lobby to wait for Kathleen. As it turned out, she was caught in the train delay, and she didn’t get there until 6:40. She asked me if I’d noticed anything different on the 52nd floor, but in my stair-climbing fog, I hadn’t. So we headed up the stairs again. Since I was going slower, I figured I’d see whatever it was this time.

When we got to about 40, the guards made the announcement that practice time was almost over. So I went ahead a bit and stopped at the intercom at 49 to call them and see if we could have an extra five minutes to finish. The guys said it was all right, so I continued on up to 52. That’s where I saw my Valentine on the wall, next to the fire hose valves and the floor number sign. It was the sweetest thing ever, and even better, because it meant that she’d had to climb the building before to install it. She said later that she’d come to practice late last Thursday to put it up, so that it would be there for me today.

So we climbed the rest of the way up to 60. We came out and then rode the elevator back down. And then we got changed and headed out for a nice dinner at Engine Company 28, just around the corner on Figueroa St. All told, it was a very nice Valentine’s Day.

Powered by WordPress