# Monday, April 12, 2010

I’ll be speaking at TechEd India and the Visual Studio 2010 Launch in Bangalore, India this week. I’ll be doing three sessions:

In addition, Team Telerik will be staffing a booth with Tee-shirts (hopefully if they get out of customs on time!) and live demos of our products and our brand new product to be announced today! See you at my sessions or at the booth!

Technorati Tags: ,

Bookmark and Share
posted on Monday, April 12, 2010 6:13:22 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [2] Trackback
# Sunday, April 11, 2010

Last month Telerik released its new LINQ implementation and last week we released the new Data Services Wizard for Telerik OpenAccess, which supports both traditional OpenAccess entities and the new LINQ implementation. I will a walk you through the process where you can connect to a database, add a new domain model, wrap it in a new WCF Data Services (Astoria) service, and add a CRUD enabled Silverlight application. All in 30 seconds!

Step 1: Build your Domain Model (20 seconds)

Open Visual Studio 2010 RTM (or 2008) and add a new ASP.NET project. Right click on the project and select Add|New Item and choose Telerk OpenAccess Domain Model from the item template list.

image

The Visual Entity Designer wizard comes up. Select the database server you are using in the first screen (SQL Server, Oracle, SQL Azure, MySQL, etc) and then also build your database connection string.

image

Next select the tables, views, and stored procedures you want to map and click finish.

image

Step 2: Using the Telerik Data Service Wizard to create the service and Silverlight client with CRUD operations (10 Seconds)

Now the easy part. Find the model in your project, it will be by default EntityDiagrams1.rlinq, and right click it to bring up the context menu.

image

Then select Data Services Wizard|Data Services for .NET 3.5 SP1 Version 2 (Astoria)|Add to Project with new SL Client|Your Project Name. This is the “express” version of the Data Services Wizard. From there it is almost on auto-pilot, you just have to confirm adding the Silverlight Application via the standard Silverlight dialog. All you have to do it hit F5 and run the application!

image

The wizard will create the new WCF Data Service (Astoria), add a new Silverlight application, add the service references, and build your standard CRUD forms in Silverlight, one for each entity you expose. While I suspect that you will want to skin the application and add some validation, the wizard is great for doing the plumbing work for all of the CRUD operations-leaving you to worry about the design and the business logic. We are going to add more to this wizard in the future, things like more control over the layout and validation, play around with it and let us know what is important to add!


Bookmark and Share
posted on Sunday, April 11, 2010 10:09:18 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] Trackback
# Thursday, April 8, 2010

After a great beta cycle, Telerik is proud to announce today the commercial availability of the OpenAccess Data Service Wizard. You can download it and install it with Telerik OpenAccess Q1 2010 for both Visual Studio 2008 and 2010 RTM. If you are new to the Data Service Wizard, it is a great tool that will allow you to point a wizard at your OpenAccess generated data access classes and automatically build an WCF, Astoria (WCF Data Services), REST or ATOMPub collection endpoint, complete with the CRUD methods if applicable.

4-1-2010 1-39-01 PM

If you are familiar with the Data Service Wizard already, there will be two new surprises in the release version.

If you generated a domain model with the new OpenAccess Visual Entity Designer, you have only one file added to your project, mydomainmodel.rlinq for example. The first surprise of the new Data Service Wizard is that if you right click on the domain model in Visual Studio, you can use an “express” version of the Data Service Wizard and generate your service with just one click! This is pretty awesome, you can create your domain model from a database and create a service in well under 60 seconds.

4-1-2010 1-30-24 PM

Surprise number two is that if you are using the new Visual Entity Designer, we now give you the option, in both the full wizard and the right-click “express” version to create a new Silverlight application as a consumer of your new service. The Wizard will generate a Silverlight application with the full CRUD methods for you. You can go from File|New Project in Visual Studio to a full domain model generated from the database, a full WCF or Astoria service, and a fully functional CRUD Silverlight client in under 60 seconds!

4-1-2010 1-47-12 PM

The Silverlight application generation feature is a very “1.0” feature and we have big plans for it moving forward. We will look forward to your feedback as what to add to this application generation feature next. While I expect you to put your own skin on it and write some validation code, the application we build for you is a great starter and will save you from having to write all of the asynchronous CRUD code in your client. Visit our forums and let us know what you think.

