|
Internet Explorer 7 and -ms-interpolation-mode css |
Whilst working on a recent project I was looking at how IE 7 renders images that have been incorrectly sized in code. There is a css style "-ms-interpolation-mode" that handles stretched images in IE 7.
The msInterpolationMode property works with stretched images only. As an example if the dimensions of an image are 200x200 but the developer has specified height and width of 400x400, then the image will be stretched to the new dimensions using the nearest-neighbor algorithm, unless you override it with this property.
Notice the difference in the overstretched images above?
This can be achieved by adding this code to your style sheets:
2img.high { -ms-interpolation-mode:bicubic }
3img.nearest { -ms-interpolation-mode:nearest-neighbor }
4</style>
Note that Firefox handles this automatically.
|
Tomb raider for a tonne? |
I noticed this the other day on ebay, seems a bit ambitious if you ask me!
I suppose there is no harm in trying! Althought its only £20.00 on the highstreet......
|
F8 problems when installing Windows XP |
I was recently performing a windows XP rebuild for a client, and noticed that when I reached the EULA agreement in windows XP's installation routine I was prompted to 'press F8' to signify that I agreed to it.
The only problem was the F8 key was disabled! It appears that during a rebuild on top of an existing invalid installation of XP, windows will disable the function keys.
It was then that I noticed the function lock key. The Fn key works just like the scroll lock, or number lock keys, except that it disables/enables the function keys!
It was a simple matter to press Fn once, then press F8 to agree to the licence.
Still don't know why they are disabled during the installation though....
|
Mysql left and right functions |
2 name,
3 RIGHT(url, 1) as slash
4 from table
5 where RIGHT(url, 1) != "/"
The RIGHT() function is similar, but it starts from the last character on the right, counting left to encapsulate the last seven characters.
In the SQL statement below, areaCode is reused to order the results set. To reformat the telephone number, it will be necessary to use the SUBSTRING() function.
2 RIGHT(telephone, 7) AS telNo
3 FROM contacts
4 ORDER BY areaCode;
5
6 SELECT CONCAT('(', LEFT(telephone, 3), ') ',
7 SUBSTRING(telephone, 4, 3), '-',
8 MID(telephone, 7)) AS 'Telephone Number'
9 FROM contacts
10 ORDER BY LEFT(telephone, 3);