[The views expressed on this website/blog are mine alone and do not necessarily reflect the views of my employer.]
Sunday, May 31, 2009
Thursday, May 28, 2009
Thursday, May 14, 2009
Weather modeling or web services aim to conserve power - Narendra Bhandari Intel
This is one of eye opening keynote. Just compiled some of the highlights from my twitter.
How S/W developers code programs has dramatic impact on power consumption in Data centers.
Loop vs Service has big impact on power.
It is time S/W professionals understand hardware chages taking place in hardware side of industry.
Dual Core to Multi Core to Many Core. Wether modelling to webservices everone need to optimise for sake of conserving power.
Visual Adernline, Intel Parallel Studio performance Tools from Intel to take advantage of hardware advances. Most of the tools are developed like VS2010 plug-ins and thus bring lot of value with simplied learning curve.
www.intel.com/go/parallel, www.intel.com/software and Intel Certified Solution Program
tech.ed 2009 Day2. Resul Pookutty's Key note session

Resul Pookutty's Key note session mesmerized everyone there. He is so impressive that session just got extended on and on.
He is so well prepared and organized with content. It is really unique of its kind.
Following is one of the clipping that were played at session. This one is from Oscar winning SDM.
Wednesday, May 13, 2009
Microsoft tech.ed 2009 Day1

