Microsoft Enterprise Library 5.0

April 2010 is just jammed packed with Microsoft releasing products to maintenance (RTM) and joining the ranks of SharePoint 2010, Office 2010, Visual Studio .NET 2010 is the Enterprise Library 5.0. While it has been a number of years since I last used this library I am beginning to think that I need to revisit this product. I recall years back that I was please with earlier version and I can now only imagine how far this library has progressed and how much time it can save me.

Microsoft Enterprise Library 5.0 contains the following application blocks:

  • Caching Application Block: Developers can use this application block to incorporate a cache in their applications. Pluggable cache providers and persistent backing stores are supported.
  • Cryptography Application Block: Developers can use this application block to incorporate hashing and symmetric encryption in their applications.
  • Data Access Application Block: Developers can use this application block to incorporate standard database functionality in their applications, including both synchronous and asynchronous data access and returning data in a range of formats.
  • Exception Handling Application Block: Developers and policy makers can use this application block to create a consistent strategy for processing exceptions that occur throughout the architectural layers of enterprise applications.
  • Logging Application Block: Developers can use this application block to include logging functionality for a wide range of logging targets in their applications. This release further improves logging performance.
  • Policy Injection Application Block: Powered by the Interception mechanism built in Unity, this application block can be used to implement interception policies to streamline the implementation of common features, such as logging, caching, exception handling, and validation, across a system.
  • Security Application Block: Developers can use this application block to incorporate authorization and security caching functionality in their applications.
  • Unity Application Block: Developers can use this application block as a lightweight and extensible dependency injection container with support for constructor, property, and method call injection, as well as instance and type interception.
  • Validation Application Block: Developers can use this application block to create validation rules for business objects that can be used across different layers of their applications.

I went back to code that I had archived from years back to revisit the Data Access Block. Consider the following examples:

private void btnUseDataReader_Click(object sender, System.EventArgs e)
{
Database db = DatabaseFactory.CreateDatabase();
IDataReader reader = db.ExecuteReader(CommandType.Text, "SELECT TOP 10 * FROM Products ORDER BY ProductName");

dgProducts.DataSource = reader;
dgProducts.DataBind();
}

private void btnUseDataSet_Click(object sender, System.EventArgs e)
{
Database db = DatabaseFactory.CreateDatabase();
DataSet ds = db.ExecuteDataSet(db.GetSqlStringCommandWrapper("SELECT TOP 10 * FROM Products ORDER BY ProductName"));

dgProducts.DataSource = ds;
dgProducts.DataBind();
}

private void categories_SelectedIndexChanged(object sender, System.EventArgs e)
{
dgSalesByCategory.DataSource = DatabaseFactory.CreateDatabase().ExecuteReader("SalesByCategory", categories.SelectedValue, "1998");
dgSalesByCategory.DataBind();
}

A cool feature of 5.0 is the Enterprise Library Configuration Application Block Console which is the graphical interface to the library. This user interface is both user friendly as far as use and provides a quick look a the various blocks in terms as how they are used.

Upon revisiting the example above my question to you is this? Do you utilize the Enterprise Library on a daily basis? If so, in your own words how much time do you feel it saves during the development phase versus writing your own code?

Creating A System Image With Windows 7

Consider the following, you have just purchased that new computer and spent hours installing all of your software and now you have everything to your taste. I am not sure about you, but I hate setting up a new computer and once I have everything I want in place the first step I take is to create a system image. This is an important step should you ever find yourself wanting to perform a fresh installation of Windows in the future. A system image is essentially a snapshot of your computer at a given point in time. Be sure that you have plenty of blank disc on hand and time to finish this process. The time required depends upon how much software you install before starting the image process. Here is Microsoft’s definition of a system image:

A system image is an exact copy of a drive. By default, a system image includes the drives required for Windows to run. It also includes Windows and your system settings, programs, and files. You can use a system image to restore the contents of your computer if your hard disk or computer ever stops working. When you restore your computer from a system image, it’s a complete restoration—you can’t choose individual items to restore, and all of your current programs, system settings, and files are replaced with the contents of the system image.

