<?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; Website Stuff</title>
	<atom:link href="http://dougymak.com/category/website-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougymak.com</link>
	<description>MY BLOG!</description>
	<lastBuildDate>Sun, 19 Feb 2012 08:34:53 +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>Fear Will Bring Me Down</title>
		<link>http://dougymak.com/fear-will-bring-me-down/</link>
		<comments>http://dougymak.com/fear-will-bring-me-down/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 08:06:48 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[My Thoughts]]></category>
		<category><![CDATA[Website Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1021</guid>
		<description><![CDATA[Fear keeps us from excelling to great heights and limits are potential rewards. Much of the time, I have these big ideas for websites and before even giving a whack at it, I give up.  The thought of all the work it would take and the lack of resources I have access to, it just [...]]]></description>
			<content:encoded><![CDATA[<p>Fear keeps us from excelling to great heights and limits are potential rewards. Much of the time, I have these big ideas for websites and before even giving a whack at it, I give up.  The thought of all the work it would take and the lack of resources I have access to, it just scares me and I end up scrapping the idea because it would take too long. What scares me more is the huge competitors or the thought of someone out doing me because he/she has the resource and funding. However, overtime I began caring less about these things. I developed a style and a mindset that works for me. I learned to not give a shit about my competitors; I will not let their success intimidate me. No matter how big my competitor is, they can never monopolize. I will always be able to take a part of their audience, even if it&#8217;s a tiny bit. There will be people who prefer something about your website over the other. For example, as a consumer, like many other people, I support the local mom and pop shops over corporate chains. I find myself going to a privately owned pizza joint all the time.</p>
<p>Another way I&#8217;ve changed is, instead of looking at the big picture as a whole, I&#8217;ve broken down the big picture into little pieces. It&#8217;s good to see the big picture, but it can be intimidating when thinking about painting it as a whole. However, it may seem less intimidating if I thought about painting small parts of the picture at a time. Paint a corner here and paint a section there and then you&#8217;ll begin noticing how these small steps add up and how effective this strategy is. Instead of going crazy about every little problem in the whole picture, worry about a piece at a time. This would provide psychological comfort by helping me calm my mind. The milestone would help me feel like I&#8217;m making progress thus producing more satisfaction and having a milestone would help keep me more motivated. So in the end, I have to tell myself: don&#8217;t worry about other people, just worry about yourself. Just keep doing what you like and what you&#8217;re passionate about and the success will follow.</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/fear-will-bring-me-down/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>QR Barcode</title>
		<link>http://dougymak.com/qr-barcode/</link>
		<comments>http://dougymak.com/qr-barcode/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 04:59:13 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[How to?]]></category>
		<category><![CDATA[Website Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=942</guid>
		<description><![CDATA[A QR Barcode with DougyMak.com link 
Generated by http://qrcode.kaywa.com/

]]></description>
			<content:encoded><![CDATA[<p>A QR Barcode with DougyMak.com link <img src='http://dougymak.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Generated by http://qrcode.kaywa.com/</p>
<p><img src="http://qrcode.kaywa.com/img.php?s=8&amp;d=http%3A%2F%2Fdougymak.com" alt="qrcode" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/qr-barcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slow and easy</title>
		<link>http://dougymak.com/slow-and-easy/</link>
		<comments>http://dougymak.com/slow-and-easy/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 04:00:46 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[Website Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=278</guid>
		<description><![CDATA[The &#8220;Slow and easy&#8221; concept can be applied to many things in life. I would say it works very great too. I&#8217;ve been taking my website slow and easy: occasionally adding content, and updating content as well. I noticed that my adsense revenue has been slowly inclining. However, it fluctuates, well that is natural due [...]]]></description>
			<content:encoded><![CDATA[<p>The &#8220;Slow and easy&#8221; concept can be applied to many things in life. I would say it works very great too. I&#8217;ve been taking my website slow and easy: occasionally adding content, and updating content as well. I noticed that my adsense revenue has been slowly inclining. However, it fluctuates, well that is natural due to it&#8217;s nature. I haven&#8217;t really tried building traffic to it. I just pretty much keep adding content because I want to, and then once in a while I&#8217;ll go to forums and ask them what do they think about my content, which helps build up some traffic. Bottom line is, for long term ad revenues with websites, you should take it slow and easy. By not implementing ads in the early life of the website, it helps you build more credibiltiy, and it makes the website more reader friendly.</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/slow-and-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

