Thomas R Alexander

Manager, Developer, and professional problem solver

Author: Tom Alexander

PHP Trick: fputcsv and fgetcsv

We’ve all come across the time where we’ve needed to pull data from a database and dump it to a CSV file for backup or reporting purposes. There are many challenges in doing so: escaping commas, escaping double strings, adding newlines, etc… It seems like I solve this problem many times on my own by

OOCSS in action (part 1)

Ever since being introduced to Nicole Sullivan’s OOCSS, I’ve changed the way I develop CSS code. While I do not believe in everything that OOCSS offers, the main takeaway from me is introducing more structure and reason into my code. Today, a typical developer might develop CSS code in this way:

And the corresponding HTML

Election Day

Election Day: the end of months of political banter, negative ads, and social media politicians. I am actually building a house made entirely of political flyers I’ve received in the mail this election year. I counted well over 200. TWO-HUNDRED pieces of mail, lobbying for MY vote. In Michigan, we are fighting over whether renewable


The secret to a successful productive life is routine. It sounds simple enough, but we as humans despise routine. It’s incredibly difficult to form one and even more difficult to maintain it–yet, we need it. We are creatures of habit and can function more efficiently when we know what is coming next. I am discovering

7 Habits of Extraordinary People

Dumb Little Man – Tips for Life via 7 Habits of Extraordinary People.

The Best Windows 8 Features That’ll Make You Upgrade Now (MSFT, AAPL)

New features are not always better features. I admire what Microsoft is doing and hope that these new changes bring about a better user interface overall. My instinct tells me that the new interface does more harm than good, but I’ll withdraw my comments until I can actually experience it. Will you be making the

Spartans 11th, Wolverines 19th in Associated Press football poll

MSU via Spartans 11th, Wolverinesth in Associated Press football poll. What a battle it will be this year. I think MSU and UM are the top two teams in The Big 10…it just sucks that they’re in the same division. Love or hate UM and State, they both have great teams and fatal flaws. The

Text overflow on input boxes in Responsive Web Design

I came across an issue while developing a responsive website for JSTOR this past week. It appears that if you use a long text string in an input box, Mobile Safari and Blackberry will overflow the text below the input box and beyond to display the full search string. I’m not sure if this is

Here’s What The iPad Mini Is Expected To Look Like

SAI: Silicon Alley Insider via Here’s What The iPad Mini Is Expected To Look Like.

If You Want The Best iOS 6 Features, You May Have To Buy A New iPhone (AAPL)

SAI: Silicon Alley Insider via If You Want The Best iOS 6 Features, You May Have To Buy A New iPhone (AAPL).