Friday, February 3, 2012

installing Oracle SES on ubuntu

You can try installing it with ./runInstaller -ignoreSysPrereqs

You will likely get some errors during the install (particularly when it tries to run "rpm" to check which packages are present) and you may find some difficulties starting and stopping it.

If "searchctl startall" doesn't work you can do it "manually" with:

export ORACLE_HOME=<your oracle home>
export ORACLE_SID=<your sid - default is "ses">
lsnrctl start
sqlplus sys/<password> as sysdba
searchctl start


Ujjwal Soni

Wednesday, February 1, 2012

TinyMCE Text Area (Onchange event issue)

Hi All,

Anyone who is using tiny mce plugin might had faced an issue with onchange event not triggering in firefox, i resolved this issue as under :

I added a call back in tiny mce's init function as under ::

  // General options
  handle_event_callback : "myHandleEvent",

i then created a java script function as below which keeps track of key press, key down and key up for text areas :

function myHandleEvent(e) {
        if(e.type=='keypress' || e.type=='keyup' || e.type=='keydown')

        return true; // Continue handling


Ujjwal Soni

TinyMCE Text Area (Tab issue)

Hi All,

I was developing a website with tiny mce text areas, i faced an issue with tabs there. On pressing tab key, the cursor goes to next text area. So, to resolve this issue, i did it as under ::

In tiny mce init declaration, i added a callback function as under

  // General options
  init_instance_callback : fixTinyMCETabIssue,

Then i created a javascript function which adds a tab character on pressing shift+tab key

function fixTinyMCETabIssue(inst) {
    inst.onKeyDown.add(function(inst, e) {
        // Firefox uses the e.which event for keypress
        // While IE and others use e.keyCode, so we look for both
        if (e.keyCode) code = e.keyCode;
        else if (e.which) code = e.which;
        if(code == 9 && !e.altKey && !e.ctrlKey) {
            // toggle between Indent and Outdent command, depending on if SHIFT is pressed
            if (e.shiftKey) inst.execCommand('mceInsertContent', false, "#TAB#");
            return false;
One of my blog reader found an issue with image resizing in tinymce when he implemented this code, he found that this functionality can be achieved using:
nonbreaking_force_tab : true,


Ujjwal Soni