<?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</title>
	<atom:link href="http://dougymak.com/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>setuid/sgid</title>
		<link>http://dougymak.com/setuidsgid/</link>
		<comments>http://dougymak.com/setuidsgid/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 08:46:56 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[Commands I should remember]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1305</guid>
		<description><![CDATA[How Unix works is, when a user creates a file, the file&#8217;s group is the user&#8217;s, which means other users could not edit it. So my developers and I always had this problem, and I always had to use &#8220;chown -R www-data:www-data . &#8221; to change all the groups of the files in the current [...]]]></description>
			<content:encoded><![CDATA[<p>How Unix works is, when a user creates a file, the file&#8217;s group is the user&#8217;s, which means other users could not edit it. So my developers and I always had this problem, and I always had to use &#8220;chown -R www-data:www-data . &#8221; to change all the groups of the files in the current directory, but there&#8217;s a better way. You can set up setuid.</p>
<p>$ chgrp ftpusers /path/to/the/ftp/directory<br />
$ chmod g+s $_</p>
<p>More information: http://www.cyberciti.biz/faq/unix-bsd-linux-setuid-file/</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/setuidsgid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix $_</title>
		<link>http://dougymak.com/unix-_/</link>
		<comments>http://dougymak.com/unix-_/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 08:42:05 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[Commands I should remember]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1303</guid>
		<description><![CDATA[$_ is a variable that holds the last argument in the last command. For example,
$ chgrp ftpusers /path/
$ chmod g+s $_
$_ would equal the path. You can also echo $_ and experiment around.
]]></description>
			<content:encoded><![CDATA[<p>$_ is a variable that holds the last argument in the last command. For example,</p>
<p>$ chgrp ftpusers /path/<br />
$ chmod g+s $_</p>
<p>$_ would equal the path. You can also echo $_ and experiment around.</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/unix-_/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting control over authentication results</title>
		<link>http://dougymak.com/getting-control-over-authentication-results/</link>
		<comments>http://dougymak.com/getting-control-over-authentication-results/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 08:40:11 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[Zend Framework Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1301</guid>
		<description><![CDATA[So, to get control over the authentication results for various errors such as no such username, wrong password, etc..  You can use this:
$result = $this-&#62;_auth-&#62;authenticate($adapter);
switch ($result-&#62;getCode()) {
case Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND:
/** do stuff for nonexistent identity **/
break;
case Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID:
/** do stuff for invalid credential **/
break;
case Zend_Auth_Result::SUCCESS:
/** do stuff for successful authentication **/
break;
default:
/** do stuff for other failure **/
break;
}
$result = [...]]]></description>
			<content:encoded><![CDATA[<p>So, to get control over the authentication results for various errors such as no such username, wrong password, etc..  You can use this:</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$result = $this-&gt;_auth-&gt;authenticate($adapter);</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">switch ($result-&gt;getCode()) {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">case Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">/** do stuff for nonexistent identity **/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">break;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">case Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">/** do stuff for invalid credential **/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">break;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">case Zend_Auth_Result::SUCCESS:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">/** do stuff for successful authentication **/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">break;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">default:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">/** do stuff for other failure **/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">break;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<p>$result = $this-&gt;_auth-&gt;authenticate($adapter);</p>
<p>switch ($result-&gt;getCode()) {</p>
<p>case Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND:</p>
<p>/** do stuff for nonexistent identity **/</p>
<p>break;</p>
<p>case Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID:</p>
<p>/** do stuff for invalid credential **/</p>
<p>break;</p>
<p>case Zend_Auth_Result::SUCCESS:</p>
<p>/** do stuff for successful authentication **/</p>
<p>break;</p>
<p>default:</p>
<p>/** do stuff for other failure **/</p>
<p>break;</p>
<p>}</p>
<p>http://framework.zend.com/manual/en/zend.auth.introduction.html#zend.auth.introduction.results</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/getting-control-over-authentication-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend_Auth returns results and identity</title>
		<link>http://dougymak.com/zend_auth-returns-results-and-identity/</link>
		<comments>http://dougymak.com/zend_auth-returns-results-and-identity/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 06:49:35 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[Zend Framework Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1297</guid>
		<description><![CDATA[This actually help me realized that my login wasn&#8217;t logging in properly to begin with. I needed to check if a person was logged on or not, and I found out you can see if the visitor has an identity and you can even get it with the following commands:
Zend_Auth::getInstance()-&#62;getIdentity()
Zend_Auth::getInstance()-&#62;hasIdentity()
More information here:
http://framework.zend.com/manual/en/zend.auth.introduction.html
]]></description>
			<content:encoded><![CDATA[<p>This actually help me realized that my login wasn&#8217;t logging in properly to begin with. I needed to check if a person was logged on or not, and I found out you can see if the visitor has an identity and you can even get it with the following commands:</p>
<p>Zend_Auth::getInstance()-&gt;getIdentity()</p>
<p>Zend_Auth::getInstance()-&gt;hasIdentity()</p>
<p>More information here:<br />
http://framework.zend.com/manual/en/zend.auth.introduction.html</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/zend_auth-returns-results-and-identity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show your stack trace</title>
		<link>http://dougymak.com/show-your-stack-trace/</link>
		<comments>http://dougymak.com/show-your-stack-trace/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 10:16:22 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[Zend Framework Stuff]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1295</guid>
		<description><![CDATA[I kept getting the following error:
An error occurred
Application error
And that means nothing to me. I don&#8217;t know what is going on, so I found out you can set the following in your .htaccess under your public folder and then you will be able to see the stack trace which gives you a better idea of [...]]]></description>
			<content:encoded><![CDATA[<p>I kept getting the following error:</p>
<p>An error occurred<br />
Application error</p>
<p>And that means nothing to me. I don&#8217;t know what is going on, so I found out you can set the following in your .htaccess under your public folder and then you will be able to see the stack trace which gives you a better idea of what is wrong.</p>
<p>SetEnv APPLICATION_ENV &#8220;development&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/show-your-stack-trace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Completed my first milestone</title>
		<link>http://dougymak.com/completed-my-first-milestone/</link>
		<comments>http://dougymak.com/completed-my-first-milestone/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 21:33:32 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[My Journal]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1291</guid>
		<description><![CDATA[Taking baby steps towards my goal! I just took my first step and completed the first milestone, taking action.
]]></description>
			<content:encoded><![CDATA[<p>Taking baby steps towards my goal! I just took my first step and completed the first milestone, taking action.</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/completed-my-first-milestone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I love you DD-WRT</title>
		<link>http://dougymak.com/i-love-you-dd-wrt/</link>
		<comments>http://dougymak.com/i-love-you-dd-wrt/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 19:44:16 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[My Journal]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1288</guid>
		<description><![CDATA[Recently, my one of my tenants has been hogging the internet bandwidth, so I slapped on a p2p filter the tenants MAC address and viola! my internet is fast again!
]]></description>
			<content:encoded><![CDATA[<p>Recently, my one of my tenants has been hogging the internet bandwidth, so I slapped on a p2p filter the tenants MAC address and viola! my internet is fast again!</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/i-love-you-dd-wrt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Want to try a little harder&#8230;</title>
		<link>http://dougymak.com/want-to-try-a-little-harder/</link>
		<comments>http://dougymak.com/want-to-try-a-little-harder/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 03:05:52 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[My Journal]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1284</guid>
		<description><![CDATA[Not in school, but in everything else. School&#8217;s not making me happy, it isn&#8217;t bringing me self satisfaction and I don&#8217;t feel like I am working for anything. I just feel like a drone, a drone waiting to be free on the day I graduate, the day I set off and sail towards the sunset [...]]]></description>
			<content:encoded><![CDATA[<p>Not in school, but in everything else. School&#8217;s not making me happy, it isn&#8217;t bringing me self satisfaction and I don&#8217;t feel like I am working for anything. I just feel like a drone, a drone waiting to be free on the day I graduate, the day I set off and sail towards the sunset to start my new adventure.. Maybe I&#8217;ll take less classes, and get a job. Maybe I&#8217;ll stop wasting my money, and save. Maybe I&#8217;ll save up more, and buy my own car. Maybe I&#8217;ll continue to save up, so I have a house to put my car in. Maybe I should try a little harder in life&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/want-to-try-a-little-harder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Most just stumble on to it&#8230;?</title>
		<link>http://dougymak.com/most-just-stumble-on-to-it/</link>
		<comments>http://dougymak.com/most-just-stumble-on-to-it/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 09:52:30 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[My Journal]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1282</guid>
		<description><![CDATA[I&#8217;m laying here on my bed at my girl friend&#8217;s house at 2:14 am on a Sunday and I have Physics in 6 hours. I just finished watching Pirates of the Sillicone Valley, and reading tons of articles about Steve Jobs and startup related things. I realized it is very hard to come up with [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m laying here on my bed at my girl friend&#8217;s house at 2:14 am on a Sunday and I have Physics in 6 hours. I just finished watching Pirates of the Sillicone Valley, and reading tons of articles about Steve Jobs and startup related things. I realized it is very hard to come up with an idea that would forever change the world, but when looking back on it, it&#8217;s just so obvious and leaves me wondering why didn&#8217;t I come up with that idea. Apple created many products, and forever changed the world. It continued to push industries and it was because of them that competitors developed products that you love.  Facebook changed the way we socialize. YouTube forever changed the way we consume video media. When you think about it&#8230; IT IS SO OBVIOUS! WHY DID I NOT THINK OF THIS?  I still remember downloading videos back then and watching videos like numa numa and that was how videos were shared before then came YouTube. I consider myself pretty tech savvy, and that is my Achilles heel. When you know how to do everything that you need to, you get accustomed to it and do not really think about redefining how it works to improve it. So now I am sitting here trying to come up with an idea to change the world, and I keep arriving at the same questions: Why would someone even use this? There is already a way to do this, you do it X way. If I redefined this to do it with X way, then that could work, but how much better is this? Do people just stumble on to these ideas? They probably are experiencing the problem and decided to build X to help improve their lives&#8230;. And I continue to sit here&#8230; putting myself in the future trying to experience what technology would be like and asking myself &#8220;why didn&#8217;t I think of that?&#8221;</p>
<p><!-- Random stuff that I was writing and decided to put into the comments --><br />
<!-- The iPhone is a great example. The mobile phone industry was pretty much frozen. I remember hardware was the main focus and the specifications were the selling point, but those type of phones never really took off. I still remember being awed by the Nokia N series. You had a choice between a flip phone, non-flip phone, or a stylus operated phone, then came the iPhone, a glass touch screen that just worked amazingly. St The iPod, for example, was just an MP3 player. MP3 players have been around for a long time, but it never really took off the way iPod did. I guess because people just didn't get it. It was because of the constant iterations of iPod and its continuation in improvements --></p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/most-just-stumble-on-to-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Late night inspirations</title>
		<link>http://dougymak.com/late-night-inspirations/</link>
		<comments>http://dougymak.com/late-night-inspirations/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 14:46:32 +0000</pubDate>
		<dc:creator>DougyMak</dc:creator>
				<category><![CDATA[My Journal]]></category>

		<guid isPermaLink="false">http://dougymak.com/?p=1278</guid>
		<description><![CDATA[I always get these moments of inspiration at the most oddest hours. Usually during 1-5AM, if I am awake. I want to act on it and start programming or do something, but I know I would be dead tired next day when I am in class. It&#8217;s not like I listen in class anyways, but [...]]]></description>
			<content:encoded><![CDATA[<p>I always get these moments of inspiration at the most oddest hours. Usually during 1-5AM, if I am awake. I want to act on it and start programming or do something, but I know I would be dead tired next day when I am in class. It&#8217;s not like I listen in class anyways, but I want to complete my degree just so I can say I have a degree in Computer Science and also to satisfy my parents wants. I always feel like I am trying to juggle my passions with school and I always end up fucking up both. I want to just cut one of them (school) and focus on the other, but I don&#8217;t have the balls to&#8230; What should I do?  Persevere for 3 more semesters&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://dougymak.com/late-night-inspirations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

