<?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>eligeske</title>
	<atom:link href="http://eligeske.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://eligeske.com</link>
	<description>My day to day journey through the world wide web.</description>
	<lastBuildDate>Fri, 19 Feb 2010 02:33:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Combining $(this) with selector</title>
		<link>http://eligeske.com/jquery/combining-this-with-element-selector/</link>
		<comments>http://eligeske.com/jquery/combining-this-with-element-selector/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 15:41:23 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=181</guid>
		<description><![CDATA[<img src="http://eligeske.com/wp-content/uploads/2009/11/category-jquery.jpg" alt="jQuery category" title="jquery $this with other selectors" width="150" height="150" class="alignnone size-full wp-image-73" />Stacking $(this) and other element selectors can be frustrating to some at times. This is a quick one to assist with it.]]></description>
			<content:encoded><![CDATA[<p>Ok, I know that there are many times where you may be using a click function of an element but you need to use specifically that element you clicked siblings or children.  Being able to stack the $(this) selector with other ones can be a little difficult or puzzling at times.  Check below on a couple different ways of sticking them together.</p>
<p>Notice in the code that a comma &#8220;,&#8221; is used and not the concatenation plus &#8220;+&#8221;.</p>
<div class="wp-synhighlighter-inner"><pre class="javascript" style="font-family:arial;">// find out if a selected element's is visible.
$visible = $(this,&quot;:visible&quot;).length; // returns true of false
// find out if a selected element's immediate sibling div is visible.
$visible = $(this).next('div:visible').length; // returns true of false
// hide the selected previous siblings element, &lt;span&gt;hide me&lt;/span&gt;&lt;element&gt;this&lt;/element&gt;
$('+ span', this).hide();
// hide the selected element's child with the class name .class
$(this,&quot;.class&quot;).hide(); // returns true of false</pre></div></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/jquery/combining-this-with-element-selector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery checkbox.val always on?</title>
		<link>http://eligeske.com/jquery/jquery-checkbox-val-always-on/</link>
		<comments>http://eligeske.com/jquery/jquery-checkbox-val-always-on/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 15:34:35 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=137</guid>
		<description><![CDATA[<img src="http://eligeske.com/wp-content/uploads/2009/11/category-jquery.jpg" alt="jQuery category" title="jquery checkbox.val always on?" width="150" height="150" class="alignnone size-full wp-image-73" /> Attempting to check the value of a form checkbox field? I was and it was always returning on. Find out why.]]></description>
			<content:encoded><![CDATA[<p>When using JQuery selectors and trying to get the value of a checkbox, it seems that it will always return the result &#8220;on&#8221;.  That is because you need to check to see if it is &#8220;:checked&#8221; instead of trying to grab the value of it.</p>
<div class="wp-synhighlighter-inner"><pre class="javascript" style="font-family:arial;">if($(&quot;input[name='YourCheckboxName']&quot;).is(&quot;:checked&quot;)){
alert('on');
}else{
alert('off');
}</pre></div></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/jquery/jquery-checkbox-val-always-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Dynamic Constants</title>
		<link>http://eligeske.com/php/php-dynamic-constants/</link>
		<comments>http://eligeske.com/php/php-dynamic-constants/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 01:00:03 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=174</guid>
		<description><![CDATA[<img style="float: left;" src="http://eligeske.com/wp-content/uploads/2009/10/blog_php.png"   width="150" height="150" class="alignnone size-full wp-image-73" />I got this off the php.net website, haven't tried it yet. Uh ya, a Dynamic Constant, Jumbo Shrimp?<br/><br/>]]></description>
			<content:encoded><![CDATA[<p>This is a way to print out a constant when you need to select the name dynamically.</p>
<p>Haven&#8217;t tried it yet, but I am adding because I am sure I will need it in the near future.</p>
<div class="wp-synhighlighter-inner"><pre class="php" style="font-family:arial;">$changing_variable = 'foo_bar';
echo constant('FOO_' . strtoupper($changing_variable));</pre></div></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/php/php-dynamic-constants/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;»&#8221;  Magically Appears in WP!</title>
		<link>http://eligeske.com/css/%c2%bb-magically-appears-in-wordpress/</link>
		<comments>http://eligeske.com/css/%c2%bb-magically-appears-in-wordpress/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 17:12:10 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=156</guid>
		<description><![CDATA[<img style="float: left;" src="http://eligeske.com/wp-content/uploads/2009/11/category-wordpress.jpg" alt="Wordpress Firefox bullet issues"  width="150" height="150" class="alignnone size-full wp-image-73" /> » = &#038; #187; or & raquo; is showing up in my < li >'s in Firefox but not in IE. What the heck! Here is how to fix this very unusual CSS placement. ]]></description>
			<content:encoded><![CDATA[<p>THIS HAS NOTHING TO DO WITH LIST-STYLE-TYPE!!!!</p>
<p>So today a client&#8217;s wordpress theme was having these »&#8217;s show up next to all their bullets in Firefox, but not in IE.  I used firebug but the css was not showing up for what was creating it.  <img src='http://eligeske.com/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' />  Very strange.<br />
»  	  	is an angle quotation mark (right), and can be displayed using &amp;#187; or &amp;raquo; .  So naturally I searched my css and all theme files for these HTML snippets.  I found a bunch but none I needed.  After doing some online searching I found that in some themes they use the li:before to place, a not so commonly used css element (firebug didn&#8217;t even display it), the symbol there.  But the weird thing is the css.  Check it out below, if you find this in your css anywhere, just remove it or comment it out and it will remove the arrows.</p>
<div class="wp-synhighlighter-inner"><pre class="css" style="font-family:arial;"><span style="color: #6666ff;">.entry</span> ul li<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#sidebar</span> ul ul li<span style="color: #3333ff;">:before </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\0</span>0BB <span style="color: #000099; font-weight: bold;">\0</span>020&quot;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/css/%c2%bb-magically-appears-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Get Prior Date or Yesterday</title>
		<link>http://eligeske.com/php/php-get-prior-date-or-yesterday/</link>
		<comments>http://eligeske.com/php/php-get-prior-date-or-yesterday/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 20:15:58 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=152</guid>
		<description><![CDATA[<img style="float: left;" src="http://eligeske.com/wp-content/uploads/2009/10/blog_php.png"  title="PHP get day before" width="150" height="150" class="alignnone size-full wp-image-73" />PHP Quickie! Ever wonder how to get the date of one day or maybe even 2 days prior to a selected date? Pretty easy with mktime().<br/>]]></description>
			<content:encoded><![CDATA[<p>Here is a quickie to get the date prior to another date. You can make it one, two, 3 days prior. Doesn&#8217;t really matter. PHP&#8217;s mktime() function self corrects when you put in a day and subtract the number from it.<br />
Yes. Even if it 2010-01-01 it will go return 2009-12-31.</p>
<div class="wp-synhighlighter-inner"><pre class="php" style="font-family:arial;">function currWeek()
/**
 * Returns the date one day before the one entered, regardless of year or day of month.
 * Y-m-d
 * @return $dateBefore
 * @param object $mydate
*/
function getDayBefore($mydate){
	$mydate = explode(&quot;-&quot;, $mydate);
	$myyear 	= $mydate[0];
	$mymonth 	= $mydate[1];
	$myday		= $mydate[2];
	$dateBefore = mktime(0,0,0, $mymonth, $myday-1, $myyear);
	$dateBefore = date('Y-m-d',$dateBefore);
	return $dateBefore;
}</pre></div></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/php/php-get-prior-date-or-yesterday/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Current Week Number</title>
		<link>http://eligeske.com/php/php-current-week-number/</link>
		<comments>http://eligeske.com/php/php-current-week-number/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 17:39:48 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=144</guid>
		<description><![CDATA[<img style="float: left;" src="http://eligeske.com/wp-content/uploads/2009/10/blog_php.png"   width="150" height="150" class="alignnone size-full wp-image-73" />PHP Quickie! I needed a function to get the current week. Not sure if it is 100% solid, so use on your own accord.<br/><br/>]]></description>
			<content:encoded><![CDATA[<p>I did not fully test this for every scenario and leap years.  But it worked for what I was using it for.  If anyone has any bugs with it, let me know.</p>
<div class="wp-synhighlighter-inner"><pre class="php" style="font-family:arial;">function currWeek()
{
$dateArray = getdate();
$yday = $dateArray['yday'];
$wday = $dateArray['wday'];
$cMon 	= $yday &amp;#8211; $wday;
$currWk = ceil($cMon/7);
return $currWk;
}</pre></div></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/php/php-current-week-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress error in Apache log.</title>
		<link>http://eligeske.com/php/wordpress-error-in-apache-log/</link>
		<comments>http://eligeske.com/php/wordpress-error-in-apache-log/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 15:57:08 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=140</guid>
		<description><![CDATA[<img style="float: left;" src="http://eligeske.com/wp-content/uploads/2009/11/category-wordpress.jpg" alt="wordpress" title="wordpress" width="150" height="150" class="alignnone size-full wp-image-73" />Wordpress error in Apache log, WHERE category_nicename = , Could be many things creating this error. Here are some common and easy fixes.]]></description>
			<content:encoded><![CDATA[<p>This error was driving me nuts.</p>
<p>Error in Apache Log:<br />
[error] [client 127.0.0.1] WordPress database error Table &#8216;wp_categories&#8217; doesn&#8217;t exist for query SELECT cat_name FROM wp_categories WHERE category_nicename = &#8216;12&#8242; made by require, require_once, include, get_header, locate_template, load_template, require_once, breadcrumbs, referer:</p>
<p>I edited the core files to no end.  Of course the last thing I checked after four to five hours of hacking was the breadcrumb plugin by <a title="Visit author homepage" href="http://drnaylor.co.uk/">Daniel R Naylor</a>.  Because I was sending custom URL Params it was trying to grab the category out of a depecrated table.</p>
<p>FIX: Either use another breadrumb if your going to be using custom URL Parameters or edit the current one.<br />
&#8211; comment out this entire elseif statment:<br />
elseif ( !empty($category_name)</p>
<p>That keeps it from looking for that table and will end the errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/php/wordpress-error-in-apache-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery &#8211; Run script if!</title>
		<link>http://eligeske.com/jquery/jquery-run-script-if/</link>
		<comments>http://eligeske.com/jquery/jquery-run-script-if/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:39:57 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=120</guid>
		<description><![CDATA[<img src="http://eligeske.com/wp-content/uploads/2009/11/category-jquery.jpg" alt="jQuery" title="jQuery Run Script if" width="150" height="150" class="alignnone size-full wp-image-73" /> When running a site with a boat load of javascript, you may want to run a script only if a certain something is on the page. Run my enclosed script only if......]]></description>
			<content:encoded><![CDATA[<p>When running a site with a boat load of javascript, you may want to run a script only if a certain something is on the page.  Not only could this save on initial loading time, but more importantly if you have an element of one thing on one page and the same named element for something else on another. You don&#8217;t want your JQuery to do an action to that if it isn&#8217;t intended.</p>
<p>So.  Run my enclosed script if!  I read somewhere a while back on a nice way of determining if an element exists. Really simple and I definitely cannot take credit for this.</p>
<p>Let&#8217;s say you have a div on your index page you have some classes you want to change on page load. But on another page you have some more of those classes.</p>
<p>You could either have an entirely new javascript page for that page || you could do the following.</p>
<p>Create something with a unique id that you don&#8217;t plan on using elsewhere on your site, so maybe the page name.   &lt;body id=&#8221;myPageName&#8221;&gt;</p>
<p>Then all you need to do for JQuery is the following:</p>
<div class="wp-synhighlighter-inner"><pre class="javascript" style="font-family:arial;">if ($('#myPageName').length &gt; 0){
//everything you want to run inside here.   
}</pre></div></p>
<p>Got any other ideas that would work besides this? Please let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/jquery/jquery-run-script-if/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Display Single Post&#8217;s Content in WP</title>
		<link>http://eligeske.com/wordpress/display-single-posts-content-in-wp/</link>
		<comments>http://eligeske.com/wordpress/display-single-posts-content-in-wp/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 19:32:12 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=114</guid>
		<description><![CDATA[<img style="float: left;" src="http://eligeske.com/wp-content/uploads/2009/11/category-wordpress.jpg" alt="jQuery-Star-Rating" title="jQuery-Star-Rating" width="150" height="150" class="alignnone size-full wp-image-73" />Here is the Wordpress methods to query just a single Post into one of your pages. Really simple, so simple no one posts in on the web!... .err.]]></description>
			<content:encoded><![CDATA[<p>Here is the Wordpress methods to query just a single Post into one of your pages.</p>
<p>Here it is:</p>
<div class="wp-synhighlighter-inner"><pre class="php" style="font-family:arial;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'p=11'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">/* assign page id */</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* start the loop */</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* prints the content */</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* end the loop */</span>  <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div>
<p><strong>REMEMBER THIS IS FOR POSTs and NOT PAGEs</strong></p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/wordpress/display-single-posts-content-in-wp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Display Single Page&#8217;s Content in WP</title>
		<link>http://eligeske.com/wordpress/display-single-pages-content-in-wp/</link>
		<comments>http://eligeske.com/wordpress/display-single-pages-content-in-wp/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 19:30:19 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=109</guid>
		<description><![CDATA[<img style="float: left;" src="http://eligeske.com/wp-content/uploads/2009/11/category-wordpress.jpg" alt="jQuery-Star-Rating" title="jQuery-Star-Rating" width="150" height="150" class="alignnone size-full wp-image-73" />Despite looking around on the web it is really hard to find just the basic query syntax for adding a single wordpress' page content to your own page. ]]></description>
			<content:encoded><![CDATA[<p>Despite looking around on the web it is really hard to find just the basic query syntax for adding a single wordpress&#8217; page content to your own page.  I guess it is so simple that when anyone figures it out they don&#8217;t post about it.</p>
<p>Here it is:</p>
<div class="wp-synhighlighter-inner"><pre class="php" style="font-family:arial;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page_id=11'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">/* assign page id */</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* start the loop */</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* prints the content */</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* end the loop */</span>  <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div>
<p><strong>REMEMBER THIS IS FOR PAGEs and NOT POSTS</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/wordpress/display-single-pages-content-in-wp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
