Saturday 27 August 2011

BSNL-Broadband Speed Test


To Find the download/upload speed of your DSL Connection, you could check from ISP (BSNL).


The Link for the speed test centre is,
 http://www.broadbandindia.com/speedtest/

Friday 26 August 2011

Activation Failure

Issue:
       Activation context generation failed for "C:\Windows\WinSxS\x86_microsoft.vc80.mfc_..." found in the Event Viewer.

Soln:
       I fixed the error and get no more of the exact same eventvwr error with this download and install:
http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en
then update to 2008 SP1.

[Note] 
Instructions

  1. Important: Make sure you have the latest service pack and critical updates for the version of Windows that you are running. To find recent security updates, visit Windows Update.
  2. Click the Download button on this page to start the download
  3. Do one of the following:
    • To start the installation immediately, click Run.
    • To save the download to your computer for installation at a later time, click Save.
    • To cancel the installation, click Cancel.

IMPORTANT: If you have installed previous pre-release versions of Visual C++ 2005 or Visual Studio 2005, such as Beta 1, Beta 2 or Community Technical Preview (CTP) builds, then you must uninstall these versions via Add/Remove Programs in Control Panel before installing the final released version.

Wednesday 10 August 2011

Tricky whitespace handling in XSLT



Whitespace in a text string
             <description> This    is a test. </description>

normalize-space()
            normalize-space(description)
 translate() and replace()
            translate(description, '&#x20;&#x9;&#xD;&#xA;', ' ')
Whitespace-only text nodes
           <test>
                             <item/>
                        <item/>
             <item/>
</test>
Why strip whitespace-only text nodes
           <xsl:strip-space  elements="*"/>
xsl:strip-space and position()
           Input XML

<test>
  <item/>
  <item/>
  <item/>
</test>
XSLT stylesheet

<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template  match="/">
    <test>
      <xsl:apply-templates/>
    </test>
  </xsl:template>
  <xsl:template  match="item">
    <no>
      <xsl:value-of  select="position()"/>
    </no>
  </xsl:template>
</xsl:stylesheet>
           
            Output XML

<test>
  <no>2</no>
  <no>4</no>
  <no>6</no>
</test>
xsl:strip-space and xsl:preserve-space
            <xsl:preserve-space elements="…"/>

Whitespace-only in mixed content
            <para>I <strong>love</strong> <name>Mozart</name></para>
<xsl:preserve-space  elements="resume headline para"/>
Whitespace in the XSLT stylesheet
            <xsl:value-of  select="firstname"/>
<xsl:text> </xsl:text>
<xsl:value-of  select="lastname"/>


<xsl:value-of  select="firstname"/>
<xsl:text> </xsl:text>
<xsl:value-of  select="lastname"/><xsl:for-each  select="item">
  <xsl:value-of  select="."/>,
</xsl:for-each>

<xsl:for-each  select="item">
<xsl:value-of  select="."/>, <xsl:text/>
</xsl:for-each>


<xsl:for-each  select="item">
  <xsl:value-of  select="."/>, <br/>
</xsl:for-each>

<xsl:for-each  select="item">  <xsl:value-of  select="."/>, <br/>&#160;</xsl:for-each>

Monday 8 August 2011

SQL Commands for Retrieving Row Number


Issue:
     To Retrieve the Row Number for a particular record in the database.

Soln:
     Create table temp (name varchar(30));

     insert into temp values('ashok');
     insert into temp values('king');
     insert into temp values('tekken');
     insert into temp values('manik');
     insert into temp values('DayLight');

     ALTER TABLE temp
     ADD rownumber number null;

     UPDATE temp SET rownumber= ROWNUM;

     SELECT rownumber, NAME FROM temp WHERE NAME LIKE 'tekken';

     ALTER TABLE temp DROP COLUMN rownumber;

Saturday 6 August 2011

Internal Server Error

Issue:
    500 Internal Server Error when starting an Oracle Web Service.
     "Node ID does not exist for the current application server id"
Solution:
     If You have executed the 'autoconfig.cmd', check whether it is completely executed.
     Execution stops by failure, it is recommended to restart the system.
     Then, try running the 'autoconfig.cmd' for successful execution.
     Command Script Name: adautocfg.cmd
            For DB: E:\oracle\VIS\db\tech_st\10.2.0\appsutil\scripts\VIS_vmoraclesrv03
            For Apps: E:\oracle\VIS\inst\apps\VIS_vmoraclesrv03\admin\scripts\

  
    After the autoconfig.cmd executed properly, restart the machine. Then connect the Oracle Apps.
    It actually works.

Call Hierarchy of Java Applet

Threading:
   Java Applet is running as the thread which is a runnable instance so that it can be started, stopped, suspended and restarted again.

Start()
     Starts the thread.
Stop()
     Stops the thread.
Destroy()
     Destroys the thread.
run()  
     i)  Implemented from Runnable class
     ii) Running all the time when condition applies, switching to paint() method
         whenever the repaint() method.
paint()
    Actually a drawing component to draw what the run() method proposes.

Thursday 4 August 2011

Bezier's Curve


The parametric expression of a cubic Bezier[Artificial Intelligence]

