<?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>Geekinator.com</title>
	<atom:link href="http://www.geekinator.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekinator.com</link>
	<description></description>
	<lastBuildDate>Sat, 21 Apr 2012 23:59:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>I&#8217;m sore today, but not down!</title>
		<link>http://www.geekinator.com/2012/04/21/im-sore-today-but-not-down/</link>
		<comments>http://www.geekinator.com/2012/04/21/im-sore-today-but-not-down/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 15:27:33 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[CrossFit]]></category>
		<category><![CDATA[Exercise]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[Lifestyle]]></category>
		<category><![CDATA[air squats]]></category>
		<category><![CDATA[burpees]]></category>
		<category><![CDATA[crossfit]]></category>
		<category><![CDATA[kettlebell swings]]></category>
		<category><![CDATA[knees to chest]]></category>
		<category><![CDATA[pushups]]></category>
		<category><![CDATA[toes to bar]]></category>
		<category><![CDATA[wod]]></category>
		<category><![CDATA[workout of the day]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/?p=263</guid>
		<description><![CDATA[Last night&#8217;s CrossFit workout was probably the toughest I&#8217;ve experienced so far, but I&#8217;m still standing today! I have noticed that over the past month, each workout has increased my stamina and strength, and while I still struggle to get &#8230; <a href="http://www.geekinator.com/2012/04/21/im-sore-today-but-not-down/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last night&#8217;s <a href="http://crossfit.com" target="_blank">CrossFit</a> workout was probably the toughest I&#8217;ve experienced so far, but I&#8217;m still standing today! I have noticed that over the past month, each workout has increased my stamina and strength, and while I still struggle to get through each workout, recovery is so much easier now than it was a month ago.</p>
<p>I just had to share the WOD (workout of the day) that we did yesterday:</p>
<p>It was a partner WOD, which means we rolled dice to determine each group. I happened to be paired with the owner of the gym, and CrossFit machine, Coach Nikki. The workout was as follows (if you don&#8217;t understand the lingo, I&#8217;ve linked each term to an explanation):</p>
<p>There were 2 workouts, each consisting of 2 different exercises. Partner A started with Workout A and Partner B started with Workout B, then once a partner finished their workout, they would wait til the other partner had finished theirs, then they would alternate.</p>
<p>2 times 5 sets of:</p>
<p><span style="text-decoration: underline;"><strong>Workout A</strong></span></p>
<p>10 &#8211; <a href="http://www.youtube.com/watch?v=21dvQyNiTjM" target="_blank">Burpees</a> (I can only do a couple regular pushups or about 10 knee pushups in a row, so I opted to do wall pushups in place of regular pushups)</p>
<p>10 &#8211; <a href="http://www.youtube.com/watch?v=rJqPgV681Hg" target="_blank">Kettlebell swings</a></p>
<p><strong><span style="text-decoration: underline;">Workout B</span></strong></p>
<p>10 &#8211; <a href="http://www.youtube.com/watch?v=xDdSZmWNYQI&amp;feature=related" target="_blank">Air Squats</a></p>
<p>10 &#8211; <a href="http://www.youtube.com/watch?v=cA_Mcud4TBs" target="_blank">Toes To Bar</a> (But, since I&#8217;m still working up to this, I did 10 <a href="http://www.youtube.com/watch?v=xNkNW7pciNI" target="_blank">Knees To Chest</a> instead, which I still had trouble with, as I can&#8217;t yet bring my knees all the way to my chest)</p>
<p>So, when we were all said in done, everybody did 100 burpees, 100 kettlebell swings, 100 air squats, and 100 Toes to Bar (or in my case, knees to chest). Now, that&#8217;s what I call a WOD! I was so exhausted afterwards, but Nikki did me a favor and poured water over my head, so that woke me up a bit <img src='http://www.geekinator.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I&#8217;m really surprised that today I&#8217;m able to move, let alone walk, so my healing is becoming less of a problem at this point&#8230;.so awesome!</p>
<p>I&#8217;ll keep updating my blog with more tales of CrossFit, because I&#8217;m totally hooked now. In fact, I&#8217;m going on vacation next week and will be gone 3 weeks, but Nikki emailed me a list of body weight workouts that I can do while I&#8217;m away from the gym, so I&#8217;m not going to miss a beat while I&#8217;m away.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2012/04/21/im-sore-today-but-not-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m attempting to learn c++ again after a 9 year absence</title>
		<link>http://www.geekinator.com/2012/04/19/im-attempting-to-learn-c-again-after-a-9-year-absence/</link>
		<comments>http://www.geekinator.com/2012/04/19/im-attempting-to-learn-c-again-after-a-9-year-absence/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 06:40:30 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/?p=261</guid>
		<description><![CDATA[I graduated college with my third degree (in Computer Information Technology w/emphasis in Visual Technologies)  in 2003 from Dixie State College of Utah. Some of the Computer Information Technology (CIT) courses that I took were Intro to C++ and Data &#8230; <a href="http://www.geekinator.com/2012/04/19/im-attempting-to-learn-c-again-after-a-9-year-absence/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I graduated college with my third degree (in Computer Information Technology w/emphasis in Visual Technologies)  in 2003 from Dixie State College of Utah. Some of the Computer Information Technology (CIT) courses that I took were Intro to C++ and Data Structures. Well, I took the web development road, and have been developing in PHP since graduating, and have not written anything in C++ since.</p>
<p>I&#8217;ve finally made up my mind that I&#8217;m going to follow every online tutorial I can find, and read the books that I can find, until I can develop fully functioning software in C++. I&#8217;d really like to learn it well enough to build a game at some point, just to prove to myself that I can do it. It doesn&#8217;t even have to be a graphically awesome game or anything spectacular, just a fully functioning game that anyone can play.</p>
<p>I was never really great at programming in C++ to begin with, in fact I struggled with it quite a bit. I eventually changed my degree emphasis from software engineering to visual technologies, which I think I was even worse at. However, developing dynamic web applications in object oriented PHP has really made me a much better programmer, and I think I would make a pretty good C++ programmer now.</p>
<p>I took a class in Java development a few years ago, just for fun at the local community college, but have since forgotten it as well because I haven&#8217;t had any use for anything other than PHP in my career. I was going to attempt to re-learn Java for fun, but after reading so much negative comments about java programming, I&#8217;ve decided to focus on C++ for now since it seems to be a much more widely accepted language.</p>
<p>Anyway, here&#8217;s to hopefully learning how to develop applications in C++ <img src='http://www.geekinator.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2012/04/19/im-attempting-to-learn-c-again-after-a-9-year-absence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I almost died from blood clots and have since changed my life</title>
		<link>http://www.geekinator.com/2012/04/19/how-i-almost-died-from-blood-clots-and-have-since-changed-my-life/</link>
		<comments>http://www.geekinator.com/2012/04/19/how-i-almost-died-from-blood-clots-and-have-since-changed-my-life/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 22:19:48 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[CrossFit]]></category>
		<category><![CDATA[Exercise]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[Lifestyle]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/?p=248</guid>
		<description><![CDATA[Let me start off by saying I&#8217;m extremely lucky to be alive and sharing this with you right now. At the beginning of January 2012, I started to have a little soreness behind my left knee, and I initially thought &#8230; <a href="http://www.geekinator.com/2012/04/19/how-i-almost-died-from-blood-clots-and-have-since-changed-my-life/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Let me start off by saying I&#8217;m extremely lucky to be alive and sharing this with you right now.</strong></p>
<p>At the beginning of January 2012, I started to have a little soreness behind my left knee, and I initially thought I had just strained it, but it kept getting worse over the next couple of weeks. It got to the point where I bought a knee brace to help me walk.</p>
<p>Around January 10th or so, I was lying down on the couch watching TV, when out of nowhere I felt a horrific pain behind my right shoulder blade, so bad that I jerked up and couldn&#8217;t catch my breath for a few seconds. I figured I had pulled a muscle and was just now experiencing the pain. I moved to the other side of the couch so I could lie down on my other side, and thought nothing of it. A couple of hours later, when I finally got up to go to bed, as soon as I stood up, I could barely breath. I could only take really short breaths, and could not take a deep breath. I was only able to catch my breath when I would lay down.</p>
<p>I wish I had gone to the hospital right then, but I wasn&#8217;t thinking clearly. Over the next 3 days, I had the same problem breathing when I was up and about, so I spent most of those days lying down so I could breath. About the fourth day, I was able to breath again but I was still a bit sore on the right side of my back, where I had experienced the pain.</p>
<p>While the breathing issues was happening, my knee kept feeling worse, and it was becoming very hard to extend my leg. About 3 days after I was able to breath properly again, I noticed my left leg was swollen to about double the size as normal I freaked out, and began searching online for my symptoms and voila, I found an article that explained both why my leg was swelling up AND where the pain in my back/problem breathing came from. <strong>I was a very lucky individual to have experienced a Pulmonary Embolism and lived to talk about it.</strong> The <a href="http://en.wikipedia.org/wiki/Pulmonary_embolism" target="_blank">Pulmonary Embolism</a> (or PE) was due to a <a href="http://en.wikipedia.org/wiki/Blood_clot" target="_blank">blood clot</a> in my leg, and part of the clot had broken free and traveled to my lung, which hit me like a brick.</p>
<p>I called my dad and told him I was on my way to the emergency room. Looking back, I should have called 911 instead of driving myself to the ER, but luckily I live about 5 minutes from the hospital. I checked myself in and was being emitted within 15 minutes or so. I wanted to make sure the doctors knew what they were talking about before explaining I had figured out what was wrong with me, so I explained to the ER doctor what my symptoms were and immediately, he said it sounds like I had a PE due to a blood clot in my leg. The condition is known as <a href="http://www.medicinenet.com/deep_vein_thrombosis/article.htm" target="_blank">Deep Vein Thrombosis</a> (or DVT). I was relieved to know that more than likely I was correct, so at least we knew what to look for. He explained to me they were going to perform an ultrasound on my leg and a CT (CAT) scan on my chest just to be sure. He also said that if I wasn&#8217;t in such good health otherwise, and due to the fact that I&#8217;m only 32, I probably wouldn&#8217;t be among the living.</p>
<p>An ultrasound was performed on my leg, during which they saw a large clot running the length of my leg was blocking one of my veins, which caused the other vein to have to work overtime to pump the same amount of blood, which is why my leg was swelling up. Next, I had a CT scan of my chest performed, and they discovered multiple clots in each of my lungs.</p>
<p>So, at least I was alive, but I then had to stay in the hospital for a week&#8230;.borrrrrring! <img src='http://www.geekinator.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I was checked into a room by myself, and was given all kinds of meds, including a shot called <a href="http://en.wikipedia.org/wiki/Enoxaparin_sodium" target="_blank">Lovenox</a> which had to be injected daily into the side of my stomach&#8230;fairly painful. The lovenox was used to speed up the process of another medication called <a href="http://www.rxlist.com/coumadin-drug.htm" target="_blank">Coumadin</a> (generic form is called Warfarin). Every morning around 4am, a very lovely girl would come in and play vampire, and take multiple vials of blood from me for tests. Each day, I would get a report of what my current INR (<a href="http://labtestsonline.org/understanding/analytes/pt/tab/test" target="_blank">International Normalization Ratio</a>) number was. The goal was to get my INR between 2.0 and 3.0 and when I was emitted, it was 0.8 so it took a while to increase it.</p>
<p>I believe it was the 2nd or 3rd day I was in the hospital, I was taken in for surgery, to have a <a href="http://en.wikipedia.org/wiki/Inferior_vena_cava_filter" target="_blank">Vena Cava</a> filter installed in my jugular. This was to help prevent additional clots from entering my lung. That procedure only took about a half hour or 45 minutes, and was painless. The only problem is, apparently the filter will only be effective for 6 months. I can have it removed or keep it in after 6 months, so I&#8217;ll probably just keep it in.</p>
<p>After a couple of days, the swelling in my left leg started going down. After 7 days, my INR was finally 2.2, which is on the low end but I was so stir crazy that I didn&#8217;t think to force the hospital to keep me until it was closer to 3.0.</p>
<p>I was doing fine, and feeling fine, once I was released, but on the fourth day out of the hospital, I looked down and noticed my left leg was swollen again&#8230;.crud! My step-mom happens to be a hospice nurse and I asked her to look at my leg, and she said it&#8217;s definitely swollen and called a doctor friend of hers and he agreed I should go directly to the ER again. I happened to be at my dad&#8217;s that day and he was heading into town, so he took me to the hospital and once again, I was emitted.</p>
<p>Same story as the first week, all kinds of blood tests and meds, except this time they decided it best to remove a portion of the clot in my leg. I thought that was a good idea too. The only complication from that procedure was the blood thinner they used was really potent and caused me to have a ton of blood in my urine for 24 hours after the surgery. That was normal, however they did tests to make sure nothing else was causing it, which there wasn&#8217;t. I did have to see a urologist recently, as a follow up, to have another urine test done to make sure no blood was present, which there wasn&#8217;t.</p>
<p>After yet another week, I was released again, and I haven&#8217;t been back since <img src='http://www.geekinator.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I have to watch what I eat, because certain foods tend to counteract the Coumadin (Warfarin) and can increase or decrease the effect, depending on how much you eat. The doctors said to make sure I eat the same amount of dark greens each day or completely stay off of them. This is because dark greens contain a large amount of Vitamin K, and Vitamin K is what can cause problems with Coumadin.</p>
<p>Since I was released from the hospital February 5th, 2012 I have gotten my blood tested twice per week, to make sure my INR was in the therapeutic range (2.0 &#8211; 3.0). It has remained good, so no worries yet.</p>
<p>If this happens to you, just be sure to pay attention to your vitamin k intake or you could bleed out or have another clot form. And for the record, I really hope this doesn&#8217;t happen to you&#8230;trust me.</p>
<p>Oh, another thing, is my condition (Deep Vein Thrombosis) happens to be a genetic problem. My grandmother (My dad&#8217;s mom) had blood clots, and my Factor V Leiden test came back positive, which indicates a genetic disposition for clots.</p>
<p>One thing that the doctors said I should do is get more exercise, and don&#8217;t sit down for long periods of time. This means, because I&#8217;m a programmer and sit at my desk for at least 8 hours per day, that I have to get up at least once per hour and exercise to some degree.</p>
<p>I took my exercise to a whole new level, however. A buddy of mine, Mikey Patriquin, mentioned that he had joined his sister&#8217;s gym (she&#8217;s a trainer there), and maybe I should check it out, because I was thinking of joining a gym to get a little exercise. So, I decided to head down to the gym to check it out. It&#8217;s the <a href="http://championathleticclub.com/" target="_blank">Champion Athletic Club</a> in Kingman, AZ and they are a <a href="http://crossfit.com/" target="_blank">CrossFit </a>certified gym. I talked to Kris, one of the head trainers and a part owner of the gym, about signing up. He scheduled me for 2 weeks out to start their On Ramp program, which is a 3 time a week training session for 1 month with a trainer, to make sure you can handle their workout routines and lifts. I didn&#8217;t know what I was in for&#8230;it turns out CrossFit is the most elite and demanding workout regiment that a human being can put themselves thru! <img src='http://www.geekinator.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Just so you have an idea of what CrossFit is all about, here is a video of last years <a href="http://games.crossfit.com/" target="_blank">CrossFit Games</a>, which is a yearly competition in which tons of CrossFitters from around the world compete and a single man and and a single woman each walk away with a check for $250,000 and the title of fittest on earth.</p>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/CpzLZsawtPY?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>Anyway, to make an even longer story short, CrossFit has changed my life. In just a month, I have gone from being a total weakling to being able to perform feats of strength that I had no idea I was capable of. Every day, I thank myself for taking the initiative to give it a try. I will never stop crossfitting, it&#8217;s a way of life for me now!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2012/04/19/how-i-almost-died-from-blood-clots-and-have-since-changed-my-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are you having login problems with CakePHP 2 and Internet Explorer?</title>
		<link>http://www.geekinator.com/2012/04/03/are-you-having-login-problems-with-cakephp-2-and-internet-explorer/</link>
		<comments>http://www.geekinator.com/2012/04/03/are-you-having-login-problems-with-cakephp-2-and-internet-explorer/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 15:27:42 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/?p=242</guid>
		<description><![CDATA[If you are having problems with Internet Explorer logging into your CakePHP 2 application, you may want to try upgrading your core install of CakePHP to the latest stable version. I could not get Internet Explorer to login to my &#8230; <a href="http://www.geekinator.com/2012/04/03/are-you-having-login-problems-with-cakephp-2-and-internet-explorer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are having problems with Internet Explorer logging into your CakePHP 2 application, you may want to try upgrading your core install of CakePHP to the latest stable version. I could not get Internet Explorer to login to my app, even with the &#8220;fixes&#8221; I found online. There were cache settings, and session settings, etc that were supposed to correct the issue, but none of them worked. I was using version 2.0.4 of Cake and I decided to check for a new version, and installed version 2.1.1 and voila, Internet Explorer can now login to my app!</p>
<p>As always, be sure to backup your files and database, just to be safe, before upgrading. I hope this helps somebody else, because I had to figure it out on my own.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2012/04/03/are-you-having-login-problems-with-cakephp-2-and-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forward 2 Google Voice Numbers to the same cell phone</title>
		<link>http://www.geekinator.com/2011/10/29/forward-2-google-voice-numbers-to-the-same-cell-phone/</link>
		<comments>http://www.geekinator.com/2011/10/29/forward-2-google-voice-numbers-to-the-same-cell-phone/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 14:24:27 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Phones]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[cell phone]]></category>
		<category><![CDATA[google voice]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[landline]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/?p=215</guid>
		<description><![CDATA[I don&#8217;t know about you, but since Google Voice was released, I&#8217;ve wanted to have multiple Google Voice numbers that I could forward to my cell phone. While technically you&#8217;re not supposed to be able to do this, there is &#8230; <a href="http://www.geekinator.com/2011/10/29/forward-2-google-voice-numbers-to-the-same-cell-phone/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know about you, but since Google Voice was released, I&#8217;ve wanted to have multiple Google Voice numbers that I could forward to my cell phone. While technically you&#8217;re not supposed to be able to do this, there is a trick to doing just that.</p>
<p>One account one, go into your settings and add your cell number to the list of phones, and select a phone type. For mine, I selected Work. Next, logout and then login to your second google voice account. Now, go to the settings and add your cell number to the list of phones, and select a different phone type than you did for account one. For mine, I chose Home (you could choose Cell too, I believe and it should still work).</p>
<p>If everything worked, you should now be able to receive calls from both Google Voice numbers on the same cell phone (or landline, I suppose, but who uses those anymore lol).</p>
<p>I wanted to set this up because I signed up for a local Google Voice number where my mom lives, so she can call me all she wants from her local only landline and I would receive those calls on my cell phone across the country; I also want to have a local Google Voice number that I can give to people and receive those calls on my cell phone as well. I&#8217;m sure glad it&#8217;s possible, because it makes things so much easier.</p>
<p>If you have no idea what Google Voice is, or just want more information about it, you can find more information and sign up for your own free Google Voice number by going to <a href="http://www.google.com/voice" title="Google Voice" target="_blank">http://www.google.com/voice</a></p>
<p>You can download the FREE Google Voice iPhone app by going to <a href="http://itunes.apple.com/us/app/google-voice/id318698524?mt=8" title="Download the FREE Google Voice iPhone App" target="_blank">http://itunes.apple.com/us/app/google-voice/id318698524?mt=8</a>. You can also download the FREE Google Voice app on the Android Market.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2011/10/29/forward-2-google-voice-numbers-to-the-same-cell-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Realistic physics apply to sniping in Battlefield 3!</title>
		<link>http://www.geekinator.com/2011/10/25/realistic-physics-apply-to-sniping-in-battlefield-3/</link>
		<comments>http://www.geekinator.com/2011/10/25/realistic-physics-apply-to-sniping-in-battlefield-3/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 21:20:17 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[battlefield]]></category>
		<category><![CDATA[battlefield 3]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[pc gaming]]></category>
		<category><![CDATA[physics]]></category>
		<category><![CDATA[sniping]]></category>
		<category><![CDATA[video games]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/?p=209</guid>
		<description><![CDATA[I was a little worried that even though Battlefield 3 has pretty realistic physics, that sniping would still be point and shoot. I&#8217;m really happy to announce that real physics apply to sniping in Battlefield 3! During the live Battlefield &#8230; <a href="http://www.geekinator.com/2011/10/25/realistic-physics-apply-to-sniping-in-battlefield-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was a little worried that even though Battlefield 3 has pretty realistic physics, that sniping would still be point and shoot. I&#8217;m really happy to announce that real physics apply to sniping in Battlefield 3! During the live Battlefield 3 video hosted on IGN.com yesterday, I asked a question via twitter regarding whether bullet drop and windage would be a factor when sniping in the game. I left the room for a minute during the broadcast, only to come back and hear the last part of the answer to either my question or a similar question from someone else (I hope it was mine!, but I can&#8217;t confirm at this time since the video replay seems to be down), and the answer is yes&#8230;they do apply in the game!</p>
<p>I&#8217;m excited about this, because it makes long distance shooting much more of a challenge, and seeing as how some of the maps are massive in scale, it will make for some pretty fun sniping moments. I&#8217;m ready to spread some lead, how about you guys?!? See you on the Battlefield!</p>
<p>Want to know more about the Battlefield 3 game? Check out the official website at <a href="http://www.battlefield.com/battlefield3" title="Battlefield 3 official website" target="_blank">http://www.battlefield.com/battlefield3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2011/10/25/realistic-physics-apply-to-sniping-in-battlefield-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A field not saving in CakePHP? Try clearing the cache :)</title>
		<link>http://www.geekinator.com/2011/10/24/a-field-not-saving-in-cakephp-try-clearing-the-cache/</link>
		<comments>http://www.geekinator.com/2011/10/24/a-field-not-saving-in-cakephp-try-clearing-the-cache/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 23:03:46 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[field]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/?p=195</guid>
		<description><![CDATA[I thought I&#8217;d pass a little tip along for those of you who use the CakePHP framework, and maybe don&#8217;t know all the ins and outs yet (I am definitely one of those people, but I&#8217;m getting there). Every once &#8230; <a href="http://www.geekinator.com/2011/10/24/a-field-not-saving-in-cakephp-try-clearing-the-cache/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d pass a little tip along for those of you who use the CakePHP framework, and maybe don&#8217;t know all the ins and outs yet (I am definitely one of those people, but I&#8217;m getting there). Every once in a while, I&#8217;ll get stuck on something that just won&#8217;t save to the database, and all of a sudden it will dawn on me that I haven&#8217;t cleared the model cache (the cached model files are located in /app/tmp/cache/models/).</p>
<p>If you have loaded any models on your site, and then make changes to those models at a later time, you will need to clear the model cache for the particular model before Cake will be able to see the new database changes. </p>
<p>I just remembered that, as I&#8217;ve been yelling at the screen for the past hour, trying to figure out why a simple integer field would not save to the database&#8230;well, if I had my brain plugged in, I would have remembered I renamed the field in the database after I had already loaded the particular model on my site&#8230;duh!!!</p>
<p>Anyway, this tip always saves the day, whenever I can remember what the problem is <img src='http://www.geekinator.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I hope it helps anyone else out there in the same boat.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2011/10/24/a-field-not-saving-in-cakephp-try-clearing-the-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validate Multiple Models at same time when using CakePHP Wizard component</title>
		<link>http://www.geekinator.com/2011/10/24/validate-multiple-models-at-same-time-when-using-cakephp-wizard-component/</link>
		<comments>http://www.geekinator.com/2011/10/24/validate-multiple-models-at-same-time-when-using-cakephp-wizard-component/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 16:25:13 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[validate]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[wizard]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/?p=175</guid>
		<description><![CDATA[I really like the CakePHP Wizard component, written by Jared Hoyt and can be found at http://bakery.cakephp.org/articles/jaredhoyt/2010/09/10/wizard-component-1-2-tutorial#page-2. It&#8217;s great for creating multi page web forms in CakePHP, but I did run across a little problem (I&#8217;m sure it&#8217;s not a &#8230; <a href="http://www.geekinator.com/2011/10/24/validate-multiple-models-at-same-time-when-using-cakephp-wizard-component/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I really like the CakePHP Wizard component, written by Jared Hoyt and can be found at<br />
<a href="http://bakery.cakephp.org/articles/jaredhoyt/2010/09/10/wizard-component-1-2-tutorial#page-2" target="_blank">http://bakery.cakephp.org/articles/jaredhoyt/2010/09/10/wizard-component-1-2-tutorial#page-2</a>.<br />
It&#8217;s great for creating multi page web forms in CakePHP, but I did run across a little problem (I&#8217;m sure it&#8217;s not a glitch with the component, but just a problem I&#8217;m having with my situation). The problem I ran across is when a single page in the form contains fields from multiple models, validation errors are not shown for every model, but only one at a time. </p>
<p>For example, if page 1 of the form (or any page for that matter) contains fields for the Person model AND the Address model, and the &#8220;Person&#8221; fields come before the &#8220;Address&#8221; fields, when the form is submitted, all of the validation rules must pass on the Person model before the validation is run on the Address model. The problem with this, is the only validation errors that are shown will be the Person model errors, until those validation rules pass.</p>
<p>Fortunately, I found a very easy fix for this problem at<br />
<a href="http://cobaia.net/2011/01/cakephp-one-form-with-multiple-model-validate-and-form-display-errors/" target="_blank">http://cobaia.net/2011/01/cakephp-one-form-with-multiple-model-validate-and-form-display-errors/</a><br />
It wasn&#8217;t necessarily pertaining to the Wizard component, but it works just the same.</p>
<p>All you need to do, is inside the process methods for each step, before the $this->Model->validates() checks, add this little snippet of code (change the word Model to the name of your particular controller&#8217;s model &#8212; In my case, my form is processed inside a controller called &#8220;Applications&#8221; and it has a model called &#8220;Application&#8221; which I use to store basic information about the submitted form&#8230;I then house various other pieces of data from the form inside associated tables (models)):</p>
<div class="dirtycodenoclick"><code><br />
 if(!empty($this-&gt;data)){<br />
&nbsp;&nbsp; $this-&gt;Model-&gt;saveAll($this-&gt;data, array(&#039;validate&#039; =&gt; &#039;only&#039;));<br />
&nbsp;&nbsp; $this-&gt;set(&#039;errors&#039;, $this-&gt;Model-&gt;validationErrors);<br />
 }else{<br />
&nbsp;&nbsp; $this-&gt;set(&#039;errors&#039;,array());<br />
 }<br />
</code></div>
<p>If you need to see this in context, here is the entire process method for one of my form pages:</p>
<div class="dirtycodenoclick"><code><br />
function _processPage1() {<br />
&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;Application-&gt;set($this-&gt;data);<br />
	 $this-&gt;Application-&gt;Person-&gt;set($this-&gt;data);<br />
	 $this-&gt;Application-&gt;Address-&gt;set($this-&gt;data);</p>
<p>	 if(!empty($this-&gt;data)){<br />
	&nbsp;&nbsp; $this-&gt;Application-&gt;saveAll($this-&gt;data, array(&#039;validate&#039; =&gt; &#039;only&#039;));<br />
	&nbsp;&nbsp; $this-&gt;set(&#039;errors&#039;, $this-&gt;Application-&gt;validationErrors);<br />
	 }else{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;set(&#039;errors&#039;,array());<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>	 if($this-&gt;Application-&gt;Person-&gt;validates() &amp;&amp; $this-&gt;Application-&gt;Address-&gt;validates()) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return true;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; return false;<br />
&nbsp;&nbsp; }<br />
</code></div>
<p>Of course, I&#8217;ve simplified my process method quite a bit, but it would be a functional method if your controller&#8217;s model was called Application and your form had fields from both a Person model and Address model.</p>
<p>The line that sets the errors variable is optional. I like to display all of the errors at the top of the page, as well as below the invalid field.</p>
<p>I hope that helps others who are having the same issue as I did!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2011/10/24/validate-multiple-models-at-same-time-when-using-cakephp-wizard-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A couple things missing from iOS 5 on older devices</title>
		<link>http://www.geekinator.com/2011/10/14/a-couple-things-missing-from-ios-5-on-non-iphone-4s-devices/</link>
		<comments>http://www.geekinator.com/2011/10/14/a-couple-things-missing-from-ios-5-on-non-iphone-4s-devices/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 18:10:18 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Phones]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[ios 5]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone 4s]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/2011/10/14/a-couple-things-missing-from-ios-5-on-non-iphone-4s-devices/</guid>
		<description><![CDATA[I downloaded the new iOS 5 to my iPhone 3GS and my iPad 2 the minute is was released, amd I have to say, so far I&#8217;m loving the new features. However, there are a couple of features missing, that &#8230; <a href="http://www.geekinator.com/2011/10/14/a-couple-things-missing-from-ios-5-on-non-iphone-4s-devices/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I downloaded the new iOS 5 to my iPhone 3GS and my iPad 2 the minute is was released, amd I have to say, so far I&#8217;m loving the new features.</p>
<p>However, there are a couple of features missing, that are apparently only available on the new iPhone 4S, that I wish Apple had enabled on other iOS 5 devices.</p>
<p>The first missing feature is Voice Control, which is powered by the Siri technology that Apple purchased. I&#8217;ve seen the demos online and I would love to have that functionality on my 3GS, but no luck&#8230;that is a selling point for the new 4S <img src='http://www.geekinator.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>The next missing feature is Geofence Reminders (lets you setup a reminder that will be displayed once you&#8217;re within range of a particular location&#8230;way cool!)&#8230;which is something that could probably easily be enabled on non 4S devices, but those of us that aren&#8217;t using the 4S are out of luck.</p>
<p>I&#8217;m not bitter about the features not being enabled on my devices, because I understand business, but it would sure be cool to have them without upgrading.</p>
<p>With that being said, anyone using an iOS compatible device can now enjoy 200+ new features, FOR FREE! That&#8217;s pretty cool in my book. Yes, I will probably never use most of the new features, but some of them are very handy.</p>
<p>One of the very handy features, is the wireless syncing over Wi-Fi. I don&#8217;t know about you, but I rarely sync my devices, and when I do it usually takes a while. Well, now all I have to do is plug my device in to charge, and as long as I&#8217;m connected to my wireless network, all my data is automatically synced&#8230;without me having to do a thing other than charge my device!</p>
<p>I won&#8217;t go into any other features at this time, because there are tons of posts out there detailing every last one of them, but these couple of things were on my mind.</p>
<p>If you haven&#8217;t yet downloaded iOS 5&#8242; I&#8217;d certainly recommend trying it out. Just remember to backup your data first <img src='http://www.geekinator.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2011/10/14/a-couple-things-missing-from-ios-5-on-non-iphone-4s-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Populate State List on Country Select in CakePHP using jQuery</title>
		<link>http://www.geekinator.com/2011/03/25/populate-state-list-on-country-select-in-cakephp-using-jquery/</link>
		<comments>http://www.geekinator.com/2011/03/25/populate-state-list-on-country-select-in-cakephp-using-jquery/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 19:28:45 +0000</pubDate>
		<dc:creator>geekinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery cookie]]></category>
		<category><![CDATA[state dropdown list]]></category>

		<guid isPermaLink="false">http://www.geekinator.com/?p=153</guid>
		<description><![CDATA[This has been shown on many sites, but it took the combination of several articles for me to figure this one out&#8230;maybe it&#8217;s just me, dunno. Also, it drove me nuts how the states list would disappear if the page &#8230; <a href="http://www.geekinator.com/2011/03/25/populate-state-list-on-country-select-in-cakephp-using-jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This has been shown on many sites, but it took the combination of several articles for me to figure this one out&#8230;maybe it&#8217;s just me, dunno.</p>
<p>Also, it drove me nuts how the states list would disappear if the page was refreshed. I learned how to handle that as well, using jQuery cookies.</p>
<p>By the way, here&#8217;s the versions of cakephp, jquery and plugins I am using:</p>
<p>CakePHP version 1.3.7<br />
jQuery version 1.5 (I just used the minified version, not that is should matter)<br />
jQuery cookie plugin version 1.0</p>
<p>Not that it matters at all, but for those who may have problems and are wondering what database I&#8217;m running, it&#8217;s MySQL version 5.1.41 (at least that&#8217;s the client I&#8217;m running&#8230;the server number may or may not be different). I am testing this using XAMPP 1.7.3 for Windows in Windows 7.</p>
<p>Here&#8217;s the steps:</p>
<p>***********************<br />
STEP 1<br />
***********************<br />
Add the following to your view file (whatever file contains the form that houses country and state select fields):</p>
<div class="dirtycodenoclick"><code><br />
&lt;?php<br />
echo $this-&gt;Form-&gt;input(&#039;country_id&#039;,array(&#039;id&#039; =&gt; &#039;country_id&#039;,&#039;label&#039; =&gt; &#039;Country&#039;,&#039;error&#039; =&gt; false,&#039;empty&#039; =&gt; false));<br />
<br />echo $this-&gt;Form-&gt;input(&#039;state_id&#039;,array(&#039;id&#039; =&gt; &#039;state&#039;,&#039;label&#039; =&gt; &#039;State/Province&#039;,&#039;error&#039; =&gt; false,&#039;empty&#039; =&gt; &#039;Select Country First&#039;));<br />
?&gt;<br />
</code></div>
<p>***********************<br />
STEP 2<br />
***********************<br />
Create a model file for country and one for state:</p>
<p>&#8212; /app/models/country.php &#8212;</p>
<div class="dirtycodenoclick"><code><br />
&lt;?php<br />
# /app/models/country.php<br />
class Country extends AppModel {<br />
var $name = &#039;Country&#039;;<br />
var $hasMany = array(&#039;NameOfYourControllerModelGoesHere&#039;);<br />
}<br />
?&gt;<br />
</code></div>
<p>&#8212; /app/models/state.php &#8212;</p>
<div class="dirtycodenoclick"><code><br />
&lt;?php<br />
# /app/models/state.php<br />
class State extends AppModel {<br />
var $name = &#039;State&#039;;<br />
var $hasMany = array(&#039;NameOfYourControllerModelGoesHere&#039;);<br />
}<br />
?&gt;<br />
</code></div>
<p>***********************<br />
STEP 3<br />
***********************<br />
Add the following action to your controller.php file (whichever controller file you are using to control the form)</p>
<div class="dirtycodenoclick"><code><br />
function get_states($country_id = null){<br />
$this-&gt;layout = &#039;ajax&#039;;<br />
$this-&gt;set(&#039;states&#039;,$this-&gt;NameOfYourControllerModelGoesHere-&gt;State-&gt;find(&#039;list&#039;,array(&#039;conditions&#039;=&gt;array(&#039;State.country_id&#039; =&gt; $country_id))));<br />
}<br />
</code></div>
<p>***********************<br />
STEP 4<br />
***********************<br />
Create a view file for the action you just created, inside /app/views/NameOfYourControllerGoesHere/get_states.ctp</p>
<p>then, add the following to that file:</p>
<div class="dirtycodenoclick"><code><br />
&lt;?php<br />
# /app/views/NameOfYourControllerGoesHere/get_states.ctp<br />
?&gt;<br />
&lt;option&gt;Select a State/Province&lt;/option&gt;<br />
&lt;?php<br />
foreach($states as $stateId=&gt;$stateName){<br />
echo &#039;<br />
&lt;option value=&quot;&#039;.$stateId.&#039;&quot;&gt;&#039;.$stateName.&#039;&lt;/option&gt;&#039;.&quot;\n&quot;;<br />
}<br />
?&gt;<br />
</code></div>
<p>***********************<br />
STEP 5<br />
***********************<br />
Download the jQuery cookie plugin from</p>
<p>http://plugins.jquery.com/files/jquery.cookie.js.txt</p>
<p>copy the contents of jquery.cookie.js.txt into /app/webroot/js/jquery.cookie.js</p>
<p>***********************<br />
STEP 6<br />
***********************<br />
If you don&#8217;t already have jQuery installed, you can download the latest version by going to www.jquery.com and click the download button (I&#8217;m using version 1.5, but I would imagine this code will still work with future versions)</p>
<p>Once you have both jQuery and jQuery cookie plugin installed, add this to the view file containing your form:</p>
<div class="dirtycodenoclick"><code><br />
&lt;?php<br />
echo $this-&gt;Html-&gt;script(&#039;jquery&#039;, false);<br />
echo $this-&gt;Html-&gt;script(&#039;jquery.cookie&#039;,false);<br />
?&gt;<br />
</code></div>
<p>***********************<br />
STEP 7<br />
***********************<br />
Add the following to either your layout file or to the view file that contains your form:</p>
<div class="dirtycodenoclick"><code><br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
$(document).ready(function() {<br />
if($.cookie(&quot;selectedCountry&quot;) == null){<br />
&nbsp;&nbsp;/* default to United States */<br />
$(&quot;#country_id&quot;).val( 1 ).attr(&#039;selected&#039;,true);<br />
 $(&#039;#state&#039;).load(&#039;NameOfYourControllerGoesHere/get_states/1&#039;);<br />
}else{<br />
&nbsp;&nbsp; $(&quot;#country_id&quot;).val( $.cookie(&quot;selectedCountry&quot;) ).attr(&#039;selected&#039;,true);<br />
&nbsp;&nbsp; $(&#039;#state&#039;).load(&#039;NameOfYourControllerGoesHere/get_states/&#039;+$.cookie(&quot;selectedCountry&quot;));<br />
}<br />
<br /> $(&#039;#country_id&#039;).change(function() {<br />
&nbsp;&nbsp;/* load last selected country using a cookie, in case page was refreshed&#46;..this also makes sure the state dropdown is populated with the last selected country&#039;s states/provinces */<br />
 var country_data = $(this).val();<br />
 $.cookie(&quot;selectedCountry&quot;, country_data);<br />
 var country_select = $.cookie(&quot;selectedCountry&quot;);<br />
<br />&nbsp;&nbsp; $(&#039;#state&#039;).load(&#039;NameOfYourControllerGoesHere/get_states/&#039;+$(this).val());<br />
 });<br />
});<br />
&lt;/script&gt;<br />
</code></div>
<p>Obviosuly, you need to have countries and states inserted into the appropriate tables in your database for this to work. Here&#8217;s the structure I used for my tables:</p>
<p>&#8212; For countries Table &#8212;<br />
id int(11) auto_increment primary_key,<br />
name varchar(50)</p>
<p>&#8212; For states Table &#8212;<br />
id int(11) auto_increment primary_key,<br />
country_id int(11),<br />
name varchar(50)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
If I missed something, please send me a comment and I&#8217;ll be happy to fix it. If you have any problems, let me know and I&#8217;ll try to help the best I can.</p>
<p>Thanks for reading</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekinator.com/2011/03/25/populate-state-list-on-country-select-in-cakephp-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 767/890 objects using disk: basic

Served from: www.geekinator.com @ 2012-05-18 14:31:47 -->