Lastly, when OpenAccess releases its Q1 Service Pack later this month, the Data Service Wizard will be part of the main product install, so there is no need for a separate install moving forward. Our release cycle will now be in sync with OpenAccess and we have a lot planned for Q2, I will post an updated roadmap here soon.

Technorati Tags: ,
Bookmark and Share
posted on Thursday, April 8, 2010 9:58:27 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] Trackback
# Wednesday, April 7, 2010

As you all know there was a massive earthquake and then a devastating Tsunami in December 2004 in Aceh, Indonesia. A bunch of us .NET programmers got together and auctioned ourselves off on eBay. The Microsoft .NET community raised well over $10,000 for IDEP Foundation, a charity based in Ubud, Indonesia. What we liked about this charity, besides that our fearless leader Julie Lerman found them, is that they are based in Indonesia and had instant access to the disaster area and would be around years later when the world would forget about the Tsunami.

Today I visited the IDEP Foundation headquarters and its outstanding founder Petra Schneider in Ubud, Indonesia. (Sadly there was another earthquake in Aceh today, but the damage was not nearly as bad.) It was awesome to learn what IDEP has been up to: they have been up to a lot. For starters, they are *still* in Aceh, more than 5 years on. They are now past disaster relief work and teaching sustainability (farming, hygiene, etc) and disaster readiness. Petra showed me photos of their work not only in Aceh, but all over Indonesia. I saw photos of what the money we raised went to: the “buckets” or a bucket that contained one week’s supply of cooking oil, rice, sugar, all the basic necessities. They were handed out to thousands of people who needed it. I can report back  the .NET community and all of those who donated that our contribution made a difference.

Today, IDEP is growing and even training other charities on how to operate. They are making some great games for children that teaches sustainability and disaster readiness. Why not at least join their Facebook page or even consider donating some time or money. :)

A lot of times we give money to a charity and then we never get to see the unsung heroes that do the work behind the scenes. Today I got that chance and it was very special. If you are ever in Indonesia, look them up!

IMG_1462

Petra, me, and Avi at IDEP’s training center in Ubud, Indonesia.

IDEP Foundation is an NGO in Indonesia that teaches Permaculture and Disaster Risk Reduction & supports communities in need in times of disaster.
http://www.idepfoundation.org

Technorati Tags: ,,
Bookmark and Share
posted on Wednesday, April 7, 2010 7:01:38 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [2] Trackback
# Tuesday, March 30, 2010

I want Microsoft to succeed in the mobile space. As a consumer, I want more choice than Apple and Google. A successful Microsoft in this space will only increase the innovation and drive down price. I held out against the iPhone and Android until my Windows Mobile phone literally fell apart. (It was held together with tape for 3 months when I was in denial.) A few months ago when I walked into the store here in Hong Kong there simply were no good Microsoft options if you wanted touch, music, maps, facebook, etc. So I ordered a Nexus One.

image

I was excited by the Windows 7 phone when I first saw it. That said, I will not buy the new Windows phone unless two things happen.

  • First, I will not, under any circumstances, buy the phone from a carrier. Carriers are pure evil and lock the phone, install their own crap on it, and remove native features. If Microsoft wants to change the nature of the industry, they have to create a phone that everyone wants and make it real simple to get one. Apple started the revolution by making a phone that everyone wanted, did not allow the carrier to install their own crap, but did force you into a deal with AT&T (in the USA) and will not unlock the phone. Google continued the revolution by selling the phone on the Web unlocked, but only in 4 countries. If Microsoft makes us buy the phone from carriers, game over-that is a step backwards. Microsoft should continue the revolution and make the phone cheap and not sign any deals with any carriers. They should go direct to the consumers and sell the phone world wide for $300 at electronics retail shops such as Best Buy. It will nothing but revolutionize the way we buy mobile phones in the USA.
  • Second I won’t buy a phone that has the word “Windows” on it. Change the name to something cool. “iPhone” and “Nexus One”, even “Android” are just cool. Windows is old and stale and makes me think of laptops and such. Microsoft has a tendency to over brand “Windows.” They have done a great job at that. The problem is that the consumer market Microsoft is targeting doesn’t care about the Windows brand. They like the XBox and even the Zune brand. Go with that. Microsoft keeps talking about how “we have changed our game” with the “Windows 7 Phone Series.” I’m sorry but that sounds a lot like Microsoft Visual Studio 2005 Team System for Database Professionals Edition.

