Welcome to The Q. This is a place where the designers, developers, and marketing experts here at MC² Design can let loose and casually share information about their passions. It's a place where we can rave about the things we love, rant about the things we hate, and hopefully we'll all learn a thing or two along the way.
Posted on October 23rd, 2008 by Luke Visinoni

Website: www.v-tech.com
Formula:
Debut: October, 2008
MC2 Design is pleased to announce V-Tech’s web site launch for the 2008 product year. We have built them a newly designed e-commerce website using Miva Merchant 5.5.
Client News, Site Showcase
Posted on September 11th, 2008 by Michael Coogan
Rants, Raves & Crazy Things
Posted on September 10th, 2008 by Luke Visinoni
When I came across Shaun Inman’s clever Widon’t wordpress plug-in this morning, I thought to myself “What the heck is an unwanted browser window?”, as I read on I realized it said
“widow”. If you have never heard of a widow, you’ve likely never worked in the print industry. On the web, most of us have gotten rather sloppy when it comes to good typography, but in our defense, our medium doesn’t really lend itself to good practices. A widow is a lone word on the end of a header or paragraph. The header of this post would have had a widow, had I not used Shaun’s plugin (for a better explanation of a widow, refer to this article).
Since I’ve been using the Zend Framework so much lately, I figured why not add this functionality into it? Here’s a view helper to do just that. Enjoy!
class Zend_View_Helper_Widont {
public $view;
public function widont($str = '', $escape = false) {
if ($escape) $str = $this->view->escape($str);
return preg_replace( '|([^\s])\s+([^\s]+)\s*$|', '$1 $2', $str);
}
public function setView($view) {
$this->view = $view;
}
}
Refer to the Zend Framework’s view helper documentation if you don’t know how to install view helpers.
To use this helper, call $this->widont($str) from inside of a view. If you pass a true value as the second argument, the string will be escaped before being output.
PHP, Web Development, Zend Framework
Posted on July 29th, 2008 by Luke Visinoni
It has been months since there was any kind of update on PHP Csv Utilities (or even the blog for that matter). I released the last version (0.2) prematurely, which resulted in a poor release and a lot of bugs. I’d like to let anybody interested in the library know that I am working on version 0.3 right now as well as a much improved build / release process. If there are any bugs or issues you have with the library please leave a comment or shoot me an email and I’ll do my best to make sure it’s addressed.
PHP, PHP CSV Utilities, Web Development
Posted on April 30th, 2008 by Luke Visinoni
As I was working on a Miva Merchant store today, I needed to show the user a link, but only if they were currently logged in. I know I have done this before, but I couldn’t find the code for the life of me. So I went to trusty ol’ Google and typed in “Miva Merchant detect if user logged in” and several other terms only to come up with nothing. So I dug through several other Merchant sites to find the code. I finally found it and have decided to post it here in case somebody else has the same problem.
UPDATE: Apparently you need to check that g.Basket:CUST_ID is not equal to zero. At first my solution only checked that it wasn’t null which was flawed.
<mvt:if expr="NOT ISNULL g.Basket:CUST_ID AND g.Basket:CUST_ID NE 0">
Welcome back, &mvte:global:customer:login;!
<mvt:else>
Hello anonymous user!
</mvt:if>
Miva, Web Development
Posted on March 21st, 2008 by Luke Visinoni
The Zend Framework has always been my favorite PHP framework. The thing I love about this framework is that its components are loosely coupled. That is to say that its components have well-defined, and well-thought out dependencies. If you don’t like certain components, you don’t have to use them. Other frameworks boast this kind of modularity, but honestly I haven’t seen any that really back it up. For our last two or three PHP projects, we gave CakePHP a try. At first I was really happy with cake because of how quickly I was able to wire frame an application, but the more I use it the more I realize that the components in cake are far too coupled and there is just too damn much “auto-magic” going on in cake. I really prefer explicit to implicit code.
The reason we decided to leave Zend and go to CakePHP was because it lacked two main components that made it very difficult to wire frame applications quickly and easily. Those components are a layout system, and a form manager. I am happy to announce that Zend has tackled both of these problems in this release, and has actually done a decent job on them. Neither of them are 100% yet (at least not in my opinion), but both are very usable and helpful at the very least. Go grab a copy of the new release and give it a go. I think you’ll be quite happy with it!
For a full list of the new features, check out the official release page on zend developer zone.0
UPDATE! - Zend Developer Zone has published a webinar on Zend_View and Zend_Layout by Ralph Schindler. Go check it out!
Industry News, PHP, Web Development, Zend Framework
Posted on March 20th, 2008 by Michael Coogan

Website: www.buttebusinessresources.com
Formula:
Debut: March, 2008
Chabin Concepts and MC2 Design are proud to announce the release of Butte County’s new regional economic development and business resource site: ButteBusinessResources.com. Designed and developed by MC2, the site is geared to be a central location for businesses in Butte County to find resources in business development, funding, marketing, business expansion, human resources, and consulting.
Client News, Press, Site Showcase, Web Development
Posted on March 15th, 2008 by Luke Visinoni
Download PHP CSV Utililties v0.2
Read Documentation for PHP CSV Utilities
I have just wrapped up version 0.2 of our csv library. It includes several new features. The most exciting of which is the new Csv_Sniffer class.
Read the rest of this entry »
PHP, PHP CSV Utilities, Web Development
Posted on March 14th, 2008 by Luke Visinoni
Ollie Saunders, a colleague of mine and a regular at the DevNetwork forums has put together a very slick little set of functions he has collectively termed “PHP Fluidics”. If there is one thing that really sucks about PHP, it’s how often you have to use temporary variables to get to methods or array elements you need. Fluidics makes this process (and several others) much easier. We use this library in just about everything we code these days and I’d like to point out a few reasons why.
Read the rest of this entry »
Industry News, PHP, Web Development