Posts

Showing posts from July, 2013

Changing ulimit on Linux for Maximo Install - SUSE

Image
Procedure: Edit limits.confile --> Add values --> Reboot --> Confirm Edit Command:  sudo vi /etc/security/limits.conf Edit file and add: maxadmin        hard    nofile  8192 maxadmin        soft    nofile  8192 Confirm:

Resolving references for libstdc++.so.5 for Maximo 7.5 Instllation on SUSE

Image
Solution is simple all you need is the installation media added to repositories. UI Based Solution: Go to YAPT and search for libstdc++ you will get many as per situation, you need to choose one as per your requirement, must see " provides " in " dependencies section ". This will resolve your problem for libstdc++.so.5 on SUSE 64bit. Command Line Based Solution: Search:  zypper se libstd* Install : zypper install libstdc++33-32bit

Launchpad Issues - IBM Tivoli Asset Management 7.5 Installation on Linux Platform

Image
Background: There are possible scenarios that you guys will face if you are trying to install Maximo Asset Management 7.5 on Linux(SUSE, RedHat). There are some very strict checks which will fail installation and give you hard time figuring out solutions, there is help available on internet but most of the time is wasted in order to figure out if you are in the same boat or not. So if you are trying to install Maximo it would be better if you can do some homework before doing hit and trial to complete your installation.  As I mentioned earlier there are some strict checks which will fail your installation which are following: 1) Supported OS 2) Supported Browser 1) Supported OS: The platform in concern today is Linux, following are supported version of Linux with 7.5 Red Hat Enterprise Linux 3 (x86, 32 bit) No Red Hat Enterprise Linux 4 (x86, 32 bit) No Red Hat Enterprise Linux 4 (x86, 64 bit) No Red Hat Enter...

Change Row background color on Mouseover

Image
Sample Table : <table> <tr> <td> row1 col1 </td> <td> row1 col2 </td> </tr> <tr> <td colspan="2"> row2 col1 </td> </tr> </table> Sample Code 1 : <script type="text/javascript" src="jQuery1.5.1.js"></script> <script language="javascript" type="text/javascript"> $(document).ready(function(){ var clicked = false; var origColor = ""; $("tr").mouseover(function () { origColor = $(this).css("background-color"); $(this).css("background-color","red"); }); $("tr").mouseout(function () { clicked == false ?  ($(this).css("background-color",origColor)) :  (clicked = false); }); $("tr").click(function () { $("tr").css("background-color","aqua"); $(this).css("background-color",...

Call a code behind method using jQuery Ajax.

Problem: Here we are interested in calling a code behind function which is present on some other page and we don’t want page to be refreshed or an apparent post back to happen. On of the possible way of doing this is jQuery Ajax. Sample Code: ---------------------------Test.aspx-------------------------------- <script type="”text/javascript”"> $(document).ready ( function () { var JSONObject = new Object; //Initialize a new JSON object as this is the most common mistake making a JSON object $(‘#btn’).click ( function () { JSONObject.name = $(‘#lid’).val().toString(); //Read Data from a textbox with id = lid JSONstring = JSON.stringify(JSONObject); //Stringyfy in JSON format alert(JSONstring); //Alert to check your request you can remove later on $.ajax ( ...

Yield

Inroduction: yield keyword is used to return items from a loop within a method and retain the state of the method through multiple calls. Microsoft When you use the yield keyword in a statement, you indicate that the method, operator, or get accessor in which it appears is an iterator. You use an iterator to perform a custom iteration over a collection. The following example shows the two forms of the yield statement. yield return <expression>; yield break; Sample Code: Project Type: CONSOLE Project Name: Yield /* Class Yield.cs */ using  System; using  System.Collections; using  System.Collections.Generic; using  System.Threading; namespace  Yield {      class   Yield     {          public   static   IEnumerable  Prime         {        ...

r2c: Row to Col

Lets see what solution can be given when it comes to pulish a complete column from a table in one row, with some delimiter. Prerequisite: create table user_mst (  user_uid varchar2(10)  ,user_name varchar2(50) ); Basic Function: create or replace function r2c (         in_select_statement in varchar2, --pass a select statement with a single column eg: select user_uid from user_mst         in_result_separator in varchar2 default ',' -- sperator for the output default it is comma )      return clob      authid current_user      as      type details is ref cursor;      lc_str clob;      lc_colval clob;      c_dummy details;      begin      open c_dummy for in_select_statement;      loop   ...