Software / Technology Tips

Sending text messages from Android device using PhoneGap

While working on how to send SMS from smartphone using PhoneGap, I found the plugin which is really very usefull & easy to integrate with Phonegap application. Given below is the example and steps to use the plugin & send message from Android device. Targreted OS: Android Technology: PhoneGap 1. First of all you need…

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

An efficient way to refresh the parent page from child popup window

Problem : Let us think of a scenario : Suppose we have a search page (A.aspx) which contains a tabular view of student data . The page contains a filter button to filter the students based on some condition . Initially the table contains all students data (say 100 records) . Now after pressing the…

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

Retrieving lat/long IP address

Retrieve the user’s current geolocation(lat/long) using current IP address of the user. Retrieving User’s lat/long from their IP address using javascript:- 1.Using google clientlocation loader AP if(google.loader.ClientLocation) { lat = google.loader.ClientLocation.latitude; lon = google.loader.ClientLocation.longitude; } else { //do error handling } Note:- Here key is not mandatory. It is supported by almost all browser but…

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

Js function to convert accented characters to corresponding English alphabets

My last project required me to deal with accented characters. We needed to change these accented characters to normal english characters because the accented characters gets encoded while being passed through an URL. The following code snippet shows how to change accented characters to their corresponding English alphabets. function js_accent_translate(text) { var str = text;…

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

Salesforce: Custom Picklist in VisualForce Page

Suppose we are going to design a VisualForce page and we add a picklist for users on the page. If the field where you want to store the selection is a picklist then ther is no problem we can do that by using .It is easy because  the field definition will define that,the page display…

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

How to insert more than one record using a single insert statement

In SQL, after creation of table we insert data using INSERT keyword. Suppose we have to insert 10 records, we write 10 INSERT statement for inserting them. However, in SQL Server 20008  a new feature called Row constructor has been introduced which allows us to write a single INSERT statement for inserting more than one record at a…

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

WCF Error Handling : Passing Service Method Exception To Client

If any exception got in the WCF service method, by default it will converted to the FaultedException. So WCF client is unable to find the what exactly Exception raised at the service method. To send exception details from WCF service method to the client we can do this in several methods. One method is sharing…

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

How to convert a TIFF file to pdf using iText library in Java

Tip to convert TIF file to pdf using iText library. I am going to explain how we can convert a TIF/TIFF file to PDF document using iText API. Before moving to the main subject of this tip I would like to give a small introduction of iText API. What is iText ?? iText is a…

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

Using Pivot Operator in SQL- Server

PIVOT can be used to generate cross tabulation reports to summarize data as it creates a more easy understandable data in a user friendly format. PIVOT rotates a table-valued expression by turning the unique values from one column in the expression into multiple columns in the output i.e it rotates a rows to columns and…

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

How to fix applet error

Recently we were working on a JAVA Applet for one our clients. Applet was working fine at our end and in client’s testing enviroment but when applet was integrated with live site, problems began. We got an error “Incompatible magic value 218774561 in class file javax/xml/messaging/URLEndpoint”.. Normally this message comes if sandbox (browser) blocks applet…

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