Exciting first day. We shared pre-registration counter with Infosys.
TechEd 2009 - Hyderabad
Monday, May 11, 2009
Friday, May 08, 2009
icloud has launched
Xcerion XML internet OS/3. I posted this when I got beta my beta account. It is released last month.
icloud is a service based on the Xcerion Internet Operating System /3 (XIOS/3).
XIOS is the technical solution behind the service. It offers “A free online computer with desktop, applications and storage.”
icloud consists of a desktop with applications and files that you run through your web browser. Because it's running in the cloud (the internet) it can offer you impressive features such as easy sharing and rich collaboration.
Some of the feature include
It is available in three forms. Check this link. Also check link for applications made available by default.
Thursday, May 07, 2009
Cascading DropDownLists in DetailsView – Databinding error
I came across a requirement to have linked DropdownLists in insert mode of DetailsView bound to EntityDataSource.
In insert mode of DetailsView one of the fields is bound to a dropdownlist’s selected value. But the requirement here is values of dropdownlist vary depending on where condition bound to selected value of another dropdown list.
As shown above TaskID is one of the fields. But tasks vary based on project selected. This is achieved by converting TaskField to TemplateField. I have pasted below code for EditTemplate, InsertTemplate and ItemTempalte. In this only TaskID is bound column while project is added manually.
Without doing modifications shown below I was getting error
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
This is because upon postback DetailsView control is not re binding to selected value SelectedValue='<%# Bind("TaskID") %>'
<asp:TemplateField HeaderText="TaskID" SortExpression="TaskID">
<EditItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("TaskID") %>'></asp:Label>
</EditItemTemplate>
<InsertItemTemplate>
<asp:DropDownList ID="DropDownList5" runat="server" AutoPostBack="True"
DataSourceID="EntityDataSource5" DataTextField="ProjectName"
DataValueField="ProjectID" Width="100%">
</asp:DropDownList>
<asp:EntityDataSource ID="EntityDataSource5" runat="server"
ConnectionString="name=MyEntities" include="Tasks"
DefaultContainerName="MyEntities" EntitySetName="Projects">
</asp:EntityDataSource>
<br />
<asp:DropDownList ID="DropDownList4" runat="server"
DataSourceID="EntityDataSource6" DataTextField="TaskDescription"
DataValueField="TaskID" Width="100%">
</asp:DropDownList>
<asp:EntityDataSource ID="EntityDataSource6" runat="server"
ConnectionString="name=MyEntities"
DefaultContainerName="MyEntities" EntitySetName="Tasks"
Where="it.ProjectID==@ProjectID" >
<WhereParameters>
<asp:ControlParameter ControlID="DropDownList5" Name="ProjectID"
Type="Int32" PropertyName="SelectedValue" />
</WhereParameters>
</asp:EntityDataSource>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("TaskID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Also observe highlighted portions where autopostback is set for project dropdownlist and its selectedvalue is bound to DetailsView in where condition of Tasks Dropdownlist. But here TaskID selected value is not bound to TaskID field of DetailsView.
This binding is made in OnItemInserting event handler of DetailsView as shown below
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" CellPadding="4"
DataKeyNames="ResourceID" DataSourceID="EntityDataSource2" ForeColor="#333333"
GridLines="None" Height="50px" Width="125px" OnItemInserted="DetailsView1_ItemInserted"
DefaultMode="Insert" OnItemInserting="DetailsView1_OnItemInserting">
with page behind file containing handler like
protected void DetailsView1_OnItemInserting(object sender, DetailsViewInsertEventArgs e)
{
String TaskID = ((DropDownList)(DetailsView1.FindControl("DropDownList4"))).SelectedValue;
e.Values.Add("TaskID", TaskID);
}
Here inserting event is handled to add TaskID field to values based on selected value of TaskID’s DropDownlist.
Primary and Unique keys
Today one of my colleagues expressed difficulty in ensuring uniqueness for certain columns in a table.
Characteristics of these columns are
- There are not necessary (allow-null) columns for inserting a row in a table in which they are defined
- But when inserted they must form a unique combination
What could have been done so easily with Unique Key became so difficult because of lack of referential integrity.
These columns could have been defined in a different table and referenced with a foreign key relationship to primary table.
Such a simple thing could not be corrected as we are so tightly coupled with its structure. Awful! a classic example of making life miserable by knowingly living with self made mistakes.
Tuesday, May 05, 2009
Built-in functions of Transact-SQL
Many a times, we end up spending lot of time doing something that made available to us just due to lack of awareness.
Today I spent 30 minutes to get date as string from datetime column in database. Doing this from code is quite a trivial task.
But here I want to bind a source to UI control. DATENAME function solved my problem just like that. It is built-in function of SQL.
Here are some more references for built-in functions from MSDN
Aggregate Functions (Transact-SQL)
Configuration Functions (Transact-SQL)
Cryptographic Functions (Transact-SQL)
Cursor Functions (Transact-SQL)
Date and Time Data Types and Functions (Transact-SQL)
Mathematical Functions (Transact-SQL)
Metadata Functions (Transact-SQL)
Ranking Functions (Transact-SQL)
Replication Functions (Transact-SQL)
Rowset Functions (Transact-SQL)
Security Functions (Transact-SQL)
String Functions (Transact-SQL)
System Functions (Transact-SQL)
System Statistical Functions (Transact-SQL)
Text and Image Functions (Transact-SQL)
Monday, May 04, 2009
Wild west stunt show in Ramoji Film City
Ramoji Film City, the largest film studio complex in the world as certified by Guinness World Records, is an ultimate leisure destination for holidays in Hyderabad. Following photograph taken before the start of the show. It is just a part of complete set.
This particular show is so realistic and really makes you watch again and again.
MSDN for low bandwidth
Low bandwidth option of MSDN is really worth giving a try. Its much better than regular one.
Find some of the low bandwidth options for MSDN.
Low bandwidth
http://msdn.microsoft.com/en-us/library/system.collections.arraylist(loband).aspx
This option is really good.
Mobile/PDA
http://msdn.microsoft.com/en-us/library/system.collections.arraylist(pda).aspx
Not quite there. Option to choose language is desired.
Printer-friendly
http://msdn.microsoft.com/en-us/library/system.collections.arraylist(printer).aspx
Familiar one. But not so inviting
MSDN Inside the (IDE)
http://msdn.microsoft.com/en-us/library/system.collections.arraylist(ide).aspx
Useful, though can’t understand why feedback banner hides content at top. MSDN folks to correct this.
Friday, May 01, 2009
Using Set operations (SQL) to detect differences between two tables
Identifying differences between two tables can become quite a daunting task.
Using SQL set operations like {UNION,INTERSECT,EXCEPT} can greatly simply this is process.
Any attempt to use compare operations on .Net runtime turns out to be very costly affair for these operations.
I tried creating a set operations. Here my intention is to pass two tables which share same schema, then pass on ID field which
is anchor. This results a single table specifying Addedd/Changed/Deleted/UnChanged records. That makes whole set.
SELECT t1.*, 'Added'FROMTable1 t1
LEFT JOINTable2 t2 ONt1.ID = t2.ID
WHEREt2.ID IS NULL
union
SELECTt1.*,'Changed'
FROMTable1 t1
INNER JOINTable2 t2 ONt1.ID = t2.ID
except
SELECTt2.*,'Changed'
FROMTable1 t1
INNER JOINTable2 t2 ONt1.ID = t2.ID
union
SELECTt2.*, 'Deleted'
FROMTable1 t1
RIGHT JOINTable2 t2 ONt1.ID = t2.ID
WHEREt1.ID IS NULL
union
SELECTt1.*,'UnChanged'
FROMTable1 t1
INNER JOINTable2 t2 ONt1.ID = t2.ID
INTERSECT
SELECTt2.*,'UnChanged'
FROMTable1 t1
INNER JOINTable2 t2 ONt1.ID = t2.ID
ORDER BY XX
I tried this with two tables each having 100 columns and 5000 rows. I could detect above mentioned changes like Added/Changed/Deleted/UnChanged within 18 seconds.
Thus I believe set operations can offer much cleaner and simpler solution in such scenarios.
Monday, April 27, 2009
A Self-confessed Slave
“For people who are stupid, we say that they lack a brain. Figuratively, we associate a condition with an organ and say that that organ is missing. So if someone is weak and pliable, we say that they lack a spine or a backbone. Someone cruel and inhuman, we refer to as heartless. With the lack of courage, we associate gutlessness. Emasculation has obvious connections. So I was wondering: which organ or part of the body is there an association with ethics? If someone lacks all sense of morality and ethics, what part of the body are they missing?”
Though the context of original article is different, these words carry much broader meaning.
In my sense dealing with a cruel person is far easier than dealing with unethical person. Moral consciousness is the ability by means of which we perceive what is good and what is bad. In my opinion those who lack sense of morality are deaf and those who lack ethics are blind.
We we are placed in a situation to judge based on arguments from either side we are expected to show morality. That is why I feel lack of morality is like being deaf.
Similarly ethics are intangible. They are just perceived. But only those with an eye can perceive them. Thus in my opinion those who lack ethics are blind.
Friday, April 17, 2009
Project task types
Often I get confused about kind of task to pickup while adding tasks in project. More than confusion it is like self-contradiction.
Today I thought of making my own notes about ‘Fixed Type’, ‘Fixed Duration’, Fixed Work’ kind of tasks with “Effort Driven” option. This is very much subjective in nature and differs in different contexts. But having a context as a reference can help making better judgment.
Fixed Units
Let us assume a scenario
Need following kind of resources to perform a task
1) Architect - 1 - 50%
2) Development Lead - 1 - 100%
3) Full-time developers - 2 - 100%
4) Test Lead - 1 - 100%
5) Full-time testers - 2 - 100%
6) Tech writer - 1 - 50%
7) Designer - 1 - 25%
Initial estimate to complete this task is 10 days.
After 4 days, team realizes that it actually takes 2 additional days(total of 12 days) to complete the task.
Without "effort driven" option
All resources will be charged for 12 days as per units (%), thus increasing cost of the task. Even adding additional resources will not help in completing task within 10 days.
With "effort driven" option
There is a possibility to add resources in order to complete task within 10 days. However the total cost of the task will be same as above.
These are such tasks where we hard-lock resources and monitor duration. As task progresses and understanding of task improves, "effort driven" option can be exercised to meet schedules by adding more resources. But this is not commonly practiced for this kind of tasks.
Summary
Here cost of task and duration(within permissible period) is dynamic but resource availability is constrained. Normally core team is assigned with Fixed unit kind of tasks.
Fixed Work
In this mode "Effort Driven" option is default and can not be changed.
These are such types of tasks where know-how is well known but resource availability is not fixed. Moreover these type of tasks can span across comfortable durations. If target date gets postponed, resources become free accordingly. For some reason if work-effort increases or work-units reduce, duration increases accordingly.
Summary
Here cost of task is fixed but duration is dynamic (within acceptable period). Duration can be minimized based on resource availability.
Fixed duration
These are time constrained tasks. Where we start with experts and try to demystify complications as soon as possible. Then exercise "Effort Driven" option to meet target dates by adding additional resources.
Summary
Here duration is fixed but cost and resources are not constrained. Theses are like “support” kind of tasks where business continuity is involved.
Wednesday, April 15, 2009
Know your polling station
http://www.cyberabadpolice.gov.in/knowyourpolicestation/pollingstations/
First get your polling station number from http://ceoandhra.nic.in/Final_erolls_2009_II.html then check for polling station number under police station from above site.
Looking for route is a bit tedious task, but the image resolution is good enough. You can zoom in and check for Route number and polling station number
Excellent work done by Cyberabad police.
Tuesday, April 14, 2009
ABB Opens New Automation Products Plant In India
ABB has inaugurated its green field automation products facility near Bangalore, India, to manufacture automation products.
Spread over 18 acres, the factory will manufacture products such as air circuit breakers, switch fuse units, molded-case circuit breakers, low- and medium-voltage drives and systems, high-power rectifiers, static excitation systems and main and auxiliary traction converters, among others.
Commending ABB’s growth in the last six to seven years, Sjoekvist notes that the virtual debt-free status and a healthy order backlog will help ABB tide over the global economic crisis. “Improving energy efficiency and focus on renewable energy were key factors in adding value,” he says
What Went Wrong Ethically in the Economic Collapse
“Shoo. You can’t attend this meeting. We are going to discuss things here that you will tell me I shouldn’t do. I don’t want that on the record and you can’t stop me.”