Pages

Tuesday, July 23, 2013

Shuttle - A SSH Session Manager for MAC OS X

Hi there,

In the last week I saw a post about an SSH session manager for Mac OS X. I downloaded it and installed it and my first impression was the simple way to open a new SSH connection. As I'm a Software developer usually I connect to servers using a SSH connection and the Shuttle is very helpful in this situation.

Cheers,

RMRodrigues.

Tuesday, July 16, 2013

How to turn openWYSIWYG compatible with Google Chrome and Safari Browsers

Hi there,

Today I needed to turn the openWYSIWYG editor compatible with Google Chrome and Safari browsers. It is already compatible with Firefox and IE.

So, to turn it compatible with Chrome and Safari you only need edit the file: wysiwyg.js
In this file there is a method called: isBrowserCompatible

Current code:
isBrowserCompatible: function() {
        if ((navigator.userAgent.indexOf('Safari') != -1 ) 
             || !document.getElementById || !document.designMode) {
            return false;
        }
        return true;
    },

Removing the condition (navigator.userAgent.indexOf('Safari') != -1 ) from the if, that turns it compatible with Chrome and Safari.

isBrowserCompatible: function() {
        if (!document.getElementById || !document.designMode) {
            return false;
        }
        return true;
    },

Tested on:
Google Chrome Version 28.0.1500.71
Safari Version 6.0.5 (8536.30.1)
Firefox 22.0