Wednesday, 24 August 2011

Quick Note: Crispy "Seaweed"


Not so much a recipe as a vague note of something half remembered..  however... 


Ingredients:
Cabbage
Caster Sugar
Salt
Vegetable Oil


Method:
I've only ever made the crispy seaweed once, but from my vague memory you need to chop the leafy bit of the cabbage into strips, like seaweed, get a pan of hot vegetable oil and drop the cabbage in for a few seconds until it goes crispy. Then you need to whip it out quick before it burns, and lightly sprinkle with a caster sugar / salt combo (I think it's 2:1 sugar to salt) 

Wednesday, 6 April 2011

Autoscale websites for mobile devices

A handy little single line of html that I've been playing with today.  

This code means you can automatically scale the "viewport" visible window size of your website for whatever device is viewing it. No more tiny site in the middle of an empty screen.


Oooh - it's like it's 1998! 


Stick this in the head section


< meta name="viewport" content="width=device-width" / >


You can even set it so they can't zoom in or out by switching user-scalable off..


< meta name="viewport" content="user-scalable=no, width=device-width" / >

Monday, 31 January 2011

The battle with IceWarp Mail Server's SSL

So I just had a battle with an IceWarp Mail Server.  It had been quite happily serving SSL until I had to renew the certificate.  The new certificate requires that separate root and CA certificates are also applied in order for the entire certificate tree to be valid.

This shouldn't have been a problem - IceWarp has a section for adding CA certificates.

However, as it turns out, in our install of version 10.2.2 at least - it ignores it. Completely.  Nothing you put in there seems to make any difference what-so-ever, and it only ever serves the server certificate, leading to big red warnings in most browsers (although my copy of Firefox, bizarely, just went "Oh. Ok then" and carried on)

The work-around that I came across for this - copy & paste the root and CA certificate onto the end of the cert.pem file in "c:\program files\icewarp\config"  - IN NOTEPAD!!


Make sure you keep a copy of all of the original files incase it breaks, and make sure you only use notepad - wordpad will try to add extra formatting code and will probably trash it.


So you end up with a cert.pem file that looks like


-----BEGIN RSA PRIVATE KEY----- (LOTS OF HEXADECIMAL CODE) -----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
(LOTS OF HEXADECIMAL CODE)
-----END CERTIFICATE-----
 
-----BEGIN CERTIFICATE-----
(LOTS OF HEXADECIMAL CODE)
-----END CERTIFICATE-----
 
-----BEGIN CERTIFICATE-----
(LOTS OF HEXADECIMAL CODE)
-----END CERTIFICATE-----


I know. Notepad. Madness in this day and age of GUIs and whatnot. But there you go.

Restart all the icewarp services and it should work just fine.