Archive for the 'Web' Category

Secure Google search – encrypted search string and url

Monday, May 16th, 2011

https://encrypted.google.com/
If you want to search Google securely, over an encrypted connection, use the above link.
This prevents your search from being seen by anyone but you and Google, that includes your ISP.
Resources:

Generate CSR file for GoDaddy SSL certificate in OSX, using terminal command line and openssl

Thursday, January 20th, 2011

This works for generating CSR files required by GoDaddy SSL certificates. This will work with more than just GoDaddy SSL certificates, you can even sign your own certificates.

$ openssl genrsa -des3 -out domain.key 2048

You will now have to enter a passphrase

$ openssl req -new -key domain.key -out domain.csr

You will now have to re-enter your passphrase to confirm, and then you will be prompted to enter all your information.
Enter the domain name you are registering this certificate for when it prompts you:
Common Name (eg, YOUR name) []

You will now have the CSR file you need to send to the signing authority to issue you your certificate.

Here is the code to generate the CRT file ( if you’re not using GoDaddy and you want to sign your own )
openssl x509 -req -days 365 -in domain.csr -signkey domain.key -out domain.crt

Convert PostScript Type 1,2 to TrueType font

Tuesday, November 16th, 2010

FontForge will allow you to save a font as .SFD, which will then allow you to save as a TTC format, which then can have the extension changed from TTC to TTF…yeah, I know…

In order to use some javascript based font rendering libraries, you tend to need to have the font which you wish to translate as a TTF (True Type Font) or OTF (Open Type Face) format. Problem is there are many other formats that exist. Font Forge is a prime tool for font manipulation.

Also great font resource: Open Font Library
And great javascript rendering font system: Typekit

IE6 change cursor to pointer or hand on any element

Tuesday, November 9th, 2010

IE6 only supports :hover on <a> elements. To change the cursor to a pointer or hand on hover of any non-anchor element, say a div:
In css

div {
cursor:hand;
cursor:pointer;
}

Do not add the pseudo state ‘:hover’, and it will work cross browser.

Coda – Error code 37 – “Host Key Changed for…”

Tuesday, July 6th, 2010

Coda error code 37 is caused when a site’s ip address changes. This causes the SSH keys to no longer valid. It can be fixed by connecting via SSH with Terminal, inside Coda, and reading the response. The response will tell you what line needs to be deleted in the known_hosts file. The known_hosts file is located /Users/user_name/.ssh/known_hosts