Archive

Archive for August, 2009

I am back to town

August 31st, 2009 No comments

After a small pause due to issues in family, I am back to tech world.

Hi… whats up???

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Categories: General

Most Downloaded .NET Web projects in CodePlex

August 21st, 2009 No comments

List as on 21 Aug 2009

 

Content Management Systems (CMS)

 

  1. DotNetNuke® Community Edition
  2. Umbraco CMS
  3. mojoPortal
  4. N2 CMS
  5. Kooboo CMS

 

Blogs

 

  1. BlogEngine.NET
  2. dasBlog
  3. Oxite

 

eCommerce

 

  1. nopCommerce. Open Source online shop e-commerce solution.
  2. NB_Store – Free DotNetNuke Ecommerce Catalog Module
VN:F [1.9.18_1163]
Rating: 5.0/5 (1 vote cast)
Categories: DOTNET, News

VSTO: Outlook – Add a contact programmatically – in C#

August 21st, 2009 No comments

Here goes the code:

            folder = this.Application.Session
.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts);
 
            Outlook.ContactItem ci = (ContactItem)folder
.Items.Add(OlItemType.olContactItem);
            ci.FirstName = "xyz";
            ci.LastName = "zyx";
            ci.Save();
VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Categories: C#, Code Snippets, VSTO

Find your lucky number in c#

August 19th, 2009 No comments

A traditional hobby script based on numerology ;)

You can download the WinForms application from: http://kidoos.net/media/p/578.aspx

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
 
        public Form1()
        {
            InitializeComponent();
        }
 
        private void btnClose_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
 
 
        private void dtpicker_ValueChanged(object sender, EventArgs e)
        {
            lblLifePathNumber.Text = LifePathNumber(dtpicker.Value);
        }
 
        private int GetSumOfDigits(string num)
        {
            int sum = num.ToCharArray().Sum(n => n - '0');
            if (sum.ToString().Length > 1)
            {
                sum = GetSumOfDigits(sum.ToString());
            }
 
            return sum;
 
        }
 
        private string LifePathNumber(DateTime dt)
        {
            return GetSumOfDigits(dt.Month.ToString() + dt.Year.ToString()+  dt.Day.ToString()).ToString();
        }
 
        private void Form1_Load(object sender, EventArgs e)
        {
            dtpicker.MaxDate = DateTime.Today;
        }
 
        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Thanks for testing. PraVeeN - ninethsense@hotmail.com", "Thank You", MessageBoxButtons.OK);
        }
    }
}
VN:F [1.9.18_1163]
Rating: 5.0/5 (1 vote cast)
Categories: C#, Code Snippets

Free eBook O’Reilly C# 3.0 Pocket Reference 2nd Edition

August 17th, 2009 No comments

Just found a good free eBook on Redgate website.

  • Download it here
  • Direct download link 
VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Categories: C#, News

High-Performance .NET Application Development & Architecture

August 16th, 2009 No comments

Found this useful link while surfing.

Check this: http://www.developerfusion.com/article/5385/highperformance-net-application-development-architecture/

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Categories: Architecture, ASP.NET, C#, DOTNET

Virtual TechDays: FREE Technical Training Opportunity‏

August 13th, 2009 No comments

image

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Categories: News

My new cell number

August 13th, 2009 No comments

+91_974_533_9033

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Categories: General

AJAX Language API

August 8th, 2009 No comments

Found this one interesting.

With the AJAX Language API, you can translate and detect the language of blocks of text within a webpage using only JavaScript. In addition, you can enable transliteration on any textfield or textarea in your web page. For example, if you were transliterating to Hindi, this API will allow users to phonetically spell out Hindi words using English and have them appear in the Hindi script.

 

Read more here

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Categories: Web Design

Apply LINQ on XML string

August 6th, 2009 3 comments

Use the System.Xml.Linq namespace for this.

Here is a sample program:

string str = @"
                    <LanguageDetails>
                        <UserNode>
                            <Lang>
                                <![CDATA[en]]>
                            </Lang>
                        </UserNode>
                    </LanguageDetails>";
 
            // XDocument xdoc = XDocument.Load(new StringReader(str));
            // Update: more faster method
            XDocument xdoc = XDocument.Parse(str);
 
            var lang = from d in xdoc.Elements("LanguageDetails")
						.Elements("UserNode")
                       select d;
 
            MessageBox.Show( 
		lang.FirstOrDefault().Element("Lang").Value 
		);
VN:F [1.9.18_1163]
Rating: 3.2/5 (6 votes cast)
Categories: C#, Code Snippets, DOTNET