Posts

Move service bus data to DeadLetter Queue in Azure

Image
In Micorsoft azure, Service bus is one of the most powerful concept in azure cloud computing. Service bus must be constant size called 64KB. Below i have listed the options to move the data's to DeadLetter Queue manually. Set "Default Message Time to Live" in seconds and Check the checkbox move expired messages to DeadLetter Queue We could move the message of the queue using broken message object. Here is below example.

Azure Cloud service problem "The current service model is out of sync"

Image
Azure has providing lot of could compute technique, one of the most reliable is Azure Cron program called Azure cloud services. Develop, package and deploy powerful applications and services to the cloud with Azure Cloud Services. There are features advantages on azure cloud services        Support for Java, Node.js, PHP, Python, .NET and Ruby       Automatic operating system and application patching       Auto scale to meet demand and save money In Azure cloud service, we usually facing the problem called “The current service model is out of sync”. This issue will occur on few scenarios.     Either ServiceDefinition(.csdef) file content is not match with ServiceConfiguration(.cscfg) files Solution: We should check the service definition file and configuration files, to make sure the xml tags are matches on both files. If some tags are missing on any one of the, we should added them into another file. Your project was not closed properly.

Binary file as attachment to an email using C#

The below code is example of adding binary files into mail as attachment. Each binary data's are write as file and attaching them into email using MailMessage object.

Posting packets from Azure Storage to Service Bus using C#

Microsoft Azure is one of the leading cloud computing environment. Using the below script we are posting raw packets from storage to Service Bus.

Rest API Connection in C# - Using RESTSHARP Library

Rest Client connection using C#. In this post, I have explained the very simple solution using RestSharp Library. In RestSharp library, we have RestClient and RestRequest classes. RestClient will help us to establish the connection using API URL, RestRequest object will act as the intermediate between RestClient and API HOST. Using RestRequest, we will define the header and Request Method.

Creating content type tpl file in drupal 7

In Drupal 7, Page.tpl.php will be the default template file for whole site. In top of this, we can customize our template for different content type, individual nodes and front pages. Even we can customize the block template and views templates. In this blog post, i am going to give you small snippet of code for creating template file depends on content type. To create a template file for content type, First step we need to define in template.php file on hook_preprocess_page method. After included in template.php we need to copy the page.tpl.php. Paste in same folder, rename it according to you content type. For example:- My content type name is reviews. My file name should be page--reviews.tpl.php In this file, you can customize your design.

Get node content using node_view and node_load in drupal 7

Drupal 7 has vast functions to manipulate node and its content. Here i have gave you the piece of code to get node content using node id.