Buck
In the end Buck kill Rudy and says "He is gone! What am I suppose to do now?". In that very moment, I see him losing excitement in life. Not so fascinatingly, he agrees to come to the world of Ice age. All of a sudden when Rudy roars!! Buck finds reason to go back to his world and fight with Rudy all alone.
Its been many weeks, Buck is still in my thoughts and there is no sign of him stopping his blabbering. His existence has no meaning if there is no Rudy. He only knows living for finding opportunity to defeat Rudy. That's his purpose and he is always on his toes. Buck is talking endlessly, sometimes suddenly he pops at me and asks 'hey! whats' your purpose of life?' and I just find myself speechless.
Opera Unite - Browser with New Possibilities
Opera’s new suite ‘Unite’ lead the way in defining how we can maximize our internet experience through its impressive capabilities.
In This World - 15
"Never trust someone more than yourself, they will sure betray you."
2 'Why's
In This World - 14
Any mistake is a big failure if we don't understand why and how it happened.
DotNet: Generic Sorting Class
Recently, I was searching for a generic sorting approach on dotnet List. Many articles (Like one, two..etc) were suggesting standard way of creating IComparer
All you have to do is, copy paste the complete code in to a new .cs file.
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace Srushti.Business
{
public class GenericComparer<T> : IComparer<T>
{
string _propName = string.Empty;
bool _sortDirection = true;
public GenericComparer(string propertyName, bool SortAscending)
{
_propName = propertyName;
_sortDirection = SortAscending;
}
private int CompareAsc(object o1, object o2)
{
if (o1 is IComparable)
return ((IComparable)o1).CompareTo(o2);
else if (o1.Equals(o2))
return 0;
else
return o1.ToString().CompareTo(o2);
}
#region IComparer<T> Members
public int Compare(T x, T y)
{
PropertyInfo pi = x.GetType().GetProperty(_propName);
object o1 = pi.GetValue(x, null);
pi = y.GetType().GetProperty(_propName);
object o2 = pi.GetValue(y, null);
if (_sortDirection == false)
return CompareAsc(o1, o2) * -1;
else
return CompareAsc(o1, o2);
}
#endregion
}
}
...and start consuming it as shown below. You have to supply, property name (as String) on which you want to sort the list and sorting direction (Boolean, true for ascending and false for descending) to GenericComparer() constructor.
private void Form1_Load(object sender, EventArgs e)
{
List empList = new List();
empList.Add(new Employee() { ID = 1, Name = "Three" });
empList.Add(new Employee() { ID = 2, Name = "Two" });
empList.Add(new Employee() { ID = 3, Name = "One" });
/*** Generic Comparer ***/
empList.Sort(new GenericComparer("Name", true));
foreach (Employee em in empList)
MessageBox.Show(em.ID.ToString());
}
public class Employee
{
public int ID { get; set; }
public string Name { get; set; }
}
Please Note: Class properties with complex data types like DateTime, Nullable might require special attention.
Quick Quest - A Step Ahead
With a history of serving Kuvempu University for question paper generation, Quick Quest is now serving Scholar’s private college in Nigeria and receiving good feedback. The teacher using this software sent his experiences and I am very happy to publish his 'as is' words on main page of Quick Quest section.
This is a great encouragement to the development effort of Quick Quest.
Thanks to “The Scholar’s Private Collage, Akure, Nigeria” for choosing Quick Quest.
LINQ Quick Start
If you are a new bee to LINQ (Language Integrated Query), stunned by looking at big books and longer web pages on it, here is the relaxing news. Read “LINQ: The Future of Data Access in C# 3.0” by Joe Hummel. He presented LINQ in a simple and effective manner.
This book with 60 pages quickly give you pragmatic understanding of LINQ and push you to start using it in next hour. This is a good quick starter book in spades.
I personally prefer reading such quick start books to get glimpse of technology and later pick thicker book or detailed tech web links to dig deeper.
Present
The saxophone playing in lavish and lazy mood on my home theater audio system. Half filled crystal clear mocktail glass is standing still on the table. It served me 12 times. Ice cubes in the container melting slowly. Few small pieces of pizza left out in the take-away box. Ceiling fan is blowing cool air. With aesthetic gratification, I am sleeping in my bed. Not fully slipped in dream world. My senses are still enjoying the atmosphere. My right leg big and second toe shaking unnoticeably. Laptop silently downloading recent updates and also scanning for Conficker warm which recently attracted much of attention all over the world. Television is in mute, “DOA: Dead or Alive” action was on. Washing machine is busy cleaning dirty cloths. My salary credit message is sitting unread in my mobile message inbox. The alarm is down counting to wake me up in next 2 minutes…
I felt I needed this lazy day after my busy project work schedule at office. I spent restless week. I am lying in my bed like a reluctant chap. I got to hear this from somewhere my inside, "Is this what I wanted?"
I said- “of course Yes! Not sure about the future though. Whatever I have now is what all I use to dream in my college days. Life gifted me this day. One lazy day with immense satisfaction!"
Why I Am Not Ready for IE8?
Microsoft’s free web browser Internet Explorer 8 is out for public use and it started appearing on windows update programs list as well. This time IE8 is offering a tight competition to its rivalry browsers by putting up noticeable features like accelerators, web slices, common color tab groups, security filters and better performance in comparison with its previous flavors.
It was impressive in the beginning when I started using IE8 with all its new features; on my aggressive usage below points came to notice.
- Still few web sites are breaking
- Tabs are not responsive if one of the tabs is struggling
- Page rendering sometimes takes more processing time and
- Browser speed is not always faster

