<?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>Gazelle Incorporated</title>
	<atom:link href="http://gazelleincorporated.com/feed" rel="self" type="application/rss+xml" />
	<link>http://gazelleincorporated.com</link>
	<description>Web Solutions and Development</description>
	<lastBuildDate>Wed, 20 Mar 2013 18:57:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Dynamically adding a watermark to an image using PHP</title>
		<link>http://gazelleincorporated.com/dynamically-adding-a-watermark-to-an-image-using-php</link>
		<comments>http://gazelleincorporated.com/dynamically-adding-a-watermark-to-an-image-using-php#comments</comments>
		<pubDate>Wed, 20 Mar 2013 18:53:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gazelleincorporated.com/?p=177</guid>
		<description><![CDATA[I decided to put this simple piece of code into a blog post so that A) No one else wastes as much time perfecting this process as I have B) So that I&#8217;ll remember it if needed in the future If you have a gallery you are serving up on a site via PHP and&#8230;]]></description>
				<content:encoded><![CDATA[<p>I decided to put this simple piece of code into a blog post so that</p>
<p>A) No one else wastes as much time perfecting this process as I have</p>
<p>B) So that I&#8217;ll remember it if needed in the future</p>
<p>If you have a gallery you are serving up on a site via PHP and you&#8217;d like to apply a watermark to each image before showing it to the world, create a script (example: watermark.php) with this code:<br />
<code><br />
//Let's say you sent the filename via the url, i.e. watermark.php?filename=myimage.jpg<br />
$filename=$_REQUEST['filename'];<br />
//$imgpath is where your images in this gallery reside<br />
$imgpath="images/";<br />
//Put them all together to get the full path to the image:<br />
$imgpath = $imgpath.$filename;<br />
//OK cool, let's start the process of outputting the image with a watermark...<br />
header('content-type: image/jpeg');   //HTTP header - assumes your images in the gallery are JPGs<br />
//$watermarkfile is the filepath for your watermark image as a PNG-24 Transparent (ex: your logo)<br />
$watermarkfile="images/watermark.png";<br />
//Get the attributes of the watermark file so you can manipulate it<br />
$watermark = imagecreatefrompng($watermarkfile);<br />
     //Get the width and height of your watermark - we will use this to calculate where to put it on the image<br />
list($watermark_width,$watermark_height) = getimagesize($watermarkfile);<br />
//Now get the main gallery image (at $imgpath) so we can maniuplate it<br />
$image = imagecreatefromjpeg($imgpath);<br />
     //Get the width and height of your image - we will use this to calculate where the watermark goes<br />
