Rich Mintz (richmintz.com seems empty) gave me a great tip for keeping focused. He’s a Mac user and OS X makes it easy to get the computer to say the time every 15 minutes. It isn’t so easy on Ubuntu, but it is doable. Since I put this in place, I’ve found that it does help me focus more. It can also help keep me from working too late (not that it has yet). Anyway, here is the bit of magic that you need:
(crontab -l;echo "0,15,30,45 * * * * (echo it is now;date \+\%I:\%M\%p)|espeak --stdout|sox -q -V0 -t wav - -t alsa pulse")|crontab -
Update:
(crontab -l;echo "0,15,30,45 * * * * (echo it is now;date \+\%I:\%M\%p)|padsp espeak")|crontab -
will also work, but you may get emails filled with error messages from cron. Breaking it down
(crontab -l; ...) | crontab -
This part dumps the current crontab out, appends the new line (elided here, see the next step) and then, with the “crontab -” after the pipe, creates an entirely new crontab with the results. This way, we just add a new cronjob to the list of ones you may already have.
echo "0,15,30,45 * * * * ..."
The first part of any crontab file gives a schedule for execution. Since I just want this to run every 15 minutes, I haven’t set up anything besides that, but you could tell it “only during business hours during the work week” which might look something like “0,15,30,45 9-17 * * 1-5“. I recommend you RTFM for help on that, though.
(echo it is now;date \+\%I:\%M\%p )
Print out two lines that are what you’ll hear. If you don’t want to hear “It is now”, then you can leave out that echo statement and the parenthesis. The date command just formats the current time in HH:MM AM/PM time format. One problem is that at the top of the hour you have “00″ which the synthesizer reads as “zero zero”. Oh well, all is not perfect.
| espeak --stdout
Every 15 minutes when the cron job is run, espeak reads the bit from date and produces a wav file with the sounds that your computer should play. Normally, espeak would just play this out on your speakers, but you might be listening to music. If the speakers were otherwise engaged (by, say, Rhythmbox), then you won’t hear the sound and cron will send you an email full of strange error messages.
| sox -q -V0 -t wav - -t alsa pulse
To get the sound to mix properly with other sound apps, it has to play out through pulseaudio (the new, default sound server in Hardy). Strangely enough, even though pulseaudio was supposed to Fix the Linux audio mess once and for all, we still have to jump through hoops.
There is a chance that saytime will just work for you. But, because of that “audio mess” that still exists in Ubuntu, it didn’t work for me.
|
Posted by
hexmode |
Categories:
Uncategorized | Tagged:
ubuntu |
Tomorrow, May 27th, marks four weeks with my new bike. Its a great relationship. I’ll hit 420 miles tomorrow. That makes just over 100 miles a week. I’d like to do more. Last week, in North Carolina, I was able to get about 40 miles every other day. I know I can hit 20+ miles a day here, but I’m not sure I can hit more than 30 miles/day just yet. I haven’t ditched my old hybrid, but I’ve left the child seat on it. Now, when I want to go riding with the kids, or take my 3 year old, I can just pull down the old bike and away we go. Last week I realized something I hadn’t understood before. Whereas driving drains energy from me and I get irritated by the amount of gas I use (however small), cycling feels empowering and, because I’m not irritated, I go more places. Like I said, its a great relationship.
|
Posted by
hexmode |
Categories:
Uncategorized | Tagged:
cycling |
You know what? I like the way Rwandans do bureaucracy — completely open to the world. We walked right into the Ministry of Health and found the person we needed to see. No bothersome identification checks. No screening. Just plain trust. Contrast this with our visit to the U.S. Embassy in Rwanda. A squat building built to be impervious to almost any attack. Two ID checks. Two metal scanners. No laptops. Bah! Well, some journalism interns from Canada are in Rwanda and, when one decided he needed a contact at the Ministry of Infrastructure, he was a little surprised:
Jean Pierre, our program assistant here in Rwanda, suggested we just go to the Ministry offices and ask around. I was skeptical; surely security wouldn’t even let us through the door without a contact or an appointment. But much to my surprise we walked right in the front door and after asking around I found a man who has worked in road safety for over a decade: the perfect expert.
|
Posted by
hexmode |
Categories:
Uncategorized | Tagged:
rwanda |
Tim Bray is arguably very smart in technical areas. He leads the list of authors on the XML Spec, after all. But just because he can do amazing things with angle brackets doesn’t mean you should trust his opinion on anything else. I wasn’t too surprised about his opinion on Kosovo, even if I did disagree, but now he’s advocating deposing dictators, without all the “Republican cronyism, corruption, and stupidity”. Um, yeah. I think this is how the neo-cons started, isn’t it? Someone like Tim Bray thinks “Well, wars aren’t all bad, just the way they are doing them. If I were in charge, I could do it right. And, of course, the targets I would pick would be the right ones.” Update: If you still think there is a possibility that instigating a war is sometimes OK, read Aaron Swartz’s “Intentionality of Evil“.
|
Posted by
hexmode |
Categories:
Uncategorized |
This week, I’m in Chapel Hill, NC, working with some colleagues. I flew down Sunday and, since I’ve been having so much fun riding back home, this time I brought my bike with me.
Since this is the first time I’ve ever tried to take a bike with me when I travel, I thought I’d sum up some of what I’ve learned:
- Amtrak. Amtrak seems to welcome folding bikes but is spotty when it comes to full-size bikes. Some trains are specially-equipped with bike racks to accommodate commuters. But the train I took was not. I had packed my bike in a hard case to protect it on the train. These cases are not small. Getting onto an Amtrak train is completely dependent upon the good graces of the conductor. When the conductor saw me with my 3 foot by 4 foot case, he said “Looks a little oversized to me.” But he let me on. Later he asked me “What do you have in there? A transmission?” and I told him it was a bike. He rolled his eyes. If your trip includes Amtrak, scope out the way before hand and be ready with a backup plan (I could call my wife if I needed to).
- Regional Rail. These are the sorts of trains you’ll only find in the Northeast or around cities like Chicago. They include commuter trains like New Jersey Transit or SEPTA. I took the SEPTA from downtown Philly to the airport. When I asked if I could leave the bike at one end of the train, they refused and made me take it to my seat. I have seen people sit at the end of the train with their bikes on New Jersey Transit, though. Be prepared to lug this thing with you everywhere.
- In the Air. This is the one part of my trip I didn’t have a good alternative for, so I had to make sure it worked before I went. USAIR will accept bikes but charges $80 (unless you have a folder that folds down really small). I was only charged $25 because there was some confusion at the self-check kiosk and it treated my bike like extra baggage. Southwest (my return flight) will charge you $50 to take a bike. USAIR says they’ll take an un-boxed bike, but I really didn’t want to leave it in the hands of the baggage handlers like that. For this trip, I rented a hard case. I’ll probably be buying one in the near future.
- Taxi. A regular taxi cannot easily accomodate the bike case. You’ll want to get a SUV or Minivan taxi.
Of course, bring along a tool set. I deflated my tires because 120psi might do funny things at high altitude. Next time I’ll pack a real pump instead of just the frame pump I have right now.
Finally, a note on the differences in traffic. I ride in traffic. Lots of people are scared to do this. Even many people who ride regularly are not comfortable riding in traffic. And, to be sure, there are some frightening drivers out there.
In Lancaster County, though, there are plenty of biking Mennonites, so drivers know there are cyclists on the road. They seem very accomodating and I haven’t had any problems.
Here in Chapel Hill, NC, a place filled to the brim with Liberal Eco-concious Hippie wanna-bes, when I travel just a little into the country, things get weird. There are no shoulders to speak of on the road and drivers get a little cranky when they see me. Most, of course, are great. But one or two this morning were noisily upset to see me in front of them.
For this, there is only one solution: more cyclists on the road.
|
Posted by
hexmode |
Categories:
Uncategorized | Tagged:
cycling |
Plus five excuses not to and why they might not matter as much as you think.
- High Gas Prices. This one is a gimme. And don’t forget, gas prices are expected to double. Gas at $3.70 is getting people closer into the city to stop using their cars for their commute. When it reaches $7 or $8, people farther out will see a bike as an attractive way to cut costs.
- Exercise. It is unfortunate, but as our lives become more automated — more time shuffling paper and toggling bits — we become lazier and more sedentary. Humans aren’t designed to sit on their butts all day. They should be out hunting something or working in a field. For those of us who are stuck behind a desk, riding a bike to the desk gives you some exercise every day. The further you live from work, the more exercise you get!
- Endorphins and a Sense of Accomplishment. Exercise produces endorphins and endorphins make you feel good. I’ve been riding like a madman the past few days and I’ve rarely felt better. It doesn’t hurt that I’m averaging 35 or so miles a day. Looking back, despite whatever else is going on in my life (and, really, my life ain’t that bad), I feel like I’ve really accomplished something most people don’t even try.
- Discovering Your Neighborhood. It is amazing the things you notice when you slow down. And lets admit it, for most people cycling is going to be slower than driving to work. But it comes with the benefit of finding new and interesting things along the way. Things that you miss completely when you’re going 45+mph. Even if it is only the silly sayings on the bumper of a parked car.
- Sleep. When you start exercising more, you sleep better. More and better sleep is always helpful. If you have insomnia and you aren’t biking to work, now is the time to start!
Now I can already hear objections, so I think I’ll start with some and my responses.
- It’s Too Far! How far is too far? I admit I would be hard pressed to make a 20 mile one-way commute every day. But I’m beginning to see that it is possible. If you live in the Northeast US, and you work a sizable distance from where you live, you can probably make part of the trip on a train. But consider how much time you spend behind the wheel. An ABC news poll said “For car commuters, it’s an average of 100 minutes”. 100 minutes! This morning, I rode to my church (12 miles). Driving usually takes 25 minutes — when everything is going smoothly. Biking took about 40 minutes.
- I hate riding in traffic. It can be scary the first few times. But once you get out there and ride, you will probably see that most motorists respect you and give you a wide berth. I’m usually to the right of the white line, but drivers here still give me half a lane or more when they pass me. Now, I have run into some nasty drivers, but in all my years of riding, I can think of only two or three incidents where there was any real danger from the driver. Most people are decent and will make room for you and your bike.
- High Gas Prices? I’m Rich! Even if you are rich, most of us could stand to get more exercise.
- But I already go to the Gym! And let me guess… you drive there, right? How far is it? Why not bike to the gym? Or save your gym fees and bike some more. Just keep in mind that if you’re getting a good upper-body workout, that ain’t gonna happen on a bike.
- I’ll end up Sweaty at Work. Yes, you might. And it probably won’t matter. Or you might find a way to make it work. Just keep in mind that plenty of people bike to work and they aren’t all pariahs.
|
Posted by
hexmode |
Categories:
Uncategorized | Tagged:
cycling |
In the past 48 hours, I’ve put 75 miles on my bike. I’m hoping for another 30 tomorrow. If I keep this up, I can do 200 a week, easily. I told that it took me 30 years to ride a bike and one of the kids asked what that meant. “Oh, he just means it took him that long to ride using common sense.” Hrm… Not sure I would put it that way… But I’ve been told plenty of times I have no common sense, so maybe there is something to that. In any case, today, for the first time in a while, I wiped out. I took my bike over a guardrail. That sounds more dangerous than it was. I was fiddling with my water bottle and going around a curve. I try to stay as far from the center of the road as possible — usually I’m to the right of the white line. On this particular stretch, the road travels through a bit of woods on the side of a hill and, yep, there is a guardrail. So, with my water bottle fiddling and riding close to the guardrail, I brushed up against it and, after a bit of a struggle to maintain control, went over the guardrail. With my feet in the clips, the bike came with me. And, of course, the water bottle rolled into the road where oncoming traffic hit it and gave it a nice leak.
|
Posted by
hexmode |
Categories:
Uncategorized | Tagged:
cycling |
Hrm… If I’m going to continue posting these OW-related pieces, I should really start up the News blog. In any case, I just confirmed that Login is working again. Let me know ASAP if you find something else broken. And, as I said, in response to ‘s comment on the last status update: I’ve changed all accounts so that they are validated again. I’m really kind of surprised to have anyone outside my friends and family asking me about the OpenWeblog site. It would be really helpful if you could let me know what you use OW for that LJ doesn’t provide.
|
Posted by
hexmode |
Categories:
Uncategorized | Tagged:
meta |
There seems to be a number of stories about bike sales going up. Apparently this AP story from Maryland spurred a local story that has accounts from local bicycle shops about increased (or not) sales. Though reports from shop owners are conflicting, it looks like people in the city (represented by Cycle Circle — the guy who sold me my bike — and Bike Line), most of whom naturally have a shorter commute, are starting to pick up bikes. People out in my area (the article mentions two stores in the neighboring town of Ephrata) aren’t quite as ready to start bike commuting. I mentioned that my daughter’s godfather was looking at folding bikes. This week he told he got one and is putting 40 miles a week on it at each end of the train commute. I expect this sort of trend to continue as gas prices edge their way up over the next few years. (In other news, I put 45 miles on my bike yesterday with travel from here to there and back again. If I found a way to do that every day, I could hit 200 miles a week easy.)
|
Posted by
hexmode |
Categories:
Uncategorized | Tagged:
cycling |
At some point, I need to turn this into a real web service or something. For now, just know that, if you couldn’t log in, I’m aware of the problem and working on a fix. As a work-around, you can comment on this entry and, when filling in your username and password, tell it to log you in.
|
Posted by
hexmode |
Categories:
Uncategorized | Tagged:
meta |