Software / Technology Tips

Cross Domain Calls For WCF

A cross-domain call happens when a web page uses Javascript to access resources at a different URL which can be another domain. You will get the following error when you try access the WCF services whic is hosted in a different doamin from a jQuery ajax method. NetworkError: 405 Method Not Allowed – The problem…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Retrieving dynamic Xml based record set

XML is a simple and flexible system for defining data formats. This is completely platform independent and adopted everywhere for representing complex documents and data structures. For data transmission on web, its having significant contribution. Now days it’s been the major use of XML to store both rowset (single table) and hierarchical (multiple-table) data in…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Improve Performance By Avoiding Day-To-Day Mistakes In Coding PHP

      Save time and speed scripts by working with object properties directly, rather than writing naive setters and getters. class test { public $name = ''; public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } }    //Notice that setName() and getName() do nothing more than store and return…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Touch Events: Concept and using it to Scroll Images

n iPhone/iPad app, touch is the most common action. Here,I am describing touch events and a simple way to attach it with image view and with the help of touch events, images will move left/right when user swipe on the image i.e. if one swipe from left to right, image to left of the current…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

DateTime issue in WCF service call

Sometimes we face problem while working on date time timezones with wcf service calls. For example, in my situation I have code that passes date into WCF via JSON object. What was happening in my case was, when I was sending my date as “12/02/2013″(dd/mm/YYYY format) from jquery client side, it was getting the date…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Some Interesting features of ENUM data type in MySQL

n MySQL, ENUM is a datatype that allow us to define some list of permitted values during creation of table. This will help us to restrict values that are going to be entered against a column. This is something like white listing(list of permitted values) that we have learned in security section for web application.…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Change your WordPress password through FTP.

There is an easy way to reset your password through FTP, if you’re an Admin user. 1. Login to your site through FTP and download your active theme’s functions.php file. 2. Edit the file and add below code to it, right at the beginning, after the first

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Stored Procedure execution using MySQL Extension

Friends, here I am going to share an interesting thing which I faced recently. In PHP, everyone knows to establish a mysql connection we use (This is the standard) Presently, everyone is using Stored Procedures and to execute the Stored Procedure uses the MYSQLi Extension. But in previous versions of PHP which have no support…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Error handling in Kendo Grid with WCF service/WEB API

Kendo UI has a nice widget ‘Kendo Grid’ which displays data in a tabular format and offers rich support for interacting with data; including paging, sorting, grouping, and selection. Here in this tip mainly we will concentrate upon how to handle the exceptions which are thrown at the server side during data manipulation in a…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How To Set The Navigation Bar's Background Image Directly

Set the image using method setBackgroundImage:forBarMetrics. setBackgroundImage: portrait forBarMetrics:UIBarMetricsDefault]; setBackgroundImage: landscape forBarMetrics:UIBarMetricsLandscapePhone]; Create resizable images UIImage *portrait = resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)]; UIImage *landscape = resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0,0)]; Set the attributes of Naviagtion Bar (to set the title font, color, shadowoffset) setTitleTextAttributes: [NSDictionarydictionaryWithObjectsAndKeys: [UIColorcolorWithRed:255.0/255.0green:255.0/255.0blue:255.0/255.0alpha:1.0], UITextAttributeTextColor, , UITextAttributeTextShadowColor, , UITextAttributeTextShadowOffset, , UITextAttributeFont, nil]]; Similary, we can…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!