<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Mālama</title>
	<atom:link href="http://www.webmalama.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmalama.com</link>
	<description>Be more successful online</description>
	<lastBuildDate>Sat, 04 Feb 2012 00:28:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Online Marketing Minute: How Can Social Media Help My Business?</title>
		<link>http://www.webmalama.com/online-marketing-minute-how-can-social-media-help-my-business/</link>
		<comments>http://www.webmalama.com/online-marketing-minute-how-can-social-media-help-my-business/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 19:01:12 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Online Marketing]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Web Malama Online Marketing Minute]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=992</guid>
		<description><![CDATA[We are inherently social creatures. We work, live, talk, and play together. Social media is a blending of technology and talking to each other...anywhere, anytime, with anyone. Today we can reach our customers by earning people's interest and talking with them when, where, and how they want! Social media marketing includes networks like Facebook and LinkedIn, blogging, podcasts, Twitter, and more.]]></description>
			<content:encoded><![CDATA[<p>Business people, did you know that about half of direct mail is never opened? And, that over 200 million of us have joined the no-call list. We are also great at deleting spam with blinding efficiency. How can businesses reach their customers then?</p>
<p>One way we can reach our customers is through <a title="Social Media Marketing" href="http://www.webmalama.com/online-marketing/social-media-marketing/">social media marketing</a>.</p>
<p>We are inherently social creatures. We work, live, talk, and play together. Social media is a blending of technology and talking to each other&#8230;anywhere, anytime, with anyone. Today we can reach our customers by earning people&#8217;s interest and talking with them when, where, and how they want! Social media marketing includes using tools like Facebook, Twitter, and blogs.</p>
<p>Companies using social tools report more customers at the cash register and spending 60% less per lead than using traditional marketing. Using social media is proving to be good business.</p>
<p>Start earning more of your customers through social media marketing today.</p>
<p>Listen to the podcast of this here: <a href="http://www.webmalama.com/wp-content/uploads/2012/01/how-can-social-media-help-business.mp3">How can social media help my business?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/online-marketing-minute-how-can-social-media-help-my-business/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.webmalama.com/wp-content/uploads/2012/01/how-can-social-media-help-business.mp3" length="1115097" type="audio/mpeg" />
		</item>
		<item>
		<title>Online Marketing Minute: Why do search engines matter to my business?</title>
		<link>http://www.webmalama.com/online-marketing-minute-why-do-search-engines-matter-to-my-business/</link>
		<comments>http://www.webmalama.com/online-marketing-minute-why-do-search-engines-matter-to-my-business/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 03:23:24 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Online Marketing]]></category>
		<category><![CDATA[Web Malama Online Marketing Minute]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=979</guid>
		<description><![CDATA[You may already think you know the answer to, "Why do search engines matter to my business?" But let me take a minute to show you why they don't just matter, they really matter.]]></description>
			<content:encoded><![CDATA[<p>You may already think you know the answer to, &#8220;Why do search engines matter to my business?&#8221; But let me take a minute to show you why they don&#8217;t just matter, they really matter.</p>
<h2>By the Numbers</h2>
<p>As of 2011, <a href="http://www.inquisitr.com/133900/search-engines-used-by-92-percent-of-internet-users-study/">92 percent of US Internet surfers use search engines</a>.</p>
<p>In December of 2011, <a href="http://www.comscore.com/Press_Events/Press_Releases/2012/1/comScore_Releases_December_2011_U.S._Search_Engine_Rankings">18.2 billion searches were conducted</a> with the major search engines like Google, Bing, and Yahoo. (Google alone had a staggering 12 billion, followed by Bing with 2.7 billion, and Yahoo! with 2.6 billion.</p>
<p>Google has about a 66% (yep, a full two-thirds) market share on searches performed.</p>
<h2>Local Business Search</h2>
<p>That means most of your customers and potential customers are using search engines&#8230;a lot. And they&#8217;re using it for everything from nationwide searches to, increasingly, local business. <a href="http://searchengineland.com/071011-110013.php">Search engines are now used to find local business information more often</a> than the old surefire ways.</p>
<ul>
<li>74% use search engines</li>
<li>65% use print yellow pages</li>
<li>50% use Internet yellow pages</li>
<li>44% use traditional newspapers</li>
</ul>
<h2>What does all this mean for your business?</h2>
<p>It means that like it or not search engines are affecting your business. Your business needs to be listed in them and come up at the top of the results. Why? Because it pays to put your business where people are looking for it. People <em>are</em> looking for what you have to offer. If they don&#8217;t find you, they will find your competitor. Being invisible to a huge customer base costs your business big time.</p>
<p>This is true whether you are <a title="Online Marketing" href="http://www.webmalama.com/online-marketing/">marketing in Kona, Hawaii</a> or <a title="Online Marketing" href="http://www.webmalama.com/online-marketing/">marketing in Fort Collins, Colorado</a>. So, get out there, learn how to rank well, and do it.</p>
<p>Listen to this as a podcast here: <a href="http://www.webmalama.com/wp-content/uploads/2012/01/why-do-search-engines-matter.mp3">Why do search engines matter to my business</a>?</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="float: right;" src="http://img.zemanta.com/pixy.gif?x-id=25f38cda-8962-4b05-932d-926a2cba0a54" alt="" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/online-marketing-minute-why-do-search-engines-matter-to-my-business/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.webmalama.com/wp-content/uploads/2012/01/why-do-search-engines-matter.mp3" length="1197650" type="audio/mpeg" />
		</item>
		<item>
		<title>Online Marketing Minute: What is online marketing?</title>
		<link>http://www.webmalama.com/online-marketing-minute-what-is-online-marketing/</link>
		<comments>http://www.webmalama.com/online-marketing-minute-what-is-online-marketing/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 02:52:50 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Online Marketing]]></category>
		<category><![CDATA[Web Malama Online Marketing Minute]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=970</guid>
		<description><![CDATA[Online marketing uses the web to tell people who you are, what you offer, and how they can get it. Instead of offline options like newspaper, fliers, and radio, online marketing uses websites, email, social networks, and more to get and keep your customers.]]></description>
			<content:encoded><![CDATA[<p>Hearing a lot of hype lately about online marketing? What is online marketing?</p>
<p>Online marketing uses the web to tell people who you are, what you offer, and how they can get it. Instead of offline options like newspaper, fliers, and radio, online marketing uses websites, email, social networks, and more to get and keep your customers.</p>
<p><a href="http://www.internetworldstats.com/am/us.htm" target="_blank">Nearly 80%</a> of the US uses the Internet! That includes everyone, kids through seniors. <a href="http://www.biakelsey.com/Company/Press-Releases/100310-Nearly-All-Consumers-Now-Use-Online-Media-to-Shop-Locally.asp" target="_blank">97% of us use the Internet to research products</a> and services in our local area! That means most businesses can&#8217;t afford not to invest a healthy portion into marketing online. It can cost you less and bring in more, faster. Of course, if you do the wrong things, it can also cost you an arm and a leg and give you nothing.</p>
<p>The goal with any marketing is to bring you more potential buyers and keep the ones you already have happy.  A good plan includes both online and offline marketing. The two build off each other, giving you more bang for your buck. Commit to using online marketing for your business today!</p>
<p><img class="alignleft" src="http://www.webmalama.com/wp-content/uploads/2012/01/audio.png" alt="" />  Listen to the podcast of this here: <a href="http://www.webmalama.com/wp-content/uploads/2012/01/what-is-online-marketing.mp3">Web Malama Online Marketing Minute: &#8220;What is online marketing?&#8221;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/online-marketing-minute-what-is-online-marketing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.webmalama.com/wp-content/uploads/2012/01/what-is-online-marketing.mp3" length="1561521" type="audio/mpeg" />
		</item>
		<item>
		<title>Online Marketing Plan</title>
		<link>http://www.webmalama.com/online-marketing-plan/</link>
		<comments>http://www.webmalama.com/online-marketing-plan/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 00:54:29 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Online Marketing]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=946</guid>
		<description><![CDATA[What is An Online Marketing Plan? I believe that an online marketing plan is the way you intend to use the web, mobile, and other digital resources to support your business&#8217;s overall marketing plan. In that sense, it&#8217;s just one piece of the pie that may also include non-online slices like radio, print, television, and [...]]]></description>
			<content:encoded><![CDATA[<div>
<h2>What is An Online Marketing Plan?</h2>
<p>I believe that an online marketing plan is the way you intend to use the web, mobile, and other digital resources to support your business&#8217;s overall marketing plan. In that sense, it&#8217;s just one piece of the pie that may also include non-online slices like radio, print, television, and publicity.</p>
<p>This post briefly describes the pieces of a marketing plan as I see it.</p>
<h2>Setting Your Online Marketing Objectives</h2>
<p>The objective addresses the “big picture”.</p>
<p>How will I overcome my main marketing challenge(s)?</p>
<p>If your company’s main site-related challenge is figuring out how to use your website to help build client business, for example, an objective for your online marketing plan could be, “To enhance online client service as well as build site awareness and interest with clients.”</p>
<h2>Set Your Online Marketing Strategy</h2>
<p>A marketing strategy supports your objective.</p>
<p>The strategy defines general approaches you will take to meet your objective. These are determined by understanding your business and your customers (research, SWOT, competitive analysis, market analysis, etc).</p>
<p>For example, strategies to support the above objective could include</p>
<ol>
<li>improve online communication, information, and education</li>
<li>build awareness of and interest in your company on the Internet</li>
<li>communicate the Website’s existence and advantages to existing clients.</li>
</ol>
<h2> Select Your Online Marketing Tactics</h2>
<p>A marketing tactic is where the action takes place.</p>
<p>Also called marketing programs or action plans, they are the things you will do to bring each marketing strategy to life.</p>
<p>Tactics for strategy 2 in the above example (improve online communication, information, and education) could include</p>
<ol>
<li>sharing experience and observations in your industry through participation in discussion boards</li>
<li>offering an email newsletter</li>
<li>listing/submitting your site to targeted search engines and directories</li>
</ol>
<h2>Online Marketing Tactics to Consider</h2>
<p><strong></strong>Online lead-generation program</p>
</div>
<ul>
<li>Established process for handling inquires</li>
</ul>
<p>Search Engine Optimization</p>
<ul>
<li>Natural search optimization</li>
<li>Link building</li>
<li>Search engine submission</li>
<li>Posting content around the Web</li>
<li>Participating in discussion groups</li>
<li>Pay per click advertising</li>
<li>Google AdWords</li>
<li>Bing Ads</li>
<li>Yahoo! Ads</li>
</ul>
<p>Public Relations and Article Writing</p>
<ul>
<li>Press releases</li>
<li>White Papers</li>
<li>Newspaper, Magazine Articles</li>
</ul>
<p>E-mail</p>
<ul>
<li>Footers</li>
<li>Newsletters</li>
<li>Auto-responders</li>
<li>Auto-series</li>
</ul>
<p>Website</p>
<ul>
<li>Keyword-focused content development</li>
<li>Interactive product demos</li>
<li>Contact form</li>
<li>Calls to action</li>
<li>Special offers</li>
<li>E-commerce site</li>
</ul>
<p>Social Media</p>
<ul>
<li>Viral strategies</li>
<li>Blogging</li>
<li>Video Ads</li>
<li>Informational Videos</li>
<li>Podcasts</li>
<li>Webcasts</li>
<li>Networks</li>
<li>Microblogging</li>
<li>Customer Listening</li>
</ul>
<p>Paid Advertising Networks</p>
<ul>
<li>Banner Ads</li>
<li>Text Ads</li>
<li>Video Ads</li>
</ul>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.webmalama.com%2Fonline-marketing-plan%2F&amp;title=Online%20Marketing%20Plan" id="wpa2a_2">Share/Bookmark</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/online-marketing-plan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yet Another Related Posts Plugin (YARPP) and Site Slowness</title>
		<link>http://www.webmalama.com/yet-another-related-posts-plugin-yarpp-and-site-slowness/</link>
		<comments>http://www.webmalama.com/yet-another-related-posts-plugin-yarpp-and-site-slowness/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 19:45:00 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Speed]]></category>
		<category><![CDATA[Updating Page]]></category>
		<category><![CDATA[Updating Post]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[YARPP]]></category>
		<category><![CDATA[Yet Another Related Posts Plugin]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=920</guid>
		<description><![CDATA[While a solid plugin, YARPP may cause severe site-wide slowdown and crashing for WordPress installations running on an average server with lots of posts and lots of tags.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webmalama.com/wp-content/uploads/2011/08/yarpp.jpg"><img class="size-full wp-image-924 alignright" title="yarpp" src="http://www.webmalama.com/wp-content/uploads/2011/08/yarpp.jpg" alt="yarpp" width="326" height="189" /></a>I&#8217;ve used the excellent <a href="http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/" target="_blank">Yet Another Related Posts Plugin (YARPP)</a> for about a year-and-a-half now on various client websites. Overall, I&#8217;ve found that it works great and has a responsive author who cares about updating and performance issues.</p>
<p>Why this post then?</p>
<p>Because after experiencing deadly slow post updating and post saving on a client site over the span of more than 60 days, we were finally able to track down that YARPP was causing saving or updating posts and pages to take more than a minute (sometimes up to 5 minutes or just timing out) each. In turn, this caused severe site-wide slowdowns and timeout errors for site visitors.</p>
<h2>The Conclusion</h2>
<p>For those of you who don&#8217;t need the detail below, the overall conclusion here is that while a solid plugin, YARPP may cause severe site-wide slowdown and crashing for WordPress installations running on an average server with lots of posts and lots of tags.</p>
<h2>Site Specs</h2>
<p>First, the site specs so we&#8217;re all on the same page:</p>
<p>YARPP Version: 3.3.1 initially, then 3.3.2 mid-way through timeframe<br />
WordPress Version: 3.2.x<br />
Pages: 90<br />
Posts: 2400+<br />
Categories: 50<br />
Tags: 5,000<br />
Server: Windows machine, running WAMP 2.0<br />
Apache Version: 2.2.11<br />
PHP Version: 5.3<br />
MySQL Version: 5.1.36<br />
Other Plugins Installed Affecting Saving Posts: 3<br />
Caching: W3 Total Cache</p>
<h2>Symptoms</h2>
<p>We had a staff of between 1 and 3 people daily updating post categories and tags to ensure the visitors were seeing the best content for their reading, searches, general experience.</p>
<p>The staff experience slowness intermittently and unpredictably when saving or updating posts. This happened when updating a single post through the normal &#8216;Edit Post&#8217; screen and also the &#8216;Quick Edit&#8217; mode on the post list page. Trying to bulk edit more than 1 post using quick edit  usually resulted in a timeout and a blank screen or the never-ending spinning save icon.</p>
<p>On the front end, our site visitors would experience page hangs and slow page load times whenever a post save was happening on the back end.</p>
<p>Our teams experienced the same basic problem in different browsers, on different machines, with different setups, so the issue was clearly coming from how we had everything set up.</p>
<blockquote><p>In Safari:<br />
I’ll Hit “Submit” and the little ball next to submit will spin &amp; spin &amp; spin, I’ll move over to work on another window, look back, and it will have stopped spinning and will look as though I never clicked submit.</p>
<p>In Chrome:<br />
I’ll click submit, the ball spins &amp; spins&#8230; Then after a while it stops and there’s a very large 8 character column beneath “Title” that says something to the effect that “My SQL Server is gone&#8230;”  generally I’ll click refresh and that clears it up for the most part&#8230;</p>
<p>Below the post’s title I’ll right click “View” and choose “Open in New Tab” and it’ll spin &amp; spin then will stop with no content in the body of the tab. I tried refreshing to no avail, have to close tab and re-right click &amp; “open in new tab” again.</p></blockquote>
<p>Additionally, we were receiving odd errors in Firefox, Chrome, and IE, all with notices along the lines of the server having too much traffic, or the server sending a blank page, or the connection being reset.</p>
<h2>Tracking Down the Problem</h2>
<h3>Turn off pinging</h3>
<p>At first I searched through WordPress forums and Google for anything on &#8220;WordPress dies while saving&#8221; or &#8220;WordPress hangs while updating&#8221; or &#8220;Quick Edit posts hanging&#8221; and the like.</p>
<p>Most results on these pointed to some version of turning off pinging or notifying other sites on update. So, we turned off pinging for all posts and removed the pingomatic address from the general options. This gave no change in speed.</p>
<h3>Permalinks Setup</h3>
<p>Other results for searches on improving WordPress performance and speed generally or specifically when saving posts pointed to proper permalink setup. There&#8217;s a <a href="http://codex.wordpress.org/Using_Permalinks#Structure_Tags" target="_blank">fair bit of documentation from WordPress</a> and others that basically concludes, &#8220;don&#8217;t just use /%postname%/ for your permalink structure.&#8221; This is because of how WordPress handles redirecting.</p>
<p>Instead, we should use a structure that begins with a number&#8211;the post month, post year, post day, post id, or anything else that helps WordPress sort, search, and find the post more quickly.</p>
<p>This is great advice, but not applicable in my case because the site was already using a /%postid%/%postname%/ structure.</p>
<h3>Optimize Tables</h3>
<p>Then I thought, what if we&#8217;re just not keeping our database tidy enough? There are bunches of transactions going through every minute, maybe the tables just need to be optimized. So, I set up automatic table optimization of every table in the database every 24 hours. This gave us slight increases in speed, occasionally.</p>
<h3>Follow the errors</h3>
<p>Rather than continue to chase a ghost, I tasked the team with sending me actual error reports or screen captures or errors.</p>
<h3>Timeouts</h3>
<p>Sometimes we&#8217;d see a timeout error with a line number and reference to another plugin dying on issuing a php session id. Investigation showed that we didn&#8217;t need this session id in the admin area, so I updated the plugin to not make that call for admin pages. This seemed to help tremendously at first, but after a day we were back to the same incredibly slow post updates. At the least, the timeouts no longer occurred on that line in the plugin.</p>
<h3>Generic Error</h3>
<p><a href="http://www.webmalama.com/wp-content/uploads/2011/08/wordpress-quick-update-error.jpg"><img class="alignnone size-full wp-image-921" title="wordpress-quick-update-error" src="http://www.webmalama.com/wp-content/uploads/2011/08/wordpress-quick-update-error.jpg" alt="wordpress-quick-update-error" width="477" height="213" /></a></p>
<p>Sometimes we&#8217;d get a generic &#8220;Error while saving the changes&#8221; on the Quick Edit screen.</p>
<p>This didn&#8217;t help much, but at least showed us that there was still a real issue on hand.</p>
<h3>MySQL server has gone away</h3>
<p>Our real break came when we captured the following error:</p>
<blockquote><p>WordPress database error: [MySQL server has gone away]<br />
insert into wp_yarpp_related_cache (reference_ID,ID,score) (SELECT&#8230;[specific long query info here]<br />
WordPress database error:[MySQL server has gone away]<br />
insert into wp_yarpp_related_cache (reference_ID,ID,score) values (6779,0,0) on duplicate key update date = now()</p></blockquote>
<p>All other MySQL processes were working and other queries were passing through, but occasionally we would see a stack of errors that always started with these two from YARPP.</p>
<p>After reading through the <a href="http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/faq/" target="_blank">YARPP documentation</a>, I decided to turn off cross-relating pages and posts, turn off considering categories, and turn off considering tags. This didn&#8217;t help in a measurable way. We were still seeing 2-minute post saving.</p>
<p>So, I deactivated YARPP. We saw dramatic improvements immediately. The server CPU usage dropped, and more importantly, saving posts went back to a normal speed of under 15 seconds. At the same time, as a consequence, the page-load speed for visitors also increased.</p>
<p>After about 10 days, the site performance and saving speed has been consistently good&#8211;saving posts at under 15 seconds per. We&#8217;re also able to bulk edit posts again.</p>
<h2>Conclusion</h2>
<p>While a solid plugin, YARPP may cause severe site-wide slowdown and  crashing for WordPress installations running on an average server with  lots of posts and lots of tags.</p>
<p>It&#8217;s true that this issue may be limited to my client&#8217;s particular site/server/plugin setup. There&#8217;s no doubt that other plugins were interacting with YARPP to contribute to the slowness. However, the number of forum posts on this issue, the newest default settings for YARPP of not considering categories, and notes from the author on the intensive calculations being performed lead me to believe others may have the same problems too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/yet-another-related-posts-plugin-yarpp-and-site-slowness/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Style Nth Word In a Phrase</title>
		<link>http://www.webmalama.com/style-nth-word-in-a-phrase/</link>
		<comments>http://www.webmalama.com/style-nth-word-in-a-phrase/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 21:54:19 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress development]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=896</guid>
		<description><![CDATA[Use PHP to style the first word, last word, or any (nth) word in a phrase.]]></description>
			<content:encoded><![CDATA[<h2>The CSS Scenario</h2>
<p>Recently my graphic designer used a nice styling on a client&#8217;s webpage headlines&#8211;all words in the headline were one color and the last word was a different color.</p>
<p><img class="alignnone size-full wp-image-897" title="style-nth-word" src="http://www.webmalama.com/wp-content/uploads/2011/08/style-nth-word.jpg" alt="style-nth-word" width="472" height="68" /></p>
<p>It adds for a nice effect I think.</p>
<p>Of course, as the developer I&#8217;m the one who has the responsibility to bring that to life.</p>
<p>After a few quick searches on Google for phrases like,</p>
<ul>
<li>CSS Style Nth Word</li>
<li>CSS style last word, CSS style first word</li>
<li>php style nth word, php style first word, php get first word</li>
<li>etc.</li>
</ul>
<p>and getting results on how CSS doesn&#8217;t provide for this functionality&#8211;but does for just first letter&#8211;I quickly realized that I was going to have to roll my own.</p>
<p>Being in the midst of a big project, this is down and dirty code. There are likely faster or more elegant methods using regular expressions, but this gets the job done. I added in the ability to select a word by number or by specifying &#8220;first&#8221; or &#8220;last.&#8221; If you specify a word number that doesn&#8217;t exist (say a 4 word phrase is passed and you tell it to select the 6th word for instance), then just the last word is styled.</p>
<p>Enjoy, and please don&#8217;t hesitate to comment or send improvements my way.</p>
<h2>The Code:</h2>
<pre>//returns a span with the class specified around the word specified within a phrase
//@text (str) is the text to look within
//@nth (mixed) is the word to style, either an integer or "first" or "last"
//@class is the span class name to apply.
function style_nth_word($text, $nth="last", $class="nth-word"){
   $words = str_word_count(htmlspecialchars_decode(strip_tags($text)),1,"’'()");
   $count = count($words);

   if($nth == "first"){
     $get = 0;
   }elseif($nth=="last"){
     $get = $count-1;
   }elseif(is_numeric($nth) &amp;&amp; $nth &gt; 0){
     if($nth &gt; $count){
        $get = $count-1;
     }else{
        $get = $nth - 1;
   }
 }else{
   return false;
 }

  $words[$get]=('&lt;span class="'.$class.' word-'.($get+1).'"&gt;'.$words[$get].'&lt;/span&gt;');

return(implode(" ", $words));
}</pre>
<h2>Usage:</h2>
<p><strong>General Usage</strong></p>
<pre>&lt;?php echo style_nth_word("Stand Up Paddleboard Rentals", "last"));?&gt;</pre>
<p><strong>WordPress Page/Post Title Usage</strong><br />
(You&#8217;ll want to pass the unfiltered, or raw, post title. Otherwise formatting issues with punctuation can occur.)</p>
<pre>&lt;?php echo apply_filters('the_title',style_nth_word($post---&gt;post_title, "last"));?&gt;</pre>
<h2>Output:</h2>
<pre>Stand Up Paddleboard &lt;span class="nth-word word-4"&gt;Rentals&lt;/span&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/style-nth-word-in-a-phrase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hawaii Picture of the Day</title>
		<link>http://www.webmalama.com/hawaii-picture-of-the-day/</link>
		<comments>http://www.webmalama.com/hawaii-picture-of-the-day/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 02:19:27 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Online Marketing]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[gadget]]></category>
		<category><![CDATA[igoogle]]></category>
		<category><![CDATA[mailchimp]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=893</guid>
		<description><![CDATA[I just launched the Hawaii Picture of the Day website. I&#8217;m particularly pleased with the widget and iGoogle gadget I wrote so people can add it to their own sites. Here&#8217;s how the site widget looks in real time: The site concept is simple: post good pictures of Hawaii to help people discover, be inspired, [...]]]></description>
			<content:encoded><![CDATA[<p>I just launched the <a title="Hawaii Picture of the Day" href="http://www.hawaiipictureoftheday.com" target="_blank">Hawaii Picture of the Day</a> website. I&#8217;m particularly pleased with the widget and iGoogle gadget I wrote so people can add it to their own sites.</p>
<p>Here&#8217;s how the site widget looks in real time:</p>
<p><script src="http://www.hawaiipictureoftheday.com/api/potd-1.js" type="text/javascript"></script></p>
<p>The site concept is simple: post good pictures of Hawaii to help people discover, be inspired, and be refreshed&#8211;daily.</p>
<p>The site is built on WordPress and integrates tightly with MailChimp for e-newsletter subscribing and sending. Just publish a new post and an email with the post&#8217;s content is automatically generated and sent to the list.</p>
<p>The site is also integrated with Facebook so that new posts automatically create a status update to the <a href="https://www.facebook.com/pages/Hawaii-Picture-of-the-Day/204658916237117" target="_blank">site&#8217;s companion Facebook page</a>. Additionally, all posts can be &#8220;liked.&#8221;</p>
<p>I hope you enjoy it!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.webmalama.com%2Fhawaii-picture-of-the-day%2F&amp;title=Hawaii%20Picture%20of%20the%20Day" id="wpa2a_4">Share/Bookmark</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/hawaii-picture-of-the-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert MS Access Date to Unix Timestamp to MySQL Timestamp</title>
		<link>http://www.webmalama.com/convert-ms-access-date-to-unix-timestamp-to-mysql-timestamp/</link>
		<comments>http://www.webmalama.com/convert-ms-access-date-to-unix-timestamp-to-mysql-timestamp/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 23:15:17 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[handling dates]]></category>
		<category><![CDATA[MS Access]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Timestamp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Date]]></category>
		<category><![CDATA[Unix Timestamp]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=884</guid>
		<description><![CDATA[I came across a problem today where I needed to convert a date in an MS Access Database to a MySQL timestamp using PHP. The solution was pretty easy, but took some thinking through. Here is the answer to save you some time if you need it. Get the date from your MS Access database. [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a problem today where I needed to convert a date in an MS Access Database to a MySQL timestamp using PHP.</p>
<p>The solution was pretty easy, but took some thinking through. Here is the answer to save you some time if you need it.</p>
<ol>
<li>Get the date from your MS Access database. If you&#8217;re using PHP to do this, you&#8217;ll likely use the <em>odbc_exec($connection, $query)</em> function and the <em>odbc_fetch_array()</em> function.</li>
<li>Convert the MS Access date format into a UNIX Timestamp using PHP&#8217;s <em>strtotime() </em>function.</li>
<li>Convert the UNIX Timestamp to MySQL Timestamp using PHP&#8217;s <em>date() </em>function and proper formatting.</li>
</ol>
<p>In all it will look something like this:</p>
<pre>$q = "SELECT startdate FROM datetable WHERE ID = 1";

$rs = odbc_exec($conn, $q);

while( $row = odbc_fetch_array($rs) ) {
   $date = strtotime($row['startdate']);
   $date = date('YmdHis',$date);

   //do whatever you want with the date that is now in MySQL Timestamp form
 }</pre>
<p>One tricky part is that if you look at a MySQL Timestamp within the MySQL database itself, it will often have a form like &#8217;2011-06-08 12:03:01&#8242; with dashes and a space. Don&#8217;t let this fool you. If you add dashes and a space you&#8217;ll get a MySQL error for improper formatting.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=a43e17e5-d5c7-44c6-a2ee-867d58c3afcf" alt="" /></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.webmalama.com%2Fconvert-ms-access-date-to-unix-timestamp-to-mysql-timestamp%2F&amp;title=Convert%20MS%20Access%20Date%20to%20Unix%20Timestamp%20to%20MySQL%20Timestamp" id="wpa2a_6">Share/Bookmark</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/convert-ms-access-date-to-unix-timestamp-to-mysql-timestamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Social Media: Keep It Simple</title>
		<link>http://www.webmalama.com/social-media-keep-it-simple/</link>
		<comments>http://www.webmalama.com/social-media-keep-it-simple/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 15:21:37 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Online Marketing]]></category>
		<category><![CDATA[Social Media]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=881</guid>
		<description><![CDATA[Clients often ask me how they can be successful in social media. With social media advice blaring from every corner of the marketing and product world, there are an unbelievable number of opinions on the right answer to this question.

There are also unbelievable amounts of complexity, nuance, and unadulterated bull. What's a person to do?

Instead of all that, let me give it to you plainly.]]></description>
			<content:encoded><![CDATA[<p>Clients often ask me how they can be successful in <a href="http://www.webmalama.com/online-marketing/social-media-marketing/">social media</a>. With social media advice blaring from every corner of the marketing and product world, there are an unbelievable number of opinions on the right answer to this question.</p>
<p>There are also unbelievable amounts of complexity, nuance, and unadulterated bull. What&#8217;s a person to do?</p>
<p>Instead of all that, let me give it to you plainly.</p>
<p>Your priorities for using social media successfully are:</p>
<ol>
<li>Audience</li>
<li>Content</li>
<li>Brand</li>
</ol>
<p>Simple, right? You can call it the ABC&#8217;s if it helps, just keep the C second.</p>
<p>First, keep your audience in mind&#8211;always. They are the folks you&#8217;re serving, your customers and potential customers, the reason you&#8217;re in business. They should be the ones constantly in mind as you go about creating content and positioning your brand. Ask yourself, &#8220;Who are they? What do they care about? How can I help them?&#8221;</p>
<p>Next is content. What is your audience going to get from whatever social media you&#8217;re putting  out? Is it valuable to them? Does it entertain, answer questions, give  an emotional high, save them time or money? Whatever it is, it has to be  valuable to your audience. If it is, they&#8217;ll use it and spread it to others for you.</p>
<p>Branding is third. If you&#8217;ve kept your audience in mind and created valuable content you&#8217;re already quite a ways down the road toward a good brand. After checking that whatever you&#8217;re putting out fits your audience and is valuable to them, make sure it meets your brand standards. Does it sound like you? Does it look like you? Will your audience immediately recognize it as you?</p>
<p>And that&#8217;s it. Keep it simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/social-media-keep-it-simple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Should I Still Use Yellow Pages?</title>
		<link>http://www.webmalama.com/should-i-still-use-yellow-pages/</link>
		<comments>http://www.webmalama.com/should-i-still-use-yellow-pages/#comments</comments>
		<pubDate>Tue, 03 May 2011 15:44:25 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Online Marketing]]></category>
		<category><![CDATA[Online Research]]></category>
		<category><![CDATA[bing local]]></category>
		<category><![CDATA[google local]]></category>
		<category><![CDATA[google places]]></category>
		<category><![CDATA[IYP]]></category>
		<category><![CDATA[local search]]></category>
		<category><![CDATA[phone books]]></category>
		<category><![CDATA[yellow pages]]></category>

		<guid isPermaLink="false">http://www.webmalama.com/?p=857</guid>
		<description><![CDATA[Is it worth it for your business to pay to be listed in yellow pages?]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div class="wp-caption alignleft" style="width: 310px"><a rel="nofollow" href="http://commons.wikipedia.org/wiki/File:Auckland_Yellow_pages.jpg"><img title="Auckland 2004 Yellow Pages books" src="http://www.webmalama.com/wp-content/uploads/2011/05/300px-Auckland_Yellow_pages.jpg" alt="Auckland 2004 Yellow Pages books" width="300" height="161" /></a><p class="wp-caption-text">Image via Wikipedia</p></div>
</div>
<p>Although I normally focus on <a title="online marketing" href="http://www.webmalama.com/online-marketing/">online marketing</a>, print is still an important part of the marketing mix. I thought I&#8217;d take a quick look at yellow page phone books because 1. they used to be the gold standard, and 2. they now have online versions.</p>
<p>Yellow page phone books seem to have been losing relevancy over the past decade or so. Dex&#8217;s own advertising recognizes that more and more often yellow pages are being used as doorstops and booster seats than finding a business.</p>
<p>Last night my wife became frustrated looking for a local business&#8217;s phone number and business hours online: &#8220;I can&#8217;t believe this place. They let their website expire, they don&#8217;t have any directory listings, and they don&#8217;t even have their number or hours on a Google places page. How am I supposed to find them?&#8221;</p>
<p>We thought for a minute and realized that we could use the phone book, call them up, and hopefully get a recording with their hours. We called this the &#8220;old fashioned way,&#8221; complete with air quotes and a funny voice.</p>
<p>So, how much are people using the yellow pages nowadays? How many people are using the yellow pages to find and decide on using your business? More importantly, is it worth it for your business to pay to be listed in yellow pages?</p>
<h2>Recent Yelp Research</h2>
<p><a href="http://www.yelp.com" target="_blank">Yelp</a> (@yelp) sent me an email this morning with a survey report from some of their business users. I&#8217;ve pasted most of the email&#8217;s content here (I didn&#8217;t see an online version of it to share):</p>
<blockquote><p>Last week, we presented a survey to gauge how business owners feel about yellow page phone books in the digital age. Only 24% of our 3,500+ respondents said &#8220;Yes&#8221; to the question, “Are yellow page phone books still relevant?”</p>
<p>That&#8217;s quite a find. Here are some others:</p>
<p>1) Most business owners don&#8217;t think yellow page phone books are useful to them:</p>
<p>“Yellow page phone books are useful to me as a business owner.”<br />
Agree &#8211; 11%<br />
Somewhat Agree &#8211; 17%<br />
Somewhat Disagree &#8211; 19%<br />
Disagree &#8211; 52%</p>
<p>2) Only about 10% of business owners use yellow page phone books more than once per month; 3 out of 4 don&#8217;t use it at all:</p>
<p>How many times per month do you rely on a yellow page phone book to find a local business?<br />
“Zero” &#8211; 75%<br />
“Once” &#8211; 14%<br />
“Between two and four times” &#8211; 8%<br />
“Five or more times” &#8211; 3%</p>
<p>3) Very few business owners believe customers find them using a yellow page phone book.</p>
<p>Estimated percentage of customers who find me using a yellow page phone book.<br />
“0%” &#8211; 43%<br />
“1-25%” &#8211; 47%<br />
“26-50%” &#8211; 5%<br />
“51-75%” &#8211; 3%<br />
“76-99%” &#8211; 1%<br />
“100%” &#8211; 0.1%</p>
<p>The  conclusion: Business owners have clearly observed the shrinking  relevance of yellow page phone books. As we continue to move away from  printed phone books, online and mobile directories will continue to grow  as the customer&#8217;s choice for local business information.</p></blockquote>
<p>I think that Yelp&#8217;s conclusion is pretty accurate (yes, I know that these results serve Yelp and come from an audience already using the Internet as a tool so the results can&#8217;t be projected to everyone). Many of us simply don&#8217;t even think of the yellow pages as an option.</p>
<h2>Local Search Usage Study</h2>
<p>TMP Directional Marketing and comScore released an <a href="http://www.naturalsearchblog.com/archives/2008/10/09/new-print-yellow-pages-usage-stats-from-comscore-tmp-study/" target="_blank">annual joint “Local Search Usage Study”</a> (I couldn&#8217;t find a primary source link for this still up) on 10/9/2008 that found:</p>
<ul>
<li>30 percent of respondents still rely on directories as their primary  local  business research source, despite a 3 percent decline from 2007  to 2008.</li>
<li>Traditional Internet Yellow Pages sites such as Superpages.com, YELLOWPAGES.COM,  Yahoo!  Yellowpages.com, etc. account for 60 percent of local IYP  business searches.</li>
<li>Local Search sites such as Google Maps, MapQuest, Yahoo! Local, etc.  account for 40 percent of local IYP business searches.</li>
</ul>
<p>That&#8217;s 60% using Internet Yellow Pages and 40% using search engines as of 3 years ago. To me, that&#8217;s a compelling argument for still being listed with a phone book company, if they are giving you an online listing in addition to paper.</p>
<h2>Survey Says!</h2>
<p>It makes me wonder if a question like, &#8220;How do you find a business&#8221; was asked on the game show &#8220;Family Feud&#8221; today how far down the list &#8220;Yellow Pages&#8221; would be. I&#8217;m guessing it would be something like:</p>
<ol>
<li>Search Engine</li>
<li>Online Directory</li>
<li>GPS</li>
<li>Ask someone</li>
<li>Phone book</li>
</ol>
<p>I believe that phone book companies see this as well. Which is why if you own a business you&#8217;ve likely received a few dozen calls from them trying to sign you up for their new online services. You also see it in <a href="http://www.youtube.com/watch?v=Qr0AhJ3cOgQ" target="_blank">advertising that focuses on being available online</a> or in print.</p>
<h2>My Conclusion</h2>
<p>My conclusion is that because phone books offer online versions, yellow pages are still an important factor for many businesses. If you get listed in the physical book, you&#8217;ll be in the digital directory as well. You&#8217;ll still need to decide if paying for a listing is worth it though.</p>
<p>You should be sure to list your business in massive, massively used, free directories like Google Places, Bing Local, Yahoo Local, CitySearch, and Yelp in addition to any local online directories you&#8217;re aware of.</p>
<p>Bottom line, you need your business to be listed where eyes are looking for it.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=e8007b57-556b-4390-8e00-b2de6e20210a" alt="" /><span class="zem-script pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.webmalama.com/should-i-still-use-yellow-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.webmalama.com/feed/ ) in 0.44960 seconds, on Feb 7th, 2012 at 3:08 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 7th, 2012 at 4:08 am UTC -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  www.webmalama.com/feed/ ) in 0.00078 seconds, on Feb 7th, 2012 at 3:25 am UTC. -->
