Patrick Stewart on Twitter
As part of an interview in connection with PBSs upcoming airings of "Macbeth" and "Hamlet" in April, Sir Patrick Stewart tells FRONTLINEs Digital Nation that he can't condense life into a 140 character Tweet, and explains why he is afraid to start "gaming...Permalink | 0 Comments
Learn something new everyday...
Today it was with PDO and memory usage.
When doing large data inserts with transactions, you should
always do your query preparation outside of your loop.
For example:
$datasource->open();
$datasource->beginTransaction();
$p = $datasource->prepare('INSERT a SET b = :c');
while(!feof($line)) {$p->bindValue(':c', $line);}
$p->execute();
$datasource->commit();
If the query prepare is moved into the loop, an exorbitant
amount of memory and time is consumed parsing the query every
iteration. For a million inserts, this can result in
exceeding allowed memory usage.
Happy Holidays!
Have a safe and enjoyable holiday season! Thanks to our great clients, colleagues, friends and families for a great year.Nice quote from Amazon's CEO
"Obsess over customers: when given the choice between obsessing over competitors or customers, always obsess over customers. Start with customers and work backward." - Jeff BezosIt's part of his video message to Zappo's:
Lunch...
Today I had lunch with Chris Bonney at Vanguard Technology. We talked about some interesting things, primarily the use of test messaging at conferences. Is that something that is in the future or are we past text messages with smart phones and short message applications like Twitter. Thoughts?Staying Busy
The Gulo team has been working feverishly on projects for the Chicago Photography Center, the Cruise Lines International Association, and the Pew Environmental Group.We're also working on a couple new Gulo apps we think are really cool. Boardwiz is a dead-simple jobs board app which let's you add your very own revenue-generating jobs board to your website. And FleaPay is a hosted shopping cart that plugs right into your merchant account. Both will be ready soon. Stay tuned.
Are you tweeting? Be sure to follow us on twitter.
What do your users need to see?
Do your users really need to see every aspect of your website? The answer is, I don't think so. While Microsoft's Sharepoint is an extremely powerful tool, developers should be careful what they make visible to the world.Is your website ready.mobi?
Ready.mobi is a really great resource:The ready.mobi testing tool evaluates mobile-readiness using industry best practices & standards. The free report provides both a score (from 1 to 5) and in-depth analysis of pages to determine how well your site performs on a mobile device.Visit http://ready.mobi/ and test out your site.
You're using Google Docs forms, right?
At Gulo, most of our writing happens in Google Docs - it's simply the easiest way for us to share notes, collaborate on copy, and create spreadsheets - you know, the stuff we used to do in Microsoft Office. "But I don't have Gmail!" I hear someone in the back saying. Creating a Google account means filling out three fields and a captcha. It's worth your 25 seconds. Trust me.Earlier this year, Google quietly released a feature that I don't see a ton of people taking advantage of - forms. And it's pretty darned easy:
Start with a spreadsheet to get the form, or start by creating the form and you'll get the spreadsheet automatically. Responses are automatically added to your spreadsheet.Here's a sample survey. Took me two minutes: