<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.6" -->
<rss version="0.92">
<channel>
	<title>Dougy Mak&#039;s Blog</title>
	<link>http://dougymak.com</link>
	<description>MY BLOG!</description>
	<lastBuildDate>Sun, 19 Feb 2012 08:34:53 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>setuid/sgid</title>
		<description>How Unix works is, when a user creates a file, the file's group is the user's, which means other users could not edit it. So my developers and I always had this problem, and I always had to use "chown -R www-data:www-data . " to change all the groups of ...</description>
		<link>http://dougymak.com/setuidsgid/</link>
			</item>
	<item>
		<title>Unix $_</title>
		<description>$_ 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>
		<link>http://dougymak.com/unix-_/</link>
			</item>
	<item>
		<title>Getting control over authentication results</title>
		<description>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 ...</description>
		<link>http://dougymak.com/getting-control-over-authentication-results/</link>
			</item>
	<item>
		<title>Zend_Auth returns results and identity</title>
		<description>This actually help me realized that my login wasn'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 ...</description>
		<link>http://dougymak.com/zend_auth-returns-results-and-identity/</link>
			</item>
	<item>
		<title>Show your stack trace</title>
		<description>I kept getting the following error:

An error occurred
Application error

And that means nothing to me. I don'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 ...</description>
		<link>http://dougymak.com/show-your-stack-trace/</link>
			</item>
	<item>
		<title>Completed my first milestone</title>
		<description>Taking baby steps towards my goal! I just took my first step and completed the first milestone, taking action. </description>
		<link>http://dougymak.com/completed-my-first-milestone/</link>
			</item>
	<item>
		<title>I love you DD-WRT</title>
		<description>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>
		<link>http://dougymak.com/i-love-you-dd-wrt/</link>
			</item>
	<item>
		<title>Want to try a little harder&#8230;</title>
		<description>Not in school, but in everything else. School's not making me happy, it isn't bringing me self satisfaction and I don'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 ...</description>
		<link>http://dougymak.com/want-to-try-a-little-harder/</link>
			</item>
	<item>
		<title>Most just stumble on to it&#8230;?</title>
		<description>I'm laying here on my bed at my girl friend'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 ...</description>
		<link>http://dougymak.com/most-just-stumble-on-to-it/</link>
			</item>
	<item>
		<title>Late night inspirations</title>
		<description>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's not like I ...</description>
		<link>http://dougymak.com/late-night-inspirations/</link>
			</item>
</channel>
</rss>

