Share on Twitter

This article is the third in a series of articles not written by me, but by José F. Romaniello. He is a big NHibernate guy, so, he created a sample domain trying to evaluate how close the latest Entity Framework 4.1 Code First stuff is getting to NHibernate features,

Later, he chose to show how to do the same Code-First mapping using NHibernate and confORM, NHibernate mapping library that is created by Fabio Maulo, a primary developer in NHibernate source code.

 

I asked him to do it also with FluentNHibernate, so, he took the time and effort to create a nicely put visual studio solution. at some point he gave it to me as I was familiar with FluentNHibernate in general, not with automapping, which we wanted to use for this sample. so, I am now posting about this experiment.

This article’s very late than it should. Apologies to those who have been waiting.

Convention Based Mapping, AKA, Automapping

My audience is slightly different than Jose, I might need to explain this one. skip if not needed.

, , ,
Share on Twitter

This one is a Back-To-Basics style post. Last month, I was checking some code for the relatively new .NET open source blog engine, FunnelWeb, and noticed this bit of code:

funnelwebsrcFunnelWeb.Extensions.CommentNotificationCommentPostedListener.cs

ThreadPool.QueueUserWorkItem(

    delegate

        {

            SendEmail(settings, commentDetails);

        });

 

This is just a real easy way to make async call, right?

 

BTW, you can learn more about the ThreadPool.QueueUserWorkItem() method from MSDN here.

 

More Interesting Stuff

Playing with it after reading, I found that Matt Valerio seems to have very interesting takes on this method, making you use it in many elegant ways:

 

I highly recommend the first two articles especially, the code is really elegant.

 

What IS This Post???

I felt a strong desire to blog something before I go to work today and wanted to see if that’s possible.

Not sure if I should write more posts like this, or am I then converting the blog here to a micro-blog/twitter/tumblr of some kind.

,
Share on Twitter

This is a PowerPoint Presentation (and extraction of the contents) I made as per a couple of friends’ request (@EmadAshi and @AmrEldib) to show how OAuth works along with Twitter and how easy it is to cache OAuth credentials.

As I was doing related work for TweetToEmail. I felt a PowerPoint presentation will be even better than a blog post for this one, but here you get the two.

The Presentation

The Contents

Application Registration

  • A Twitter user creates a Twitter Application
    • If the application is web based, it needs to provide a URL. “Localhost” is not accepted as a domain for this URL
  • A Twitter Application gets two pieces of information
  • Consumer Key
  • Consumer Secret
  • A Twitter Application will use these in all coming requests.

Initializing The Process

  • User comes to the application and it decides to authenticate against Twitter
  • Application makes a request using Consumer Key and Secret to obtain “Oauth Request Token”, which consists of two parts
    • Token
    • Token Secret
  • Application makes authentication URL including the “Oauth Request Token” parameter, and optionally a “Call-back URL” (if different than default URL in first step)
, , , , , , , ,
Share on Twitter

101FreeTechBooks

http://www.101ftb.com/T80G10C780

Five days ago I got a great email from 101 Free Tech Books. Seems the drawing I wrote about is real!!

Yes, I won a FREE print book. Filled in my shipping information yesterday and got the post that confirms my order was being processed. Feels so real! I’m even asked to give testimonials after receiving the book, which I will…

Which Book?

image

The book I have chosen is “Professional WCF 4: Windows Communication Foundation with .NET 4”. Sounded like a great title!

There is a trick in here. The option for books is only available from my wish list prior to the random drawing. I didn’t pay enough attention to this earlier, so, had a very small wish list of just “sample” books in it. Some of them I already had as ebooks. This was not very right.

I also tried to choose another book, add to my wish list, and go back to choosing again, but, as mentioned, only the books added prior to wining were there. Makes sense though!

You Can Win Too!

Now, I can recommend those people even more! They emphasize completely on showing how real this is, and I seem to believe them so far.

, , , ,
Share on Twitter

The SVN News

Today I was hanging around GitHub when realized a relatively old news, dated to April 1, 2010, saying they do support SVN.

Announcing SVN Support

Yes, it’s April Fools day. Very funny date to announce anything serious as they admit themselves in an update to the news post, but it DOES work.

Use the same Git clone HTTP URL, just add “svn.” between “http://” and “github.com”:

http://svn.github.com/[user]/[repository]

It even allows you to write changes back to the repository, as announced in the more recent news post, dated May 4, 2010, check it out for the “cavets” (known issues):

Subversion Write Support

That uses the same URL but with HTTPS:

https://svn.github.com/[user]/[repository]

This should work best when you want to get some project for read-only access or very few commits from your side, when this project has a very long history you are not really interested in. Of course you wouldn’t want to use that if you are leading (or a main committer to) a project hosted at GitHub.

, , , , , , , ,