Last week I was out with some friends and we were trying to google for something. After someone was painfully slow on their Blackberry, I whipped out my Nexus One. Immediately, they all said “wow, is that the Nexus One?” Before I knew it, I was doing a product demo. I had five people standing around me playing with the phone. Microsoft, please don’t embarrass me when I pull out my “Windows Phone 7 Series.” That is just a lame name. Give it a cool name and make it available everywhere for cheap. Let me buy my “XZune” Phone at Best Buy. Soon.

 

Technorati Tags:

Bookmark and Share
posted on Tuesday, March 30, 2010 9:41:04 AM (Eastern Standard Time, UTC-05:00)  #    Comments [4] Trackback
# Monday, March 29, 2010

Someone sent me this link that was posted on MSDN a month or two ago. I am interviewed about my charity work in Nepal, Telerik, Entrepreneurship, and SQL & Windows Azure. Fun stuff.


Bookmark and Share
posted on Monday, March 29, 2010 7:16:52 AM (Eastern Standard Time, UTC-05:00)  #    Comments [3] Trackback
# Friday, March 26, 2010

GoDaddy.com, the top Internet domain name registration company, announced this week that , the company had been hacked "due to a lack of enforcement against criminal activities by the Chinese government." In addition, the Chinese government has been forcing all domain registrars to get photos, business ID and signatures for anyone registering a .cn domain. Speaking before the US Congress this week, Christine Jones, GoDaddy’s lawyer, said “We decided we didn’t want to become an agent of the Chinese government” and has ended its operations selling .cn domain names.

Google and now GoDaddy have both stood up to China. Who is next?

posted on Friday, March 26, 2010 2:34:19 AM (Eastern Standard Time, UTC-05:00)  #    Comments [2] Trackback
# Thursday, March 25, 2010

Last week Telerik released a new LINQ implementation that is simple to use and produces domain models very fast. Built on top of the enterprise grade OpenAccess ORM, you can connect to any database that OpenAccess can connect to such as: SQL Server, MySQL, Oracle, SQL Azure, VistaDB, etc. Today I will show you how to build a domain model using MySQL as your back end.

To get started, you have to download MySQL 5.x and the MySQL Workbench and also, as my colleague Alexander Filipov at Telerik reminded me, make sure you install the MySQL .NET Connector, which is available here.  I like to use Northwind, ok it gives me the warm and fuzzies, so I ran a script to produce Northwind on my MySQL server. There are many ways you can get Northwind on your MySQL database, here is a helpful blog to get your started. I also manipulated the first record to indicate that I am in MySQL and gave a look via the MySQL Workbench.

image

Ok, time to build our model! Start up the Domain Model wizard by right clicking on the project in Visual Studio (I have a Web project) and select Add|New Item and choose “Telerik OpenAccess Domain Model” from the new item list.

image

When the wizard comes up, choose MySQL as your back end and enter in the name of your saved MySQL connection.

image

If you don’t have a saved MySQL connection set up in Visual Studio, click on “New Connection” and enter in the proper connection information. *Note, this is where you need to have the MySQL .NET connector installed.

image

After you set your connection to the MySQL database server, you have to choose which tables to include in your model. Just for fun, I will choose all of them.

image

Give your model a name, like “NorthwindEntities” and click finish. That is it.

Now let’s consume the model with ASP .net. I created a simple page that also has a GridView on it. On my page load I wrote this code, by now it should look very familiar, a simple LINQ query filtering customers by country (Germany) and binding the results to the grid. 

   1:  protected void Page_Load(object sender, EventArgs e)
   2:  {
   3:      if (!IsPostBack)
   4:      {
   5:          //a reference to the data context
   6:          NorthwindEntities dat = new NorthwindEntities();
   7:          //LINQ Statement
   8:          var result = from c in dat.Customers
   9:                       where c.Country == "Germany"
  10:                       select c;
  11:          //Databinding to the Gridview
  12:          GridView1.DataSource = result;
  13:          GridView1.DataBind();
  14:      }
  15:  }

