Convert List to a ObservableCollection

// Nadun's Weblog
Extention method to convert list to a observable Collection public static class CollectionExtensions { public static ObservableCollection ToObservableCollection(this IEnumerable coll) { var c = new ObservableCollection(); foreach (var e in coll) c.Add(e); return c; } }

ඔබ තරම් පෙම් කල කිසිවෙක්

// Nadun's Weblog
ඔබ තරම් පෙම් කල කිසිවෙක් නැති තරම් මේ ලෝකයෙ කොහෙවත් ඔබට මං ආදරෙ බව මෙතරම් වැටහුනේ ඔබ වෙන්වි ගිය දා ඔය නෙතු හැඬ වූ තරම් ඔබ පෙම් කෙරූ තරම් අදහන්නත් බෑ කොහෙ තිබුණාදැයි මේ තරම් ආදරේ... මේ තරම් ආදරේ රැය පුරා ඉකිගසා රතට හැරී දෙනුවන් පුර මල් සිනා මැවෙනවා ගිලන්වී හද පාරලා ආයෙත් ඔබ මට හිමිවෙයි නම් ආත්මයෙන් ඔබ අදහන්නම් ...

Happiness - 2

// Nadun's Weblog
Happiness is my birthright. I forgive myself for all of my mistakes--and celebrate the lessons they let me learn. I am enough. What other people think of me is none of my business. When in doubt, breathe. Source http://spoiledyogi.blogspot.com/

Happiness - 1

// Nadun's Weblog
The yamas for a happy, better life :) Truthfulness Non-harming Non-stealing Greadlessness Sexual Responsibility source - http://spoiledyogi.blogspot.com/

Dealing with Tragedy

// Nadun's Weblog
Dealing with Tragedy - Really good, valuable blog post from Spoiled Yogi.(http://spoiledyogi.blogspot.com/) This teaches us many things about the life. I watched the news coverage in horror last week. Like most of the country, I was stunned and confused. How could anyone harm children as young as the victims in the school shooting in Connecticut? My mind raced as the ...

How to Install a Magento Extension Using FTP

// Nadun's Weblog
I had to install a magento extension using FTP recently. These 2 blog posts helped me immensely regarding that. http://www.aschroder.com/2010/05/installing-a-magento-extension-manually-via-ftp-or-ssh/ http://www.groovecommerce.com/ecommerce-blog/magento/developer-toolbox-a-guide-for-installing-magento-extensions/ If you refer these two blogs I am sure you would be able to manually install an extension manually even though you are not a hardcore magento guy. Magento extensions are normally developed to insta

Issues you might face when Setting Up Magento in GoDaddy Shared Hosting

// Nadun's Weblog
Magento is a powerful open-source ecommerce web application. Recently I hosted magento in a Godaddy. While setting up magento in godaddy I ran into various issues. Here are some of the issues I faced and How I resolved them 1.) When site is installed you get the message "No input file specified" To resolve that you should renam php.ini file ...

Date Selector - Silverlight Custom Control

// Nadun's Weblog
I have created a silverlight custom control which can be used to select date in a user friendly way. It is similar to date selector control available to set birth date in facebook registration. Standard date picker control in silverlight and WPF is not user friendly and user has to perform several clicks to select a date. This control is ...

Encryption in Silverlight and .NET Applications

// Nadun's Weblog
I wanted to encrypt some sensitive data in a Silverlight application and decry pt that in the server. Sergey Barskiy's has written a good post about that. Here is the code. Encryption functionality using System; using System.Text; using System.Security.Cryptography; using System.IO; namespace Encryption { public static class EncryptionUtility { /// /// Encrypt the data /// /// String to encrypt /// ...

Determining if CheckBoxes are checked in a Silverlight Datagrid.

// Nadun's Weblog
This is the simplest way of adding a checked box column to a data grid in silver light and iterate through the values to determine which values are checked. The code is straight forward. <data:DataGrid x:Name="gridActivityList" Margin="0" AutoGenerateColumns="False"> <data:DataGrid.Columns> <data:DataGridTextColumn x:Name="Activity" Binding="{Binding ActivityName}" Header="Activity" Width="200"/> <data:DataGridTemplateColumn> <data:DataGridTemplateColumn.CellTemplate> <DataT

MySQL - Having reserved key word as a column name

// Nadun's Weblog
In MySql you will run into trouble when you try to execute a query if you have a reserved keyword as a column name. As an example let's take "update google_mapping set Open_Market='N' where Group='Taiwan';. Group is a reserved keyword in MySql. Solution is to surround keyword with ``. So in the above example you have to modify the query ...

Esoteric programming language

// Nadun's Weblog
Esoteric programming language - Wikipedia, the free encyclopediaEscoteric programming languages! Well I heard about them today for the first time. These programming languages are not used in real world programming. They have mainly used to test the boundaries of computer programming language design, as a joke and as a prof of concept by hackers and hobbyists . You can find ...

David Parnas - Father of the Software Engineering

// Nadun's Weblog
David Parnas - Wikipedia, the free encyclopediaRecently I heard that David Parnas is considered as the father of modern day Software Engineering. . Geez, I am in the Software Engineering field all these years with out knowing the father of Software Engineering. ;) He has published many papers regarding Software Architecture.

Brief Introduction to Object Oriented Programming Fundamentals

// Nadun's Weblog
Main Fundamental concepts of Object Oriented Programming are 1. Data Abstraction 2. Encapsulation 3. Polymorphism 4. Inheritance1. Data Abstraction - Process of Grouping together fields and methods and defining classes. 2.Data Encapsulation - Hiding the implementation details. Provides a barrier to prevent misuse. 3.Inheritance - Receiving responsibility of parents. 4. Polymorphism - Ability to substitute a one type for another ...

Huawei E220, the device has been disconnected or is unavailable

// Nadun's Weblog
Huawei USB modem didn't work in my Windows Vista laptop. my2cent blog helped me to resolve the issue. :)You can download Huawei E220 Vista Firmware (v11.110.05.00.00) from the link below.http://www.mobilebroadbandrocks.com/download/huawei-e220-vista-firmware-v11110050000As in the screen shot below shows Device manager should list Huawei in the Modems section if the device has been correctly install in the machine.

How to view .bin and .cue media files

// Nadun's Weblog
I used powerISO and it was easy. You can find more info regarding thisWatch .bin movie file with Windows VLC playerTried to use Demon Pro too. It didn't work out well. Maybe you might be lucky. ;)How to play .bin, .cue, .dat and .rar movie file ...

Advance Google Searching

// Nadun's Weblog
Google is the leader when it comes to search engines. With the google search engine here are some techniques to get various kind of usual information. # (site:) - Domain restricted search. Shows how many URLs are indexed by Google from a directory including all the sub domains. Also shows sites of specific top level domain. e.g; site:www.google.com, site: google.com, ...