Trim comments and spaces from a file:
$ grep ^[^#] file
“The regex ^[^#] matches the first character of any line, as long as that character that is not a #. Because blank lines don’t have a first character they’re not matched either, resulting in a nice compact output of just the active configuration lines.”
Via David Berner
For Many Hard-Liners, Debt Default Is the Goal – NYTimes.com.
I am going to copy and paste the summary from Daring Fireball since the summary is just perfect and I’ll ask the question – who’s really winning on this issue?
Bruce Bartlett, domestic policy adviser to Ronald Reagan and as a Treasury official under George H. W. Bush (well known left-wing radicals both):
This week, according to the Treasury Department, it will exhaust its “extraordinary” measures to avoid hitting a hard debt ceiling. It is not known precisely the date at which it will lack the cash to pay interest on the national debt, but on the day that happens, the United States will be in default.
The Obama administration and those on Wall Street have long thought that such a prospect was so horrifying that it would necessarily lead to resolution of the current budget impasse. What I don’t think they understand is that there has been a movement under way for some years among right-wing economists and activists not merely to default on the debt, but even to repudiate it.
In other words, these right-wingers aren’t using the threat of debt default to undo the Affordable Care Act — they’re using the threat of undoing the Affordable Care Act (which they know/hope Democrats will not agree to) to get what they really want: putting the United States of America into default.
From an email this morning:
I wanted to follow up with you on Cogent’s promo that is running this
month. I do know you have a year left with Level 3, and that would fit
perfectly with what our promo has to offer. If you have 11 months or
less left on your contract we can offer Phyber a free internet
circuit. You essentially would sign a minimum of a 2year contract and
only pay a year of it. I hope this can strike up a conversation on how
we can be a valuable partner to [snip].
The details aren’t exactly correct – and I’m not going to bother asking for the rate / Mbps on this. But it’s an interesting development.
It’s been hard to not think about 9/11 today. Reading through Facebook posts from friends who were supposed to be in the towers, and of course friends and family that were lost that day has been very tough.
I don’t really know how/why we started watching TV that morning. I’m assuming that someone called us to tell us what was happening. I remember watching in a haze, not really awake yet when the second plane struck. Initially I was surprised that the news had footage so quickly – then it kicked in that we had just watched a second plane hit the second tower in real time.
That moment changed my life, as it did so many others forever.
I’m an extensive user of ⌘+C / ⌘+V to copy and paste between application screens. One thing that has consistently driven me crazy is the intermediate step of pasting to plain text to remove formatting. I guess I finally had enough and found this gem over the weekend – it’s called Paste and Match Style.
Just ⌘+C and you normally would, only instead of ⌘+V use Command+Shift+Option+V to paste and match the style of the destination. Or if you don’t want to remember the Ninja finger position you can make this your default:
Go to you System Preferences -> Keyboard Shortcuts -> Application Shortcuts and add an “All Applications” rule. Make sure you spell out “Paste and Match Style” exactly with the ⌘+V keystroke.
See: Paste and Match Style
These were captured at a leadership/team building event back in October of 2010:
Sometimes you have to go backwards to go forward.
Failures lead to success.
Easier from the outside looking in than being there.
Pausing before next unknown step when any step is in fact forward progress.
Well you can’t exactly remove the Apps, but it turns out that you can hide them. Just go to:
Settings > General > Parental Controls
As you scroll down you will see every App with the ability to hide it.
Spaces vs. Tabs are generally annoying when editing files, but start programing in Python and this turns into a complete disaster. Simple solution, always insert Spaces instead of a Tab and you are good to go (my personal preference):
If you want to be really fancy:
Will convert all of the existing Tabs into Spaces.
Check out Converting tabs to spaces on the VIM Wiki.
California (and the rest of the US) is well into a phase out of incandescent bulbs. If you’ve purchased a light bulb lately you might have noticed that 75 Watt and higher incandescent bulbs are non-existant in the stores. Granted CFL and LED technology is significantly more energy efficient, but with some significant drawbacks:
- Cost: Compare a incandescent bulb at a price as low as $0.50/bulb to CFLs approaching $10.00/bulb and LEDs in the $40-$50/bulb range.
- Warm-up Time: CFLs take time to start (2-3 minutes). Instant start CFLs are still slow with the fastest in the 30 second territory.
- Limited Selection: There just aren’t that many options on the market. For example, show me a 75 Watt equivalent R30 (flood) natural light CFL in instant start. At the moment they don’t exist.
If you are venturing into these new waters here are some things that you will need to familiarize yourself with:
- Lumen: This is the actual amount of light that the bulb emits.
- Temperature (in http://en.wikipedia.org/wiki/Kelvin): This is the color of the light.
- CRI: The ability for a light to produce real colors.
If you have existing bulbs that you like, figure out their ratings based on the above values. This will be invaluable for you as you try to replicate in a non-incandescent world.