<?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>Joey Rivera &#187; Other</title>
	<atom:link href="http://www.joeyrivera.com/category/categories/other/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joeyrivera.com</link>
	<description>Blogging about PHP, Actionscript, MySQL, and other interests.</description>
	<lastBuildDate>Fri, 02 Dec 2011 03:55:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Automate SVN Export to Site w/ Bash Script</title>
		<link>http://www.joeyrivera.com/2011/automate-svn-export-to-site-w-bash-script/</link>
		<comments>http://www.joeyrivera.com/2011/automate-svn-export-to-site-w-bash-script/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 16:30:19 +0000</pubDate>
		<dc:creator>Joey</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.joeyrivera.com/?p=685</guid>
		<description><![CDATA[So at work we are finalizing the setup of a new server environment. The site is in PHP and the code is all in SVN. We were trying to decide what process to use to export the SVN contents to the site and that&#8217;s where I decided to learn how to write a bash script. [...]]]></description>
			<content:encoded><![CDATA[<p>So at work we are finalizing the setup of a new server environment. The site is in PHP and the code is all in SVN. We were trying to decide what process to use to export the SVN contents to the site and that&#8217;s where I decided to learn how to write a bash script. This is my first and with some help from <a title="Jesse Charbneau" href="http://jess.thecharbneaus.com/">Jess</a> we created the following script. The script does the following:</p>
<ul>
<li>Does an info on the remote repo to get the revision number</li>
<li>Checks against local revision number which is stored in a file</li>
<li>If the revision numbers don&#8217;t match, it does a diff on both revisions and creates an list with the files that were changed</li>
<li>It then loops through each file and exports it to the site</li>
<li>Finally it stores the new revision number in the file</li>
</ul>
<div>Feel free to use this and tweak it for your needs. This is our first draft, at this point we&#8217;ll start cleaning it up and adding more functionality but it works. Make sure to add a cron job to run it every so often and enjoy.</div>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#!/bin/bash</span><br />
<span class="re3"># need to figure out what to <span class="kw1">do</span> on files that need to be deleted</span><br />
<span class="re2">TARGET_DIR=</span><span class="st0">&#8216;/path/to/site&#8217;</span><br />
<span class="re2">REPO=</span><span class="st0">&quot;svn://path.to.svn/repo&quot;</span><br />
<span class="re2">REVISION_FILE=</span><span class="st0">&#8216;.revision&#8217;</span></p>
<p><span class="kw3">echo</span> <span class="st0">&quot;Getting info from remote repo&quot;</span><br />
<span class="re2">REMOTE_VERSION=</span>$<span class="br0">&#40;</span>svn info <span class="re1">$REPO</span> | <span class="kw2">grep</span> Revision<span class="br0">&#41;</span><br />
<span class="re2">REMOTE_VERSION=</span>$<span class="br0">&#123;</span>REMOTE_VERSION: <span class="nu0">-4</span><span class="br0">&#125;</span> <span class="re3"># need to update to not hardcode <span class="nu0">4</span> spaces back</span><br />
<span class="re2">CURRENT_VERSION=</span>$<span class="br0">&#40;</span><span class="kw2">more</span> <span class="re1">$REVISION_FILE</span><span class="br0">&#41;</span></p>
<p><span class="kw3">echo</span> <span class="st0">&quot;Current Revision: $CURRENT_VERSION&quot;</span><br />
<span class="kw3">echo</span> <span class="st0">&quot;Remote Revision: $REMOTE_VERSION&quot;</span></p>
<p><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="st0">&quot;$REMOTE_VERSION&quot;</span> -eq <span class="st0">&quot;$CURRENT_VERSION&quot;</span> <span class="br0">&#93;</span><br />
<span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;No export needed&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">exit</span> <span class="nu0">0</span><br />
<span class="kw1">fi</span></p>
<p><span class="kw3">echo</span> <span class="st0">&quot;Getting diffs between revisions&quot;</span><br />
<span class="re2">difflines=</span>`svn <span class="kw2">diff</span> &#8211;summarize -r <span class="re1">$CURRENT_VERSION</span>:<span class="re1">$REMOTE_VERSION</span> <span class="re1">$REPO</span> <span class="nu0">2</span>&gt;&amp;amp;<span class="nu0">1</span> | <span class="kw2">awk</span> <span class="st0">&#8216;{print $2}&#8217;</span>`</p>
<p><span class="re2">URL_LENGTH=</span>$<span class="br0">&#123;</span><span class="re3">#REPO<span class="br0">&#125;</span></span></p>
<p><span class="kw1">for</span> i <span class="kw1">in</span> `<span class="kw3">echo</span> <span class="re1">$difflines</span>`; <span class="kw1">do</span><br />
&nbsp; &nbsp;<span class="re2">FILENAME=</span>$<span class="br0">&#123;</span>i:<span class="re1">$URL_LENGTH</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp;<span class="kw3">echo</span> <span class="st0">&quot;svn export ${i} ${TARGET_DIR}${FILENAME}&quot;</span><br />
&nbsp; &nbsp;svn <span class="kw3">export</span> <span class="re0">$<span class="br0">&#123;</span>i<span class="br0">&#125;</span></span> <span class="re0">$<span class="br0">&#123;</span>TARGET_DIR<span class="br0">&#125;</span></span><span class="re0">$<span class="br0">&#123;</span>FILENAME<span class="br0">&#125;</span></span><br />
<span class="kw1">done</span></p>
<p><span class="kw3">echo</span> <span class="st0">&quot;Saving revision number&quot;</span><br />
<span class="kw3">echo</span> <span class="re0">$<span class="br0">&#123;</span>REMOTE_VERSION<span class="br0">&#125;</span></span> &gt; <span class="re1">$REVISION_FILE</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.joeyrivera.com/2011/automate-svn-export-to-site-w-bash-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two thumbs up for the wifey!</title>
		<link>http://www.joeyrivera.com/2010/two-thumbs-up-for-the-wifey/</link>
		<comments>http://www.joeyrivera.com/2010/two-thumbs-up-for-the-wifey/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 19:11:04 +0000</pubDate>
		<dc:creator>Joey</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[ashley fleishel]]></category>
		<category><![CDATA[ashley rivera]]></category>
		<category><![CDATA[kroger]]></category>

		<guid isPermaLink="false">http://www.joeyrivera.com/?p=579</guid>
		<description><![CDATA[So my wife submitted a design for an eco-friendly bag contest for Kroger late last year. There were over 46,000 entries nation wide and she ended up winning second place!!! Great job sweets! Starting next month (April), if you shop at Kroger, you may be able to purchase her bag from your local Kroger store. [...]]]></description>
			<content:encoded><![CDATA[<p>So my wife submitted a design for an <a href="http://www.designareusablebag.com/vote-for-designs/top-10.aspx">eco-friendly bag contest for Kroger</a> late last year. There were over 46,000 entries nation wide and she ended up winning second place!!! Great job sweets!</p>
<p style="text-align: center;">
<p>Starting next month (April), if you shop at Kroger, you may be able to purchase her bag from your local Kroger store. Here is an article that just came out today from a local magazine:</p>
<p><a href="http://www.mdjonline.com/view/full_story/6794712/article-Marietta-graphic-designer-takes-2nd-in-Kroger-s-reusable-bag-competition?instance=home_news_1st_right">http://www.mdjonline.com/view/full_story/6794712/article-Marietta-graphic-designer-takes-2nd-in-Kroger-s-reusable-bag-competition?instance=home_news_1st_right</a></p>
<p>Feel free to visit Ashley&#8217;s blog and let her know she did a great job: <a href="http://ashleycf.wordpress.com/">Ashley&#8217;s Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joeyrivera.com/2010/two-thumbs-up-for-the-wifey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Dale Carnegie High Impact Presentations Experience/Review</title>
		<link>http://www.joeyrivera.com/2010/dale-carnegie-high-impact-presentations-reivew/</link>
		<comments>http://www.joeyrivera.com/2010/dale-carnegie-high-impact-presentations-reivew/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 18:22:22 +0000</pubDate>
		<dc:creator>Joey</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[dale carnegie]]></category>
		<category><![CDATA[presentations]]></category>
		<category><![CDATA[reivew]]></category>

		<guid isPermaLink="false">http://www.joeyrivera.com/?p=566</guid>
		<description><![CDATA[Wow&#8230; I can&#8217;t stress enough how much improvement I made over the course of two days from taking this program from Dale Carnegie. Before I continue with this post I want to thank Julianne Rivera (Sr. Business Consultant) for encouraging me to take this class. Had it not been for her, my audience would have paid the [...]]]></description>
			<content:encoded><![CDATA[<p>Wow&#8230; I can&#8217;t stress enough how much improvement I made over the course of two days from taking this program from <a title="Dale Carnegie Web Site" href="http://www.dalecarnegie.com/">Dale Carnegie</a>. Before I continue with this post I want to thank <a title="Julianne Rivera's Email" href="mailto:julianne.rivera@dalecarnegie.com">Julianne Rivera</a> (Sr. Business Consultant) for encouraging me to take this class. Had it not been for her, my audience would have paid the price. I also want to thank Ercell Charles and April Farlow for being great coaches throughout this program and doing a fantastic job. This was my first time taking a Dale Carnegie class and it won&#8217;t be my last. <strong>Make sure to watch the before and after videos below to see why</strong>.</p>
<h4>Why did I want to take this class?</h4>
<p>Every time I receive a comment on this blog from my users letting me know that what I wrote helped them in some way, I find it extremely rewarding. I like being able to share my thoughts, knowledge, and experience with others and have decided I want to start presenting to local user groups to further expand my reach. I know my material, but my presentation skills were lacking. I have my first presentation coming up for the <a title="Atlanta PHP User Group" href="http://www.atlantaphp.org/">Atlanta PHP User Group</a> and I want to make sure I don&#8217;t bore my audience. I did a quick dry run to test my presentation and it wasn&#8217;t very energetic&#8230; it was actually pretty dull. So when the opportunity to take a Dale Carnegie class on presentations presented itself, I took it.<span id="more-566"></span></p>
<h4>About the class</h4>
<p>The program was tough, two days from 8am to 5pm Thursday and Friday none-stop plus homework. The class consisted of 8-9 students and two coaches, Ercell Charles and April Farlow. Both coaches were extremely knowledgeable and great to work with. The focus of the class is not what our content is but how to effectively deliver our content to an audience. How to catch our audience&#8217;s attention and keep them interested throughout. How to add energy and use our voice to get points across.</p>
<p>In two days, we each presented probably 8 times, six of which were recorded. We would receive coaching during each presentation and more coaching when we watched our video afterwards. This was probably the biggest eye opener for me, watching myself on video after a presentation and watching the progression I was making with each presentation. The coaches made us do, what at the time felt like wild and crazy things, but when you watched yourself on the tape, you looked perfectly normal, more than that, you looked like a real presenter!</p>
<p>Not only were the coaches valuable but so was everyone else there. Being able to watch these other people present and interact with them was very helpful to the experience. We all helped each other with lots of positive reenforcement and it was nice watching each individual grow with each presentation. The individual who left the biggest impression with me was one who during his first presentation was very quiet and timid. He lacked confidence and you could tell he wasn&#8217;t in his comfort zone. On the second day, during his last presentation, he was a completely different person. You could not have known this man and the man from the day before were the same person. He was so confident, did an excellent job using his voice and gestured and captured his audience for the entire duration of his presentation.</p>
<p>Below are my before and after videos. Don&#8217;t focus on the content, just focus on how I am delivering the content. Focus on my voice inflection (or lack off), look at my hands and posture. You may want to watch the first then the second a couple times to really get the full experience.</p>
<h4>Before and after videos</h4>
<p>Before:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/ENJ6SmCNIPI&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/ENJ6SmCNIPI&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>After:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/p5XTW3xxX6U&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/p5XTW3xxX6U&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>I&#8217;ve watched these two videos over and over again with a huge smile on my face and excitement to see the after me. I know I can do much better now to keep my audience entertained! And the best part, this is just the starting point. I now have what I need to keep improving.</p>
<p>The toughest part of this program was the end of the last day &#8211; the questions and answers session. Very tough questions were asked to each of us, questions that we didn&#8217;t necessarily want to answer about us as individuals, our company, or our products and service. Some were tough because they dealt with uncomfortable issues, others were in an attempt to incite anger or discomposure. These questions needed to be asked to teach us how to deal with them in a very professional manner. We were taught not to use &#8216;fighting words&#8217; (like Ercell likes to call them) in our response. We were taught how to deal with individuals who try to bring us down by keeping our credibility and sticking to our values.</p>
<p>Overall I give Ercell, April, and Dale Carnegie an A+ for this High Impact Presentation program. It was very rewarding and I encourage any of you who currently give presentations at work or user groups as well as those like me who want to start presenting to look into this program. You will not regret taking it. If you have any questions about this program feel free to contact <a title="Julianne Rivera's Email" href="mailto:julianne.rivera@dalecarnegie.com">Julianne Rivera</a>.</p>
<p>Have you taken this program before? If so, I&#8217;d like to hear how it went.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joeyrivera.com/2010/dale-carnegie-high-impact-presentations-reivew/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