You should know that an image will contain any data you may have but do not confuse an image with a backup. The do differ greatly, for this reason you must implement a backup plan.

Why Have A Data Backup Plan

There are instances when a computer becomes your life and you would feel completely lifeless without it. I know some people may say people should get a life, but if you work in the field of Information Technology you have no recourse but to regularly backup your data. There are various reasons for the failure and I will not begin to list them. Just know this, what can go wrong will go wrong! For this reason consider a backup plan that works best for you.

Create A System Image

Open the Control Panel and select “Back up your computer“:

control panel

Click “Create system image“:

create a system image

Decide where you want to save the image:

save backup dialog

Confirm your backup:

confirm backup

As you can from the screen shot above, a high number of blank DVD disc will be required. Once the process completes be sure to store these disc in a safe location for future needs. When you are ready to restore the system image utilize the “System Recover Options” to refresh your computer.

system recovery options

Once you complete this process your computer is as it was the day you first opened it with the difference being you also have all your software in place. Not bad! I can tell you from first hand experience that the process is painless both in the area of creating and restoring an image and it does in fact save a great deal of time in the event you want to format your computer and start from scratch.

Trust me, a little time spent up front can both save time in the future. A system image is a must for anyone who is picky about housekeeping when it comes to a safe a reliable computer.

Microsoft BizSpark Helping Startups

Microsoft BizSpark is nothing new but I did want to take the time to write about this unique opportunity that Microsoft has opened the door to for potential companies seeking to make their mark in the world of information technology. In fact there have been a number of startups that has utilized this program to make their mark in the world of information technology.

If you have ever considered a startup I am sure you have found is discouraging considering the reasons and hurdles you will face. Be sure that you know what you’re getting into and the following rules should apply:

  1. You know how to do something that nobody else can or at the very least you do it better.
  2. You have a lower cost where possible.
  3. You have a better understanding of the client than anyone else.
  4. Do not start up a company simply to be your own boss. The objective must and should be the success of the company.

Of course one of the largest hurdles is finding money to get started and you may have considered footing the bill yourself, turning to friends and families, or even sought out venture capitalist. The cold hard truth is to make money one must first spend money and this is where BizSpark can help reduce the upfront cost of purchasing software from Microsoft. There are rules and procedures that you must follow but considering the software you may have access to can represent tens of thousands dollars the savings could be substantial. Consider the following for example:

  • Azure Services Platform: The Azure Services Platform is an internet-scale cloud services platform hosted in Microsoft data centers, which provides an operating system and a set of developer services that can be used individually or together. Azure’s flexible and interoperable platform can be used to build new applications to run from the cloud or enhance existing applications with cloud-based capabilities. Its open architecture gives developers the choice to build web applications, applications running on connected devices, PCs, servers, or hybrid solutions offering the best of online and on-premises.
  • Microsoft Expression Studio with MSDN Premium Subscription: Through the innovative Microsoft Expression toolset, your development team can collaborate closely to create the next generation of Web solutions. Deliver rich, interactive user experiences built on a solid standards-based platform. And get organized by easily managing digital assets and content.
  • Microsoft Office: Microsoft Office Professional 2007 is a complete suite of productivity and database software that will help you save time and stay organized. Office includes tools for teams to collect, organize, and share critical information across geographic or organizational boundaries.
  • and so much more. Be sure to check out the product listing here.

If you have ever considered branching out on your own then you will not want to miss this opportunity. I must say that I applaud Microsoft for taking a gamble on those that wish to enter the game by providing such a wonderful program that at the very least addresses one area of cost and we all know that purchasing enterprise quality software is not at all inexpensive.

Visit the startup zone today and begin fulfilling tour dream.

Other Resources

[rss feed="http://blogs.technet.com/microsoft_blog/rss.xml" num="5" excerpt="false"]

Conserve Energy and Save Money With Microsoft Hohm

Conservation has been a buzzword for several years, now, as our world’s resources are in greater demand than ever. At almost every turn, you can hear how and why we should cut down or find different ways of doing things. I am not yelling global warming nor am I here to argue for or against it (it is all a hoax). Rather my point is saving money and who doesn’t like saving money. Microsoft has stepped up to the plate with Hohm which is a product the directly looks to compete with Google’s PowerMeter.

