Sunday, October 21, 2012

Ubuntu 12.10 available?


New release '12.10' available.
Run 'do-release-upgrade' to upgrade to it.

$ do-release-upgrade 
Checking for a new Ubuntu release
No new release found

Hmm....
(Seems 12.10 is released, just not working with do-release-upgrade yet)

Monday, June 11, 2012

Python re.match doesn't guarantee $

When choosing a method to call with Python's re module, it's common to consider search() vs match(). However, note that:

re.match('pattern', s)
is not the same as
re.search('^pattern$', s)

re.match only guarantees that the beginning of the string is matched, not that the entire string is a match. Some simple examples:


>>> re.match('[a-z]+', 'abc123')
<_sre.SRE_Match object at 0x7f92136abc60>
>>> re.match('[a-z]+$', 'abc123')
>>> 

Note that the second match statement guarantees that the match extends to the end of the string.

Saturday, April 14, 2012

TurboTax 2011 and AMT Credits

Disclaimer: I am not a Tax Advisor, CPA, CFP, or any other type of legal/financial/tax professional.

I've found some AMT credits that TurboTax wasn't giving me, because it didn't fill in values from 2008 and 2009, even though I've been using TurboTax every year since at least 2008.

When filling out your 2011 Taxes, be sure to follow the interview questions for Credit for AMT Paid in Prior Year. You can see it in the Deductions and Credits page as such:



Next check the values on this screen:







TurboTax seems to have carried over the correct values for me from 2010 (I blanked them out in the screenshots, sorry).

And check the 2010 Form 6251 Amounts, which for me also seem to be correct:





















The following screen is, I believe, the reason why I wasn't getting a credit:















These values were blank. Once I looked up all the values from my previous returns, and filled them out correctly, TurboTax computed an AMT credit for me.

There's some discussion of this on the Intuit Community site.

And as always, consult your tax advisor.