Skip to main content

How much space do I need?

Leo Tolstoy's grim conclusion is that we need about six feet. Now Leo's line of grim thinking led to the Soviet Union and we know how THAT turned out, so perhaps we can give ourselves a little more lee way and luxury.
The US census tracks the size of dwellings (ain't that a quaint word?) classified as single family homes. They've put up a readable summary of the data here but you can get the raw data in spreadsheet format on this page (it's this 'Median and Average Square Feet by Location' spreadsheet). Your tax dollars at work folks!



Our homes have been getting fatter with us! I doubt the number of people per family has been rising like this. (That fit is amazingly good, by the way. It's almost like the National Association of Single Family Home Builders has a chart for how large a home should be with year).
Does government legislate how much space a person needs? I could not find a federal number during my brief websearch (though I found mysterious references to the existence of guidelines, presumably passed on orally in some secret ceremony amongst government officials). On this page, we find that the city of Sacramento has put down 90 sq. ft of sleeping space for two tenants (the Fed allows two people per bedroom) and 50 sq. ft. per additional person.
Beyond this, the suitable size of a home is completely subjective. In my own experience, when I first saw the home we finally bought the rooms seemed gigantic (we were coming from a one bedroom apartment). On every subsequent visit over the next month (to take measurements etc.) the house seemed to get smaller (but cozier). When I first saw the house, my first reaction was that the house was too big for us. It gradually shrunk to be a smallish home, in my mind. Human beings get used to things so quickly.
In the end, like some other things in life, it's not the size of your house, but how you live in it (how you adjust and make the most of things).

Comments

Popular posts from this blog

A note on Python's __exit__() and errors

Python's context managers are a very neat way of handling code that needs a teardown once you are done. Python objects have do have a destructor method ( __del__ ) called right before the last instance of the object is about to be destroyed. You can do a teardown there. However there is a lot of fine print to the __del__ method. A cleaner way of doing tear-downs is through Python's context manager , manifested as the with keyword. class CrushMe: def __init__(self): self.f = open('test.txt', 'w') def foo(self, a, b): self.f.write(str(a - b)) def __enter__(self): return self def __exit__(self, exc_type, exc_val, exc_tb): self.f.close() return True with CrushMe() as c: c.foo(2, 3) One thing that is important, and that got me just now, is error handling. I made the mistake of ignoring all those 'junk' arguments ( exc_type, exc_val, exc_tb ). I just skimmed the docs and what popped out is that you need to return True or...

Store numpy arrays in sqlite

Use numpy.getbuffer (or sqlite3.Binary ) in combination with numpy.frombuffer to lug numpy data in and out of the sqlite3 database: import sqlite3, numpy r1d = numpy.random.randn(10) con = sqlite3.connect(':memory:') con.execute("CREATE TABLE eye(id INTEGER PRIMARY KEY, desc TEXT, data BLOB)") con.execute("INSERT INTO eye(desc,data) VALUES(?,?)", ("1d", sqlite3.Binary(r1d))) con.execute("INSERT INTO eye(desc,data) VALUES(?,?)", ("1d", numpy.getbuffer(r1d))) res = con.execute("SELECT * FROM eye").fetchall() con.close() #res -> #[(1, u'1d', <read-write buffer ptr 0x10371b220, size 80 at 0x10371b1e0>), # (2, u'1d', <read-write buffer ptr 0x10371b190, size 80 at 0x10371b150>)] print r1d - numpy.frombuffer(res[0][2]) #->[ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] print r1d - numpy.frombuffer(res[1][2]) #->[ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] Note that for work where data ty...