<?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>Farvour&#039;s Blog &#187; Miscellaneous</title>
	<atom:link href="http://farvour.com/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://farvour.com</link>
	<description>Random Ramblings and Such</description>
	<lastBuildDate>Sun, 25 Oct 2009 00:17:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>In life, we make choices &#8230; many choices</title>
		<link>http://farvour.com/2009/10/17/in-life-we-make-choices-many-choices/</link>
		<comments>http://farvour.com/2009/10/17/in-life-we-make-choices-many-choices/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 18:02:31 +0000</pubDate>
		<dc:creator>farvour</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[partner]]></category>
		<category><![CDATA[trust]]></category>

		<guid isPermaLink="false">http://farvour.com/?p=86</guid>
		<description><![CDATA[In life, we all choose different paths and make different choices. Sometimes these choices are for the better and sometimes they are for the worst. Right now I am feeling like I have made a choice for the better. I have a gut feeling that things can only get better moving down the road I [...]]]></description>
			<content:encoded><![CDATA[<p>In life, we all choose different paths and make different choices. Sometimes these choices are for the better and sometimes they are for the worst. Right now I am feeling like I have made a choice for the better. I have a gut feeling that things can only get better moving down the road I have chosen now. The past year and a half has been very rough for me, especially the last few months. I have gone through quite a few changes and I have managed to make myself through them mostly unscathed.</p>
<p>There are some people in this world who you can trust with your life, others who you wouldn&#8217;t trust with holding your own soft drink in their hands. It&#8217;s an unfortunate fact of reality: <em>there are a lot of con-men and con-women out there and it really is in your best interest to avoid them</em>. It&#8217;s too bad that even I myself have made that mistake of putting my trust into someone I never should have from the beginning. It cost me a lot of grief, stress, and loss on so many different levels. I almost lost a very good friend because of it. It&#8217;s hard to imagine what life could have been like if I would have never even met this person. A lot better I&#8217;m sure. I made a bad business decision to extend partnership with someone who thought could be trusted when things should have been left well enough alone as they were beforehand. No Mike, this is not about you! You know who you are. <img src='http://farvour.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>When it comes to any kind of business relationship, there are three basic rules to follow:</p>
<ol>
<li>Be careful who you get into any type of signed agreement with.</li>
<li>If it cannot be seen, felt, heard or proven it cannot be trusted.</li>
<li>Always trust your gut instinct with doubt, even if it doesn&#8217;t sound like the best idea. Sometimes things are just too good to be true, and the people promising them to you fall short stop of a bad used car salesman.</li>
</ol>
<p>I know this is a short excerpt but I just wanted to share some brief words of wisdom that I have learned in my struggles for the past year and a half. It&#8217;s common sense indeed, but we&#8217;ve all fell victim to con artists, scammers and cheaters, and I know I have. A lesson learned. In order to stay ahead and succeed you need to know who is the good, bad, and the ugly. I know I have learned a valuable lesson.</p>
]]></content:encoded>
			<wfw:commentRss>http://farvour.com/2009/10/17/in-life-we-make-choices-many-choices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replicating the Google Chrome Facebook Crash Bug</title>
		<link>http://farvour.com/2009/08/27/replicating-the-google-chrome-facebook-crash-bug/</link>
		<comments>http://farvour.com/2009/08/27/replicating-the-google-chrome-facebook-crash-bug/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 22:09:57 +0000</pubDate>
		<dc:creator>farvour</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://farvour.com/?p=61</guid>
		<description><![CDATA[Ok, so a couple of a weeks ago I had started using Google Chrome regularly. It really is a nice, fast, stable browser &#8230; well, stable until you use Facebook a lot.
Chrome would crash any time I&#8217;d finish typing out a really long comment on a wall, or a wall post anywhere for that matter, [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so a couple of a weeks ago I had started using Google Chrome regularly. It really is a nice, fast, stable browser &#8230; well, stable until you use Facebook a lot.</p>
<p>Chrome would crash any time I&#8217;d finish typing out a really long comment on a wall, or a wall post anywhere for that matter, and then try to strike the &#8220;Comment&#8221; button. I could not figure out why the browser crashes when doing this. Finally it happened to me again today, and I noticed a pattern. It only seemed to happen when I clicked off the text editor onto a <strong>specific</strong> area elsewhere on the page. Basically I was missing the comment button itself, but barely.</p>
<p>Here&#8217;s a step by step example of how to reproduce the Facebook Google Chrome crash bug:</p>
<p>1.) Begin by clicking the Comment link on any status you desire (or wall post on a group page, etc)</p>
<p><img class="alignnone size-full wp-image-74" title="Facebook Chrome Crash Replication Step 1" src="http://farvour.com/wp-content/uploads/2009/08/fb_chrome_crash_step_1.png" alt="Facebook Chrome Crash Replication Step 1" width="630" height="717" /></p>
<p>2.) Type something, or leave the field blank, and attempt to click in any of the &#8220;forbidden areas&#8221; highlighted in the second image below. Doing so will cause the current Google Chrome browser tab to crash.</p>
<p><img class="alignnone size-full wp-image-75" title="Facebook Chrome Crash Replication Step 2" src="http://farvour.com/wp-content/uploads/2009/08/fb_chrome_crash_step_2.png" alt="Facebook Chrome Crash Replication Step 2" width="643" height="719" /></p>
<p>So there you have it, a replicatable crash that can be submitted to the Google Chrome team. Please note, I am using the latest stable Chrome version <strong>2.0.172.39</strong> as of this writing. I hope the Facebook team can address this issue. While it may seem minor, accidents happen and sometimes you aren&#8217;t always able to strike the &#8220;Comment&#8221; button <em><strong>100%</strong></em> of the time and it&#8217;s quite a disaster when an entire 40 sentence wall post basically needs to be re-typed. I hope the Facebook team will look into this issue and that this blog has provided useful information to the community.</p>
<p>Best Regards!</p>
]]></content:encoded>
			<wfw:commentRss>http://farvour.com/2009/08/27/replicating-the-google-chrome-facebook-crash-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Facebook needs to fix their site</title>
		<link>http://farvour.com/2009/08/09/facebook-needs-to-fix-their-site/</link>
		<comments>http://farvour.com/2009/08/09/facebook-needs-to-fix-their-site/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 22:35:20 +0000</pubDate>
		<dc:creator>farvour</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[fail]]></category>

		<guid isPermaLink="false">http://farvour.com/?p=50</guid>
		<description><![CDATA[So as you all may have noticed or may not have noticed, Facebook seems to be having some issues updating your status or posting links/attachments to your profile page. It only seems to happen when you post it to the &#8220;Everyone&#8221; secure settings. Come on guys, really? Have you not noticed this error yet? Test [...]]]></description>
			<content:encoded><![CDATA[<p>So as you all may have noticed or may not have noticed, Facebook seems to be having some issues updating your status or posting links/attachments to your profile page. It only seems to happen when you post it to the &#8220;Everyone&#8221; secure settings. Come on guys, really? Have you not noticed this error yet? <strong>Test every aspect of your site and listen to bug complaints!</strong> At least have some kind of error tracking system that e-mails your developers so when they notice the same error coming from millions of users all day long, to maybe look into the problem?</p>
<p>Attached is the error received when trying to update anything related to the &#8220;Everyone&#8221; security group:</p>
<div id="attachment_52" class="wp-caption alignleft" style="width: 602px"><img class="size-full wp-image-52" title="Facebook_ajax_everyonepost_error" src="http://farvour.com/wp-content/uploads/2009/08/Facebook_ajax_everyonepost_error.jpg" alt="Facebook AJAX Error on Everyone Post" width="592" height="214" /><p class="wp-caption-text">Facebook AJAX Error on Everyone Post</p></div>
<p>Here&#8217;s the best part: <strong>IT&#8217;S BEEN HAPPENING FOR THE PAST WEEK! </strong>The only way to get around it is to post it to &#8220;Friends of Friends&#8221;, &#8220;Friends Only&#8221;, or &#8220;Customize.&#8221; Well, that&#8217;s stupid, what if I want anyone who can view my public profile to view what I post? Lame!</p>
<p>All I can say is &#8220;WOW!&#8221; Why?</p>
]]></content:encoded>
			<wfw:commentRss>http://farvour.com/2009/08/09/facebook-needs-to-fix-their-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Injection attacks are always fun (not)</title>
		<link>http://farvour.com/2009/07/07/mysql-injection-attacks-are-always-fun-not/</link>
		<comments>http://farvour.com/2009/07/07/mysql-injection-attacks-are-always-fun-not/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 17:50:03 +0000</pubDate>
		<dc:creator>farvour</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[injection]]></category>

		<guid isPermaLink="false">http://farvour.com/?p=12</guid>
		<description><![CDATA[So I am working today and receive an e-mail from the boss man about one of our clients websites getting &#8220;hacked&#8221; by a Palestinian hacking group. Apparently they used some MySQL query injections on one of our old sites. Gotta love legacy code. Well the site wasn&#8217;t escaping the strings properly passed from the URL [...]]]></description>
			<content:encoded><![CDATA[<p>So I am working today and receive an e-mail from the boss man about one of our clients websites getting &#8220;hacked&#8221; by a Palestinian hacking group. Apparently they used some MySQL query injections on one of our old sites. Gotta love legacy code. Well the site wasn&#8217;t escaping the strings properly passed from the URL GET or the POST variables and they managed to reset the admin section usernames and passwords. They then proceeded to log into the admin interface for the site and upload a &#8220;Your site has been haxX0red!!!&#8221; image. Lovely.</p>
<p>In either case, the solution is to properly re-write your SQL queries as to not leave a gaping hole if someone decides to pass non-typical form data to the script. The following code is bad:</p>
<p><code>// username and password sent from signup form<br />
$myusername=$_POST['myusername'];<br />
$mypassword=$_POST['mypassword'];<br />
$sql="SELECT * FROM members WHERE username='$myusername' and password='$mypassword'";<br />
$result=mysql_query($sql);</code></p>
<p>So I guess it&#8217;s another handful of old sites to fix since a bunch of others are using the same code. <strong>/sigh/</strong> The correct way this code <em>should </em>have been written:</p>
<p><code>// username and password sent from signup form<br />
$myusername=mysql_escape_string($_POST['myusername']);<br />
$mypassword=mysql_escape_string($_POST['mypassword']);<br />
$sql="SELECT * FROM members WHERE username='$myusername' and password='$mypassword'";<br />
$result=mysql_query($sql);</code></p>
]]></content:encoded>
			<wfw:commentRss>http://farvour.com/2009/07/07/mysql-injection-attacks-are-always-fun-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The blog is fired up!</title>
		<link>http://farvour.com/2009/07/06/the-blog-is-fired-up/</link>
		<comments>http://farvour.com/2009/07/06/the-blog-is-fired-up/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 01:09:08 +0000</pubDate>
		<dc:creator>farvour</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[farvour]]></category>
		<category><![CDATA[fired up]]></category>
		<category><![CDATA[new]]></category>

		<guid isPermaLink="false">http://farvour.com/?p=5</guid>
		<description><![CDATA[Just got done installing WordPress to get my blog up and on-line. I know I probably should have done this a long time ago, but I just haven&#8217;t had or gotten the chance to. But hey, it&#8217;s never too late to start, right?
Check this link to google.
]]></description>
			<content:encoded><![CDATA[<p>Just got done installing WordPress to get my blog up and on-line. I know I probably should have done this a <strong>long</strong> time ago, but I just haven&#8217;t had or gotten the chance to. But hey, it&#8217;s never too late to start, right?</p>
<p>Check this <a href="http://www.google.com" target="_blank">link to google</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://farvour.com/2009/07/06/the-blog-is-fired-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