Now, the de Casteljau algorithm by itself is not very useful in drawing a cubic Bezier curve, since this would require the computation of a large number of the points on the curve for obtain a certain precision. Nevertheless, for further practical exploitation of the Bezier curves, the parametric expression of the coordinates of points on a cubic Bezier curve is necessary.
Let's start by note that the point D that divides the EF segment in a t/(1-t) ratio has the coordinates given by the expressions:
Dx = (1-t)•Ex+tFx and Dy = (1-t)•Ey+tFy   (1)
Since the expressions for the x and y coordinates are similar, in the followings the non-indexed notation will be used as a shortcut for expressions (1) above:
D = (1-t)•E + tF   (1')
With this notation:
  • after the step 1, the A, B and C coordinates will be:
    A = (1-t)•P1 + tC1
    B = (1-t)•C1 + tC2
    C = (1-t)•C2 + tP2
  • after step 2, the M and N coordinates will be:
    M = (1-t)•A + tB = (1-t)2P1 + 2•(1-t) •tC1 + t2C2
    N = (1-t)•B + tC = (1-t)2C1 + 2•(1-t) •tC2 + t2P2
  • after step 3, the coordinates of the P point will be:
    P = (1-t)•M + tN = (1-t)3P1 +
        + 3•(1-t)2•tC1 + 3•(1-t)•t2C2 + t3P2
The expression:
P = (1-t)3P1 + 3•(1-t)2tC1 + 3•(1-t)•t2C2 + t3P2    (3)
  with t taking values in the [0, 1] interval
is called the parametric expression of a cubic Bezier curve.
For example, applying the expression (3) for a 0.5 parameter value, results in:
midc = (P1 + 3•C1 + 3•C2 + P2)/8    (4)
for the location of the middle point of a Bezier curve.

[Note] The Coordinate A may be calculated for both Ax, Ay.
            (P1x,P1y) - Starting Point.
            (P2x,P2y) - Ending Point.
            (Cx,Cy) - Common Intermediate Points.

To Find the Submitted Requests from Oracle


Issue: 
     Where to find the submitted requests?
Soln:
     Go to SYSADMIN responsibility, System Profile Options-->View-->Requests-->'Find' Tab.

Wednesday 3 August 2011

Import/Export the Saved Bookmarks from Firefox



Issue:
    To save the  Firefox bookmarks by making a backup in your local filesystem.
Soln:
   
  • At the top of the Firefox window, click the Bookmarks menu and select Organize Bookmarks... to open the Library window.


  • From the toolbar on the Library window, select Import and Backup and choose Export HTML....
    Exporting HTML Bookmarks - Win

  • In the Export Bookmarks File window that opens, choose a location to save the file, which is named bookmarks.html by default. The desktop is usually a good spot, but any place that is easy to remember will work.

  • Save the bookmarks HTML file. The Export Bookmarks File window will close and you can close the Library window.

  • Monday 1 August 2011

    TNS Server not loadable

    Question Recieved: We have encountered issues connecting to distributed databases using the internal CC&B subsystems (and TNSping) resulting in the following errors:


    Log is
    Fatal NI connect error 12557, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=CCBTEST)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=CCBCONVT)(CID=(PROGRAM=C:\spl\CCBCONVT\runtime\CLBDSYNC.exe)(HOST=CCBTEST)(USER=s_cissys))))
    VERSION INFORMATION:
    TNS for 32-bit Windows: Version 10.2.0.2.0 - Production
    Time: 04-SEP-2007 16:26:20
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12557
    TNS-12557: TNS:protocol adapter not loadable
    ns secondary err code: 12560
    nt main err code: 527
    TNS-00527: Protocol Adapter not loadable
    nt secondary err code: 0
    nt OS err code: 0
    and
    --------------------------------------------------------------------------
    --Executing Data Synchronization Process at 09-05-2007 08:50:51


    The Actual Path is,

    E:\oracle\VIS\apps\tech_st\10.1.2\bin;E:\oracle\VIS\apps\tech_st\10.1.2\jdk\jre\bin\classic;E:\oracle\VIS\apps\tech_st\10.1.2\jdk\jre\bin;E:\oracle\VIS\apps\tech_st\10.1.2\jlib;E:\oracle\VIS\apps\tech_st\10.1.3\bin;E:\oracle\VIS\db\tech_st\10.2.0\bin;D:\Apps\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;D:\Apps\Cygwin\bin




    Oracle SQL Plus is configured for Oracle version 10.2.0.3 but the Environmental path points to Oracle 10.1.2. So this is the culprit here....


    The Modifified path is,


    E:\oracle\VIS\db\tech_st\10.2.0\bin;E:\oracle\VIS\apps\tech_st\10.1.2\bin;E:\oracle\VIS\apps\tech_st\10.1.2\jdk\jre\bin\classic;E:\oracle\VIS\apps\tech_st\10.1.2\jdk\jre\bin;E:\oracle\VIS\apps\tech_st\10.1.2\jlib;E:\oracle\VIS\apps\tech_st\10.1.3\bin;D:\Apps\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;D:\Apps\Cygwin\bin



    Now,

     E:\BackUp\Imp\SQLAPI\SQLAPI\vs2005\bin>sqltest.exe
    1.      Oracle
    2.      SQL Server
    3.      DB2
    4.      Informix
    5.      Sybase
    6.      InterBase
    7.      SQLBase
    8.      MySQL
    9.      PostrgeSQL
    0.      ODBC
    a.      SQLite
    1
    Client version: 10.2
    Database name (connection string):      VIS
    User name:      system
    Password:       manager
    Server: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Server version: 10.2