<?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>Dougy Mak&#039;s Blog &#187; Techy Stuff</title>
	<atom:link href="http://dougymak.com/category/techy-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougymak.com</link>
	<description>MY BLOG!</description>
	<lastBuildDate>Fri, 02 Dec 2011 08:46:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[PHP] Uppercase &amp; Lowercase</title>
		<link>http://dougymak.com/php-uppercase-lowercase/</link>
		<comments>http://dougymak.com/php-uppercase-lowercase/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 11:21:04 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[Programming Stuff]]></category>
		<category><![CDATA[Techy Stuff]]></category>
		<category><![CDATA[Website Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1061</guid>
		<description><![CDATA[Another few functions for I find useful:

ucfirst() &#8211; Make a string&#8217;s first character uppercase
lcfirst() &#8211; Make a string&#8217;s first character lowercase
strtolower() &#8211; Make a string lowercase
strtoupper() &#8211; Make a string uppercase
ucwords() &#8211; Uppercase the first character of each word in a string

From the looks of things, ucfirst() was coined from it&#8217;s function uppercase first letter [...]]]></description>
			<content:encoded><![CDATA[<p>Another few functions for I find useful:</p>
<ul>
<li>ucfirst() &#8211; Make a string&#8217;s first character uppercase</li>
<li>lcfirst() &#8211; Make a string&#8217;s first character lowercase</li>
<li>strtolower() &#8211; Make a string lowercase</li>
<li>strtoupper() &#8211; Make a string uppercase</li>
<li>ucwords() &#8211; Uppercase the first character of each word in a string</li>
</ul>
<p>From the looks of things, ucfirst() was coined from it&#8217;s function uppercase first letter (unlike some functions!). So goes for lcfirst() and ucwords(): lowercase first letter and uppercase first letter of each word. strtolower() lowercases every letter in every word in a string and strupper() functions in opposite, uppercases each letter in every word in a string.</p>
<p>ucfirst() examples:</p>
<p style="padding-left: 30px;"><code>&lt;?php<br />
$foo = 'hello world!';<br />
$foo = ucfirst($foo); // Hello world!</code></p>
<p style="padding-left: 30px;"><code>$bar = 'HELLO WORLD!';<br />
$bar = ucfirst($bar); // HELLO WORLD!<br />
$bar = ucfirst(strtolower($bar)); // Hello world!<br />
?&gt;</code></p>
<p>lcfirst() examples:</p>
<p style="padding-left: 30px;"><code>&lt;?php<br />
$foo = 'HelloWorld';<br />
$foo = lcfirst($foo);             // helloWorld</code></p>
<p style="padding-left: 30px;"><code><br />
$bar = 'HELLO WORLD!';<br />
$bar = lcfirst($bar);             // hELLO WORLD!<br />
$bar = lcfirst(strtoupper($bar)); // hELLO WORLD!<br />
?&gt;</code></p>
<p>strtolower() examples:</p>
<p style="padding-left: 30px;"><code>&lt;?php<br />
$str = "Mary Had A Little Lamb and She LOVED It So";<br />
$str = strtolower($str);<br />
echo $str; // Prints mary had a little lamb and she loved it so<br />
?&gt;</code></p>
<p>strtoupper() examples:</p>
<p style="padding-left: 30px;"><code>&lt;?php<br />
$str = "Mary Had A Little Lamb and She LOVED It So";<br />
$str = strtoupper($str);<br />
echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO<br />
?&gt;</code></p>
<p>ucwords() examples:</p>
<p style="padding-left: 30px;"><code><br />
&lt;?php<br />
$foo = 'hello world!';<br />
$foo = ucwords($foo);             // Hello World!</code></p>
<p style="padding-left: 30px;"><code><br />
$bar = 'HELLO WORLD!';<br />
$bar = ucwords($bar);             // HELLO WORLD!<br />
$bar = ucwords(strtolower($bar)); // Hello World!<br />
?&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/php-uppercase-lowercase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP] Rounding up and down</title>
		<link>http://dougymak.com/php-rounding-up-and-down/</link>
		<comments>http://dougymak.com/php-rounding-up-and-down/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 16:04:09 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[Programming Stuff]]></category>
		<category><![CDATA[Techy Stuff]]></category>
		<category><![CDATA[Website Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1036</guid>
		<description><![CDATA[I just discovered a few cool functions:

ceil() &#8211; Round fractions up
floor() &#8211; Round fractions down
round() &#8211; Rounds a float

I&#8217;m guessing ceil() is short for ceiling. When looking up, you have a ceiling whereas when looking down, you have a floor(). The functions&#8217; names correspond to their actual function which makes it pretty easy to remember. [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered a few cool functions:</p>
<ul>
<li>ceil() &#8211; Round fractions up</li>
<li>floor() &#8211; Round fractions down</li>
<li>round() &#8211; Rounds a float</li>
</ul>
<p>I&#8217;m guessing ceil() is short for ceiling. When looking up, you have a ceiling whereas when looking down, you have a floor(). The functions&#8217; names correspond to their actual function which makes it pretty easy to remember. And then we also have round which is just basic rounding.</p>
<p>ceil() examples:</p>
<p style="padding-left: 30px;"><code>&lt;?php<br />
echo ceil(4.3); // 5<br />
echo ceil(9.999); // 10<br />
echo ceil(-3.14); // -3<br />
?&gt;</code></p>
<p>floor() examples:</p>
<p style="padding-left: 30px;"><code>&lt;?php<br />
echo floor(4.3); // 4<br />
echo floor(9.999); // 9<br />
echo floor(-3.14); // -4<br />
?&gt;</code></p>
<p>round() examples:</p>
<p style="padding-left: 30px;"><code>&lt;?php<br />
echo round(3.4); // 3<br />
echo round(3.5); // 4<br />
echo round(3.6); // 4<br />
echo round(3.6, 0); // 4<br />
echo round(1.95583, 2); // 1.96<br />
echo round(1241757, -3); // 1242000<br />
echo round(5.045, 2); // 5.05<br />
echo round(5.055, 2); // 5.06<br />
?&gt;<br />
&lt;?php<br />
echo round(9.5, 0, PHP_ROUND_HALF_UP); // 10<br />
echo round(9.5, 0, PHP_ROUND_HALF_DOWN); // 9<br />
echo round(9.5, 0, PHP_ROUND_HALF_EVEN); // 10<br />
echo round(9.5, 0, PHP_ROUND_HALF_ODD); // 9echo round(8.5, 0, PHP_ROUND_HALF_UP); // 9<br />
echo round(8.5, 0, PHP_ROUND_HALF_DOWN); // 8<br />
echo round(8.5, 0, PHP_ROUND_HALF_EVEN); // 8<br />
echo round(8.5, 0, PHP_ROUND_HALF_ODD); // 9<br />
?&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/php-rounding-up-and-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Counter-Strike starts up in black screen</title>
		<link>http://dougymak.com/counter-strike-starts-up-in-black-screen/</link>
		<comments>http://dougymak.com/counter-strike-starts-up-in-black-screen/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 02:27:10 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[How to?]]></category>
		<category><![CDATA[Techy Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1033</guid>
		<description><![CDATA[When you start your Counter-Strike and if it&#8217;s always a black screen, then you&#8217;re most likely stuck in Direct 3D mode. To fix this, you would have to set it back to OpenGL for renderer. However, you&#8217;re most likely unable to due to the black screen.
To fix this:

Go to your Steam (not the game, just [...]]]></description>
			<content:encoded><![CDATA[<p>When you start your Counter-Strike and if it&#8217;s always a black screen, then you&#8217;re most likely stuck in Direct 3D mode. To fix this, you would have to set it back to OpenGL for renderer. However, you&#8217;re most likely unable to due to the black screen.</p>
<p>To fix this:</p>
<ol>
<li>Go to your Steam (not the game, just Steam) and go to the <strong>My Games</strong> tab.</li>
<li>Right click on Counter-Strike and go click <strong>Properties</strong>.</li>
<li>A new box should pop up. Now click <strong>Set launch options&#8230;</strong></li>
<li>In the following box that pops up, type <strong>-dxlevel 9.0 </strong>and click <strong>Ok</strong> when you&#8217;re done.</li>
<li>Launch Counter-Strike normally, and enjoy!</li>
</ol>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/counter-strike-starts-up-in-black-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Wordpress&#8217; ABSPATH</title>
		<link>http://dougymak.com/change-wordpress-abspath/</link>
		<comments>http://dougymak.com/change-wordpress-abspath/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 13:20:00 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[Techy Stuff]]></category>
		<category><![CDATA[Website Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1015</guid>
		<description><![CDATA[Recently, I had migrated one of my blogs to another host. Everything was going great until I kept getting errors that showed my old host&#8217;s absolute path which was weird because I would think Wordpress wouldn&#8217;t store something like this. However, it had to do with one of my plugins (Contact Form 7), and I [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I had migrated one of my blogs to another host. Everything was going great until I kept getting errors that showed my old host&#8217;s absolute path which was weird because I would think Wordpress wouldn&#8217;t store something like this. However, it had to do with one of my plugins (Contact Form 7), and I could of disabled it but I didn&#8217;t want to because it was an essential part of my blog. I&#8217;m guessing the plugin had some sort of interaction with the wp-upload folder. Anyways, I did a search in my MySQL database using PhpMyAdmin for a part of my old host&#8217;s absolute path and I found the entry that needed to be updated. It was under <strong>wp_conhnp_options </strong>table with the value <strong>upload_path</strong> for <strong>option_name</strong>. So just go ahead and update it&#8217;s value and everything should run smoothly again.</p>
<p>Here are PhpMyAdmin instructions:</p>
<ol>
<li>Select the table <strong>wp_conhnp_options</strong> in your Wordpress database.</li>
<li>Click the <strong>Search </strong>tab.</li>
<li>Below, look for <strong>option_name</strong> and in the corresponding text field, type in: <strong>upload_path<br />
</strong>and then click <strong>Go</strong>.</li>
<li>You should  now see one record/row, click the little pencil on the left of the red x to edit.</li>
<li>Now update your old absolute path with your new absolute path and be sure that it points to the uploads folder: /home/public_html/dougymak.com/wp-content/uploads</li>
<li>Be sure to click <strong>Go</strong> before exiting and then check if everything&#8217;s running smoothly.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/change-wordpress-abspath/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Advertising is Inconsistent</title>
		<link>http://dougymak.com/facebook-advertising-is-inconsistent/</link>
		<comments>http://dougymak.com/facebook-advertising-is-inconsistent/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 12:09:34 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[My PPC Life]]></category>
		<category><![CDATA[Techy Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1010</guid>
		<description><![CDATA[There&#8217;s a big potential in the Facebook advertising platform, but there&#8217;s still a long way to go. I&#8217;ve been playing around with Facebook ads lately and I have concluded that Facebook advertising is very inconsistent. However, it may be the season that&#8217;s causing such fluctuations and differences within the results. Regardless, I&#8217;ll either continue through [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a big potential in the Facebook advertising platform, but there&#8217;s still a long way to go. I&#8217;ve been playing around with Facebook ads lately and I have concluded that Facebook advertising is very inconsistent. However, it may be the season that&#8217;s causing such fluctuations and differences within the results. Regardless, I&#8217;ll either continue through the Christmas season or stop until the Christmas season is over. What I did notice though was that Facebook advertising isn&#8217;t strong or any good at all for direct sales of products. However, it works better with free services, but not as well for paid services.</p>
<p>Thinking from a consumer&#8217;s point of view. If I wanted to buy something, I wouldn&#8217;t go to Facebook to find ads for my purchase. I would use a search engine instead. There&#8217;s absolutely no reason for me to even touch those ads. However, on rare occasions, an ad would catch my eye and I would click on the ad to see what is it about, but I would never buy something through Facebook ads just because that&#8217;s me. On the other hand, I normally would ignore most ads whether it is on Facebook or not, but I do enjoy analyzing some them and figuring out it&#8217;s target audience.</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/facebook-advertising-is-inconsistent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Firefox&#8217;s Address Bar&#8217;s Default Search</title>
		<link>http://dougymak.com/firefox-default-searc/</link>
		<comments>http://dougymak.com/firefox-default-searc/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 05:55:42 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[How to?]]></category>
		<category><![CDATA[Techy Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=983</guid>
		<description><![CDATA[Today, I was trying to declutter my Firefox. Since you can search using your address bar  (the bar where you type the web address), then I decided to take away the dedicated search bar on the right of the address bar. However, when I typed in a keyword and hit enter, it would use [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I was trying to declutter my Firefox. Since you can search using your address bar  (the bar where you type the web address), then I decided to take away the dedicated search bar on the right of the address bar. However, when I typed in a keyword and hit enter, it would use Yahoo has the default search engine, but I wanted Google instead. With no further delays, here&#8217;s how to change your Firefox&#8217;s address bar&#8217;s default search.</p>
<p>1. Type <strong>about:config</strong> in Firefox location bar and press Enter<br />
2. Type <strong>keyword.URL </strong>in Filter textbox to find <strong>keyword.URL.</strong><br />
3. Double-click on <strong>keyword.URL</strong> and change the value to: http://www.google.com/search?q=</p>
<p style="text-align: left;">Also, you can change it to Google&#8217;s I&#8217;m Feeling Lucky search- just use: http://www.google.com/search?btnI=I%27m+Feeling+Lucky&amp;q=</p>
<p>That&#8217;s it! Now give it a test drive!</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/firefox-default-searc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Digsby without crapware!</title>
		<link>http://dougymak.com/install-digsby/</link>
		<comments>http://dougymak.com/install-digsby/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 18:14:20 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[How to?]]></category>
		<category><![CDATA[Techy Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=955</guid>
		<description><![CDATA[Recently, Digsby decided to add a bunch of crapware into their installation. It&#8217;s very understandable considering they need to make a living too, but don&#8217;t let the crapware turn you off. Digsby is still an excellent program and it&#8217;s the best IM (instant messaging) client out there. It&#8217;s so robust, fast, and easy to use. [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, Digsby decided to add a bunch of crapware into their installation. It&#8217;s very understandable considering they need to make a living too, but don&#8217;t let the crapware turn you off. Digsby is still an excellent program and it&#8217;s the best IM (instant messaging) client out there. It&#8217;s so robust, fast, and easy to use. Having Digsby handle all your social internet communications in one place is an absolute ease! It just simplifies life and even speeds up your computer since you wouldn&#8217;t have to load 5 different instant message programs. Digsby can handle instant messaging (AIM, MSN, Yahoo, ICQ, Google Talk, Jabber, and Facebook Chat), e-mail (Hotmail, Gmail, Yahoo Mail, AOL/AIM Mail, IMAP, and POP ), and even social networks (Facebook, Twitter, MySpace and LinkedIn accounts)! Anyways, without further ado! I shall show you the way of the crapless install of Digsby. <span id="more-955"></span></p>
<p style="text-align: center;"><span style="font-size: x-large;">First visit and download Digsby here:<a href="http://dougymak.com/out.php?go=digsby" target="_blank">click here please</a></span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><br />
</span></p>
<p style="text-align: center;"><span style="font-size: x-large;">Then proceed with instructions&#8230;</span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><br />
</span></p>
<p style="text-align: center;"><span style="font-size: large;">Open the program after downloading it and you should see this first screen. Click Accept.</span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><img style="border: 0px initial initial;" title="digsby-installation-1" src="http://dougymak.com/wp-content/uploads/2009/12/1.PNG" alt="digsby-installation-1" width="650" height="400" /></span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><br />
</span></p>
<p style="text-align: center;"><span style="font-size: large;">then you basically decline all the offers on these next few screens as seen below (offers may differ).</span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><img class="alignnone size-full wp-image-968" title="digsby-installation-2" src="http://dougymak.com/wp-content/uploads/2009/12/2.PNG" alt="digsby-installation-2" width="650" height="400" /></span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><img class="alignnone size-full wp-image-968" title="digsby-installation-3" src="http://dougymak.com/wp-content/uploads/2009/12/3.PNG" alt="digsby-installation-3" width="650" height="400" /></span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><img class="alignnone size-full wp-image-968" title="digsby-installation-4" src="http://dougymak.com/wp-content/uploads/2009/12/4.PNG" alt="digsby-installation-4" width="650" height="400" /></span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><img class="alignnone size-full wp-image-968" title="digsby-installation-5" src="http://dougymak.com/wp-content/uploads/2009/12/5.PNG" alt="digsby-installation-5" width="650" height="400" /></span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><img class="alignnone size-full wp-image-968" title="digsby-installation-6" src="http://dougymak.com/wp-content/uploads/2009/12/6.PNG" alt="digsby-installation-6" width="650" height="400" /></span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><br />
</span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><strong>Make sure you un-check this before you click decline.</strong></span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><img class="alignnone size-full wp-image-968" title="digsby-installation-7" src="http://dougymak.com/wp-content/uploads/2009/12/7.PNG" alt="digsby-installation-7" width="650" height="400" /></span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><br />
</span></p>
<p style="text-align: center;"><span style="font-size: large;">Now let Digsby finish it&#8217;s thang and then you&#8217;ll be done. It might pop up one of those obnoxious ads after the installation, but there&#8217;s no need to worry about whether your computer has crapware or not. It&#8217;s just the installer&#8217;s last try to make money. </span></p>
<p style="text-align: center;"><span style="font-size: x-large;"><img class="alignnone size-full wp-image-968" title="digsby-installation-8" src="http://dougymak.com/wp-content/uploads/2009/12/8.PNG" alt="digsby-installation-8" width="650" height="400" /></span></p>
<p style="text-align: center;"><span style="font-size: x-large; ">When finished Enjoy <img src='http://dougymak.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/install-digsby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

