2021-08-21 06:53 pm

Consecutive routes

Pittsfield has US-7, MA-8, and MA-9 (and there are signs from US-20 that list all three).  Routes 7 and 8 don't connect.  But, if you're on MA-8, then you can go east to MA-9, and when you get to Northampton, you can turn on to MA-10.  If you go north a very long way, staying on Route 10, then NH-10 intersects NH-11 in Newport, NH; go west and you'll reach NH-12 before you cross the Connecticut River; go back south into Massachusetts and MA-12 will reach MA-13 in Leominster.

So: what is the longest chain of consecutively-numbered routes you can connect?  You can cross a state line, but only if the road keeps the same number (NY-7 turning into VT-9 breaks the chain).  No specific need to start with Route 1.  No subsidiary routes (MA-2A, "business" routes, &c.; 3-digit routes like I-290 or US-202 are legitimate but have to stay in sequence).  Distance doesn't matter (starting in Key West, taking US-1 to US-2 in Maine, then to US-3 and US-4 in New Hampshire and then US-5 in Vermont is a legitimate start) (but if you start off this way, US-7 runs parallel to CT/MA/VT-8 and does not intersect anywhere).
2021-03-07 09:43 am
Entry tags:

Farewell, Porter commuter rail signals

Approach [57/366]If you stood on the commuter rail platform at Porter Square and looked towards Boston, there has always been a pair of signals, one for each track. They were replaced around 2015 as part of the general Fitchburg Line upgrade project, at the same time the line was double-tracked through Acton and Littleton: they moved east behind the car wash, and with a block signal near Union Square removed, became a distant signal for Swift Interlocking at the McGrath Highway overpass.

Those signals got removed this week as part of the T's Positive Train Control project.

There's very established technology to tell a train what the next signal will be by sending signals through the rails, and displaying the corresponding signal in the operator's cab.  Of note, Amtrak's Northeast Corridor uses a variation on this system that displays both a signal and a speed limit, and so MBTA trains that operate on the Providence Line are already equipped with the ACSES hardware.  In the wake of the 2008 Metrolink crash, Congress mandated that all passenger trains be equipped with a positive train control system that can stop a train before it passes a red signal, and in turn this has caused the T to install cab signaling everywhere on the commuter rail system.

If the train already has a display in the cab telling it what the next signal should be and how fast it should go, you don't also need signals next to the track displaying the same thing.  So the wayside automatic signals are also disappearing across the MBTA commuter rail network.  The Old Colony lines never had them; if you drive on the Pike next to the Worcester Line, you'll also notice the signals there have been removed.

Still, I have a fondness for seeing these signals as I go past.  This is one of a couple of locations where I said "...so what does yellow-over-green mean?" and actually looked it up.  As my...well, "home signal" is a technical term, but you get the idea...I'll miss seeing them.

2019-06-13 08:31 pm
Entry tags:

Derailment-pocalypse

Are there any good sources that have current actual peak headways on the Red Line? I haven't verified it myself but from maps like this one it looks like the T just isn't publishing real-time vehicle data for the Red Line at all, which means nobody who's not willing to hang around a T station for an hour or so can find this out.

The good news is that the conductors on the Fitchburg line seem to have gotten the memo that any CharlieCard will get you to Porter, and the 5:55 Wachusett train had lots of open seats leaving North Station. But, the walk from South Station to North Station is just a little bit longer than I think it is, which is an issue if the 5:35 train leaves on time.
2019-02-17 05:59 pm
Entry tags:

Bike log: urban February edition

Yesterday rode the Minuteman as far as Lexington; today explored the various Boscamberville roadway improvements.

