<?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>Tue, 15 Jun 2010 20:39:14 +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>Javascript Dedup an Array</title>
		<link>http://eligeske.com/jquery/javascript-dedup-and-array-array_unique/</link>
		<comments>http://eligeske.com/jquery/javascript-dedup-and-array-array_unique/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 20:35:38 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=226</guid>
		<description><![CDATA[<img src="http://eligeske.com/wp-content/uploads/2009/11/category-jquery.jpg" alt="jQuery" title="Javascript Deduping" width="150" height="150" class="alignnone size-full wp-image-73" /> Short function to remove the duplicate entries from a Javascript array. Comparable to php's unique_array.]]></description>
			<content:encoded><![CDATA[<p>Here is a simple javascript function do remove the duplicate values in an array.  It worked very well for what I needed it for, although it may not be full proof for your application.</p>
<div class="wp-synhighlighter-inner"><pre class="javascript" style="font-family:arial;">function dedupArray(array)
{
array.sort();
var cnt = array.length &amp;#8211; 1;
var i=0;
var keepers = new Array();
while(i &lt;= cnt){
if(array[i] != array[i + 1]){
keepers.push(array[i]);
i++;
}else{
array.shift();
}
cnt = array.length &amp;#8211; 1;
}
return keepers;
}</pre></div></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/jquery/javascript-dedup-and-array-array_unique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>While Loop with JQuery</title>
		<link>http://eligeske.com/jquery/while-loop-with-jquery/</link>
		<comments>http://eligeske.com/jquery/while-loop-with-jquery/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 18:46:50 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=217</guid>
		<description><![CDATA[<img src="http://eligeske.com/wp-content/uploads/2009/11/category-jquery.jpg" alt="jQuery" title="JQuery Looping" width="150" height="150" class="alignnone size-full wp-image-73" /> As the days pass I am forced to learn more and more about JQuery. Of course loving every minute of it. Today is about looping through some elements with JQuery.]]></description>
			<content:encoded><![CDATA[<p>So you want to loop through some elements using JQuery. Me too!  We have something in common, maybe we should go have a beer together.  Bud light anyone?  just kidding. (about the bud light, ik.)</p>
<p>There is some important things when trying to loop through elements with JQuery.</p>
<ol>
<li>Need to get an array of elements OR use .each function  (but there can be some issues there)</li>
<li>Loop through those elements</li>
</ol>
<p>First: Assigning elements to an array.</p>
<p>I want everyone to know right now that I am by far an expert on this subject, but&#8230;&#8230; but&#8230;..  I do think this may help someone out.  If you have some good feedback or improvements please comment below!  The more good info the marry&#8217;er!!!!! &lt;&#8211; is that a word? anyways.</p>
<p>ASSIGN ELEMENTS TO AN ARRAY or grab OBJECTs:</p>
<p>examples:</p>
<div class="wp-synhighlighter-inner"><pre class="javascript" style="font-family:arial;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">var divs = $('divs');</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">var rows = $('.container .row'); // assigns all class with rows</div></li></ol></pre></div></p>
<p>Once you have that assigned you can get the .length value for looping through. This is different than using the .get() which uses the dom and not JQuery. So for this writeup I will be using the JQuery .eq() function which allowed me to grab out of the array from a JQuery object.</p>
<div class="wp-synhighlighter-inner"><pre class="javascript" style="font-family:arial;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">$cnt = $row.length  // returns count obviously</div></li></ol></pre></div></p>
<p>Now that we have a count of how many are in the array we can do a while loop. (using .eq) and not the .get() which would look like this $row[1]. Instead what we will do will look like this $row.eq(1);. What I used this for was to determine the height of my left column and hide rows that extended the height of the main column past the height of the left. But this is only a portion of that. Here is how i looped through and hid some rows.</p>
<div class="wp-synhighlighter-inner"><pre class="javascript" style="font-family:arial;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">$i = $cnt -1;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">while($i &gt; 0){</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">rows.eq($i).slideUp(); // slides up all the rows</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">}</div></li></ol></pre></div></p>
<p>SO HEY YOU! WHY NOT JUST USE THE .each() FUNCTION BUILT INTO JQuery!!!!!</p>
<p>Ok. I&#8217;ll tell you why, or at least a partial why.  Here is the partial why.</p>
<p>When using the .each function it appeared that it did not do a full iteration and complete all the code sequentially.  For some reason, here is the partial I can&#8217;t cover yet, the .each function iterated each part in the enclosed function at the same time not allow me to determine things in between each loop. Which forced me to learn how to traverse the JQuery object.  Which is good because using this way was WAY less code than I was about to write out of my shear laziness.</p>
<p>I hope this has helped someone else out there wanting to loop through some elements. Oh and here is the code I used to hide some rows that were making the main page container not match the height to the left column. In case you were  curious.</p>
<div class="wp-synhighlighter-inner"><pre class="javascript" style="font-family:arial;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">function squishBox(){</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">var rows = $('.products_cont .row');</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">$cnt = rows.length;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">$i = $cnt &amp;#8211; 1;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">while($i &gt; 0){</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">$left_height = $('#LEFTPANE').height();</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">$main_height = $('#CONTENTPANE').height();</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">if($left_height &lt; $main_height &amp;#8211; 100){</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">rows.eq($i).slideUp();</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">$i&amp;#8211;;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em arial; margin:0; padding:0; background:none; vertical-align:top;">}</div></li></ol></pre></div></p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/jquery/while-loop-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>State List for Drop Down</title>
		<link>http://eligeske.com/xhtml-html/state-list-for-drop-down/</link>
		<comments>http://eligeske.com/xhtml-html/state-list-for-drop-down/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 14:55:38 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[XHTML/HTML]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=204</guid>
		<description><![CDATA[<img src="http://eligeske.com/wp-content/uploads/2010/03/html-post1.jpg" alt="HTML Category" title="State List" width="150" height="150" class="alignnone size-full wp-image-73" />Here is a US States list in a couple different formats for quick copy and paste into your custom forms.]]></description>
			<content:encoded><![CDATA[<p>US State List for quick copy and paste into your forms.</p>
<div style="padding: 15px; background-color: #ccc; border: 1px solid grey;">&lt;option&gt;Alabama&lt;/option&gt;<br />
&lt;option&gt;Alaska&lt;/option&gt;<br />
&lt;option&gt;American Samoa&lt;/option&gt;<br />
&lt;option&gt;Arizona&lt;/option&gt;<br />
&lt;option&gt;Arkansas&lt;/option&gt;<br />
&lt;option&gt;California&lt;/option&gt;<br />
&lt;option&gt;Colorado&lt;/option&gt;<br />
&lt;option&gt;Connecticut&lt;/option&gt;<br />
&lt;option&gt;Delaware&lt;/option&gt;<br />
&lt;option&gt;District of Columbia&lt;/option&gt;<br />
&lt;option&gt;Florida&lt;/option&gt;<br />
&lt;option&gt;Georgia&lt;/option&gt;<br />
&lt;option&gt;Guam&lt;/option&gt;<br />
&lt;option&gt;Hawaii&lt;/option&gt;<br />
&lt;option&gt;Idaho&lt;/option&gt;<br />
&lt;option&gt;Illinois&lt;/option&gt;<br />
&lt;option&gt;Indiana&lt;/option&gt;<br />
&lt;option&gt;Iowa&lt;/option&gt;<br />
&lt;option&gt;Kansas&lt;/option&gt;<br />
&lt;option&gt;Kentucky&lt;/option&gt;<br />
&lt;option&gt;Louisiana&lt;/option&gt;<br />
&lt;option&gt;Maine&lt;/option&gt;<br />
&lt;option&gt;Maryland&lt;/option&gt;<br />
&lt;option&gt;Massachusetts&lt;/option&gt;<br />
&lt;option&gt;Michigan&lt;/option&gt;<br />
&lt;option&gt;Minnesota&lt;/option&gt;<br />
&lt;option&gt;Mississippi&lt;/option&gt;<br />
&lt;option&gt;Missouri&lt;/option&gt;<br />
&lt;option&gt;Montana&lt;/option&gt;<br />
&lt;option&gt;Nebraska&lt;/option&gt;<br />
&lt;option&gt;Nevada&lt;/option&gt;<br />
&lt;option&gt;New Hampshire&lt;/option&gt;<br />
&lt;option&gt;New Jersey&lt;/option&gt;<br />
&lt;option&gt;New Mexico&lt;/option&gt;<br />
&lt;option&gt;New York&lt;/option&gt;<br />
&lt;option&gt;North Carolina&lt;/option&gt;<br />
&lt;option&gt;North Dakota&lt;/option&gt;<br />
&lt;option&gt;Northern Marianas Islands&lt;/option&gt;<br />
&lt;option&gt;Ohio&lt;/option&gt;<br />
&lt;option&gt;Oklahoma&lt;/option&gt;<br />
&lt;option&gt;Oregon&lt;/option&gt;<br />
&lt;option&gt;Pennsylvania&lt;/option&gt;<br />
&lt;option&gt;Puerto Rico&lt;/option&gt;<br />
&lt;option&gt;Rhode Island&lt;/option&gt;<br />
&lt;option&gt;South Carolina&lt;/option&gt;<br />
&lt;option&gt;South Dakota&lt;/option&gt;<br />
&lt;option&gt;Tennessee&lt;/option&gt;<br />
&lt;option&gt;Texas&lt;/option&gt;<br />
&lt;option&gt;Utah&lt;/option&gt;<br />
&lt;option&gt;Vermont&lt;/option&gt;<br />
&lt;option&gt;Virginia&lt;/option&gt;<br />
&lt;option&gt;Virgin Islands&lt;/option&gt;<br />
&lt;option&gt;Washington&lt;/option&gt;<br />
&lt;option&gt;West Virginia&lt;/option&gt;<br />
&lt;option&gt;Wisconsin&lt;/option&gt;<br />
&lt;option&gt;Wyoming&lt;/option&gt;</div>
<div style="padding: 15px; background-color: #ccc; border: 1px solid grey; margin-top: 10px;">Alabama<br />
Alaska<br />
American Samoa<br />
Arizona<br />
Arkansas<br />
California<br />
Colorado<br />
Connecticut<br />
Delaware<br />
District of Columbia<br />
Florida<br />
Georgia<br />
Guam<br />
Hawaii<br />
Idaho<br />
Illinois<br />
Indiana<br />
Iowa<br />
Kansas<br />
Kentucky<br />
Louisiana<br />
Maine<br />
Maryland<br />
Massachusetts<br />
Michigan<br />
Minnesota<br />
Mississippi<br />
Missouri<br />
Montana<br />
Nebraska<br />
Nevada<br />
New Hampshire<br />
New Jersey<br />
New Mexico<br />
New York<br />
North Carolina<br />
North Dakota<br />
Northern Marianas Islands<br />
Ohio<br />
Oklahoma<br />
Oregon<br />
Pennsylvania<br />
Puerto Rico<br />
Rhode Island<br />
South Carolina<br />
South Dakota<br />
Tennessee<br />
Texas<br />
Utah<br />
Vermont<br />
Virginia<br />
Virgin Islands<br />
Washington<br />
West Virginia<br />
Wisconsin<br />
Wyoming</div>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/xhtml-html/state-list-for-drop-down/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php_exif.dll &#8211; The specified module could not be found.</title>
		<link>http://eligeske.com/wordpress/php_exif-dll-the-specified-module-could-not-be-found/</link>
		<comments>http://eligeske.com/wordpress/php_exif-dll-the-specified-module-could-not-be-found/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 01:31:17 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=193</guid>
		<description><![CDATA[<img style="float: left;" src="http://eligeske.com/wp-content/uploads/2009/11/category-wordpress.jpg"   width="150" height="150" class="alignnone size-full wp-image-73" />I had an error in my wordpress with my php_exif.dll - The specified module could not be found. This is how I fixed it. It may help.]]></description>
			<content:encoded><![CDATA[<p>I recently did some changes to my server and some time had lapsed before I needed to do anything on the wordpress installations on my machine. But for some reason the admin panel menus and javascript functions were not working on any of my wp installs. Which as of right now I haven&#8217;t fixed.  But if I do I will write a post and come back put a link.</p>
<p>But for this post, I found after doing some research on the required extensions to be loaded for wordpress. &gt;&gt; php_exif.dll being one of those.  But it was still commented out in my php.ini.  So the natural thing to do is uncomment and restart your services, but it crashed with the error below. EEK!  Hmmm.  The next thing is to check the directory for the dll. YUP! It was there.</p>
<p>Warning:<br />
PHP Startup: Unable to load dynamic library &#8216;Path://todrive/ext/php_exif &#8216; &#8211; The specified module could not be found.</p>
<p style="text-align: center;">
<div id="attachment_194" class="wp-caption aligncenter" style="width: 540px"><img class="size-full wp-image-194 " title="exifError" src="http://eligeske.com/wp-content/uploads/2010/02/exifError.png" alt="The specified module could not be found." width="530" height="86" /><p class="wp-caption-text">The specified module could not be found.</p></div>
<p>Then I stumbled upon this post, <a href="http://www.iis-aid.com/articles/trouble_shooting/php_exifdll_reported_not_found" target="_blank">iis-aid.com/php_exif.dll</a> , which stated the php_mbstring.dll extension needed to load before the the php_exif.dll loads.  Inside my php.ini file the php_exif.dll was before the php_mbstring.dll in the list of extensions in my php.ini file.  Does that make sense? Why is that coming before the other if it can&#8217;t be loaded that way? Maybe it is a Windows thing. I&#8217;m guessing someone will comment on there theory or possibly even a logical reasoning behind.</p>
<p>Oh yeah, so for the fix you just need to move your php_mbstring.dll above your php_exif.dll in the php.ini file extensions list and make sure they are both uncommented, then restart your server.</p>
<p>This worked for me to get rid of this error. Probably not the only fix for this error, but it worked for me.  If you found this post and have had similar errors but this didn&#8217;t fix it, please share your findings.</p>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/wordpress/php_exif-dll-the-specified-module-could-not-be-found/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>1</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>
	</channel>
</rss>
