Buck

Posted: Friday, September 11, 2009 | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 0 comments

"Ice Age 3: Dawn of the Dinosaurs" is a neat pack of humor, adventure with be on the mind characters. The fun begins when alone, One-eyed, dino-hunting weasel called 'Buck', who is sophisticated yet not so complicated, agrees to find 'floppy green thing' with his set of rules and killing his life time enemy Rudy (T Rex Dino). After that there are many eye catching events and nice animation work.

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

Posted: Thursday, September 03, 2009 | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 1 comments

When Microsoft, Mozilla and Google are competing hard to increase browser share by tweaking their products, opera silently concentrated on innovation and sprung with neat free stuffs.

Opera’s new suite ‘Unite’ lead the way in defining how we can maximize our internet experience through its impressive capabilities.

This amazing software is not just a ‘browser’ loading web pages lightning fast with Turbo technology; it’s a web server in the browser, messenger, media/file/photo sharing host, a fridge (people can leave a message for you) and can be more in future!!!

If you are using FireFox, Chrome or Safari and you have set of strong technical reasons for why you are using it over Internet Explorer, then it’s time for you to checkout Opera Unite 10. From the technology point of view, your satisfaction is guaranteed.

In This World - 15

Posted: Thursday, August 20, 2009 | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 1 comments

"Never trust someone more than yourself, they will sure betray you."

2 'Why's

Posted: Friday, July 03, 2009 | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 0 comments

1. Why Microsoft is still using Flash when its own baby- Silverlight light is out there?


2. As shown above, having popup menu open on IE8, why Windows Start menu does not appear when windows key (on keyboard) is pressed? (Windows Vista with SP2 Operating system)

Grr...

In This World - 14

Posted: Thursday, June 11, 2009 | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 0 comments

Any mistake is a big failure if we don't understand why and how it happened.

DotNet: Generic Sorting Class

Posted: Friday, June 05, 2009 | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 0 comments

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 implementer class and using that with generic list (List <T>) in our application. Writing IComparer class for every business object not only take huge time also create challenges in code management when it grow considerably. So, here is simple and effective generic sorting class which can be used with any custom business object and can be sorted on any one of its properties.

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

Posted: Thursday, May 21, 2009 | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 0 comments

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

Posted: Sunday, April 12, 2009 | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 0 comments

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

Posted: Sunday, April 05, 2009 | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 0 comments

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?

Posted: | Posted by Pavan Gayakwad | SrushtiSoft | Labels: 0 comments

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
Let me admit, I got addicted to Firefox though it’s a memory hogging browser. But it just doesn’t toddle when I am doing too many things on it. IE8 is an obtrusive update for IE7/IE6 users. Users like me have slim to none chances to migrate to IE8 yet.