I used Splasho’s “Up-Goer Five Text Editor.” to write what I do, using only the most common 1000 words in English
In my work I tell computers what to do. I write orders for computers that tell them first to do this,and then to do that, and then to do this again.
Sometimes the orders tell the computer to listen for other orders from people. Then the orders tell the computer how to do what the people want, and then the orders tell the computer to show the people what the answer is.
I used to build computers. I would take one part, and another part, and many more parts, and put them together in just the right way so the computer would work right. Computers are all the same, they listen for an order, then do what it says, then listen for another order. We use them because they do this thing very very very very fast.
Month: January 2013
Equal Protection of the Law
I’ve been casting about for a way to follow up on my outrage of the government’s treatment of Aaron Swartz.
I wonder if the government’s conduct represents a violation of the equal protection clause of the constitution.
The 14th amendment says
…nor shall any State deprive any person of life, liberty, or property, without due process of law; nor deny to any person within its jurisdiction the equal protection of the laws.
Evidently this doesn’t apply to the federal government as written, but in Bolling v. Sharpe in 1954, the Supreme court got to the same point via the Due Process clause of the 5th amendment.
I think all governments, state, federal, and local, are bound to provide equal protection.
In the Swartz case, we have the following mess
- Congress writes vague laws
- Congress fails to update those laws as technology and society evolve
- Prosecutors use their discretion to decide who to charge
- Prosecutors use pre-trial plea bargaining to avoid the scrutiny of the courts
It would be nice to have a case before the Supreme Court, leading to a clear ruling that equal protection applies to the actions of prosecutors. I suspect that would also give us proportional responses to crimes, although I am not sure about that.
In the medium term, Congress needs to act. I’d suggest a law repealing all laws more than 20 years old. Sunset provisions need to be in all laws. The ones that make ongoing sense can be reauthorized, but it will take a new vote every time. (Maybe laws forbidding action by the government should be allowed to stand indefinitely, while laws forbidding action by the people will have limited terms.)
In the short term, we need action by the executive branch, to provide equal protection, control of pre-trial behavior of prosecutors, and accountability of both prosecutors and law enforcement.
AT&T Hell
Summary – AT&T customer service gives you bad information, tries to fix it and can’t, then lies about how it is “impossible”.
Update summary – Twitter works! AT&T twitter team seems to have fixed the remaining problem.
“We don’t care, we don’t have to.” – Lily Tomlin
When I worked for IBM one summer, I wore a tie every day to see if I could do it.
When I drove an RX-7 in Palo Alto, I obeyed all the speed limits, to see if I could do it.
Last month I gave up my iPhone, to see if I could do it.
My daughter wanted an iPhone, but she’s in the middle of a two year contract on T-Mobile with a Palm Pixi. My iPhone 4S is in the middle of a two year contract with AT&T that started October 2011. It had the grandfathered unlimited data plan, and would be up for upgrade eligibility in May 2013.
On December 26, I called AT&T to see if I could port my number out and get a new number assigned to the iPhone, so I could let my daughter use it, while I would keep the T-Mobile phone, but with my number. My number started out life a long time ago as a Verizon landline, with the number sequential to our home phone, so I am attached to it. It is also on all my business cards and in countless contact lists.
AT&T said “sure”, when you port the number out, we’ll assign a new number to the iPhone and the contract will remain unchanged.
Life was good! The daughter is happy, and I have a phone that is, um, interesting. I also have an iPad, so don’t shed any tears about that!
A week or so later, we notice that the bill is $400ish. There is an early termination charge on there! You can’t actually figure out what the charge is from the online presentation. You have to hunt up the pdf and look at the image of the printed bill. This is a phone company, they know how to print phone bills, not how to build websites.
On the phone with customer service. “When you ported out the number, that cancels your contract, and you get an early termination fee. Then you added a new line with new contract dates.” I explained my call on the 26th, and the agent said, oh, well I can waive the early termination fee and make the contract be as it was. The only thing I can’t do is preserve the unlimited data plan. So now the phone is on the 3GB plan. I thought about balking, that unlimited plan made me feel like an old-time iPhone user, more privileged than the unwashed masses, but really, my usage is about 250 MB per month. The iPad has a bigger screen. So I let it slide.
A few days later, a website check showed the fees gone. I noticed that the upgrade availabiltiy wording was different for this phone than for the other iPhone line, which also started October 2011, but decided to wait to see if other changes would catch up before calling.
A few days later, no change. Called and learned that the second agent had waived the fees, but not fixed the contract dates. I was assured that all would be fixed, and notes put in the account.
A few days later, no change to the upgrade language. On calling, I was told that the contract would expire October 2013, as expected, but the upgrade eligibility date was July 2014. What does that even mean? After the contract is over, I can just create a new line, with a new contract and phone, and port the number! It makes no sense to have an upgrade eligibility after the contract expiration. Anyway, this is just stupid. I explained that I had been told “the contract would be as it was” but the agent said there was just no way to change that in his system, the upgrade eligibility is tied to the phone number, not to the contract.
[By the way, this is also a lie, because, for example, if you are being stalked, you can request a new number and get it without any such collateral damage.]
I asked for a supervisor, who said
This should never have been allowed in the first place. You can’t port out a number and keep the contract. It is our number. The agents who tried to “fix” it for you went way outside our policies and made it worse. What they should have done to correct their original mistake was to port your number back in, not to try and fix the contract. It can’t be fixed, it is impossible to change an upgrade eligibility date. It is tied to the phone number.
The supervisor said there were no higher supervisors to talk to, and no physical mail address to send a complaint to.
Well. This supervisor was certainly polite, but either was really unable to fix the problems that AT&T created, or unwilling to do so.
At the moment, I have a nice iPhone, with a pleased daughter, but I am not pleased. I made a perfectly sensible request. I was told “Yes, of course you can do that” and now the account is scrambled beyond belief.
Recapping
- iPhone 4S, 14 months into a 24 month contract.
- I ask to port out my number, and get a new number assigned to the phone,without contract changes. I’m not paying them any less, I am not getting a new phone, just changing a few bits in a database somewhere about what is the number!
- AT&T says “yes”
- AT&T charges an early termination fee, an activation fee, cancels my unlimited data plan, restarts the 2 year contract, and resets the upgrade eligibility data. I am not even angry about the activation fee, they deserve some fee for the work.
- I complain. AT&T waives the early termination fee, promises to fix the contract, but doesn’t
- I complain. AT&T promises to fix the contract, but only fixes the contract termination dates, the upgrade date is now 9 months after the contract expires.
- I complain. AT&T says “impossible to fix”
- AT&T supervisor says “impossible to fix, and there is noone higher than me to ask”
And by the way, the iPhone battery doesn’t work as well as it used to, and that 18 month upgrade was starting to look pretty attractive! Instead, I will likely have to pay Apple $79 to fix it. At least that is cheaper than the $99 Applecare I forgot to get, if nothing else goes wrong with the phone.
Now I am not a phone company marketing person, but I think I understand the essential economics of subsidized phones. AT&T gives a substantial discount on the phone in trade for a contract commitment. In fact, this is still a worse deal for the customer than buying an unlocked phone on a carrier with cheaper plans, like Virgin or T-Mobile, but AT&T doesn’t discount the monthly charges if you bring your own device. That is just another way to screw the consumer. So with AT&T, you may as well get the subsidy if you don’t mind sticking around for two years. And they really make their money back so quickly that they let you upgrade (and restart the two year clock) after 18 months.
This is a simple deal – AT&T discounts the phone, I promise to keep paying their (high) monthly bills for two years. This has nothing to do with the phone number! Changing the number has utterly no effect on the money flows.
What about that number? AT&T says it is their number, they can attach whatever they want to it. But that is not true. I had the number with Verizon. I ported the number to AT&T, I ported it out. The FCC has “local number portability”. The numbers are managed by CLECs (I think that is the term of art for phone companies) but they really can’t be taken away from users except for some arcane technical reasons.
What has happened here? It cannot be “impossible” to fix these sorts of problems. There may be software limitations, but those are fixable. Or they could merely write a note to themselves saying “Yes, the system says this contract runs until July 2014, but when the customer asks, in May 2013, for an upgrade, just waive the fees. And when the customer cancels the contract in October 2013, waive any cancellation fee.”
Instead, they’ve spent a lot of money on customer service phone calls, which are not cheap. They’ve enraged a long-standing customer who has alternatives. They’ve provided more information to the entire internet about just how bad their service and systems are. There is no good result for AT&T here. They’ve not gained any income. They haven’t kept control of their precious number. They may well lose me as a customer come October. (That Nexus 4 on T-Mobile is looking pretty good, or a nice unlocked iPhone 5S or whatever.) And they are defending positions and policies that make no sense competitively or economically.
I’m not sure of the next step for me. Probably I will tweet the URL of this blog entry to @ATTCustomerCare. At this point, AT&T can fix the problems, or they can provide me a source of continuing amusement. There’s a rumor that sometimes people get results by writing the CEO. At a minimum that will cost them even more money to deal with my letter.
UPDATE – I tweeted this URL to @ATTCustomerCare and they actually answered, got me on the telephone, and fixed this, well enough. Which is to say they can’t fix it in the database, but they’ve added a special note telling other folks to honor an upgrade request on or after the correct date. Works for me. (1/16/2013)
You can sort of understand how enterprise software can become unwieldy, to the point where it seems easier to correct software problems and poor specifications by adding layer upon layer of special fixes and exceptions and end-runs, but it is not good for customers or efficiency to do it that way.
Buying a lemon
Last month we got a shiny new Stop and Shop grocery store here in Wayland. They’ve been having various grand opening specials so we have been dropping by. I went over there Sunday evening to buy blueberries (two pints for $3! in January!) but they were out of stock. I managed to leave the shopping list at home, so I had to go by my wits, which is really not such a good idea.
I checked out using the ScanIt! gadget, and this time I remembered to wait for the coupon accepted tone before dropping my coupon in the slot. Last time I had to have staff fish my should-have-worked coupon out of the guts of the machine and fix it, but I digress.
After finishing, I called Cathy to see what I had forgotten and she told me to remember to get a lemon and to get a rain check for the 10/$10 frozen vegetables they had run out of. (I already had a rain check for the blueberries).
I didn’t get another ScanIt! machine for one lemon, so I went over to produce and picked out a nice lemon. 66 cents each! Should be 50. I carefully put it on the scale, typed in the produce code, and entered my quantity, The machine prints a scannable sticker, which I stuck on the lemon.
At the self-checkout I scanned the lemon and touched “pay”. While the machine thought about it, I got exact change from my wallet and began to feed in coins. Around about 55 cents, I noticed the amount due was $4.03. There was no cancel button. At that point I looked at the lemon, and the sticker said “7” rather than “1”. I think the produce machine must have a calculator style keypad, with 7 at the upper left, rather than a phone keypad with 1 at the upper left.
I think this is 1200 baud modem training to blame. In those days, you typed way ahead of the computer, and since you knew what it was going to do, there was no real need to actually look at the screen when it caught up.
At this point, there was nothing to do but press the I Need Help button and look sheepish.
A nice girl with bright orange hair came over and I explained. I think this was a new one. She scanned her superuser card and after flipping through some screens said “I don’t think there is any way to change an order after you start paying…. But I can refund the money.”
[Side note: The machine refunded a different collection of coins that happened to add up to 55 cents, rather than returning my coins. I suppose this lets you overload the change and the refund mechanism.]
After she left, I entered 1 lemon through the produce lookup screens, and again hit pay, and started putting my coins in. This time, after a few coins, the machine said $5 something or other to go. I had done it again! Evidently the 7 virtual lemons were still on the tab, as well as the one real lemon. I had to call for help again.
The same girl with the bright orange hair came over, and apologized to me, apparently for my being an idiot, and this time refunded the money, and deleted the 7 lemon line item, leaving only one lemon. I successfully paid, and fled.
It is a mixed blessing that the store was essentially deserted. No one was there to watch my performance, but neither was there any press of work to distract the staff from chuckling over the befuddled customer.
And I forgot to get the rain check for the frozen peas.
Aaron Swartz
Aaron Swartz, 26, committed suicide the other day, evidently hounded to his death by overzealous prosecutors.
I didn’t know Mr. Swartz, and I don’t condone his actions of a couple of years ago, where it is alleged that he attached equipment to the MIT computer network to steal academic articles from the JSTOR database in order to release them to the public.
However, the more I learn about the conduct of the government in prosecuting Mr. Swartz, the angrier I get.
For those lacking any context, go read what Larry Lessig had to say in
http://lessig.tumblr.com/post/40347463044/prosecutor-as-bully
or what Cory Doctorow had to say in
http://boingboing.net/2013/01/12/rip-aaron-swartz.html
Here is the letter I’ve sent to my Senator, Elizabeth Warren. I’ve sent a similar letter to Sen. John Kerry
I call to your attention the recent suicide of Aaron Swartz. It looks
very much to me like the US Justice Department hounded him to his
death by overzealous prosecution of a victimless “crime” if it even was
a crime.
Larry Lessig writes on the case:
http://lessig.tumblr.com/post/40347463044/prosecutor-as-bully
I would like to know what you are doing to hold the prosecutors and
their bosses at Justice to account for this affair.
I voted for you in part for your history of representing the issues
of ordinary people against big business. Please also represent us
against the oppressive power of government.
-Larry Stewart
I’ve sent the following email to Rafael Rief, President of MIT
I understand that the Swartz affair started before you became president of MIT, but I think you should explain to the community what happened, why it happened, and exactly what principles MIT holds.
From what I’ve heard, MIT provided the pretext necessary for the US Attorney ****** to hound Aaron Swartz to his death.
See, for example, Larry Lessig’s account at
http://lessig.tumblr.com/post/40347463044/prosecutor-as-bully
It may well be that Mr. Swartz was guilty of something, and it may be that MIT favored prosecution, but once MIT started such a ball rolling MIT became responsible in part for the damage it caused. At the minimum, MIT had an obligation to track the case and to speak out loudly when it began to go off the rails of proportional justice in such a dramatic way.
-Larry Stewart ’76
(name removed because I am not sure I got it right)
I don’t know what the right answers are in this case, but I am beginning to think we should handle failures of justice in the same way we handle airplane crashes. Do we need an equivalent of the National Transportation Safety Board to investigate? Such a group could find out what happened, why it happened, and what legal, procedural, training, and technical measures are needed to keep it from happening again. And their reports and proceedings should be open.
We now have so many laws and crimes, and so many are ill-defined, that likely everybody is “guilty” of something. When the full oppressive power of government can be brought to bear on anyone at the discretion of individuals or groups with their own agenda, then no one is safe.
UPDATE
About an hour after I wrote to MIT President Reif, he wrote to the community. Obviously he’s well ahead of me on this one, since his message must have already been in progress. Professor Hal Abelson will be leading a thorough analysis of MIT’s involvement. I await the report with interest.
http://web.mit.edu/newsoffice/2013/letter-on-death-of-aaron-swartz.html
Another thing not to do
At the day job, I’ve been writing a new version of nbd-client. Instead of handing an open tcp socket to the kernel, it hands the kernel one end of a unix domain socket and keeps the other end for itself. This creates a block device where the data is managed by a user mode program on the same system.
In regular nbd-client, the last thing the program does is call ioctl(fd, NBD_DO_IT), which doesn’t return. The thread is used by the device driver to read and write the socket without blocking other activity in the block layer.
Because I need the program around to do other work, I called pthread_create to make a thread to call the ioctl.
Then I ran my program under gdb (as root!).
In another window, I typed dd if=/dev/nbd0 bs=4096 count=1
In the gdb window I saw
nbd-userland.c:525: server_read_fn: Assertion `0′ failed.
and my dd hung, and the gdb hung, and neither could be killed by ^C
I was able to get control back by using the usual big hammer, kill -9 <gdb>
So what happened? My user mode thread hit an assertion, and gave control to gdb, which tried to halt the other threads in the process, which didn’t work because the thread in the middle of the ioctl was in the middle of something uninterruptible, and the gdb thread trying to do this also became uninterruptible while waiting.
It is going to be hard to debug this program like this.
The fix, however, is fairly clear: use fork(2) instead of pthread_create() to create a thread to call ioctl. It will be isolated from the part of the program hitting the assertion.
Older and wiser,
Larry
By the way, when you are trying to figure out where processes are stuck, look at the “wchan” field of ps axl. It will be a kernel symbol that will give you a clue about what the thread is waiting for.
UPDATE
Experience is what lets you recognize a mistake when you make it again.
The underlying bug was sending too much data on the wire. Like this:
struct network_request_header {
uint64_t offset;
uint32_t size;
};
write(fd, net_request, sizeof(struct network_request_header);
Well, no. sizeof(struct network_request_header) turns out to be 16, rather than, say, 12. If you think about it, this makes perfect sense, because otherwise an array of these things would have unaligned uint64_t’s every other time. You can’t do network I/O this way, especially if the program on the other end uses a different language or different compiler.
gdb, it turns out, has a feature: __attribute__((packed)) that makes this work, but it is not portable to other compilers.