In Boston proper, the cycle track around the North End is actually pretty awesome. But navigating through downtown Boston, especially the Scollay Square/Post Office Square area, is horrific. (I at least think I know how I'd get to work.) The bridge into Charlestown would be worth avoiding if there were any other way to go that direction.

The cycle track along Beacon Street in Somerville is somehow less impressive; maybe because the driveway crossings aren't as smooth and it's not totally clear what to do when it stops and starts and stops again.

"Sharrows" feel better than I give them credit for. They tend to communicate "sorry there's not bike lane for this block" to me, a little more than "you can take up this space in the lane which you legally could have done anyways".
2018-01-13 09:36 pm
Entry tags:

The T: the past month or so

Incidents of either dead trains or track problems extracted from http://www.universalhub.com/mbta ...where it is impressive that the editor can still come up with dead train rhymes.

SuMTWThFSa
Dec 2017 17 18 O R 19 G O R 20 21 O 22 O 23
24 25 26 27 R 28 R R R R 29 G O O 30 G G O R
Jan 2018 31 1 G 2 3 G R 4 5 B G O R 6 O R
7 8 G O R R 9 G 10 R R 11 G 12 O R 13


(Manually extracted. Didn't count "station closed due to flooding" incidents, of which there were multiple. And yes, on December 28, according to UHub, Red Line trains separately died at Alewife, Kendall, Porter, and Davis.)
2017-07-13 09:02 am
Entry tags:

Library review: Cowboy, Sumo Rest

The other end of the Erlang experiment is the libraries I was working with. My application was built on the Sumo Rest stack, built on top of the Erlang Cowboy HTTP server.

I found this finicky and prone to vague runtime errors. That's not important, though. The overall style of the system was pretty reasonable, and is probably a good way to write REST services in general.

Read more... )

The layout implications of this are useful and generic: one source file per type, where each type file defines its storage, serialization, and documentation; and one source file per route, where each route file has its own URL path, complete machine-processable documentation and metadata, and understands the standard failure cases. You just need the right high-level REST library in your language of choice to support this.
2017-07-13 08:27 am
Entry tags:

Programming language review: Erlang

What do you get if you combine Haskell's basic functional style, Lisp's type system and object representation, a unique concurrency system, and a very good runtime?

Read more... )

In short, Erlang looks like a good language, a little dated, but I'd rather have good static checking and a robust library stack than an excellent runtime with okay libraries, especially if I can avoid peeking "under the hood".
2017-04-15 07:15 am

DW

The same username I have in the rest of the world, except for here, and my gmail, and my Flickr.

I've managed to find the half-dozen people who have said they're relocating in the current exodus, but not the people who thought the air was starting to smell funny when the new overlords turned out to be Russian years ago.

DW will probably get about as much use as LJ has been, which is to say, very occasional long-form blogging for a social audience that's not really suited to one of the newer trendier social networks.  But I'm there.
2016-08-18 09:30 am
Entry tags:

Mr. Reindeer wants to feel superior

https://github.com/hiddenlotus/inferior-spim - An emacs inferior mode for spim

(Also, apparently spim is still around and in use, to the point where people are writing new Emacs modes for it?)
2016-03-28 11:41 am
Entry tags:

Cameras and transit

The past decade in Boston transit has seen a massive increase in the number of CCTV cameras deployed around the MBTA system.  Several are seen in most rapid transit stations, newer buses have several apiece (and a video monitor showing you what's being recorded), and the monitoring stations are consciously placed in places like the South Station subway concourse where the general public can see them.  "Sure, Big Brother is watching you," the T says, "but it's for your own safety."

This rubs me the wrong way.

Meanwhile, across the pond, I also read the reports of the British Rail Accident Investigation Branch.  These are fascinating from an engineering point of view because they try to explain and analyse, in plain English, what actually happened and could be improved: maybe a lorry backed into a bridge pushing the 150-year-old brickwork on to the tracks, which a train hit 10 minutes later, but why didn't 999 contact the signaler to have them stop the train, and why was the damaged train allowed to continue at 100 mph after the accident cleanup?

The RAIB reports are also good for including pictures of relevant parts of an incident: here's a picture of the pin assembly on an intermodal flat car, here's what it would look like if it was hanging off the edge of the train, here's the picture of the train platform said pin assembly hit at 60 mph.  Depending on the incident, many of the pictures come from CCTV imagery, including pictures from remotely manually controlled level crossings and station platforms.

This use of CCTV imagery I'm very okay with; but it does actually depend on having cameras in a lot of places so that you can collect together a photographic history of the train.  "We're watching our infrastructure and our trains to make an already safe system safer" seems like a positive message; much better than "we're watching you".
2015-11-19 11:14 am
Entry tags:

What happens if wages change fundamentally?

Let's say, hypothetically, that Bernie Sanders wins the election, and even more hypothetically, pushes through national single-payer health insurance and a corresponding IRC change that employer-provided health insurance is no longer a deduction.  This of course causes massive upheaval in the health insurance industry; but what effect does it have on a typical employer?

(You can ask a similar thought question about the proposal of just giving a handout to every person in the country that should be able to provide basic food and shelter, and simultaneously reducing minimum wage to zero.)

Read more... )
2015-10-01 09:42 am
Entry tags:

