My contemplations and diurnal novelties are publicized here

Archive for February, 2012

Could not load file or assembly ‘CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304’ or one of its dependencies.


I do receive this error on a usual basis.

Its pretty simple i am missing some file of crystal report.

Here is a list of installer (Choose one that match you configuration)

Advertisements

Crystal Report Some import links and resources


For Visual Studio 2008

  1. http://resources.businessobjects.com/support/downloads/redistributables/vs_2008/redist/x86/CRRedist2008_x86.msi
  2. http://resources.businessobjects.com/support/downloads/redistributables/vs_2008/redist/x64/CRRedist2008_x64.msi

Crystal Reports Runtime Packages

  1.  http://resources.businessobjects.com/support/additional_downloads/runtime.asp

For Visual Studio 2010

  1. http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp

 

Best WordPress themes


  1. Mystique by digitalnature
  2. Choco by CSSMayo

Using Firebug in IE, Opera, Chrome, Safari or any other browser


Firebug is one of the widely used Firefox plug-in for web development but using it in IE some time become difficult. Here is an easy way to use it in IE without referencing any code in your web-page.

Step #1 Add a favourite (I prefer to add to Favourite Bar so we can use it on a single click)


Step #2 Once your favourite is added right click on it and chose properties and place all the code below in URL field


javascript:var firebug=document.createElement(‘script’);firebug.setAttribute(‘src’,’http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js’);document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug);

All of the above code should be pasted in URL of the favorite link and should be in one line

Step #3

Above idea is fetch from “Firebug 1.5: Editing, Debugging, and Monitoring Web Pages

If you have any issues using Firebug in any browser let me know via comment box below.

Open Source Blog


Here is  a list of open source Blogs

  1. WordPess (PHP Based)
  2. Blog Engine (Dotnet Based)

reCAPTCHA Could not open socket (Behind a proxy)


Recaptcha provides a php library for integration into web applications. Unfortunately, it depends on the web server having full outgoing access to the internet. In a situation where you are forcing outgoing connections to go via proxy,  the following modifications should work.

The new _recaptcha_http_post() function:

/**
 * Submits an HTTP POST to a reCAPTCHA server
 * @param string $host
 * @param string $path
 * @param array $data
 * @param int port
 * @return array response
 */
function _recaptcha_http_post($host, $path, $data, $port = 80) {

        $proxy_host = '@@YOUR_WEB_PROXY_HERE';
        $proxy_port=3128;

        $req = _recaptcha_qsencode ($data);

        $http_request  = "POST http://$host$path HTTP/1.0\r\n";
        $http_request .= "Host: $host\r\n";
        $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n";
        $http_request .= "Content-Length: " . strlen($req) . "\r\n";
        $http_request .= "User-Agent: reCAPTCHA/PHP\r\n";
        $http_request .= "\r\n";
        $http_request .= $req;

        $response = '';
        if( false == ( $fs = @fsockopen($proxy_host, $proxy_port, $errno, $errstr, 10) ) ) {
                die ('Could not open socket');
        }

        fwrite($fs, $http_request);

        while ( !feof($fs) )
                $response .= fgets($fs, 1160); // One TCP-IP packet
        fclose($fs);
        $response = explode("\r\n\r\n", $response, 2);

        return $response;
}
You can find the modified code here recaptchalib.php
Copied and edited from :-http://www.elifulkerson.com/projects/recaptcha-proxy-server-patch.php

Connection reset while using DOMPDF on production server


Here is the solution (I am using XAMPP 1.7.1) :-

In httpd.conf located in apache/conf/ search

#LoadModule rewrite_module modules/mod_rewrite.so

if its commented using # do UN-comment it

then open dompdf_config.inc.php file

and find DOMPDF_PDF_BACKEND

if it set to auto change it to smth like below

define(“DOMPDF_PDF_BACKEND”, “auto”);   –>  define(“DOMPDF_PDF_BACKEND”, “smth”);

For further information read below:-

  1. http://www.dashinteractive.net/dompdf/index.php?v=1776040
  2. https://groups.google.com/forum/?fromgroups#!topic/dompdf/tjclTocqLkE
%d bloggers like this: