Outlook Redemption (Redemption.dll) and Background Threading do not mix.

February 8th, 2012 1 comment

Outlook Redemption is a very nice library which allows access to many Outlook functions many of those not exposed via the Outlook object model. We are currently using Redemption in our application to add outlook appointments with reminders, pop email messages with pre-populated information, etc.

We wrapped the Redemption.dll into our own Singleton class and called it OutlookRedemption as you will see in the following code examples.

We have had a couple of situations where emailing from our application stops working or works intermittently and in both of those occurrences, the culprit was using the API in a back ground thread.

Read more…

Categories: C#, Programming, Threading Tags:

ClickOnce Deployment Architecture

October 27th, 2011 No comments

While continuing my research and learning of ClickOnce deployment, I came across a very interesting page that explains Click Once Deployment Architecture. The article describes how a ClickOnce installation is physically installed on a client computer.

Application Publication

Each application publication has:

  • A deployment manifest – A deployment manifest is an XML file that describes a ClickOnce deployment, including the identification of the current ClickOnce application version to deploy.

  • An application manifest – An application manifest is an XML file that describes an application that is deployed using ClickOnce.

  • All of the application files for that version.
The client computer must have the .NET framework 2.0 or later installed in order to do a ClickOnce deployment to that computer. The .NET framework can be deployed in a variety of ways including the ClickOnce Bootstrapper.

Read more…

2011 Daytona 500 – NASCAR 14 Car Crash -

February 20th, 2011 1 comment

In Daytona Beach, Florida today, the 2011 edition of the Daytona 500 Sprint Cup series race was ran. The winner was Trevor Bayne, who making his first start at Daytona became the youngest driver ever to win the famed race.  Trevor celebrated his 20th birthday yesterday. The former youngest driver to win a Daytona 500 was Jeff Gordon who was 25 years old at the 1997 event.

Trevor Bayne gave Wood Brothers Racing team their first Daytona 500 victory since 1976 and only the fourth overall victory in the last 20 years.

“Am I dreaming? Is this real? I don’t even know where to go.” said the stunned driver to his team at the end of the race as he drove his #21 Motor Craft Ford to victory lane.

2011 Daytona 500 Results

Here is a link to video of a 14-car crash which was the result of team mates Michael Waltrip and David Reutimann as they bumped on a “push” maneuver.

Learn more about NASCAR: NASCAR 101

News Sources: Stats.Com , FanHouse.Com

Categories: Etc, Sports Tags: ,

ClickOnce Deployment – Deploying multiple versions of the same application

February 3rd, 2011 1 comment

According to Wikipedia, ClickOnce is a Microsoft technology that enables the user base to install and run a Windows Application by clicking a link in a web page. ClickOnce is a component of Microsoft .NET Framework 2.0 and later and it supports deploying applications made with Windows Forms or Windows Presentation Foundation.

ClickOnce attempts to bring the ease of deployment similar to web applications to the Windows user base. ClickOnce aims to solve three common problems with conventional methods of deploying an application:

  1. The sometimes difficulty of updating a deployed application.
  2. The impact of an application on a user’s computer system.
  3. The need for administrator permission in order to install or update the application.

WPF coding mutually exclusive Check Boxes with Data Binding

January 23rd, 2011 2 comments

Last week I was coding a View that required for me to show two ChekBox controls which were mutually exclusive in the same way that two or more RadioButton controls that belong to the same group would interact.

My problem was that one Boolean property which came from a bit column in the database needed to drive which CheckBox would be checked: “Yes” or “No”.

In this example I attempt to show how to code two mutually exclusive checkboxes while binding to the Boolean property described above:

image

The Name of the Property in the Code Behind file that we are going to bind to is AddInsurance.

Here is the XAML code:

Read more…

Categories: C#, Programming, WPF Tags: , ,

Creating a Singleton (Instance) Class in C#

January 22nd, 2011 No comments

In application development there are various situations in which it makes sense to code a class in a manner that it can be created (instantiated) once and used throughout the lifetime of the application. Generally this type of class is called a Singleton object.

When creating and object, CPU cycles are used up during the:

  • Creation of the Object
  • Initialization of the Object
  • Loading of the Object, including seed data from the dB etc.

Read more…

How to uninstall the Zugo Toolbar

January 19th, 2011 No comments

I was reading a post on ReadWriteWeb that lists Facebook’s top advertisers in 2010.

The number 3 Facebook advertiser on the list is a company that somewhat misleads people into installing a browser toolbar that is not easy to uninstall. I will let you read more about Facebook’s 3rd Biggest Advertiser in 2010 on your own.

If you are one of those people that does not know how to uninstall the Zugo Toolbar, here is a link to the Zugo website that may solve your problem: http://www.zugo.com/uninstall/

Good luck.

Categories: Etc Tags: ,

Include Application Name in Connection Strings

January 13th, 2011 2 comments

In addition to the SQL Server, Database, User ID and Password, you may want to include the Application Name in your connection string parameters. Application Name is an optional argument, but it can greatly help you to segregate the SQL that your application is executing from any other database calls that are being sent from other applications/processes.

Data Source=myServer;
Initial Catalog=myDB;
User Id=myUsername;
Password=myPassword;
Application Name=myApp;

In example:

Read more…

Jose Jose sings “El Triste” at the Latin Music Festival II 1970

December 28th, 2010 No comments

José José’s big break came on March 25, 1970, when he represented Mexico in an international song festival, the "II Festival de la Canción Latina" (Latin Song Festival II, predecessor of the OTI Festival) with an amazing performance of the song "El Triste". The performance of the song was so impressive that caused tears, standing ovations, expressions of amazement and cheers from Angélica María, Alberto Vázquez, Marco Antonio Muñiz, the judges and the spectators in the Teatro Ferrocarrilero in Mexico City.

The fact that José José got the third place shocked the audience.[11]

El Triste by Roberto Cantoral sang by the Master, Jose Jose

 

After the hit of "El Triste", his popular romantic ballad style mixed with a unique voice made him the star of stars in Mexico. He started his first international tour through Los Angeles, Miami, Puerto Rico, Guatemala, Costa Rica, Brazil and Argentina. José played the lead role in small movies like Sueño de amor,[12] Buscando una sonrisa[13] and La carrera del millón.[14]

Source: WikiPedia

Categories: Etc Tags: , , ,

The Object-Oriented Thought Process …

July 19th, 2010 2 comments

Recently I came across a book which was a recommendation from a senior colleague at work. The Object-Oriented Thought Process by Matt Weisfeld. Although the first three chapters can seem a bit basic at first glance, they help to remind ourselves and reset in our minds what a true OO approach to a given problem should be.

Here is the Conclusion for (summary) Chapter 1 – Introduction to OO Concepts:

Read more…

Categories: Programming Tags: