CSS Limits in Internet Explorer

File this under things you usually find out about the hard way: Stylesheet Limits in Internet Explorer. For IE 6 – 9 the limits are:

– A sheet may contain up to 4095 rules
– A sheet may @import up to 31 sheets
– @import nesting supports up to 4 levels deep

In IE 10 these were increased to:

– A sheet may contain up to 65534 rules
– A document may use up to 4095 stylesheets
– @import nesting is limited to 4095 levels (due to the 4095 stylesheet limit)

I haven’t been able to find data on similar limits for Chrome, Firefox, or Safari.

Amazon Dash Button Hack

Ted Benson has a clever approach for hacking the Amazon Dash button:

So, conceptually, problem solved. We just have to:

1. Prevent the button from actually ordering anything
2. Listen for Dash Button ARP probes, and
3. Translate those probes into spreadsheet updates


The process outlined in the article is much easier than I expected. I wonder if Amazon would ever be willing to make it even easier though, by optionally hooking it up to IFTTT ( If This Then That ).

At $5 the dash buttons are a cheap experiment.

Laser Printer

This week there was an internal thread at work asking for recommendations on a simple laser printer:

I need your help! I’m shopping for a decent printer and need suggestions. Needs wifi. Does not need to scan. Minimal and small. Something simple!

I happen to own a printer that fits this description nicely: the Brother HL-2270DW.


I’ve had one these for years and it has worked great. Prints fine from Windows 7 and Mac OS X. It has survived the kids bumping into it ( and sometimes a bit more than bumping ) and is still going strong. If you are looking for a simple black and white laser printer with wifi the HL-2270DW does a great job.

Unfortunately Brother lists this model as discontinued, so you may have to hunt around a bit to find one.

Python EXecutable

What happens when you combine Python executing __main__.py and zip files? You get pex ( Python EXecutable ):

pex is a library for generating .pex (Python EXecutable) files which are executable Python environments in the spirit of virtualenvs. pex is an expansion upon the ideas outlined in PEP 441 and makes the deployment of Python applications as simple as cp. pex files may even include multiple platform-specific Python distributions, meaning that a single pex file can be portable across Linux and OS X.

Brian Wickman covers the basics of how this works in a 17 minute video. The video is definitely worth watching if you are curious about this.

Capacity Planning for Humans

Dustin Moskovitz talking about how to Work Hard, Live Well, emphasis is mine:

The research is clear: beyond ~40–50 hours per week, the marginal returns from additional work decrease rapidly and quickly become negative. We have also demonstrated that though you can get more output for a few weeks during “crunch time” you still ultimately pay for it later when people inevitably need to recover. If you try to sustain crunch time for longer than that, you are merely creating the illusion of increased velocity.

This isn’t a new thought. I mentioned that Alex Martelli talked about this nine years ago:

if you plan for 60 hour work weeks, what do you do when something blows up and demands more of your time? Keeping the normal work week schedule reasonable gives you some breathing room to work more during the occasional week where everything falls apart.

Think of it as capacity planning for humans.

Feedly Tips

Number five on the Tips and tricks for using Feedly mobile list was news to me:

05. Removing feeds on mobile

– Go to the main navigation bar and click on Edit Content.
– Select the site, or sites, that you would like to remove.
– Tap Remove, or hit Cancel if you’ve changed your mind about removing the source.

This is buried deeper than I would like. I’d looked previously and never came across this option.