A moan, a groan, my life story and how me, a technically minded person just can't seem to fit in with anybody.

Archive for September, 2010

CSS/HTML – Margin goes/pushes out container block/div

I recently encountered this issue:

Margin Pushing Out

Where the margin on the H1 tag was overflowing into the container above and pushing down the H1 tag’s container. I couldnt figure out why. Here is an example:

To my logic the green should be flush against the top and a 10px gap between the red and green. After some digging around I found out the reason this is happening is due to the way block formatting works. To fix this just add overflow:hidden; to the H1 tag’s container. Fixed here:

PHP Send Email With High Importance Set

Just posting this for reference really. You need to add some extra headers to your PHP send mail script to send the email with high importance. This will show a red exclamation mark on the recipitents recieved mail if their mail client supports this feature.

Google Maps API Javascript V3 – Place Km/Mile radius/circle around point

So Google has released V3 of their Google Maps API and it appears that they have stripped out a number of useful functions that I’ve found myself using in V2. Apparently these functions have been stripped out to make a more lightweight and compact API for better performance for mobile devices. This is great but now you have to write your own function that Google has taken out.

So would you like to draw a radius around on a point on a Google map? Well I do and I managed it in the V2 API using a Google function called distanceFrom() and some custom code but now that function has been stripped out in v3. Anyway I’ve rewritten my code to do this in the V3 API. Take a look:

This requires the Google Maps API and also the latlong JS script from Movable Type. To use simply call the function drawCircle() sending your Google longitude and latitude cords and the mile radius. If you want to use Km then comment out or delete the bit of code highlighted.

Oh and you can send some other variables too if you don’t like the default colours and settings.

Example usage:

How to recieve and send MSN, Hotmail, Live email on android phone

I thought I’d just share these settings, as I have found they are impossible to find. Also I will point out that this is POP3 and SMTP settings and not IMAP. Correct me if I’m wrong but you have to pay for IMAP access, and I think thats why these settings are hard to find… Why tell you how to connect for free when they want you to pay. Another great thing with these settings I have found they work on ISP’s and mobile networks that normally block port 25. So here they are:

Incoming Settings:
Username: [email protected] (use your full email address)
Password: ********
POP3 Server:
Port: 995
Security Type: SSL

Outgoing Settings:
SMTP Server:
Port: 587
Security Type: TLS
Require Sign-in: yes
Username: [email protected] (use your full email address)
Password: ********

So there we go. Also these settings will work on other email clients not just android phones.