Useless observations on Fitchburg line (Porter Square) resignaling

(0) They removed the signal behind the Market Basket, and changed the area between Sherman St. and Alewife Brook Parkway to no longer be a signaled junction, which affects what the signal at Porter can show.

(1) Old signals showed red, unless the track was running in this direction.  New signals show a normal block signal aspect unless the track is running in the opposite direction.  (Or else, new control system makes it harder to set default "trains run on the right" routes and forget about it; but I'm pretty sure I've seen the old signals show red in both directions before.)

(2) The new signals take quite a while to reset to red when a train passes, like 10 seconds or so.  (It is possible that the train needs to completely pass the signal, but I don't think it actually works that way from watching two trains go by, and it would be odd for a new installation at this location anyways.)

This in combination means that the new default is yellow-over-red (approach) on both tracks; red-over-red (stop), probably on the left-hand track, means a train is coming from North Station; yellow-over-green (approach medium), probably on the right-hand track, means a train is going to North Station; and green-over-red (or -over-green, clear), for wonderfully geeky reasons, means a train has a route set all the way into a platform at North Station.  The outbound signals only show red/yellow/green; I have not yet observed whether these (or other new installations, like on the Lowell line) show flashing-yellow (advance approach) (rumor from the Internet is that they don't).
2015-10-01 09:04 am
Entry tags:

Modular model railroad benchwork

I've been thinking about starting the model railroad thing over again (having given away the previous half-finished layout in the renovation move).  One of the things I want to do differently this time around is build it in modules that I can take apart and put away somewhere, or rearrange to really take over the basement, or whatever else, and that I can start with a string of "I nailed track to plywood" modules so I can just run trains.

It turns out the subject line Googles reasonably, and comes up with at least three companies willing to sell things very much along these lines, at what seems to me to be an insane price.  Doing this requires a little bit of engineering design, some extremely basic woodworking skill, and a trip to your choice of wood store; or I can order a predesigned, precut, some-assembly-required kit for about $300 for a 2'x4' module (which may not scale the way I want).  This matches the last time I looked at electronics, which seemed to be similarly ridiculously marked up and wrongly featured for things I could build with some microcontrollers and motor drivers, though the electronics at least requires some technical knowledge.  I just don't understand this market and pricing, apparently.
2015-09-11 09:57 pm
Entry tags:

Second impressions of Go

Go is the new trendy programming language. In style it's kind of a backwards C, with an interesting amount of object-oriented features baked in. You can definitely get things done in Go, especially if you're not trying to interface to legacy systems.

As a modern language, though, the things it's missing seem odd. C++ has had parameterized template types as long as I've known it, and Java added them in eventually, but not Go, it's complicated. This means that basic functional-language primitives that are addictingly useful are essentially impossible to write. Remember 6.001? )

Most things in Go work by returning pairs of an actual result and a flag or error object. This does lead to making it more obvious to try to do some error handling, and it is "better" than both exception-based languages (where it's easy to ignore errors until they crash your program) or C's magic return value (where an int is an int, unless it's -1). But it also leads to more boilerplate. In which we briefly introduce monads )

There's one other oddity I've run into: When is nil not nil? )

Even so, the things that people find attractive about Go are still attractive. It's a compiled language, that isn't 30+ years old or owned by Oracle, that compiles reasonably obviously but can't obviously crash from pointer arithmetic errors. It's garbage-collected, which you may object to, but it beats the pants off of explicit memory management. The language includes maps and queues as base types, and if you secretly did like C memory management, you can relive the past with concrete arrays underneath slice views. I admit to having done almost nothing with goroutines, but the promise of the runtime having a select loop and thread management and synchronized channels in the core is much better than anything I've used that doesn't involve a big C library.
2015-07-25 02:24 pm
Entry tags:

Balanced budgets and demagoguery

My father and I self-identify on opposite ends of the political spectrum.  This doesn't preclude reasonable political conversations: "here's how the recent T review was a debacle"; "you clearly aren't a Sanders supporter and Trump is a nut job, so which of the 732 Republican candidates do you support?"  It seems like we agree on the fundamentals of how government should work, just not what the priorities should be.  Fundamentally I feel like mainstream politics comes down on one of three positions as far as finances go:

  1. I think government services are important and they need to be paid for, so I'll concede paying higher taxes for them, even if they serve others.

  2. I think low taxes are important, even if they come at the cost of government services, some of which may benefit me.

  3. If we cut taxes, the magic growth fairies will make there still be revenue so that government services can still happen.

Read more... )
2015-07-06 07:12 pm

Musing on museums

Last month's Asia trip included a couple of museums: the Shanghai railway museum, the Mint Museum of Toys in Singapore, and the Singapore World War II museum Reflections at Bukit Chandu.  This leaves me with a much better sense of what I appreciate in museums: they should be able to tell me some consistent story that I can appreciate and put in context.

Read more... )
2015-07-03 05:58 am
Entry tags:

Getting around in China

As noted elsewhere, I've just gotten back from a week in Shanghai and a week in Singapore.  Both of these trips were very urban; the Zhujiajiao expedition involved a guide and a driver and two and a half hours (with traffic, both ways) in a car but otherwise we were on our own two feet and the rails.

The Shanghai subway )

