Sunday, 21 May 2017

Crystal Reports are not showing images in the report for self-hosted clients

ISSUE: Crystal Reports are not showing images in the report for self-hosted clients.
Solution: This issue exists because the CrystalImageHandler.aspx is not registered in the IIS manager.
**Please make sure that an IIS administrator or someone with equal privileges performs the task needed to correct this on the server.**
The steps to take to correct this issue are as followed:
  • Log into the server hosting the IIS manager.
  • Open the IIS manager
  • Select the <Server name> -> Sites -> [Default Web Site -or- serverName]
  • Open the Handler Mappings of the server
  • Search that there is not a name of CR in the list
  • Search that there is not a Path of CrystalImageHandler.aspx in the list
  • If it does not exist right click and select Add Managed Handler…
  • Enter:
    • Requested path: CrystalImageHandler.aspx
    • NOTE: The following entry should work for either CR12 or CR13. The portion that is used is the PublicKeyToken which will match for either version
    • Type: CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    • Name: CR
    • Click requested restrictions
      • Mapping tab: nothing selected
      • Verbs tab: All verbs is selected
      • Access tab: script
  • Click Ok
  • Click Ok
  • Select the Reports folder
  • Select the Handler Mapping
  • Perform the same steps as above
  • If the CR handlers are not enabled, restart the worker process

Tuesday, 28 March 2017

Sign to be Successful in your life

  1. Speed Of Implementation
  2. Ability to take action when you feel uncertainty
  3. How much you value your time? 

Monday, 13 February 2017

Black Swan Technology

The few large impact technologies (versus slightly incremental advances in technologies) that occurred in the past 10 years were black swan technologies. In his book, Nassim Taleb defines a Black Swan as an event of low probability, extreme impact, and with only retrospective predictability. 

Conventional wisdom would say to make incremental improvement to maximize the potential of the existing infrastructure. The fundamental flaw in the conventional wisdom is the failure to acknowledge the possibility of a black swan. I believe the likely future is not a traditional econometric forecast but rather one of today's improbable becoming tomorrow's conventional wisdom! With a black swan technology shot you need not be constrained with the limits of the current infrastructure, projections or market. You simply change the assumptions.

Philosophical prediction of problem by Black Swan Technology 

Your Black Swan idea to bring technology to this balkanized, archaic industry.

For that we must look for and invest in quantum jumps in technology with low probability of success; we must create in Black Swan technologies. We must enable the multiplication of resources that only technology can do.

You can say it Ultra technology?

So what are these next generation technologies, these black swan technologies of energy? Consider 100 percent more efficient vehicle engines, ultra-cheap energy storage, and countless other technological leaps that we can't yet imagine. 

Thursday, 17 November 2016

Palindrome Index - Algorithm Solution

import java.util.*;
public class Solution {
    public static void main(String[] args) throws IOException {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
         StringBuffer sb = new StringBuffer();
        BufferedReader br = new BufferedReader(new InputStreamReader(;
        for(byte T = Byte.parseByte(br.readLine()); T > 0; --T){
            final char[] C = br.readLine().toCharArray();
            final int N = C.length;
            int c = -1;
            for(int i = 0, j = N-1; i < j; ++i, --j){
                if (C[i] != C[j]){
                    c = isPalindrome(C, i+1, j+1) ? i : j;
            sb.append(c + "\n");
     private static boolean isPalindrome(final char[] C, final int A, final int B){
        for(int i = A, j = B-1; i < j; ++i, --j){
            if (C[i] != C[j]){
                return false;
        return true;

The Love-Letter Mystery - Algorithm Solution in JAVA 8

import java.util.*;
public class Solution {
  public static void main(String[] args) {
Scanner s = new Scanner(;
int numTestCases = s.nextInt();
while (numTestCases > 0) {
String word =;
public static int getNumRotations(String word) {
char[] wordArr = word.toCharArray();
int count = 0;
int j = word.length() - 1;
for(int i = 0; i < wordArr.length / 2; i++, j--){
count += Math.abs((int)(wordArr[i] - wordArr[j]));
return count;

Saturday, 23 April 2016

Common Viruses Locations

Common Directory Locations used by viruses. 

%ALLUSERSPROFILE%\Start Menu\Programs\Startup 
%userprofile%\local settings\temp 
%userprofile%\application data 
%userprofile%\local settings\application data 
C:\Program Files\ 
C:\Documents and Settings

Saturday, 16 April 2016

SQL Server Core Queries

Rename SQL Server Table Name

Single Rename of table

You can alter / rename table with using stored procedure "sp_rename"

sp_rename 'attachment_factory', 'config_attachment_factory';

Multiple Table Renaming

Use exec with in statement or GO after semicolon (;)
exec sp_rename 'cultures', 'localization_cultures';
exec sp_rename 'office.cashiers', 'office_cashiers';

Get All Schema and User Created Tables


Operational work of schema dropping 

SET @sql = N'';

SELECT @sql = @sql + N'
  + QUOTENAME( + ';'
FROM sys.objects AS c
INNER JOIN sys.tables AS t
ON c.parent_object_id = t.[object_id]
INNER JOIN sys.schemas AS s 
ON t.[schema_id] = s.[schema_id]
WHERE c.[type] IN ('D','C','F','PK','UQ')
ORDER BY c.[type];

PRINT @sql;