Software / Technology Tips

Removing all characters within HTML tag from a string iOS Development

In many applications , there is a need to retrieve a specific portion of data from a string or to remove a few lines of text present at various places inside a string. This can be performed in various ways. I am taking HTML string and using various method replacing data present within the tag…

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

Programmatically change jQuery accordion

jQuery provides us a rich set of UI controls to be used in our sites like (Datepicker, Tabs, Accordion etc.). Accordion allow us to accommodate more than one panels in one control . Each panel may have different data to display, but at a time we can show only one panel . At one time…

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

How to apply Razor parsing for email templates in Asp.Net?

In current web applications, sending email from template with dynamic content is a common requirement. To achieve this we add a template and we add some parameters which need to be replaced dynamically in the template. Let’s say we have user reset password email template like: Hello , Your username: Your new, reset password is…

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

Basics of Hibernate

Data mapping tools are used by developers to get rid of writing sql queries. They are easy and provide all the functionality of sql queries and you dont have to remove the errors (,)(“) (‘) (+) from them. Just define the beans and using the annotaions feature of hibernate you can easily map each column…

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

Getting image data in CRgn object in MFC

Usually we come across the situations , where we need to represent the image pixels as an single entity. In VC++ we can make out the image data represented by single entity using its CRgn class provided in MFC. Bitmap image;//Read from some source, may be you read it from disk or you take it…

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

How to implement a link in Wicket Framework which opens a desired pdf document in popup window

Here I am going to discuss how to implement a link in wicket which opens a desired pdf document in separate popup widow. To implent this link we will go through following steps:- 1. First create Wicket “Resource”(This is a class in Wicket) object and override the “getResourceStream()” method to return a “FileResourceStream” object containing…

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

Convert BufferedImage object of java to BitMatrix object

This tip shows you the way to convert BufferedImage object of java to BitMatrix object in ZXing library. Since in Image processing you must have information about the bits of images so in ZXing library BitMatrix object represents image in bits form. This conversion is the first step during Image processing using ZXing library. First…

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

Usage of Java Imaging API

Java has a great efficient Image handling API in javax.imageio package. Using this package one can do all important image related operations, like Creating Images, Get an ImageData instance from an existing Image, save the image to the local disk etc. To do these operations first we need to scan for the plug-in for the…

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

Serializing the CRgn object in VC++ MFC

The CRgn class in provided in VC++ MFC is not serializable, but what if you have the need to serialize this object and store it in some file. We can serialize the data back and forth, in this way: /file CSerializeRegion.h class CSerializeRegion: public CObject { private: CRgn mRgn; public : BOOL SerializeRgn(CArchive& ar); protected:…

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

Trimming Float Value | Mindfire Solutions

Some times we may need a float value 2.345 instead of complete float value 2.345768. In such cases we need to trim the float value.The function below demonstrates how it can be done.. function name: trimFloat( ) param1: float f; the original float value , i.e., 2.345768 param2:int decimals; how many number of digits we…

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