Feb 19 2009

HTML Color Codes (Charts)

Major hexadecimal color codes

Color Color Code Color Color Code
Red #FF0000 White #FFFFFF
Turquoise #00FFFF Light Grey #C0C0C0
Light Blue #0000FF Dark Grey #808080
Dark Blue #0000A0 Black #000000
Light Purple #FF0080 Orange #FF8040
Dark Purple #800080 Brown #804000
Yellow #FFFF00 Burgundy #800000
Pastel Green #00FF00 Forest Green #808000
Pink #FF00FF Grass Green #408080

Color code chart

Read more …

Feb 18 2009

Be your own Certificate Authority (CA)

I declare from the beginning that I am no authority on digital certificates.

This document is a summary of all the articles I have read about openssl. It describes in short how to become your own Certificate Authority (CA) and how to create and sign your own certificate requests. Make no mistake, these certificates are good only for personal use or for use in your intranet in order to provide a secure way to login or communicate with your services, so that passwords or other data is not transmitted in the clear. Noone else will or should trust these certificates.

Prerequisites

The package openssl should be installed in the machine you will use to manage your certificates or create the certificate requests.

First things first…

Read more …

Feb 13 2009

Sendmail Problem

There are often problems with sendmail once it has been installed due to the tightening up of sendmail to stop spammers

Sendmail-8.11.6-15 Connection refused

Sendmail & tcp wrapper rejection

Cannot relay from valid ip address (Outlook)

Read more …

Feb 06 2009

CSS Underscore Hack

Original Post


Update:
note that this article is from 2003. The CSS hack described is outdated and (maybe) shouldn’t be used.

I learned another CSS hack today – the underscore hack. You can read all about it in detail, but in essence it’s very simple.

Browsers are supposed to simply ignore CSS properties that they don’t understand. This much should be obvious. However, IE/Win does its usual trick of trying too hard to cope with user error and will read and process any valid CSS property with an underscore tacked on to the front. All other browsers will ignore the mystery property. Example:

p{
   color: black;
   _color: blue;
}

All browsers save IE/Win will display the paragraph text as black – IE/Win displays it as blue. It reads the _color property and allows it to replace the one that came before.

I discovered this technique whilst looking for a solution to IE’s lack of support for min-height to specify the minimum height of an object. Decent browsers like Mozilla support this property, but IE doesn’t. Thanks to another IE bug (one that results in overflow being treated strangely), it’s possible to set a minimum height for both IE and proper browsers in a fashion such as this:

div#content{
    height: auto;
    min-height: 400px;
    _height: 400px;
}

Not a new technique, but new to me, and helped me out of a layout problem. Be sure to read Simon’s discussion of the pros and cons. With the appropriate care, it’s a useful tool to add to your hack list.

Drew McLellan

Feb 05 2009

A 9 years old whiz-kid, writes an iPhone application

SINGAPORE, Feb 5 – While most children his age sketch on paper with crayons, nine-year old Lim Ding Wen from Singapore, has a very different canvas — his iPhone.

Lim, who is in fourth grade, writes applications for Apple’s <AAPL.O> popular iPhone. His latest, a painting program called Doodle Kids, has been downloaded over 4,000 times from Apple’s iTunes store in two weeks, the New Paper reported on Thursday.

The program lets iPhone users draw with their fingers by touching the iPhone’s touchscreen and then clear the screen by shaking the phone.

“I wrote the program for my younger sisters, who like to draw,” Lim said. His sisters are aged 3 and 5.

Lim, who is fluent in six programming languages, started using the computer at the age of 2. He has since completed about 20 programming projects. His father, Lim Thye Chean, a chief technology officer at a local technology firm, also writes iPhone applications.

“Every evening we check the statistics emailed to us (by iTunes) to see who has more downloads,” the older Lim said.

The boy, who enjoys reading books on programming, is in the process of writing another iPhone application — a science fiction game called “Invader Wars”.

Source