<?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>bavotasan.com &#187; text</title>
	<atom:link href="http://bavotasan.com/tag/text/feed/" rel="self" type="application/rss+xml" />
	<link>http://bavotasan.com</link>
	<description>by c.bavota</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:42:10 +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>Add a Copyright Notice to Copied Text</title>
		<link>http://bavotasan.com/2010/add-a-copyright-notice-to-copied-text/</link>
		<comments>http://bavotasan.com/2010/add-a-copyright-notice-to-copied-text/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 19:17:47 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[clipboard]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[getSelection]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=2943</guid>
		<description><![CDATA[I was checking out the CBC website and I noticed that if you copy and paste any text from the site a reference link appears at the bottom, indicating the source. I thought that was kind of neat and tried to figure out how to do it. Turns out, they use a service called Tynt. [...]]]></description>
			<content:encoded><![CDATA[<p>I was checking out the <a href="http://cbc.ca/">CBC</a> website and I noticed that if you copy and paste any text from the site a reference link appears at the bottom, indicating the source. I thought that was kind of neat and tried to figure out how to do it. Turns out, they use a service called <a href="http://www.tynt.com/">Tynt</a>. That&#8217;s cool and all, but I wanted to see if I could make it happen using JavaScript. All I needed my function to do was grab the copied selection, tack on a copyright notice and then add the two to the clipboard. </p>
<p>It took a lot of messing around and I was finally able to put something together that worked in most browsers. Sorry IE people, this one won&#8217;t work for you, though if anyone figures out a fix for IE let me know. Then the function will work for all major browsers.</p>
<p>Here is the JavaScript:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> addLink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> body_element <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> selection<span style="color: #339933;">;</span>
	selection <span style="color: #339933;">=</span> window.<span style="color: #660066;">getSelection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> pagelink <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&lt;br /&gt;&lt;br /&gt; Read more at: &lt;a href='&quot;</span><span style="color: #339933;">+</span>document.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;'&gt;&quot;</span><span style="color: #339933;">+</span>document.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&lt;/a&gt;&lt;br /&gt;Copyright &amp;copy; c.bavota&quot;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// change this if you want</span>
	<span style="color: #003366; font-weight: bold;">var</span> copytext <span style="color: #339933;">=</span> selection <span style="color: #339933;">+</span> pagelink<span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> newdiv <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	newdiv.<span style="color: #660066;">style</span>.<span style="color: #660066;">position</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'absolute'</span><span style="color: #339933;">;</span>
	newdiv.<span style="color: #660066;">style</span>.<span style="color: #660066;">left</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'-99999px'</span><span style="color: #339933;">;</span>
	body_element.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>newdiv<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	newdiv.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> copytext<span style="color: #339933;">;</span>
	selection.<span style="color: #660066;">selectAllChildren</span><span style="color: #009900;">&#40;</span>newdiv<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	window.<span style="color: #660066;">setTimeout</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		body_element.<span style="color: #660066;">removeChild</span><span style="color: #009900;">&#40;</span>newdiv<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
document.<span style="color: #660066;">oncopy</span> <span style="color: #339933;">=</span> addLink<span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div>

<p>Just add this between your page&#8217;s head tags, and change the copyright notice to whatever you want. </p>
<h3>Demo</h3>
<p>To test it out, copy something from the paragraph below and paste it into your favorite text editor.</p>
<div id="testp" style="padding: 10px; background: #eee; border: 1px solid #ccc; font-size: 12px; line-height: 16px;">
Aenean vel massa tellus. Aliquam imperdiet ante a justo luctus et bibendum erat porta. Morbi varius, erat et cursus ornare, elit augue bibendum leo, sed imperdiet nulla risus ut ipsum. Maecenas laoreet neque vitae magna porta sed euismod urna ornare. Nulla facilisi. Maecenas congue ligula eu arcu rhoncus volutpat. Etiam pretium pulvinar sapien, et ultrices augue euismod sagittis. Pellentesque sodales, velit tempor pharetra ultricies, lacus odio mattis ligula, vel sollicitudin erat nisl sed nisi. Pellentesque vestibulum suscipit libero, sit amet scelerisque purus aliquam vulputate. Etiam semper mauris ac felis convallis volutpat dictum ante placerat. Proin tempus elementum nisl ac eleifend. In hac habitasse platea dictumst. Duis et neque at mi lacinia luctus non ut neque. Praesent mollis metus at quam ornare bibendum. Cras augue tortor, tempor vitae adipiscing at, pulvinar vel massa. Curabitur et orci massa, sit amet malesuada diam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Duis vitae orci id lectus convallis tempus vel quis mauris.
</div>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/add-a-copyright-notice-to-copied-text/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Use jQuery to Replace a Word with a Link</title>
		<link>http://bavotasan.com/2010/jquery-replace-word-with-link/</link>
		<comments>http://bavotasan.com/2010/jquery-replace-word-with-link/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 20:54:46 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[body]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[piece]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[var]]></category>
		<category><![CDATA[way]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=2615</guid>
		<description><![CDATA[If you use a word multiple times on your site and you don&#8217;t feel like going through all your posts to replace every instance of it, you can use jQuery to search your page and do the replacing for you. I wanted to replace a word throughout an entire site with a link and all [...]]]></description>
			<content:encoded><![CDATA[<p>If you use a word multiple times on your site and you don&#8217;t feel like going through all your posts to replace every instance of it, you can use jQuery to search your page and do the replacing for you. I wanted to replace a word throughout an entire site with a link and all it took was a small piece of code. </p>
<p>If you don&#8217;t already have jQuery loaded into your page, include this before your closing <code>&lt;head&gt;</code>.</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div>

<p>That will load up jQuery from Google.</p>
<p>Now you just need to include this in your site&#8217;s footer, before the closing <code>&lt;body&gt;</code>. (Why in the footer? Because including your JavaScript after all of your code is the efficient way to do it.)</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> thePage <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;body&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  thePage.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>thePage.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/jQuery/ig</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'&lt;a href=&quot;http://jquery.com&quot;&gt;jQuery&lt;/a&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div>

<p>Since jQuery doesn&#8217;t have a core function for replacing text, we will use the JavaScript <code><a href="http://www.w3schools.com/jsref/jsref_replace.asp">replace()</a></code> function. The <code>i</code> after the slash makes the search and replace case-insensitive, and the <code>g</code> makes it global. </p>
<p>I have the script working on this page to replace every instance of the word jQuery with a link to the jQuery Web site.</p>
<p><script type="text/javascript">
(function($) {
  $(".posttop p").each(function() {
    $(this).html($(this).html().replace(/jQuery/ig, '<a href="http://jquery.com">jQuery</a>')); 
  });
})(jQuery)
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/jquery-replace-word-with-link/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A Simple CSS Trick to Vertically Align Text</title>
		<link>http://bavotasan.com/2010/a-simple-css-trick-to-vertically-align-text/</link>
		<comments>http://bavotasan.com/2010/a-simple-css-trick-to-vertically-align-text/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 17:33:08 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Center]]></category>
		<category><![CDATA[Containers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[DIGGING]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[fff]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[technique]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[way]]></category>
		<category><![CDATA[Width]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=2604</guid>
		<description><![CDATA[I was trying to vertically align text within a div container and it just wasn&#8217;t working for me. You would think that using vertical-align in your CSS would accomplish just that, but you would be wrong. I found a way to do it using three div containers and absolute positioning but I felt that was [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to vertically align text within a div container and it just wasn&#8217;t working for me. You would think that using <code>vertical-align</code> in your CSS would accomplish just that, but you would be wrong. I found a way to do it using three div containers and absolute positioning but I felt that was a little overkill for my purposes. </p>
<p>This was the box I was designing:</p>
<div style="width: 100px; height: 100px; background: #666; color: #fff; text-align: center; text-shadow: none;">Some Text</div>
<p>After doing a lot of digging around, I discovered that you could set the line-height of your text to be the same as the height of your div container and this is what you would get:</p>
<div style="width: 100px; height: 100px; background: #666; color: #fff; text-align: center; text-shadow: none; line-height: 100px;">Some Text</div>
<p>That did it. </p>
<p>Here is the CSS I used:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.container</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#666</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* where the magic happens */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></td></tr></table></div>

<p>The only way this technique wouldn&#8217;t work for you was if you had text on two lines, then the second line would be 100 pixels below the first. Hmm&#8230; maybe I could figure out a solution to that one as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/a-simple-css-trick-to-vertically-align-text/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>10 Great Free Mac Apps for Web Developers</title>
		<link>http://bavotasan.com/2009/10-great-free-mac-apps-for-web-developers/</link>
		<comments>http://bavotasan.com/2009/10-great-free-mac-apps-for-web-developers/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 21:06:15 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[everything]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[List]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[mac man]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[purpose]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web developers]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=1504</guid>
		<description><![CDATA[I have been a Mac man for almost ten years now, and though many Web developers swear to working on a PC, I find my Mac has everything I need to develop, design and program Web sites. Luckily there are tons of great free apps available to help any developer work more efficiently on their [...]]]></description>
			<content:encoded><![CDATA[<p>I have been a Mac man for almost ten years now, and though many Web developers swear to working on a PC, I find my Mac has everything I need to develop, design and program Web sites. Luckily there are tons of great free apps available to help any developer work more efficiently on their Mac.<br />
<span id="more-1504"></span><br />
Here is a list of 10 great free Mac apps for Web developers that I use:</p>
<div class="lists">
<div class="sections">
<h2>TextWrangler</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/textwrangler.jpg" alt="textwrangler" title="textwrangler" width="560" height="163" class="alignleft size-full wp-image-1505" /><br />
TextWrangler is the powerful general purpose text editor with some great features. Whether you are working with HTML, CSS, PHP or any other Web programming language, TextWrangler has everything you need to easily edit your code.<br />
<a href="http://www.barebones.com/products/textwrangler/index.html">http://www.barebones.com/products/textwrangler/index.html</a>
</div>
<div class="sections">
<h2>MAMP</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/mamp.jpg" alt="mamp" title="mamp" width="560" height="163" class="alignleft size-full wp-image-1506" /><br />
MAMP installs Apache, Mysql and PHP on your Mac to create a fully functioning Web environment which will allow you to test all aspects of your Web site locally. It&#8217;s smart to have an environment to test and work with offline before making your changed on your live site.<br />
<a href="http://www.mamp.info/en/mamp/index.html">http://www.mamp.info/en/mamp/index.html</a>
</div>
<div class="sections">
<h2>Paparazzi!</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/paprazzi.jpg" alt="paprazzi" title="paprazzi" width="560" height="163" class="alignleft size-full wp-image-1507" /><br />
Paparazzi! is a small utility for Mac OS X that takes screen shots of Web pages. This is helpful for creating your portfolio or sending screen shots to clients.<br />
<a href="http://derailer.org/paparazzi/">http://derailer.org/paparazzi/</a>
</div>
<div class="sections">
<h2>YemuZip</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/yemuzip.jpg" alt="yemuzip" title="yemuzip" width="560" height="163" class="alignleft size-full wp-image-1509" /><br />
YemuZip is an easy-to-use application for making zip files. Just drag, drop, name your zip file and you&#8217;re done. The native Mac file compressor utility adds Mac-specific info to zip files that, when extracted on a PC, looks like garbage.<br />
<a href="http://www.yellowmug.com/yemuzip/">http://www.yellowmug.com/yemuzip/</a>
</div>
<div class="sections">
<h2>VirtualBox</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/virtualbox.jpg" alt="virtualbox" title="virtualbox" width="560" height="163" class="alignleft size-full wp-image-1510" /><br />
VirtualBox is a general-purpose full virtualizer for x86 hardware that allows Mac user to load Windows software on their desktop. <a href="http://bavotasan.com/tutorials/creating-an-internet-explorer-testing-environment-on-a-mac/">Creating an IE testing environment on your Mac</a> is pretty simple using VirtualBox.<br />
<a href="http://www.virtualbox.org/">http://www.virtualbox.org/</a>
</div>
<div class="sections">
<h2>Skype</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/skype.jpg" alt="skype" title="skype" width="560" height="163" class="alignleft size-full wp-image-1511" /><br />
Everyone probably already uses this, and if you don&#8217;t, you should. Skype is great to communicate with clients from around the globe. Skype to Skype is free for instant messaging and calls.<br />
<a href="http://www.skype.com/">http://www.skype.com/</a>
</div>
<div class="sections">
<h2>GIMP</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/gimp.jpg" alt="gimp" title="gimp" width="560" height="163" class="alignleft size-full wp-image-1512" /><br />
GIMP is an open source versatile graphics manipulation package similar to Adobe&#8217;s Photoshop, but it won&#8217;t put you in the poor house. It may not be as robust but GIMP has some amazing features and who can beat the price.<br />
<a href="http://www.gimp.org/">http://www.gimp.org/</a>
</div>
<div class="sections">
<h2>Cyberduck</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/cyberduck.jpg" alt="cyberduck" title="cyberduck" width="560" height="163" class="alignleft size-full wp-image-1513" /><br />
Cyberduck is an open source FTP, SFTP, WebDAV, Cloud Files and Amazon S3 browser for the Mac. It features an easy to use interface with quickly accessible bookmarks.<br />
<a href="http://cyberduck.ch/">http://cyberduck.ch/</a>
</div>
<div class="sections">
<h2>SvnX</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/svnx.jpg" alt="svnx" title="svnx" width="560" height="163" class="alignleft size-full wp-image-1515" /><br />
SvnX is an open source GUI for most features of the svn client binary. It allows you to browse your working copies, spot changes and operate on them but also to browse logs and revisions of your repositories.<br />
<a href="http://www.lachoseinteractive.net/en/community/subversion/svnx/features/">http://www.lachoseinteractive.net/en/community/subversion/svnx/features/</a>
</div>
<div class="sections">
<h2>Sequel Pro</h2>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/sequelpro.jpg" alt="sequelpro" title="sequelpro" width="560" height="163" class="alignleft size-full wp-image-1521" /><br />
Sequel Pro is a fast, easy-to-use Mac database management application for working with MySQL databases.<br />
<a href="http://www.sequelpro.com/">http://www.sequelpro.com/</a>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/10-great-free-mac-apps-for-web-developers/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Remove the WordPress Generator</title>
		<link>http://bavotasan.com/2009/remove-the-wordpress-generator/</link>
		<comments>http://bavotasan.com/2009/remove-the-wordpress-generator/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 15:45:41 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[Hackers]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[name]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wp]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=850</guid>
		<description><![CDATA[WordPress automatically places a line of text between your &#60;head&#62; tags which states the version you currently have installed. I have read that it is there for statistical reasons which is all fine and dandy, but sometimes showing off which version of WP you are using lets hackers know exactly what vulnerabilities your site has. [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress automatically places a line of text between your &lt;head&gt; tags which states the version you currently have installed. I have read that it is there for statistical reasons which is all fine and dandy, but sometimes showing off which version of WP you are using lets hackers know exactly what vulnerabilities your site has. </p>
<p>For security reasons, I suggest removing the generator, and doing so only takes one line of code.<br />
<span id="more-850"></span><br />
The WordPress generator line looks like this:</p>
<p><code>&lt;meta name="generator" content="WordPress 2.8" /&gt;</code></p>
<p>To get rid of it, open up your functions.php file. It is located in your theme&#8217;s folder. If there is no functions.php file, create one and just add the following code.</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;">remove_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_generator'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div>

<p>Be sure to place it between &lt;?php&gt;&lt;?&gt; tags.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/remove-the-wordpress-generator/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to Wrap Text within the &lt;pre&gt; Tag Using CSS</title>
		<link>http://bavotasan.com/2009/how-to-wrap-text-within-the-pre-tag-using-css/</link>
		<comments>http://bavotasan.com/2009/how-to-wrap-text-within-the-pre-tag-using-css/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 15:09:52 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[Explorer]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[Stylesheet]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=558</guid>
		<description><![CDATA[I just came across an issue where I needed to make sure that the text within a &#60;pre&#62; tag wrapped. The default for this tag it to just let the text run on, no matter if the site&#8217;s page has ended. Not very good, if you ask me. All you need to do is add [...]]]></description>
			<content:encoded><![CDATA[<p>I just came across an issue where I needed to make sure that the text within a &lt;pre&gt; tag wrapped. The default for this tag it to just let the text run on, no matter if the site&#8217;s page has ended. Not very good, if you ask me.<br />
<span id="more-558"></span><br />
All you need to do is add this one pieces of code to your stylesheet and your text will wrap nicely.</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;">pre <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> pre-wrap<span style="color: #00AA00;">;</span>       <span style="color: #808080; font-style: italic;">/* css-3 */</span>
  <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -moz-pre-wrap<span style="color: #00AA00;">;</span>  <span style="color: #808080; font-style: italic;">/* Mozilla, since 1999 */</span>
  <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -pre-wrap<span style="color: #00AA00;">;</span>      <span style="color: #808080; font-style: italic;">/* Opera 4-6 */</span>
  <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -o-pre-wrap<span style="color: #00AA00;">;</span>    <span style="color: #808080; font-style: italic;">/* Opera 7 */</span>
  word-wrap<span style="color: #00AA00;">:</span> break-word<span style="color: #00AA00;">;</span>       <span style="color: #808080; font-style: italic;">/* Internet Explorer 5.5+ */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/how-to-wrap-text-within-the-pre-tag-using-css/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A New Comment Editor</title>
		<link>http://bavotasan.com/2009/a-new-comment-editor/</link>
		<comments>http://bavotasan.com/2009/a-new-comment-editor/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 21:46:01 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Colors]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[none]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[use]]></category>
		<category><![CDATA[way]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=547</guid>
		<description><![CDATA[I have had some requests to figure out a way that visitors of bavotasan.com could leave code and simple styling in their comments. I searched and searched and tried many different things but none seemed to work that great. I knew I needed a WYSIWYG editor of some sort but the few I came across [...]]]></description>
			<content:encoded><![CDATA[<p><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2009/04/commentpreview.jpg"><img src="http://bavotasan.com/wp-content/uploads/2009/04/commentpreview-200x174.jpg" alt="commentpreview" title="commentpreview" width="200" height="174" class="alignright size-thumbnail wp-image-552" /></a>I have had some requests to figure out a way that visitors of bavotasan.com could leave code and simple styling in their comments. I searched and searched and tried many different things but none seemed to work that great. I knew I needed a WYSIWYG editor of some sort but the few I came across didn&#8217;t really do what I wanted. I was going to try to create one myself but I have been a bit too busy lately to take that on.<br />
<span id="more-547"></span><br />
Luckily I stumbled upon the <a href="http://wmd-editor.com/">WMD editor</a> and the <a href="http://c.hadcoleman.com/wordpress-plugins/wmd-editor-wordpress-plugin/">WordPress plugin created by Chad Coleman</a>. Though, WMD claims not to be a WYSIWYG editor but a WYSIWYM editor, it pretty much does the same thing. </p>
<p>According to the website, WYSIWYM means What You See Is What You Mean. </p>
<p>&#8220;WMD produces clean semantic HTML, leaving presentation details like fonts and colors up to style sheets. But you&#8217;re not left in the dark about cosmetics; as you type, WMD&#8217;s live preview shows you exactly what your text will look like after the current styles have been applied.&#8221;</p>
<p>So far, I like the way it works, and the live preview it great. </p>
<p>NOTE: I no longer use this comment editor plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/a-new-comment-editor/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Removing Extraneous Backslashes with PHP</title>
		<link>http://bavotasan.com/2009/removing-extraneous-backslashes-with-php/</link>
		<comments>http://bavotasan.com/2009/removing-extraneous-backslashes-with-php/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 19:58:47 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Quotes]]></category>
		<category><![CDATA[Removing]]></category>
		<category><![CDATA[something]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=378</guid>
		<description><![CDATA[This is something that most people who use PHP already know. I still think it is useful to mention it because some less experienced PHP coders might not have come across this function just yet and they will be grateful. If you are displaying a string using PHP, sometimes you see something that looks like [...]]]></description>
			<content:encoded><![CDATA[<p>This is something that most people who use PHP already know. I still think it is useful to mention it because some less experienced PHP coders might not have come across this function just yet and they will be grateful.</p>
<p>If you are displaying a string using PHP, sometimes you see something that looks like this, &#8220;I was over a my sister\&#8217;s place to celebrate my father\&#8217;s birthday&#8230;&#8221;. That is because PHP actually uses quotes for certain functions so when it encounters a quote in a string, is places the backslash &#8220;\&#8221; before it to signify that is should not be read as code, but as text. This usually happens with textarea boxed and can be easily avoided. extraneous<br />
<span id="more-378"></span></p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div>

<p>Now your string will display like this, &#8220;I was over a my sister&#8217;s place to celebrate my father&#8217;s birthday&#8230;&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/removing-extraneous-backslashes-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting Text in your WordPress Search Box</title>
		<link>http://bavotasan.com/2008/getting-text-in-your-wordpress-search-box/</link>
		<comments>http://bavotasan.com/2008/getting-text-in-your-wordpress-search-box/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 03:31:26 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[Default Theme]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[everyone]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Php File]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[use]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=105</guid>
		<description><![CDATA[Have you ever wondered how some sites have text in their search box? This one is pretty easy. All you need to do is modify the searchform.php file, which can be found in your theme&#8217;s directory. Let&#8217;s use the default theme as an example to make it easier for everyone to see what to do. [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wondered how some sites have text in their search box? This one is pretty easy. All you need to do is modify the searchform.php file, which can be found in your theme&#8217;s directory. Let&#8217;s use the default theme as an example to make it easier for everyone to see what to do.<br />
<span id="more-105"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;form method=&quot;get&quot; id=&quot;searchform&quot; action=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/&quot;&gt;
&lt;label class=&quot;hidden&quot; for=&quot;s&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Search for:'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt;
&lt;div&gt;
&lt;input type=&quot;text&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_search_query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;
&lt;input type=&quot;submit&quot; id=&quot;searchsubmit&quot; value=&quot;Search&quot; /&gt;
&lt;/div&gt;
&lt;/form&gt;</pre></td></tr></table></div>

<p>Now let&#8217;s change&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;input type=&quot;text&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_search_query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;</pre></td></tr></table></div>

<p>to&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Search &amp; Hit Enter&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;s&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;s&quot;</span> onfocus<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;if (this.value == 'Search &amp; Hit Enter') {this.value = '';}&quot;</span> onblur<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;if (this.value == '') {this.value = 'Search &amp; Hit Enter';}&quot;</span> <span style="color: #339933;">/&gt;</span></pre></td></tr></table></div>

<p>What does all this do? Oh&#8230; So very much.</p>
<p>First, it will automatically fill your search box with &#8220;Search and Hit Enter&#8221;. If you click on the search box, it will disappear and you can enter text. But if you don&#8217;t enter text and click out of the box, &#8220;Search and Hit Enter&#8221; will appear again. </p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2008/getting-text-in-your-wordpress-search-box/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How to Create an Aqua Button in Adobe Illustrator</title>
		<link>http://bavotasan.com/2008/how-to-create-an-aqua-button-in-adobe-illustrator-cs3/</link>
		<comments>http://bavotasan.com/2008/how-to-create-an-aqua-button-in-adobe-illustrator-cs3/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 21:55:38 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Adobe Illustrator]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[illustrator]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[MoveClose]]></category>
		<category><![CDATA[Placing]]></category>
		<category><![CDATA[Shape]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=66</guid>
		<description><![CDATA[I recently needed to create some buttons for a client&#8217;s website and I thought it would be a fun little tutorial to put together to show you how quick and easy it is to create one of those nifty looking aqua buttons you see everywhere. It is only really a five step process and you [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to create some buttons for a client&#8217;s website and I thought it would be a fun little tutorial to put together to show you how quick and easy it is to create one of those nifty looking aqua buttons you see everywhere. It is only really a five step process and you can use any shape you choose.<br />
<span id="more-66"></span><br />
Here are some samples I created.</p>
<p><img src="http://bavotasan.com/wp-content/uploads/2008/11/aquabutton.png" alt="" title="aquabutton" class="alignnone nobox size-thumbnail wp-image-67" /><br />
<img src="http://bavotasan.com/wp-content/uploads/2008/11/circle.png" alt="" title="circle" class="alignnone nobox size-thumbnail wp-image-68" /></p>
<p>Placing text or an image on top of the buttons is pretty simple and these buttons can really add some nice visuals to any professional web design. </p>
<p><a href="#" onclick="return hs.htmlExpand(this, { contentId: 'highslide-html' } )" class="highslide"><img src="http://bavotasan.com/wp-content/uploads/2008/11/createaqua.jpg" alt="" width="565" /></a>
<div class="highslide-html-content" id="highslide-html">
<div class="highslide-header">
<ul>
<li class="highslide-move"><a href="#" onclick="return false">Move</a></li>
<li class="highslide-close"><a href="#" onclick="return hs.close(this)">Close</a></li>
</ul>
</div>
<div class="highslide-body"><img src="http://bavotasan.com/wp-content/plugins/flash-video-player/default_video_player.gif" /></div>
<div class="highslide-footer">
<div><span class="highslide-resize" title="Resize"><span></span></span></div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2008/how-to-create-an-aqua-button-in-adobe-illustrator-cs3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

