In the interest of getting some of the fragments of code I’ve written off my hard disk and out where someone might find them useful I’ve decided to start dumping them into git repos with some very minimal documentation. Minimal enough that I actually kick them out there.
The first is a simple Python library to access Google Voice’s calling and texting functionality:
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from googlevoice import *
>>> gv = GoogleVoice('googleaccount', 'googlepassword')
>>> gv.sms('+1415MYNUMBER', 'this is a test')
>>> gv.call('+1415MYNUMBER', '18003569377')
The library depends on BeautifulSoup. It’s based on a bunch of work that I found on the internet. I don’t remember exactly whose techniques I ended up using, but there’s a bunch of example code out there, just not much that was simple to use and in Python.
For those of us on cable or DSL who are slightly too cheap to pay for a static IP, dynamic DNS services are really useful. My DD-WRT based router knows how to talk to dynamic DNS providers, so setting it up is really easy.
I’ve tried both DynDNS and No-IP, and while they work quite well they’re kind of annoying. They really want me to sign up for a premium service, after all that’s how they make money. As a result I need to periodically visit web pages to confirm that I’m using an address or pay a fee. It’s not a big fee, but I’m already paying someone, DreamHost to host DNS for me, and they’ve got an API…
The setup instructions are included in the README. Hopefully they’re pretty self-evident, but they are written from the perspective of someone who ran their own DNS servers (primary and secondary) for ten years.
The LA Times wrote an article that was later picked up by a bunch of blogs about an Ikea factory in Virginia that pays workers minimum wage, gives them minimal vacation and tries to prevent them unionizing.
Laborers in Swedwood plants in Sweden produce bookcases and tables similar to those manufactured in Danville. The big difference is that the Europeans enjoy a minimum wage of about $19 an hour and a government-mandated five weeks of paid vacation. Full-time employees in Danville start at $8 an hour with 12 vacation days — eight of them on dates determined by the company.
I find it somewhere between sad and funny that instead of arguing for improvements in US labor laws the LA Times and the usual left-libertarian blogs complain about a company maximizing profit within the legal constraints imposed by the society. If we want better working conditions we need to make it part of the political discourse, not just whine about companies following the law.
The new health care reform legislation is not perfect. Nothing that complex could be. But I have no doubt that the system is broken and reform is absolutely essential. If we are not going to have universal coverage but are going to rely on employer plans, then we must offer individuals, self-employed people and small businesses a place to purchase insurance at a reasonable price.
This is ultimately my big problem with the healthcare situation in the US. I’m sorry that poor people don’t have access to healthcare, but they don’t have access to healthcare in much of the world. The fact that successful, wealthy people don’t have access to affordable healthcare is ridiculous and unusual.
By any estimation, lard is a healthier fat than butter. Gram for gram, it contains 20% less saturated fat, and it’s higher in the monounsaturated fats which seem to lower LDL cholesterol (the “bad” kind) and raise HDL (the “good”). It’s one of nature’s best sources of vitamin D. Unlike shortening it contains no trans fats, probably the most dangerous fats of all.
This item is one of the more disturbing objects in Henry Wellcome’s collection. A ‘Scold’s bridle’ is a fearsome looking mask which fits tightly on to the head. A scold was defined as a “rude, clamorous woman”. The bridle was used as a punishment for women considered to be spending too much time gossiping or quarrelling. Time spent in the bridle was normally allocated as a punishment by a local magistrate. The custom developed in Britain in the 1500s, and spread to some other European countries, including Germany. When wearing the mask it was impossible to speak. This example has a bell on top to draw even more attention to the wearer, increasing their humiliation. It was used until the early 1800s as a punishment in workhouses.
In SFist I read that Scott Weiner, my district supervisor wants to give our San Francisco homeless brethren food stamps instead of cash when they bring bottles and cans in for recycling. I think he’s thinking about it all wrong. What we should do is deputize all of our homeless so that they can issue littering fines. Pay them a small percentage of the fine as a bounty. Give them cheap video recorders to collect the evidence. It would solve our littering enforcement problem and help address the poverty of some of the poorest members of our society.
One of the great under-reported stories of the end of the 20th century was the enormous penetration of the West’s better political ideas — democracy and individual liberty — into the Muslim consciousness.
I first met Julie on February 28, 1993. Julie, 18, stood in the lobby of the Ambassador Hotel, barefoot, pants unzipped, and an 8 day-old infant in her arms. She lived in San Francisco’s SRO district, a neighborhood of soup kitchens and cheap rooms. Her room was piled with clothes, overfull ashtrays and trash. She lived with Jack, father of her first baby Rachael, and who had given her AIDS. She left him months later to stop using drugs.