Software / Technology Tips

Label decorator in Eclipse RCP

A label decorator decorates the label text and image for some element in eclipse RCP. For example lets say I have a object called TextDoc. One of the users has opened the TextDoc and put a lock on the object. So the TextDoc object’s icon should be changed by some means so that other users…

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

How to Trim a String Using JavaScript

Context: In programming, trim (or strip) is a common string manipulation function which removes leading and trailing whitespace from a string. Precisely what constituteswhitespace varies between programming languages and implementations, but it normally includes space, tab, line feed, and carriage return characters.The JavaScript language does not currently have a trim function for strings — although…

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

SQL Server Index – IV (Composite and Covering Index)

Covering Index Covering index is also a type of composite index which covers a query. In other words, it includes all the columns that are needed to execute a query. If you know a particluar query is being used often in the application, then we should define a covering index on the table that will…

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

Configuring MSSQL Server to talk to PHP in Ubuntu

B. Creating MSSQL extension 1) We get the PHP source code $ apt-get source php5 2) Extract the compressed folder $ tar -zxvf php5_5.3.6.orig.tar.gz 3) Change directory to the extracted folder and then to the MSSQL directory inside ext folder $ cd php5-5.3.6/ext/mssql/ 4) Create and install the MSSQL extension. Make sure you have php5-dev…

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

DateTime Mystery In SQL Server

In this tip I want to share one of the more interesting aspects of DateTime datatype which I came across while working in the recent past. We have worked on various aspects and format of DateTime datatype in C# and SQL Server. But here in this section we will discuss about the tick value of…

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

UBUNTU MOD_h264_streaming setup

Setting up MOD_h264_streaming server on Ubuntu. Please find the steps for setting up a MOD_h264_streaming server on Ubuntu. ================================================= - Create downloads directory in logged in user home == /home/ - Create mod_h264 directory in /home/username/downloads/ - cd mod_h264 - Copy the apache_mod_h264_streaming-2.2.7.tar.gz (also uploaded here to this location: /home/username/downloads/mod_h264 ) - run following commands…

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

Capitalizing first letter of each word in a string in C# according to culture.

Very Often we come across the need to capitalize the first letters of some word or some text. For example : when we want to display users name or city name etc. Recently I came across the same problem . Since string class does not have a method to do this we could think that…

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

Speech Recognition using Sphinx4 in Java

What is Speech Recognition? Speech Recognition means recognizing the speech and converting it into readable form (text). With the help of speech recognition we can take the user voice as input (dynamically), convert it into text and use it to perform various functions in our program. Requirements For speech recognition you need following packages —…

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

JavasScript Remoting using VisualForce and Apex (SalesForce)

Remoting allows us to perform almost any apex logic via Javascript. Let’s consider Javascript remoting as similar as AJAX call done in normal websites built using PHP, ASP.NET or so. So, let’s see how we can do this. In this demo, I have attempted to create a drop-down list having options created dynamically based on…

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

Creating a Grid using Array data store in ExtJS 3.3

For creating a Grid in ExtJS 1st we need to create a data store. Three types of data stores are there 1 – Array 2 – JSON 3 – XML Below there is an example of Array data store : var dataStore = new Ext.data.Store({ data:, , , , ], reader: new Ext.data.ArrayReader( { id:…

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