$size = getimagesize($imgpath);<br />
//Calculate where the watermark is positioned<br />
//In this example, it is positioned in the lower right corner, 15px away from the bottom &#038; right edges<br />
$dest_x = $size[0] - $watermark_width - 15;<br />
$dest_y = $size[1] - $watermark_height - 15;<br />
//I used to use imagecopymerge to apply the watermark to the image<br />
//However it does not preserve the transparency and quality of the watermark<br />
//imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, 70);<br />
//So I now use this function which works beautifully:<br />
//Refer here for documentation: http://www.php.net/manual/en/function.imagecopy.php<br />
imagecopy($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height);<br />
//Finalize the image:<br />
imagejpeg($image);<br />
//Destroy the image and the watermark handles<br />
imagedestroy($image);<br />
imagedestroy($watermark);<br />
</code></p>
<p>OK, now you have the code to apply a watermark to an image. All you need to do now is use HTML <img> tags to call the image, using &#8220;watermark.php?filename=yourimagefile.jpg&#8221; as the &#8220;src&#8221; attribute. </p>
<p>Example:<br />
<code><br />
&lt;img src="watermark.php?filename=coolimagebro.jpg"&gt;<br />
</code></p>
<p>Have a nice day. And follow me on twitter <a href="http://twitter.com/anngaff" target="_blank">@anngaff</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gazelleincorporated.com/dynamically-adding-a-watermark-to-an-image-using-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips for creating a website using WordPress</title>
		<link>http://gazelleincorporated.com/tips-for-creating-a-website-using-wordpress</link>
		<comments>http://gazelleincorporated.com/tips-for-creating-a-website-using-wordpress#comments</comments>
		<pubDate>Tue, 14 Sep 2010 09:57:49 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://gazelleincorporated.com/?p=95</guid>
		<description><![CDATA[Just about anyone can make a nice-looking, well-organized website these days if they are willing to get their hands just a little dirty. I&#8217;ve used WordPress with customized themes to create the following sites: The Joanna Hayes Foundation USATF Diversity Committee The Official Website of Jason High Jonathan C. Little, Attorney at Law TrackSolid.com &#8230;and&#8230;]]></description>
				<content:encoded><![CDATA[<p>Just about anyone can make a nice-looking, well-organized website these days if they are willing to get their hands just a little dirty. I&#8217;ve used WordPress with customized themes to create the following sites:</p>
<ul>
<li><a href="http://joannahayesfoundation.org" target="_blank">The Joanna Hayes Foundation</a></li>
<li><a href="http://usatfdiversity.org" target="_blank">USATF Diversity Committee</a></li>
<li><a href="http://highfighter.com" target="_blank">The Official Website of Jason High</a></li>
<li><a href="http://jonlittlelaw.com" target="_blank">Jonathan C. Little, Attorney at Law</a></li>
<li><a href="TrackSolid.com" target="_blank">TrackSolid.com</a></li>
</ul>
<p>&#8230;and more.</p>
<p>Here are a few tips for creating a website with WordPress for your personal or business use:</p>
<h3>Create Pages, not Posts, for your informational content.</h3>
<p>Most websites have a Home page and an About page. Depending on what the site is for, you may also want &#8220;Services,&#8221; &#8220;Portfolio,&#8221; &#8220;FAQ,&#8221; &#8220;Links,&#8221; pages and so on. These should be created as Pages in WordPress, not Posts. Only write Posts as part of your site&#8217;s Blog, if you want one.</p>
<p>Make sure you create a Page called &#8220;Home.&#8221; Then under Settings -&gt; Reading, at the top of the screen, check the box for the front page to display a Static Page and select the Home Page to be the one displayed.</p>
<h3>Get rid of Commenting, Author Name, the Timestamp and anything else but the actual content on each Page.</h3>
<p>This will get rid of that &#8220;blog look.&#8221; For some themes, you can disable these things in the settings. For others, they are already removed on the static Pages for you. In case they&#8217;re not, you&#8217;ll need to edit the page.php file under Appearance -&gt; Editor. This is the template file that each of your site&#8217;s Pages follows.</p>
<p>In the page.php file, look for a PHP function call that says &#8220;comments_template();&#8221; and put two slashes in front of it to disable that call: &#8220;//comments_template();&#8221; &#8230;do the same thing with the function call &#8220;the_time();&#8221; to get rid of the timestamp for the date and time the page was published to the site. If you see an Author listed under the title of the Pages on your site, look for a function call like &#8220;the_author()&#8221; or &#8220;the_author_posts_link()&#8221; and put two slashes in front of it. If there is also the word &#8220;by&#8221; in front of the author call, just delete it.</p>
<p>In general, if you see something in the body of a Page on your site that you don&#8217;t want, you can search the page.php file and get rid of the code causing that information to display.</p>
<h3>Put your own copyright in the Footer</h3>
<p>Under Appearance -&gt; Editor, edit the footer.php file. This is usually just a few lines of code. Usually there is a credit to the theme&#8217;s author there. Ethically, you should leave this in unless you customized their theme so much that it is unrecognizable from their original. But next or above their credit, add something like &#8220;&amp;copy; 2010 [YOUR SITE NAME],&#8221; replacing of course &#8220;[YOUR SITE NAME]&#8221; with your site name. The &#8220;&amp;copy;&#8221; will show the copyright symbol. If you want 2010 to automatically increment every year, then replace 2010 with &#8220;&lt;?php echo date(&#8220;Y&#8221;); ?&gt;.&#8221;</p>
<h3>Customize your Sidebar&#8230;or get rid of it.</h3>
<p>For a site that will include a blog, a great way to display recent blog posts is to put them in the sidebar using a widget. Go to Appearance -&gt; Widgets and drag the &#8220;Recent Posts&#8221; widget over to the Sidebar box on the right.</p>
<p>If you are on Twitter or Facebook, either put links to your accounts in your sidebar or embed a Twitter and/or Facebook widget for your account.</p>
<p>If you&#8217;re just going to link to your accounts, it is a nice touch to use icons instead of text links. <a href="http://mysocialbuttons.com/" target="_blank">Here is a great site from which to download Social Media Button icons.</a> You will need to upload these button icons under Media, copy the link to each, and then create a Text/HTML widget in your Sidebar that looks similar to:</p>
<pre>&lt;a href="http://twitter.com/yourtwittername" target="_blank"&gt;&lt;img src="http://www.yourdomain.com/wp-content/uploads/2010/08/tweet.png" border=0&gt;&lt;/a&gt;</pre>
<p>Of course, you would replace &#8220;yourtwittername&#8221; with your twitter handle and</p>
<p>&#8220;http://www.yourdomain.com/wp-content/uploads/2010/08/tweet.png&#8221;</p>
<p>with the link to the social media button you uploaded under Media.</p>
<p>If you want to embed a Twitter or Facebook widget, you can grab the code from your account on those sites and paste it into a Text/HTML widget in your sidebar.</p>
<p>Other ideas for your sidebar are:</p>
<ul>
<li>Contact Information for you or your organization</li>
<li>Upcoming Events, if applicable</li>
<li>Partner or Sponsor links and/or logos.</li>
</ul>
<p>If none of these apply to your site, and you don&#8217;t have a blog on your site, you don&#8217;t HAVE to have anything on your sidebar.</p>
<p>To get rid of your sidebar entirely, you can usually edit the footer.php file and put two slashes (&#8220;//&#8221;) in front of the call to &#8220;get_sidebar();&#8221; to disable it. If you don&#8217;t see that in the footer.php file, you may be able to disable it in your theme&#8217;s settings.</p>
<p>While I certainly didn&#8217;t cover all of the possibilities for customization here, I hope that gets you off to a good start. Feel free to comment if you have questions!</p>
<p>- Ann, Chief Go-Getter</p>
]]></content:encoded>
			<wfw:commentRss>http://gazelleincorporated.com/tips-for-creating-a-website-using-wordpress/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>What if we taught all the girls how to make websites?</title>
		<link>http://gazelleincorporated.com/what-if-we-taught-all-the-girls-how-to-make-websites</link>
		<comments>http://gazelleincorporated.com/what-if-we-taught-all-the-girls-how-to-make-websites#comments</comments>
		<pubDate>Wed, 19 May 2010 23:03:26 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Giving Back]]></category>
		<category><![CDATA[girls in technology]]></category>
		<category><![CDATA[Girls Inc]]></category>
		<category><![CDATA[Women for Girls]]></category>

		<guid isPermaLink="false">http://gazelleincorporated.com/?p=45</guid>
		<description><![CDATA[This post was originally published at GirlyGeekdom.com I was brainstorming with a director at Girls Inc Orange County on Monday about ways in which Women for Girls, a group of professional women in support of Girls Inc OC, could work with the girls served by the organization. The director was briefing me on the various programs currently&#8230;]]></description>
				<content:encoded><![CDATA[<p><em>This post was originally published at <a href="http://girlygeekdom.com/inspiration/taught-girls-websites/" target="_blank">GirlyGeekdom.com</a></em></p>
<p>I was brainstorming with a director at <a onclick="javascript:_gaq.push(['_trackEvent','outbound-article','www.girlsinc-oc.org']);" href="http://www.girlsinc-oc.org/" target="_blank">Girls Inc Orange County</a> on Monday about ways in which <a onclick="javascript:_gaq.push(['_trackEvent','outbound-article','www.girlsinc-oc.org']);" href="http://www.girlsinc-oc.org/support/women-for-girls.jsp" target="_blank">Women for Girls</a>, a group of professional women in support of Girls Inc OC, could work with the girls served by the organization. The director was briefing me on the various programs currently in place, one of which is an internship program, placing high school girls with local businesses for a four-week internship that hopefully pays a stipend of at least a few hundred dollars.</p>
<p>The very first thing I thought was, “Let me hire one so I can teach her how to make websites!”</p>
<p>I’ve been contemplating offering “WordPress Consultation” as one of my services to fill in the gap between zero dollars and the starting price of a custom website by my company. Often I come across a potential client that just doesn’t have the money upfront to pay for a custom website and yet they have no idea how to create one themselves. I’ve had to turn these clients down because there just aren’t enough hours in the day to help everyone, even if I want to, without getting proper pay.</p>
<p>I often think to myself, “I could teach them how to do this themselves in a few hours,” especially if all they need is a basic informational website. WordPress (and other such blog packages you can host yourself) has made it possible to create a professional-looking website that is easy to maintain in a matter of hours…even minutes. Honestly.</p>
<p>Think about the most basic of websites with a home page, an about page, a services page, and a contact page. That’s four pages. Literally – pick a cool theme and activate it, create four Pages in the WordPress dashboard, label them appropriately, make sure the main navigation displays pages (and not categories), and you’re essentially done!</p>
<p>Ahhh, did I lose you a bit? “But how do I change the main navigation?” you ask. Yes, it’s true that you might need to tinker with some PHP code in order to make this work. That’s what scares most people off…just the mention of “code” will usually end the conversation.</p>
<p>But if I had an intern and it was her JOB to learn new things, I could show her. I could guide her through the entire process, and by the time we set up a couple of them together, she’d be off an running on her own, figuring out how to make expandable menus and hooking up the featured content gallery plugin. Of course, we’d also have to get into the details about hosting – Nameservers, E-mail Address setup, and so on. But all of this is pretty simple after you’ve done it a few times.</p>
<p>Just think of the power that gives her. A teenager who can create websites! She could setup a shared hosting account so she has space for a bunch of small sites as well as a discounted rate on domain names. Tben she could go to local businesses with fliers advertising her starting rate and rate per page after, say, four pages. They’ll trust her because she’s local and she’s not a big company who’s going to charge them an arm and a leg in the beginning and $100 every time a word needs to be changed. Also, she’s young and “hip” and will be perceived as current and “up on the latest styles” in terms of design and what catches people’s attention. Her prices will be lower than her competitors because she has no overhead – no office to rent, no employees to pay, and the only supplies she needs are a computer and internet access.</p>
<p>Knowing how to make websites has opened many doors in my life. How many doors could it open for young girls?</p>
]]></content:encoded>
			<wfw:commentRss>http://gazelleincorporated.com/what-if-we-taught-all-the-girls-how-to-make-websites/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Need an Algorithm&#8230;</title>
		<link>http://gazelleincorporated.com/hello-world</link>
		<comments>http://gazelleincorporated.com/hello-world#comments</comments>
		<pubDate>Wed, 20 Jan 2010 07:30:46 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Problem Solving]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[football scheduling]]></category>
		<category><![CDATA[logic]]></category>

		<guid isPermaLink="false">http://gazelleincorporated.com/blog/?p=1</guid>
		<description><![CDATA[Below is the explanation of a problem I need to find an algorithm for. Feel free to take a stab at it&#8230; We have a schedule of high school football games. There are about 300 teams, which really doesn&#8217;t matter, but just FYI. It is a 9-week season and each team has one bye during&#8230;]]></description>
				<content:encoded><![CDATA[<p>Below is the explanation of a problem I need to find an algorithm for. Feel free to take a stab at it&#8230;</p>
<p>We have a schedule of high school football games. There are about 300 teams, which really doesn&#8217;t matter, but just FYI. It is a 9-week season and each team has one bye during one of those weeks. So each team plays 8 games. The opponents are already assigned for each game based on lots of different criteria including location, ranking, each team&#8217;s preference, etc. Now the Home and Away designations must be assigned. This is the tricky part because:</p>
<ul>
<li>Each team must have exactly 4 home games and exactly 4 away games total.</li>
<li>In the last 5 weeks (which is when they play district opponents), each team must have either 2 home games or 3 home games (so that it is as balanced as possible).</li>
<li>No team can have more than 2 home OR away games in a row.</li>
<li>Some teams play an out-of-state team in week 1 and/or week 2. If so, the home or away value is already set &#8211; either they play out of the state or at home and this can&#8217;t be changed. But, this game(s) does factor into the overall total number of home and away games for that school for the season.</li>
</ul>
<p>Have at it!</p>
<p>-Ann</p>
]]></content:encoded>
			<wfw:commentRss>http://gazelleincorporated.com/hello-world/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