F5 produces the following.

image

Tomorrow I’ll show how to take the same model and create an Astoria/OData data feed.

Technorati Tags:

Bookmark and Share
posted on Thursday, March 25, 2010 1:37:56 AM (Eastern Standard Time, UTC-05:00)  #    Comments [1] Trackback
# Wednesday, March 24, 2010

I started my career on Wall Street in a non-technical role. After I gained the confidence to make the move from hobby to profession, the company that I was working for did not let me be a programmer, so I quit my job to start my own one man shop. My first customers were Wall Street firms. Because of this background, I understand bonds, options, swaps, and other complex financial transactions. My guilty pleasure is reading about massive financial blowups, books like: When Genius Failed, Liar’s Poker, and House of Cards.

Michael Lewis, the bestselling writer of Liar’s Poker and Moneyball, just released a new book called The Big Short. It is a book about the bond and real estate derivative markets and the short selling people did the year before the massive crash of 2008.

I wanted to read this book and headed to Amazon.com to buy it for my Kindle. I noticed that it was the #1 selling book on Amazon, so I did not even have to search for it, it was right there on the home page.  That is when I realized that there is no Kindle version! I have a rule, no more “real” books, if it is not on the Kindle it doesn't exist to me. This is my preference and it exists for a variety of reasons: love of my Kindle, tons of crap to bring when I travel, too many books laying around the house, me temporary living in Hong Kong and don’t want to transport books 8,000 miles are on the top of the list. (If you don’t own a Kindle and think I am blowing hot air, ask yourself when the last time you bought a physical CD was, fancy iPod owner.)

image

If you remember back in January, I made a prediction on the blog that the content providers will fight back against Netflix and Amazon: and fight back they did. Once Macmillan forced Amazon’s hand back in late January, the rules changed. If you remember MacMillian, threatened to withhold their entire collection of books, print and digital, unless Amazon raised their prices for the Kindle. Amazon challenged, but lost and had to capitulate.

Now it appears that the publisher of The Big Short, W. W. Norton & Company, is doing something more evil, they are withholding the Kindle version until the paperback comes out. This is to boost the hardcover sales.

What a bad idea. The publisher is living in the pre-digital book era. Someone who owns an eReader is not going to buy a hardcover book ever again. The market has changed. W W Norton doesn’t realize it.

I heard about the book and was willing to spend $9.99 as an impulse buy. I would even pay $12 or $13 for the Kindle version, only a few dollars less than the list price. Now I have to wait at least 6-8 months and may forget or the book may lose its spot on my priority list.

The publisher is also assuming that I will still want to read this book a year from now, that the financial crisis will still be deep in my mind and I will want to rush to buy it. They are also assuming that I won’t illegally download this book as well. (Something they are forcing me to consider.)

The publisher is making a big mistake. They are pushing me to defer my purchase, a purchase I may never make. They would have made a sale today, but choose not to sell it to me. They are trading guaranteed profits today for potential profits later.

 

Postscript:

The reviews of The Big Short on Amazon are interesting.

image

There are more negative reviews (1 star) than positive (5 + 4 star). Most of the reviews are people like me complaining that there is no Kindle version! The author is being punished for the decisions of his publisher. Several bloggers came out to defend Lewis and bash Amazon. I am not one of them.

An author like Lewis has clout and could have put his foot down. He also could have chosen to self publish, sell it on Amazon and B&N only in e-format for $7.99 and kept all the profits. So while it sucks that his book is getting negative reviews, I don’t feel sorry for him. Besides it is still the #1 bestseller on Amazon as of now.

I’ll leave you with a great quote promoting the Kindle:

"The coolest thing, by far, is that you think of a book you'd like to read, someone tells you about a book you'd like to read, and in 30 seconds, it's on your screen, all of it."

--Michael Lewis, 2007.

 

Technorati Tags:

Bookmark and Share
posted on Wednesday, March 24, 2010 4:46:29 AM (Eastern Standard Time, UTC-05:00)  #    Comments [1] Trackback