<?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>Touch of Technology</title>
	<atom:link href="http://www.touchoftechnology.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.touchoftechnology.com</link>
	<description>Web Programming, Servers, and SEO</description>
	<lastBuildDate>Fri, 18 May 2012 17:36:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>rsync: failed to set times on &#8220;xx&#8221;: Operation not permitted (1)</title>
		<link>http://www.touchoftechnology.com/rsync-failed-to-set-times-on-xx-operation-not-permitted-1/</link>
		<comments>http://www.touchoftechnology.com/rsync-failed-to-set-times-on-xx-operation-not-permitted-1/#comments</comments>
		<pubDate>Fri, 18 May 2012 17:36:00 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[error messages]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=781</guid>
		<description><![CDATA[I use Rsync alot to make sure directories are all in sync with each other. It&#8217;s a great tool for development and distributing files over multiple machines with one command. Because it finds the differences, you don&#8217;t have to worry about whether you get the most recent version of a file copied to every machine [...]]]></description>
			<content:encoded><![CDATA[<p>I use Rsync alot to make sure directories are all in sync with each other.  It&#8217;s a great tool for development and distributing files over multiple machines with one command.  Because it finds the differences, you don&#8217;t have to worry about whether you get the most recent version of a file copied to every machine you want it on.  A single command can run an Rsync command to transfer to all the machines from a single source directory.  Recently however, one of my machines was getting the two errors below.  </p>
<h2>rsync: failed to set times on &#8220;xxFileNamexx&#8221;: Operation not permitted (1)</h2>
<h2>rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1060) [sender=3.0.7]</h2>
<p>I tried all sorts of permission combinations &#8211; 777 which you would think would make everything open to copy actually locked down the files even more giving a different permission error. The simple fix to both these errors is to make sure the owner of the files on both sides is the same.  It simply goes off the name of the owner, which is odd to me because you&#8217;re not always guaranteed to have the same accounts on multiple machines, but I guess the makers of Rsync couldn&#8217;t anticipate everything.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/rsync-failed-to-set-times-on-xx-operation-not-permitted-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of DBAs in Pennsylvania, search for doing business as names</title>
		<link>http://www.touchoftechnology.com/list-of-dbas-in-pennsylvania-search-for-doing-business-as-names/</link>
		<comments>http://www.touchoftechnology.com/list-of-dbas-in-pennsylvania-search-for-doing-business-as-names/#comments</comments>
		<pubDate>Tue, 15 May 2012 20:40:12 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Marketing]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=778</guid>
		<description><![CDATA[If you&#8217;re looking to start a business you may not always want your corporation, or official business name on your promotions, invoices, or website. Sometimes you might want a DBA (doing business as) name. A DBA is a name that can be unrelated to your actual business name. For instance if you&#8217;re a plumber and [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re looking to start a business you may not always want your corporation, or official business name on your promotions, invoices, or website.  Sometimes you might want a DBA (doing business as) name.  A DBA is a name that can be unrelated to your actual business name.  For instance if you&#8217;re a plumber and your business name is &#8220;Joe&#8217;s Plumbing&#8221;, you might want the name &#8220;Magic Sinks&#8221; as your name in advertising.  If you register &#8220;Magic Sinks&#8221; as a DBA, then people can write out checks to that name and you&#8217;ll be able to cash them without issue.</p>
<p>When looking for a DBA, remember that you have to register a distinguishable name, meaning it can&#8217;t be too much like an already registered name.  Adding &#8220;a&#8221;, &#8220;an&#8221;, or &#8220;the&#8221; in front of a name does not make it distinguishable, so save yourself some time and headache and do some research before you try to register a name like that.  If you&#8217;re filing in Pennsylvania, the state has a nice website that will do a search for you based on keywords.  It&#8217;s very up to date of new filings, so you should get the name you want.  <a href="https://www.corporations.state.pa.us/corp/soskb/csearch.asp" title="State DBA lookup">State pf PA DBA Lookup</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/list-of-dbas-in-pennsylvania-search-for-doing-business-as-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;The program can&#8217;t start because php5ts.dll is missing from your computer&#8221; Error</title>
		<link>http://www.touchoftechnology.com/the-program-cant-start-because-php5ts-dll-is-missing-from-your-computer-error/</link>
		<comments>http://www.touchoftechnology.com/the-program-cant-start-because-php5ts-dll-is-missing-from-your-computer-error/#comments</comments>
		<pubDate>Wed, 02 May 2012 17:13:23 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[error messages]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=776</guid>
		<description><![CDATA[I was trying to execute a PHP file via the command line on a windows machine and got the following error &#8220;the program can&#8217;t start because php5ts.dll is missing from your computer&#8221; Now executing PHP via the command line in Windows is different enough from Linux, I didn&#8217;t know what it needed. In Linux I [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to execute a PHP file via the command line on a windows machine and got the following error &#8220;the program can&#8217;t start because php5ts.dll is missing from your computer&#8221;  Now executing PHP via the command line in Windows is different enough from Linux, I didn&#8217;t know what it needed.  In Linux I would have install php-cli which should have come with all the dependancies.  In Windows however, I fixed the issue by simply copying the php5ts.dll into the PHP folder.  Now where did I get the php5ts.dll file?  <a href="http://windows.php.net/download/" title="PHP Downloads for Windows">http://windows.php.net/download/</a>  I downloaded the latest Thread Safe package, unzipped it and the php5ts.dll was present.  This fixed the issue when executing the PHP file from the command line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/the-program-cant-start-because-php5ts-dll-is-missing-from-your-computer-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing extra spaces from within quotes of a string in PHP</title>
		<link>http://www.touchoftechnology.com/removing-extra-spaces-from-within-quotes-of-a-string-in-php/</link>
		<comments>http://www.touchoftechnology.com/removing-extra-spaces-from-within-quotes-of-a-string-in-php/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 20:31:08 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[string manipulation]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=758</guid>
		<description><![CDATA[Every once in a while, you may be building strings that include quoted material. The issue is that if you&#8217;re doing it programmatically, you may be doing something that quotes different parts of the string. The issue is, that if the field you&#8217;re pulling from doesn&#8217;t exist, you may leave yourself with extra spaces in [...]]]></description>
			<content:encoded><![CDATA[<p>Every once in a while, you may be building strings that include quoted material.  The issue is that if you&#8217;re doing it programmatically, you may be doing something that quotes different parts of the string.  The issue is, that if the field you&#8217;re pulling from doesn&#8217;t exist, you may leave yourself with extra spaces in your strings.  See the example below.</p>
<p>Table: A<br />
Columns: color,number,price,shape<br />
Row1: red,4,3.25,square<br />
Row2: blue,,3.99,round<br />
Row3: ,50,,<br />
Row4: ,,50,</p>
<p>Now if you combined these rows with quotes around everything, and hyphens as delimiters, you&#8217;d wind up with the following 3 strings.  Note that the delimiter is arbitrary, you can use a replace with any character.<br />
&#8220;red-4-3.25-square&#8221;<br />
&#8220;blue&#8211;3.99-round&#8221;<br />
&#8220;-50&#8211;&#8221;<br />
&#8220;&#8211;50-&#8221;</p>
<p>Notice that if you trimmed row 3 and row 4, you&#8217;d wind up with the same string, but if you left the delimiters in there untouched, you&#8217;d have unique strings.  For this example we want to talk about the case where you want to combine them both.  So how do you get them all out of there?</p>
<p>The first step is to use a simple replace to replace any spot where the delimiters fall next to each other.  This will take cause of row 2 where the missing data was in the middle.</p>
<div class='code'>$string = str_replace(&#8220;&#8211;&#8221;, &#8220;-&#8221;, $string);</div>
<p>The simple replace doesn&#8217;t help with the edges that are next to the quotes though.  You want the quotes next to the first word, not the first delimiter.  Therefore, I created the following script to remove the quotes.  If you have issues with it, please let me know and I&#8217;ll see about improving it to take care of your case.  You could modify this to take a dynamic delimiter, or even a dynamic quoting character.</p>
<div class='code'>
function cleanInsideQuotes($str, $forward=true)<br />
{<br />
    if(!$forward){$str = strrev($str);} // reverse it so the same logic can be applied to the end of quotes.</p>
<p>    $open = false;<br />
    $justOpen = false;<br />
    $tempLen = strlen($str);<br />
    $newString = &#8220;&#8221;;</p>
<p>    for($x=0;$x<$tempLen;$x++)<br />
    {<br />
        $tempChar = $str{$x};</p>
<p>        if($tempChar=='"')<br />
        {<br />
            if($open)<br />
            {<br />
                $open = false;<br />
            }<br />
            else<br />
            {<br />
                $open = true;<br />
                $justOpen = true;<br />
            }<br />
            $newString .= $tempChar;<br />
        }<br />
        elseif($tempChar==" ")<br />
        {<br />
            if(!$justOpen)<br />
            {<br />
                $newString .= $tempChar;<br />
            }<br />
        }<br />
        else<br />
        {<br />
            $justOpen = false;<br />
            $newString .= $tempChar;<br />
        }<br />
    }</p>
<p>    $str = $newString;</p>
<p>    if($forward) // process it in reverse to catch the spaces before the ending quote.<br />
    {<br />
        $str = cleanInsideQuotes($str,false);<br />
    }<br />
    else<br />
    {<br />
        $str = strrev($str);<br />
    }<br />
    return $str;<br />
}</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/removing-extra-spaces-from-within-quotes-of-a-string-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What makes a good blog post?</title>
		<link>http://www.touchoftechnology.com/what-makes-a-good-blog-post/</link>
		<comments>http://www.touchoftechnology.com/what-makes-a-good-blog-post/#comments</comments>
		<pubDate>Sat, 28 Apr 2012 04:39:00 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Blog Writing]]></category>
		<category><![CDATA[Content Creation]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=745</guid>
		<description><![CDATA[I have just finished writing a five-part series of articles about what makes a good blog article for our sister site, A Touch of Technology.  My goal with this series is to get you the reader involved and expand this list to be even more inclusive.  It would be great to make this series into [...]]]></description>
			<content:encoded><![CDATA[<p>I have just finished writing a five-part series of articles about what makes a good blog article for our sister site, <a title="A Touch of Technology" href="http://www.fbob.com">A Touch of Technology</a>.  My goal with this series is to get you the reader involved and expand this list to be even more inclusive.  It would be great to make this series into an invaluable resource for blog writers of all levels.  I would greatly appreciate any and all of your feedback.</p>
<p>I’m only focusing on single blog entries, not what make a good blog.  There are some overlaps between the two, but one of the key concepts of creating a good blog, is having good articles that readers want to read.  I have broken down the aspects of a good blog article into 5 sections.</p>
<ol>
<li><a title="What makes a good blog article?" href="http://www.fbob.com/SEO/what-makes-a-good-blog-article/">Introduction</a></li>
<li><a title="Establish trust in your blog articles" href="http://www.fbob.com/SEO/establish-trust-in-your-blog-article/">Establish Trust</a></li>
<li><a title="Establish yourself as an expert of your topics" href="http://www.fbob.com/SEO/establish-yourself-as-an-expert-on-the-topic-of-your-blog-article">Establish Your Authority as an Expert</a></li>
<li><a title="Proofread and format your blog articles" href="http://www.fbob.com/SEO/proofread-and-format-your-blog-articles">Proofread and Format</a></li>
<li><a title="Focus on Content for your blog articles" href="http://www.fbob.com/SEO/focus-on-content-for-your-blog-articles">Focus on Content</a></li>
</ol>
<p>There are more possible sections, but I cover a great deal in the sections I have included.  Please share your thoughts and ideas in the comment sections.  I can add more sections if good points are raised, or expand the current sections.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/what-makes-a-good-blog-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR: `phpize&#8217; failed and make: *** [oauth.lo] Error 1</title>
		<link>http://www.touchoftechnology.com/error-phpize-failed-and-make-oauth-lo-error-1/</link>
		<comments>http://www.touchoftechnology.com/error-phpize-failed-and-make-oauth-lo-error-1/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 15:23:46 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[oauth]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=755</guid>
		<description><![CDATA[I recently tried to install oauth on Ubuntu and got two errors during the process. Unlike what is said, it was not the simple install from pecl. sudo pecl install oauth This should work, but it threw my first error ERROR: `phpize&#8217; failed More searching revealed that the phpize script is found in the php5-dev [...]]]></description>
			<content:encoded><![CDATA[<p>I recently tried to install oauth on Ubuntu and got two errors during the process.  Unlike what is said, it was not the simple install from pecl.</p>
<div class='code'>sudo pecl install oauth</div>
<p>This should work, but it threw my first error </p>
<div class='code'>ERROR: `phpize&#8217; failed</div>
<p>More searching revealed that the phpize script is found in the php5-dev package, and those who had the error installed that to make it work.</p>
<div class='code'>sudo apt-get install php5-dev</div>
<p>It got farther this time, but still had issues.  I got the next error when running the pecl oauth install again.</p>
<div class='code'>make: *** [oauth.lo] Error 1</div>
<p>More research found that another dependency was missing.  To install that</p>
<div class='code'>sudo apt-get install libpcre3-dev</div>
<p>After both of the packages were installed oauth downloaded and installed without issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/error-phpize-failed-and-make-oauth-lo-error-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>srst failed errno 16</title>
		<link>http://www.touchoftechnology.com/srst-failed-errno-16/</link>
		<comments>http://www.touchoftechnology.com/srst-failed-errno-16/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 16:14:07 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[error messages]]></category>
		<category><![CDATA[Harddrives]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=742</guid>
		<description><![CDATA[I booted up an Ubuntu machine and got this &#8220;srst failed errno 16&#8243; error today.  There was no raided harddrive, so I thought I was doomed.  The machine was very quiet, checkdisk never finished, and I was starting to worry I&#8217;d never get my data back. It did allow me to go into recovery mode [...]]]></description>
			<content:encoded><![CDATA[<p>I booted up an Ubuntu machine and got this &#8220;srst failed errno 16&#8243; error today.  There was no raided harddrive, so I thought I was doomed.  The machine was very quiet, checkdisk never finished, and I was starting to worry I&#8217;d never get my data back.</p>
<p>It did allow me to go into recovery mode when booting Ubuntu, so I knew my data was at least obtainable.  I still couldn&#8217;t boot normally though, so something had to be done.  Fortunately, I opened up the case, and unplugged the two CD drives, and switched the power and SATA cables into the harddrive.  When I rebooted, things went fine!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/srst-failed-errno-16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Your Website Mobile Ready?</title>
		<link>http://www.touchoftechnology.com/is-your-website-mobile-ready/</link>
		<comments>http://www.touchoftechnology.com/is-your-website-mobile-ready/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 19:12:15 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Website Design]]></category>
		<category><![CDATA[mobile websites]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web sites]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=733</guid>
		<description><![CDATA[Cell phone usage is huge in today&#8217;s world.  Whether it&#8217;s actual mobile usage while on a train or on the road, or it&#8217;s just someone sitting on their couch, the use of cell phones to access the internet is increasingly becoming popular.  Personally I hate using my cell phone for browsing, but that could be [...]]]></description>
			<content:encoded><![CDATA[<p>Cell phone usage is huge in today&#8217;s world.  Whether it&#8217;s actual mobile usage while on a train or on the road, or it&#8217;s just someone sitting on their couch, the use of cell phones to access the internet is increasingly becoming popular.  Personally I hate using my cell phone for browsing, but that could be because the sites I&#8217;m trying to access aren&#8217;t mobile friendly yet.  I get frustrated with the speed, which crawls along at 3-G rates, and the cumbersome way your have to navigate.  Put your own website to the test if you feel mobile users are an important target audience for you.  Did you get frustrated with your own site?  If so, your site is not mobile ready.</p>
<p>Here&#8217;s a quick summary of the full article (Click the title to read):</p>
<h2><a title="Is Your Website Mobile Ready?" href="http://www.fbob.com/SEO/is-your-website-mobile-ready/" target="_blank">Is Your Website Mobile Ready?</a></h2>
<ul>
<li>Cell phone usage is on the rise and a mobile friendly site is essential.</li>
<li>Mobile users are looking for their information as fast as possible.</li>
<li>The digital real estate for a mobile user is drastically smaller than a normal browser.</li>
<li>Mobile users don’t have a mouse, so don’t use hovers for effect or navigation.</li>
<li>Thumbs are not precision instruments!</li>
<li>Optimize your load times for mobile users.</li>
<li>Take action and make it easier on your mobile users by updating your design.</li>
</ul>
<div class='et-box et-info'>
					<div class='et-box-content'><a title="A Touch of Technology" href="http://www.fbob.com" target="_blank">A Touch of Technology</a> is the sister site to Touch of Technology.  The article summarized above is written for that site.  Touch of Technology is a key part of business and service offerings and the staff work closely with each other to provide an even better level of service for our customers.</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/is-your-website-mobile-ready/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to filter a list in Excel to provide a list of unique values</title>
		<link>http://www.touchoftechnology.com/how-to-filter-a-list-in-excel-to-provide-a-list-of-unique-values/</link>
		<comments>http://www.touchoftechnology.com/how-to-filter-a-list-in-excel-to-provide-a-list-of-unique-values/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 22:04:32 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Computer Use]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=724</guid>
		<description><![CDATA[Often you&#8217;ll have a big list that you want to filter duplicates out of. It could be because you&#8217;re copying content from a number of sources that may overlap, or you&#8217;re just rattling off a list of something as fast as you can and don&#8217;t want to go back to see if what you&#8217;re thinking [...]]]></description>
			<content:encoded><![CDATA[<p>Often you&#8217;ll have a big list that you want to filter duplicates out of. It could be because you&#8217;re copying content from a number of sources that may overlap, or you&#8217;re just rattling off a list of something as fast as you can and don&#8217;t want to go back to see if what you&#8217;re thinking of is already in the list. Either way, you&#8217;ll want a unique list of all the values. This is simple in Excel, and the tutorial below is for Microsoft Excel 2010. The steps are similar for other versions.</p>
<h2>How to remove duplicates from a list in Excel</h2>
<p>Start with a list of data.</p>
<p><a href="http://www.touchoftechnology.com/wp-content/uploads/2012/03/unique-excel-data-set.png"><img class="size-medium wp-image-725 alignnone" title="unique excel data set" src="http://www.touchoftechnology.com/wp-content/uploads/2012/03/unique-excel-data-set-136x300.png" alt="unique excel data set" width="136" height="300" /></a></p>
<p>Highlight the set of data you want to filter, then open the ribbon and click on the Data tab.  There is a large filter button, but we want to click on the advanced button next to it.</p>
<p><img class="alignnone size-full wp-image-726" title="unique excel filter column" src="http://www.touchoftechnology.com/wp-content/uploads/2012/03/unique-excel-filter-column.png" alt="unique excel filter column" width="626" height="242" /></p>
<p>The dialog box below comes up.  Change the first radio to Copy to another location.  Make sure the List range does not include your headers, then click in the Copy to: field.  You can either type the top cell of where you want your new list to appear, or just click on the cell while you&#8217;re in the field.  Check off the Unique records only checkbox and click OK.</p>
<p><a href="http://www.touchoftechnology.com/wp-content/uploads/2012/03/unique-excel-filter-new-column.png"><img class="alignnone size-full wp-image-727" title="unique excel filter new column" src="http://www.touchoftechnology.com/wp-content/uploads/2012/03/unique-excel-filter-new-column.png" alt="unique excel filter new column" width="239" height="242" /></a></p>
<p>The resulting data set will show as you expected it to.</p>
<p><a href="http://www.touchoftechnology.com/wp-content/uploads/2012/03/unique-excel-filtered-set.png"><img class="alignnone size-full wp-image-728" title="unique excel filtered set" src="http://www.touchoftechnology.com/wp-content/uploads/2012/03/unique-excel-filtered-set.png" alt="unique excel filtered set" width="154" height="339" /></a></p>
<p>&nbsp;</p>
<p>Counting the occurrences of your unique list</p>
<p>As an additional step, you may want to know how many times each unique item showed up in the list.  This would be useful if you&#8217;re getting a raw list of data and trying to show patterns or create a graph.  Simply add another column and use the formula shown below.  Place the formula in the first cell of your new column, next to the first unique value.  Use the range of your full set where the formula references A1:A100, and use your unique column cell as the $B2 reference.  Drag the formula down to match your list of unique values, and the result will be the count you&#8217;re looking for.</p>
<div class='code'>=COUNTIF(A1:A100,$B2)</div>
<div>&nbsp;</div>
<p><a href="http://www.touchoftechnology.com/wp-content/uploads/2012/03/unique-excel-filtered-set-count.png"><img class="alignnone size-full wp-image-729" title="unique excel filtered set count" src="http://www.touchoftechnology.com/wp-content/uploads/2012/03/unique-excel-filtered-set-count.png" alt="unique excel filtered set count" width="208" height="342" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/how-to-filter-a-list-in-excel-to-provide-a-list-of-unique-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hot to set an element&#8217;s CSS style using Javascript</title>
		<link>http://www.touchoftechnology.com/hot-to-set-an-elements-css-style-using-javascript/</link>
		<comments>http://www.touchoftechnology.com/hot-to-set-an-elements-css-style-using-javascript/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 15:18:00 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.touchoftechnology.com/?p=714</guid>
		<description><![CDATA[CSS is a great way to reduce the amount of markup that needs to be on a page. It also standardizes how your pages look and feel and should make it easier and quicker to add new content. But what happens if you have Javascript logic on your page and based off some user action, [...]]]></description>
			<content:encoded><![CDATA[<p>CSS is a great way to reduce the amount of markup that needs to be on a page. It also standardizes how your pages look and feel and should make it easier and quicker to add new content. But what happens if you have Javascript logic on your page and based off some user action, you want to change the appearance of an object? With Javascript, you can reference the object, then set the style equal to your desired new value. You can even change the object&#8217;s class and in most browsers, it will re-render the object with the styling of the new class. This is great if you want to change a lot of the element&#8217;s styles all at once. The process is shown below.</p>
<div class="code">var Object = document.getElementById(&#8220;someElementOnPageID&#8221;);<br />
Object.style.StyleName = &#8216;Style Value&#8217;;</div>
<p>Of course if you&#8217;re using this method in production, be sure to check the object to make sure it exists, as it will break Javascript if you try to set the style of null.</p>
<p>The Style Value can be the same thing you could put in an inline style or in a CSS style declaration in an external file. There are no restrictions that I&#8217;m aware of in this department. Now for most styles that are one word, the &#8220;StyleName&#8221; in the code shown above is just going to be the style, but for styles such as padding-right, the hyphen will break Javascript. </p>
<h2>CSS Styles with Hyphens</h2>
<p>The table below is a reference in alphabetical order of the different styles that have hyphens, and their corresponding Javascript reference when setting the style.</p>
<table width="60%" border="1" cellspacing="0" cellpadding="5">
<tbody>
<tr class='tableHeader'>
<td width="50%"><strong>CSS Property</strong></td>
<td width="50%"><strong>JavaScript Reference</strong></td>
</tr>
<tr>
<td width="50%">background-attachment</td>
<td width="50%">backgroundAttachment</td>
</tr>
<tr class='altrow'>
<td width="50%">background-color</td>
<td width="50%">backgroundColor</td>
</tr>
<tr>
<td width="50%">background-image</td>
<td width="50%">backgroundImage</td>
</tr>
<tr class='altrow'>
<td width="50%">background-position</td>
<td width="50%">backgroundPosition</td>
</tr>
<tr>
<td width="50%">background-repeat</td>
<td width="50%">backgroundRepeat</td>
</tr>
<tr class='altrow'>
<td width="50%">border-bottom</td>
<td width="50%">borderBottom</td>
</tr>
<tr>
<td width="50%">border-bottom-color</td>
<td width="50%">borderBottomColor</td>
</tr>
<tr class='altrow'>
<td width="50%">border-bottom-style</td>
<td width="50%">borderBottomStyle</td>
</tr>
<tr>
<td width="50%">border-bottom-width</td>
<td width="50%">borderBottomWidth</td>
</tr>
<tr class='altrow'>
<td width="50%">border-color</td>
<td width="50%">borderColor</td>
</tr>
<tr>
<td width="50%">border-left</td>
<td width="50%">borderLeft</td>
</tr>
<tr class='altrow'>
<td width="50%">border-left-color</td>
<td width="50%">borderLeftColor</td>
</tr>
<tr>
<td width="50%">border-left-style</td>
<td width="50%">borderLeftStyle</td>
</tr>
<tr class='altrow'>
<td width="50%">border-left-width</td>
<td width="50%">borderLeftWidth</td>
</tr>
<tr>
<td width="50%">border-right</td>
<td width="50%">borderRight</td>
</tr>
<tr class='altrow'>
<td width="50%">border-right-color</td>
<td width="50%">borderRightColor</td>
</tr>
<tr>
<td width="50%">border-right-style</td>
<td width="50%">borderRightStyle</td>
</tr>
<tr class='altrow'>
<td width="50%">border-right-width</td>
<td width="50%">borderRightWidth</td>
</tr>
<tr>
<td width="50%">border-style</td>
<td width="50%">borderStyle</td>
</tr>
<tr class='altrow'>
<td width="50%">border-top</td>
<td width="50%">borderTop</td>
</tr>
<tr>
<td width="50%">border-top-color</td>
<td width="50%">borderTopColor</td>
</tr>
<tr class='altrow'>
<td width="50%">border-top-style</td>
<td width="50%">borderTopStyle</td>
</tr>
<tr>
<td width="50%">border-top-width</td>
<td width="50%">borderTopWidth</td>
</tr>
<tr class='altrow'>
<td width="50%">border-width</td>
<td width="50%">borderWidth</td>
</tr>
<tr>
<td width="50%">font-family</td>
<td width="50%">fontFamily</td>
</tr>
<tr class='altrow'>
<td width="50%">font-size</td>
<td width="50%">fontSize</td>
</tr>
<tr>
<td width="50%">font-variant</td>
<td width="50%">fontVariant</td>
</tr>
<tr class='altrow'>
<td width="50%">font-weight</td>
<td width="50%">fontWeight</td>
</tr>
<tr>
<td width="50%">letter-spacing</td>
<td width="50%">letterSpacing</td>
</tr>
<tr class='altrow'>
<td width="50%">line-height</td>
<td width="50%">lineHeight</td>
</tr>
<tr>
<td width="50%">list-style</td>
<td width="50%">listStyle</td>
</tr>
<tr class='altrow'>
<td width="50%">list-style-image</td>
<td width="50%">listStyleImage</td>
</tr>
<tr>
<td width="50%">list-style-position</td>
<td width="50%">listStylePosition</td>
</tr>
<tr class='altrow'>
<td width="50%">list-style-type</td>
<td width="50%">listStyleType</td>
</tr>
<tr>
<td width="50%">margin-bottom</td>
<td width="50%">marginBottom</td>
</tr>
<tr class='altrow'>
<td width="50%">margin-left</td>
<td width="50%">marginLeft</td>
</tr>
<tr>
<td width="50%">margin-right</td>
<td width="50%">marginRight</td>
</tr>
<tr class='altrow'>
<td width="50%">margin-top</td>
<td width="50%">marginTop</td>
</tr>
<tr>
<td width="50%">padding-bottom</td>
<td width="50%">paddingBottom</td>
</tr>
<tr class='altrow'>
<td width="50%">padding-left</td>
<td width="50%">paddingLeft</td>
</tr>
<tr>
<td width="50%">padding-right</td>
<td width="50%">paddingRight</td>
</tr>
<tr class='altrow'>
<td width="50%">padding-top</td>
<td width="50%">paddingTop</td>
</tr>
<tr>
<td width="50%">page-break-after</td>
<td width="50%">pageBreakAfter</td>
</tr>
<tr class='altrow'>
<td width="50%">page-break-before</td>
<td width="50%">pageBreakBefore</td>
</tr>
<tr>
<td width="50%">float</td>
<td width="50%">styleFloat</td>
</tr>
<tr class='altrow'>
<td width="50%">text-align</td>
<td width="50%">textAlign</td>
</tr>
<tr>
<td width="50%">text-decoration</td>
<td width="50%">textDecoration</td>
</tr>
<tr class='altrow'>
<td width="50%">text-decoration: blink</td>
<td width="50%">textDecorationBlink</td>
</tr>
<tr>
<td width="50%">text-decoration: line-through</td>
<td width="50%">textDecorationLineThrough</td>
</tr>
<tr class='altrow'>
<td width="50%">text-decoration: none</td>
<td width="50%">textDecorationNone</td>
</tr>
<tr>
<td width="50%">text-decoration: overline</td>
<td width="50%">textDecorationOverline</td>
</tr>
<tr class='altrow'>
<td width="50%">text-decoration: underline</td>
<td width="50%">textDecorationUnderline</td>
</tr>
<tr>
<td width="50%">text-indent</td>
<td width="50%">textIndent</td>
</tr>
<tr class='altrow'>
<td width="50%">text-transform</td>
<td width="50%">textTransform</td>
</tr>
<tr>
<td width="50%">vertical-align</td>
<td width="50%">verticalAlign</td>
</tr>
<tr class='altrow'>
<td width="50%">z-index</td>
<td width="50%">zIndex</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.touchoftechnology.com/hot-to-set-an-elements-css-style-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

