While setting up an email address for myself on my domain, I stumbled upon some certification error messages in Thunderbird when using an authenticated SMTP server.

You have attempted to establish a connection with "mail.domain.com". However, the security certificate presented belongs to "your.hosting.service.com". It is possible, though unlikely, that someone may be trying to intercept your communication with this web site.

If you suspect the certificate shown does not belong to "mail.domain.com", please cancel the connection and notify the site administrator.

The annoying little confirmation box that appears every time you try to send an email.

This is due because my domain is running off a shared server "mail.domain.com" which points to the server which is running the SMTP server "your.hosting.service.com".

The easiest way to solve this is to change your SMTP server address from "mail.domain.com" to the one that matches the certificate. If the login details are correct, it shouldn't matter.

Sometimes its annoying when a person has return receipts enabled whenever they send out an email.

Thunderbird users will see a message box confirming "The sender of this message has asked to be notified when you read this message. Do you wish to notify the sender?" every time you read a new email from them.

Retrieving the contents of a webpage in PHP5 is really easy these days. You simply make a call to file_get_contents() and it automatically handles the request and parsing for you. It even works for local files!

Now, what if the page you're trying to access requires authentication? Luckily, its not difficult to do this either.

Now, what is that supposed to be? "urls.py" maps the URL request to a view and a view is implemented in your app "views.py" file. This view handles the URL requests with the behaviour and logic you provide it.

Edit "project/yourapp/views.py" and put in the following text.

from django.shortcuts import render_to_response

def home(request): return render_to_response("yourapp/home.html")

See the tutorial on how to create Django templates in order to understand what "home.html" contain, but for now just create "youapp/templates/yourapp/home.html" and throw in some random text in there.

Open up http://yourdomain.com/example in the browser and your random text should appear. Horray! You have just successfully mapped the first url to a view.

At this point you can reuse your "home.html" or create a new template file. Try it, it might make you happy =)

Input arguments from URL

The last url "url(r'^number/(?P<input_integer>\d+)/$', 'yourapp.views.example_with_input')" is a bit trickier. It maps http://yourdomain/example/number/345 (or any number in place of 345) to example_with_input().

Every once in a while, my work computer goes crazy and decides to do things I don't want it to. Perhaps the most annoying thing is when it decides to scroll in Excel and Lotus Notes rather than moving the current highlighted item cursor.

Its really frustrating and time consuming trying to work with something that doesn't behave the way you want it to, or at least the way you're used to.

Luckily, the solution was incredibly simple. The "Scroll Lock" feature on the keyboard was on. Guess the cleaners accidently trigger the button while the computer is locked.

Kinda embarrassing, its sorta like complaining that everything I type is in caps without checking if the caps lock is on.