Wednesday, 19 December 2012

The "FindRibbons" task could not be loaded MS Office VSTO

I've recently encountered with an error in a VSTO development (an Excel Add-in) under Vs 2010 environment.   The error message I got when compiling the solution is as follows.

"The "FindRibbons" task could not be loaded from the assembly Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask"

I have install the VS 2012 together with VS2010 recently and I did the following process to get this resolved.

1. Open "Microsoft.VisualStudio.Tools.Office.targets" File from below Location
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools
2.  Press Ctrl+H and replace all all 10.0.0.0 text wit 11.0.0.0
3. Save the file to desktop with the same same & extension.
4. Delete the original file
5. Cut and pate the saved file to above location.
6. Close and restart VS 2010 (If Opened) 

Wednesday, 12 December 2012

How to Easily integrate PHP Code in Blogger or blogspot

PHP is considered as the most powerful computer language that makes things happen with the glimpse of seconds. However, PHP is not supported by Blogger or BlogSpot running platform which makes it extremely difficult to customize and implement some new latest developments, but there are still some ways through which you can add PHP codes in your Blogger enabled Website. Though, the results are not 100%, but it is far better than not having a PHP code on your blogger site. In this article, we will show you how to add PHP codes in Blogger.

Step#1: Creating a PHP File:

Before you can add PHP Codes in blogger, you have to first create a PHP file in which you have to use all the PHP codes that you would like to use.  However, make sure that the file is free from errors otherwise things would not look good. Following is the simple Hello World PHP code example, just for a basic guideline for some beginners

<?php
echo '<p>Hello World</p>';
 ?>

After creating the file with all your desired codes make sure you save it in .PHP extension. For example, mybloggerlab.php, you can use NotePad++ for writing codes because it is the only FREE standard developing tool.

Step#2: Hosting a PHP File:

Since, blogger does not allow you to host any kind of files like PHP, HTML or CSS. Therefore, you have to either host it on your hosting (if you have) or you can use Google Drive to host them for FREE. We have already written a detailed tutorial on It, so read it here.

You can also use Dropbox, and many other free hosting services but certainly they are not better than the features and reliability of Google Drive.

Step#3: Adding  PHP Codes in Blogger

After creating and hosting the PHP file, login into your Blogger account. Once logged in, head over to the dashboard and select the blog on which you would like to add PHP Codes. Now it depends on your needs whether you want to add the PHP code in posts, pages, sidebar or footer. Just paste the following code anywhere you would like to display the PHP file.

<object width="400" height="300" type="text/html" data=" your-file.php"></object>

Don’t forget to replace your-file.php with the URL of your own PHP file that you may have got while hosting it on services like Google Drive Dropbox and etc.

Congratulations: You have successfully added PHP codes to blogger. Go and check your blog to see if things are working as planned. Let us know, if you have a better way of doing this job.

We hope this tutorial has helped you in learning how to add PHP codes in blogger. Still, this is not the most accurate way because we are just using a iFrame technique to include the codes. Blogger needs to think more on making its platform friendly for the developers so that they can bring awesomeness to their blogs and websites.