Friday, May 25, 2012

Toad for MAC OSX

Hi Friends,

I have been searching for Toad for running on my Mac as i was frustrated with blank outs with SQL developer. I came across a wonderful article for running toad on Mac Osx.

http://toadworld.com/Blogs/tabid/67/EntryId/884/Run-Toad-for-Oracle-on-Mac-OS-X.aspx

Thanks,

Ujjwal Soni

Thursday, May 17, 2012

Remove user from request.getRemoteUser (SSO User)

Hi All,

Recently i had a requirement to remove SSO user from request.getRemoteUser(). I tried several ways like nulled the SSO_USER_CACHE session variable, but that all did now work.

I find a work around for this problem like using oracle logout link, but the problem here was that after logout is done, it did not return to my application's login page.

So, i finally found a solution for this :

//remove any session variables you have
String l_return_url = request.getContextPath()+"/jsp/login.jsp";
   response.setHeader( "Osso-Return-Url", l_return_url);
   response.sendError( 470, "Oracle SSO" );

Please comment if you found this useful.

Thanks,

Ujjwal Soni


Thanks,

Ujjwal Soni

Friday, May 11, 2012

Presentation on LESS

Hi,

I recently did a presentation on LESS (The dynamic css language). Below is the URL to access the PPT document.

LESS Presentation

Thanks,

Ujjwal Soni

Thursday, May 10, 2012

Cloud Computing Definition

While working on a cloud computing research topic, came across The NIST Definition of Cloud Computing and I found it quite comprehensive and found it worth sharing:

“Cloud computing is a model for enabling ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction.”

The definition paper also outlines what the cloud model is:

“This cloud model is composed of five essential characteristics, three service models, and four deployment models.”

As states in the paper, the essential characteristics refer to:

1) On-demand self-service
2) Broad network access
3) Resource pooling
4) Rapid elasticity
5) Measured service

Three service models are:

1) Software as a service (SaaS)
2) Platform as a service (Paas)
3) Infrastructure as a service (IaaS)

Four Deployment Models are:

1) Private cloud
2) Community cloud
3) Public cloud
4) Hybrid cloud

In a nutshell, it provides a excellent overview of the cloud computing and its model.

Thanks,

Ujjwal Soni

Wednesday, May 9, 2012

Download Myeclipse older versions

Hi,

Recently i need to download version for myeclipse 8.6, i could'nt find it anywhere on the web so finally started crawling through some forums, i found that we need to email the version we need along with the subscription details to sales@genuitec.com.

I got the download link in 5-10 minutes after sending the details. I felt strange that why would i need to give subscription details to download a copy of older version of myeclipse. i have emailed this to them and awaiting their reply.

Thanks,

Ujjwal Soni

Tuesday, May 8, 2012

Simple Jquery Back to Top

Hi,

Today i am going to show you how to make simple jquery back to top navigation.

First of all import jquery :

<script language="javascript" src="<%=request.getContextPath()%>/script/jquery-1.4.3.min.js"></script>


Then, declare some css

 <style type="text/css">

#toTop {
 width:100px;
        border:1px solid #ccc;
        background:#f7f7f7;
        text-align:center;
        padding:5px;
        position:fixed; /* this is the magic */
        bottom:10px; /* together with this to put the div at the bottom*/
        cursor:pointer;
        display:none;
        color:#333;
        font-family:verdana;
        font-size:11px;
        right:10px;
}
 </style>



Then, define div tag for back to top

<div id="toTop">^ Back to Top</div>


Then, some jquery

$(function() {
 $(window).scroll(function() {
  if($(this).scrollTop() != 0) {
   $('#toTop').fadeIn(); 
  } else {
   $('#toTop').fadeOut();
  }
 });
 
 $('#toTop').click(function() {
  $('body,html').animate({scrollTop:0},800);
 }); 
});

Thanks,

Ujjwal Soni

Thursday, May 3, 2012

Jxl Performace Tweak

I recently had to generate an excel report with large data set, but it kept failing as it goes out of memory, so i implemented below tweak in order to get output in a proper manner.

WorkbookSettings wbSetting = new WorkbookSettings();  
wbSetting.setArrayGrowSize(5*(int) Math . pow ( 1024 , 2 ));   
wbSetting.setUseTemporaryFileDuringWrite(true);  
WritableWorkbook workbook = Workbook.createWorkbook(response .getOutputStream(), wbSetting);

Keep visiting my blog,

Thanks,

Ujjwal Soni

Wednesday, May 2, 2012

Closing jquery simple dialog manually

I recently implemented JQuery Simple Modal dialog box for progress bar, i closed this using below code ::

i invoked dialog using below code ::

$("#showDialog").click();

<a href="#" rel="dialog_content" style="visibility: hidden;" class="simpledialog" id="showDialog">show</a>


<!-- content -->
<div id="dialog_content" style="display:none;">
  <img src="<%=request.getContextPath()%>/images/progress_bar.gif"/>
</div>

i closed this dialog using below code ::

$("#showDialog").close();

Thanks,

Ujjwal Soni