Archive for August, 2009

Barry Schwartz on the Paradox of Choice

August 13th, 2009 No comments

I can’t say how much I’ve enjoyed this lecture by Barry Schwartz, I’ve watched it a few times and am constantly amazed by his words. Barry goes on about how if you have a bunch of choices then you’ll expect to chose the best one. Once you do chose the "best one," you’re only going to be let when it doesn’t meet your expectation. You’re left with the feeling that if you had so many choices why couldn’t you have picked a better one. One of his quotes that stick in my mind is "Everything was better, back when everything was worse." Sadly, maybe this is why Apple fans are such die hards! Read more…

Categories: Interesting Tags:

Explained: What Does Applying Computer Settings… mean

August 10th, 2009 1 comment

You know how whenever you login to your Windows box you always see a message saying “Applying computer settings…” and it can sit there for what feels like forever!!! Well it annoyed me to no end, I wanted to find out what it really meant and see if there was a way to tell me what sort of voodoo Microsoft was running on my machine. So after a quick search I found 2 Microsoft KB articles, kb325376 and kb316243. Now, I have a meaningful description like applying group policy, playing log off sound, etc… Read more…

How To Create a Simple Contact Us Page in PHP

August 10th, 2009 No comments

Every website should have a "Contact Us" form, with spam as horrific as it is in this day age webmasters can no longer feel safe just pasting there email address on the websites. I created what I consider to be a bare bones contact us form, which you can see a very similar example of. Also, make sure to scroll past the source code to view some recommended changes and additions to the form. Read more…

Categories: PHP Tags:

Generate MD5 and SHA1 Password Hash

August 9th, 2009 No comments

It’s really simple to generate a MD5 and SHA1 hash using PHP, it’s so simple that I even considered not posting this blog. But then I found myself Googling a website to generate a MD5 hash while I was at work. So I created a simple form for you to create your own MD5 and SHA1 hash. Read more…

Categories: PHP Tags: , ,

Block IE7 and/or IE8 from Automatic Updates via the Windows Registry

August 9th, 2009 No comments

Here’s a quick and simple additions for you SysAdmins out there, how to block Windows XP from automatically downloading Internet Explorer 7 and IE 8. This is a simple addition to the Windows Registry Read more…

Sending eMails via PHP using the mail() function

August 8th, 2009 1 comment

Looking up the official PHP guide, we can see how to use the mail function, I’ll try and explain them here and give a few examples of how to add additional headers. Let’s move along the function header from left to right, the mail() function is declared as:

bool mail  ( string $to  , string $subject  , string $message  [, string $additional_headers  [, string $additional_parameters  ]] )

The first thing we see is that the mail function returns a bool, or boolean. So every time this function is run it will either tell you whether it was successfully sent or not. Now I want to be careful here, just because the message has been sent does not mean that the message ever made it to the users mailbox. The message could bounce back because you entered the wrong address, it was flagged as spam, the email address doesn’t exist anymore, etc… This is kind of like mail with the post office, just like when you put a stamp on a letter and mail it, you can say that the message was sent, but it doesn’t mean the message will ever be received. Read more…

Categories: PHP Tags:

List of Available PowerShell Cmdlets

August 7th, 2009 No comments

PowerShell is a completly new scripting language to me and as such there’s so much I don’t know about it, and while I can browse the net all day looking for information, I wanted to see how I could get PowerShell to tell me everything it knows first before I turn to the almighty Google. Searching for available Microsoft PowerShell Cmdlet descriptions (pronounced command-lets) and what they do I used the get-help command. After I ran this, I immediately noticed a Get-Help * command appear, so off I went. Read more…