Fix PDO-related errors on certain PHP versions
* Remove literal question marks from query
* Set attribute PDO::ATTR_EMULATE_PREPARES to fix General Error 2050

This fixes two errors that occurred on my particular software stack, which includes PHP 5.2.6 and MySQL 5.0.67 running on Solaris 5.11:

* `SQLSTATE[HY000]: General error: 2050` (this occurs on the Capture Data page); fixed by setting `PDO::ATTR_EMULATE_PREPARES`. See also [this discussion thread](https://groups.google.com/forum/#!topic/thinkupapp/RbkAOOQ1Yjg/discussion).
* Failing query on the Tweets tab due to a PDO bug (maybe [this one](https://bugs.php.net/bug.php?id=44251)?) in which question marks occurring in string literals are misparsed as positional parameters; fixed by replacing the offending strings with named parameters.
Closes #1357
Avoid PHP Notice Undefined variable
* Remove unnecessary variable that is uninitialized anyway
Closes #1355, closes #1356
Bugfix: Avoid PHP Strict Notice
* Creating default object from empty value in /ThinkUp/webapp/plugins/facebook/model/class.FacebookCrawler.php on line 662
Bugfix Take 2: Avoid PHP Strict Notice
* Creating default object from empty value in /ThinkUp/webapp/plugins/facebook/model/class.FacebookCrawler.php on line 662
[DB MIGRATION REQ'D] Insights feed
* Create insight baseline model and DAO
* Calculate 7-day and 30-day retweet averages at the end of each Twitter crawl
* Generate post retweet and least likely follower at the end of each Twitter crawl
* Generate follower count history milestones to Sundays and day 1 of the month
* Generate flashback posts from this day 1 through 6 years ago
* Generate new list membership alerts and count chart
* Show Google Map when replies are geoencoded
* Generate most frequent reply keywords alerts
* Generate list membership insights
[ci skip]
Bootstrapify insights feed
* Add core bootstrap assets for insights.
* Finish header styling & links, add in favicon and Apple shortcut icons.
* Implement beautiful full-browser footer.
* Initial implementation of two-column insights feed with basic per-insight styling.
* Working show/hide functions for extended insight data, with nice graphical buttons to display them.
[ci skip]
Closes #1353
Signed-off-by: Anil Dash <anil@dashes.com>
Enable Insights for Facebook and Google+ users
[DB MIGRATION REQ'D] Add insight text prefix field [ci skip]
Insights style cleanup
* Only display "Capture Data" button if logged in, fix menu display issues on responsive mobile design, refactor individual insight alerts into respective templates, add in support for Apple shortcut icons.
* Prettify paging and move more inline styles to header css.
* Lots of styling cleanup, preparing for per-insight service user avatars.
* Improved Apple touch icons.
[ci skip]
Insights code cleanup
* Code style guide: Convert tabs to spaces
* Tweak insight prefixes, and add strong tags inside insight text
* Optimize InsightsGenerator queries, clarify code comments
* Fix list insight spacing
* Fix Flashback post prefix
* Fix failing tests
* Delete bootstrap-timeline.html
Minor visual tweaks
* Hide collapse button when only one post
* Convert tabs to spaces squash
Create $enable_bootstrap variable for all relevant templates

Moving from using Smarty's $get variable to enable Bootstrap on header, footer and dashboard to using enable_bootstrap variable sets the stage for enabling bootstrap to be used in other views in the app.

Signed-off-by: Anil Dash <anil@dashes.com>
Complete abstraction of Bootstrap features, and enable Bootstrap tabs

Now we've got all the features we need to get rid of YUI entirely.

Signed-off-by: Anil Dash <anil@dashes.com>
Migrate Crawler HTML view to Bootstrap

Moved all crawler log entries to a Bootstrap-styled table as a first step towards integrating into new timeline.

Signed-off-by: Anil Dash <anil@dashes.com>
Cosmetic changes to crawler log

Roughly bringing it in line with Bootstrap's default status colors.

Signed-off-by: Anil Dash <anil@dashes.com>
Improve the styling on the bootstrapified crawler page

Signed-off-by: Anil Dash <anil@dashes.com>
Re-enable old-style tabs until conversion of config settings is complete

Signed-off-by: Anil Dash <anil@dashes.com>
Finish restyling crawler page, restyle login/forgot/register pages, clean up maps styling in stream.

Lots of cosmetic changes to get the Bootstrap theme as broadly integrated as possible.

Signed-off-by: Anil Dash <anil@dashes.com>
formatting fixes

Add blue icons on hover and change the "Update Data" button to a  graphical "refresh" icon.

Signed-off-by: Anil Dash <anil@dashes.com>
Update TestOfLogger test to reflect new styling of crawl log.

Signed-off-by: Anil Dash <anil@dashes.com>