Demistifying DSVL Configuration

directx-logoIn my previous post I just mentioned how we can use ARToolkit in conjunction with a 3D rendering engine. The camera connection was made by the ARToolkit via DSVL (DirectShow Video Library) . As I promised, through this post, I’ll expose how we can configure DSVL with its supported parameters.

DSVL is a wrapper for DirectShow which in turn is a part of DirectX. We all know that DirectX is the prominent media framework used in windows platforms. Other than DirectShow, Direct3D and DirectSound also come under the brotherhood of DirectX. So what is the specialty of DirectShow? In computers data can be generated in many places, such as file system, network, TV cards or video cameras etc. And data which is produced at each of these locations take many formats. Therefore front-end applications have to explicitly communicate with these underlying data sources and deal with its formats. Obviously this would be pretty cumbersome and overwhelmingly incompatible with different hardware devices. This is where DirectShow comes in to handy. It synchronizes and unifies all the communication flow between our application and the underlying hardware. In particular DirectShow talks directly with the camera drivers, capture card drivers etc… and provide feedback for the user application. This is the simplest way we can understand it, but for more details go here .

Continue reading “Demistifying DSVL Configuration”


MySql C++ Connector Problem when Retrieving values with getString()

Recently I’ve been messing around with MySql Connector for C++ in a Fedora core 10. I used Eclipse CDT (Galileo) for compiling/debugging  and it was always giving incomplete result sets whenever getString() method was called. Incomplete in the sense it gives only the first row of the result set inside the loop for enumerating result set items.

I had a carefull observation at the build output and it was popping some sort of a message like ‘libstdc++.s0.5 needed by might conflict with’. There were no compile time errors neither runtime errors.However in the Debug mode I observed it line by line and came to know it crashes at the first occurence of the getString() method. I was stumbling around with this for somr time and finally able to dismantle the issue.

What I did was I just removed the from the lib. And remove any files with a name like ‘’. Doing this caused to display the build output smoothly (without the above warning message) and getString() method returned all the items in the result set as well. Hope this work around might be useful for anyone to get rid of this headache.

Sharepoint Deployment (MOSS)

Sharepoint deployment waz not that eazy. There’s no defined method to do that. But we can use some mechanisms wchich are built into MOSS. One such component is stsadm. For the deploymet purposes we can use either export/import or backup/restore mechanisms. My recommendation is export/import since the latter is appropriate for a catatrophic scenario. Our friendly stsadm tool will help to perform export/import.

First you export your custom sharepoint site from your development server into a file with a .dat extention. This file can be imported from the target server (at client end may be) so that we can deploy the customized version at client’s end this way. Within the import command we can specify the site collection as below.

stsadm -o import -url http://<servername>/site -filename <filename>

Although we can deploy a site collection like this, change requirements might raise some issues. for example if the client need to change the UI and all the styles, we have to export and import for each client requirement. and the data which was originally existed might be replaced due to the new import operation. This is not what developers would like to confront.

Therefore the solution to tackle this scenario is the Web Solution Packages (WSP). Package all UI components and style sheets into a one bundle as a feature and deploy it.  This involves creating a manifest file, feature manifest file, feature file and a data definition file (.ddf). As for my opinion, this is the best way for deploying standalone components to a front-end wwweb server. After the deployment, you can enable the feature from Site collection features under Site Actions. For the purpose of deploying .wsp files (cab file with a .wsp extention) we can following commands.

stsadm -o addsolution -name <filename>

stsadm -o deploysolution -name <filename> -local

This way, sharepoint developers can easily handle change requirements.

CyberLink PowerDVD Ultra 7.3.3514 Deluxe

The Ultimate Movie Experience

PowerDVD Ultra delivers the most extreme image performance for a movie player to date with complete support of the latest disc formats and optimization for high-definition graphics cards.

HD DVDs and Blu-ray Discs – New movie features and improved image detail.
Outstanding 1920 x 1080 image resolution – Support for HD monitors ensures unrivalled high-definition widescreen   video quality.
Hardware acceleration – Optimization for high-definition graphics processors from Intel, NVIDIA and ATI ensure ultra-smooth playback on the PC.
Hours of movie entertainment – Delivered by commercial discs carrying more content than standard DVDs.

see comments for info

Windows Sharepoint Services

Most of you might have heard about this buzz word WSS (Windows Sharepoint Services), which is an ideal solution for team sites or collaboration sites. It’s freely available and if you wish you can download it from here. But you need to have Windows 2003 server in your machine for WSS 3.0

Once you installed Sharepoint Services you can create a site collection using the Central Administration tool. Site creation so easy and that would take less than a miniute, and Sharepoint will create a site for you.

You can download screencasts here and learn to play with Sharepoint Services, because I used it and I know the power of it. It’s a brilliant solution for having a content management system to maintain by a particular team.

Multiview Control []

This simple article is about using the Multi View control in

The Multi View control is useful when you have different type of content to be display in one page. Multiview control is an ideal solution for that.

  1. First simply create a new project.
  2. Then drag a MultiView control to the page from the tool box.
  3. Now drag n drop view control from the tool box.
  4. So now you can add any content into this view control (Ex:-Textbox)
  5. You can add many view controls as you like, so that you can have separate content in your page.
  6. For your simplicity, I have shown my Default.aspx page so that you can follow that protoype.

<%@ Page Language=”C#” AutoEventWireup=”true”  CodeFile=”Default.aspx.cs” Inherits=”_Default” %><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” ““><html xmlns=”” >
<head runat=”server”>
    <title>Untitled Page</title>
    <form id=”form1″ runat=”server”>
        <br />
        <asp:RadioButtonList ID=”RadioButtonList1″ runat=”server” AutoPostBack=”True” OnSelectedIndexChanged=”RadioButtonList1_SelectedIndexChanged”
            <asp:ListItem Value=”0″>View 1</asp:ListItem>
            <asp:ListItem Value=”1″>View 2</asp:ListItem>
            <asp:ListItem Value=”2″>View 2</asp:ListItem>
        </asp:RadioButtonList><br />
        <br />
        <asp:MultiView ID=”MultiView1″ runat=”server”>
            <asp:View ID=”View1″ runat=”server”>
        <asp:TextBox ID=”TextBox1″ runat=”server”></asp:TextBox><br />
        <br />
        <asp:Button ID=”Button1″ runat=”server” Text=”Button” /> </asp:View>
            <asp:View ID=”View2″ runat=”server”>
                <asp:Calendar ID=”Calendar1″ runat=”server”></asp:Calendar>
            <asp:View ID=”View3″ runat=”server”>
                <asp:FileUpload ID=”FileUpload1″ runat=”server” /></asp:View>
        </asp:MultiView><br />
        <br />

In this example I used a radio button list to display different ‘Views’. You need to provide the handler event for that radioButton list. So poen your Default.aspx.cs and put the code below.using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)

    protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
        MultiView1.ActiveViewIndex = Convert.ToInt32(RadioButtonList1.SelectedValue);

 Now everything is done, simply run the project. As you select different radio buttons, the page is posted back and different content will be displayed in the same page. cool!