To get started go here and signup or sign in if you have a current Windows Live ID. Once you have activated your account the following screen is presented.

microsoft hohm user interface

As you complete your profile Hohm tells you just how efficient your home or apartment is and makes suggestions. As I started entering my data it clearly became evident where I could start saving money and making less of an impact to the environment. Another interesting aspect is for those that have been considering upgrading their home this application provides a number of resources related to rebates and offers you may be entitled to either at the state or federal level. Many people my be investing in their home without realizing of the potential tax credit they are entitled to therefore throwing good money away.

There are also a number of suggestions that you can take. In my case three simple changes in my habits could save me $271.00 a year and while this is not a great deal of money it is none the less cash back into my pocket.

Once you have you data inputted in the system you can see exactly where you’re spending you money.

energy cost

I must say that I was surprised at the results. I knew my cooling bill was the highest, but I had no idea that it was costing me as much as it was. You will even notice the estimated carbon use was 32,520.85 lbs. I hope Al Gore does not see this or he may make me his next target.

There you have it, if you’re interested in finding out first hand about your home then give Hohm a spin and see where you also can save a few dollars.

Other Resources

[rss feed="http://www.utilitybillbusters.com/articles/feed/" num="5" excerpt="false"]

Use Twitter To Start Getting Paid

Twitter is a wonderful micro-blogging platform and many start-up companies and turning to Twitter as a way to advertise. I will admit that advertisements have been both good and bad in my opinion and it comes down to using common sense when you decide to travel down this road. There is nothing wrong with wanting to make additional or even strive for a primary income from technologies that you use on a daily basis, but use common sense. I cannot tell you how many Twitter accounts that I followed only to be overwhelmed by the high volume of sponsored tweets. Once this trend sets in I promptly unfollow and never revisit. I do not believe there is a hard fast rule when it comes to sponsored tweets, but I can state from my perspective 2-4 per day is plenty.

Should you decided to pursue the idea of advertising within the realm of Twitter be sure to do your homework on the companies that you partner with. I have seen a number that seem a little dubious for my taste and for the most part I have settled into two distinct companies and I never used the same company for any more than a single Twitter account.

The purpose of this article is not to raise any false hopes or to state that I personally make hundreds or even thousands a month. By nature I am a skeptical person and I question many individuals who provide screen shots as proof of income. I am not saying that there are not people out there that make a decent living using advertising mediums rather my intent is to provide clear and honest thoughts from my point of view.

Ad.ly In-Stream Advertising

If you’re looking for a partnership that pretty much does all the work the look no further than Ad.Ly. This service sends a single tweet each day from those advertisers that you approve. Bottom line is you are in total control of every advertisement that will be processed as well as establishing the price points. Now if you’re anything like I am you may not have any idea on setting price points. The last thing you want to do is under price yourself and the worst thing is to overprice. What you’re looking for is that perfect balance and should be be unsure then the system will suggest prices for you. I am extremely happy with this company and the fact that a single tweet per day is sent out puts a little cash in my pocket and does not drive away those that follow me. I highly recommend Ad.ly, sign up here and begin making money today.

Sponsored Tweets

This is another great choice. I will not tell you this company is any better than others but they do a wonderful job and I don’t have a single complaint during the time I have been a customer. Much like other avenues you are in 100% control of what publisher you advertise for and for the most part your tweet is in your very own words. There are a few rules that you must follow and they are not at all overstepping any lines. Aging you set price points here as well and define a handful of keywords that relate to your interest. Once you have completed your profile it is just a matter of time for advertisers begin offers which ultimately turns into cold hard cash. Sound interesting? If so, sign up here today.

There you have it! I hope that if you have not gave this potential income thought in the past that I may have sparked your interest. Once again, I realize advertisements can be a large debate in the eyes of many so follow my previous advice and use common sense and you will do just fine.

For those of you who currently use either of these companies or others what has been your experience? Are yo seeing the revenue that you would like or are you making just enough to fill up once a month at the gas station?

Pages:123»