The fast train to Suzhou )

I do want to note just how much this intercity train system is kicking the ass of anything in the United States, though.  "One stop per 100 km" roughly matches what long-distance trains like the Lake Shore Limited do; if they run 175 mph between stations instead of 80 mph then that can literally halve the time to Chicago.  Even the "fast" trains like the Acela Express have very short sections of actually being "fast", between Boston and New York the section south of New Haven is also 80 mph with sections like downtown Bridgeport being 25 mph.  I think something like this is the vision of the big California construction project but it takes both money and willpower to do it.  China is willing to do it; here we just can't commit.
2015-05-05 07:05 am
Entry tags:

Tax policy

Google News decided I needed to read this diatribe pushing Republican tax policies.  They all seem like terrible social policy to me.  I'd think the basic rules should be:

  • Taxes cover the cost of running government

  • People who can afford to pay more should

  • The tax code should be comprehensible by mere mortals

Read more... )
2015-02-10 09:21 am
Entry tags:

Government, privatization, the T

Hello from home, since I can't go to work because the T isn't running, in turn because the T says that if a third train gets stranded they'll have trouble evacuating people in the dark. My Facebook feed is largely blaming this on a combination of excessive weather and old equipment (a third of the Red Line fleet is 45 years old, with an expected lifetime of 30). Meanwhile, our Republican governor, apparently parroting the Republican line that everything can be fixed with budget cuts, is proposing to cut $14 million from the T's budget. Now, $14 million isn't actually useful capital spending in this context, oddly enough — the newest Blue Line train cars cost $2 million apiece — but if the T needs more spending, how does cutting its budget help? Perhaps more interestingly, our governor was elected in part based on his business credentials, could private business run the T better?

Read more... )
2014-10-11 05:50 am
Entry tags:

Number-crunching bridge, and the Gold Rush

The ACBL's latest Web page redesign includes a page that gives your rank (inverse matchpoints) and percentile in a wide range of masterpoint categories, for instance where you are relative to all players that got any gold points this year. If you just copy-and-paste that page into a spreadsheet and do some basic math, you can find out the size of each category, which makes some interesting statements.

probably not interesting except to active bridge players )