Monthly Archives

March 2014

Kinect for Windows v2 hardware–Revealed

By | Uncategorized | No Comments

Microsoft Official Kinect for Windows v2 blog has recently revealed the images of the final Kinect for Windows v2 sensor. This is how it looks like – the X style has been replaced with a power indicator.   The much anticipated power supply and hub has been simplified to combine USB 3.0 output to PC, the sensor and power   Microsoft //build/ conference is just around the corner and we are expecting great announcement about Kinect for Windows v2 Read the full post on official Kinect blog

Read More

The Emergence of CORS for Sharing Data Across Domains

By | Uncategorized | No Comments

Unless your career consists of writing applications against Northwind sample data, you’re going to need some way to create, read, update and delete custom data from your own service. And no cheating; you can’t put the service and client in the same project with the same domain. Up until lately, JSONP (JavaScript Object Notation Padded) has been the hack-of-choice to read data across domains. Using JSONP involves returning a wad of JSON to the client, wrapped (or padded) with a JavaScript function call that the client is supposed to call. What if your client wants you to update the data? No…

Read More

Bind Any Property in Kendo UI a DropDownList’s Value Template

By | Uncategorized | No Comments

Kendo UI allows you to create a “value template” which defines how the selected values are displayed in a DropDownList when it is closed. Usually this value comes from the text field you specify either in the configuration options in JavaScript or in the data-attributes used to configure the widget. <select data-role=”dropdownlist”  data-text-field=”first”  data-value-field=”id”  data-bind=”source: dropDownData”></select> Sometimes you want to be able to specify multiple properties in your value template. If you’ve tried this before, you’ve probably run into the limitation that these properties must be either the value field or the text field. No other fields of your data…

Read More

Jim Holmes Joins Falafel as VP of ALM & Testing

By | Uncategorized | No Comments

Capitola, CA March 31st 2014 – Jim Holmes, a veteran Software craftsman and Quality expert, joined Falafel Software today, a reputable consulting and training company based in the Silicon Valley with offices in 7 states, Canada and Dubai. Jim will head the ALM and Testing division at Falafel as Vice President and will report directly to Lino Tadros, the CEO of Falafel. Jim comes to Falafel with tremendous experience and success in the ALM and Testing space and is a great addition to the team worldwide. “Having Jim lead our ALM and Testing efforts is a great boost to this division”…

Read More

Smarter email templates in ASP.NET with RazorEngine

By | ASP.NET | 7 Comments

Every web application I work on has a requirement on sending emails to their users upon completing some action. Be it be an order placed email, comments added to a blog email or any other workflow that assures the user that he completed a workflow that is designed by the site. Most of these emails are more than just a “status update” meaning these emails would have lot of relevant information to the user. For example if you take a email that the user receives when he places an order with an eCommerce website, the user would except to see…

Read More

The Four Deadly Sins of LINQ Data Access: Part 4–Too Many Rows

By | News | No Comments

This is post 4 of 4 in the series “The Four Deadly Sins of LINQ” Introduction So far in this series, I’ve written about Overly Chatty Queries, Too Many Columns, and Insufficiently Chatty Queries. There is one more big one that I’ve left until last, because in my view, it’s the most obvious of all the sins. However, with all of the others out of the way, let’s take a moment to talk about the Sin… of Too Many Rows. Confession As a consultant, I probably see more than my fair share of poor-quality code; the projects that are struggling are the ones…

Read More

How to Create Sitefinity Forms with a Custom UI and Validations

By | .NET, C#, Sitefinity | 4 Comments

Forms in Sitefinity can be incredibly useful when handled properly. One of the disadvantages of it is we don’t have all the liberty to have our custom HTML, validation and events like sending an email to admin on each submission. However, email alert functionality have been introduced in the newer versions of Sitefinity. This tutorial will help you create Sitefinity Forms with your custom validations, and more importantly, your custom UI.

Read More

Loading JavaScript Files from the Views Folder in ASP.NET MVC

By | Uncategorized | 5 Comments

A lot of web applications now include a lot more JavaScript code than they used to. The better designed ones will usually take steps to make sure that all that JavaScript code is well organized, including making sure it’s not mixed in with the HTML views. In my applications, I’ll often create a single JavaScript file per view. When I place these files in the appropriate locations (~/Scripts and ~/Views) in my ASP.NET MVC application, its causes me to create two parallel directory structures, one in each location.. I recently set out to figure out how to move all my…

Read More

Kendo UI JumpStart at GR DevDay

By | JavaScript, Kendo UI, Telerik, Web | No Comments

It was great to have the chance to speak at GR DevDay on Kendo UI over the weekend along with J. Tower and Falafel CEO Lino Tadros who delivered a fun and energetic keynote. If you missed it, I provided a walkthrough of some of the key elements of Kendo UI Web and how it accelerates development on web applications.  Here are the demos and resources from my talk.  Click through to see the demos in JSFiddle, or download the code at the bottom of this post. Demos Widgets: Explicit and Declarative compared MVVM and Data Binding Grid, DataSource, and Templates…

Read More

Modern .NET Web Development at GR DevDay

By | Uncategorized | One Comment

I had a great time speaking at (and organizing) GR DevDay this weekend. We had a great lineup of amazing speakers, including Falafel’s own Josh Eastburn on Kendo UI, and CEO Lino Tadros delivering the keynote. The feedback from attendees has been very positive, so it sounds like everyone else has just as good a time as I did! I’d like to thank everyone that was able to attend my session, “30 Tools for Modern .NET Web Development in 60 Minutes”. For those that missed it, I talked about 30 of the tools that I use almost every day to…

Read More

Embedding Youtube Videos responsively

By | Sitefinity, Web | One Comment

Embedding external content into your website is one of the most common scenarios now a days. In this post, I will walk you through how you can embed Youtube URLs responsively. Step 1: Get the youtube embed source To get the Youtube embed source, simply go to Youtube.com and browse to your video and click share and embed. You will see embed code, typically, in an iframe like below Copy that code and paste in your HTML. Step 2: Wrap the iframe with a div Now lets wrap the iframe code we pasted in step 1 with a div so…

Read More

Getting Started with Node.js for Windows

By | JavaScript | 7 Comments

With the recent announcements of Paypal and Netflix moving to Node.js, the server-side JavaScript platform has proven itself worthy to enterprises. It’s one small step for Node, one giant leap for JavaScript! From developers of .NET, Java, PHP, Ruby on Rails, and more, all walks of server-side coders are converging to the platform. And as bigger players like Yahoo, Walmart, and Oracle join the table, Node is loosing its reputation as being intrinsically immature and unstable. In this post, I would like to show you how easy it is to set up Node.js in a Windows world. Installing Node.js Getting…

Read More

Having fun with Kinect for Windows v2 sample applications

By | .NET | No Comments

Since Microsoft introduced the Kinect for Windows v2 developer preview program, lots of people have been building very interesting applications with it, it really shows how people are using this technology to do useful things. From creating games to controlling robots, in this post I will share some of the interesting videos that have been posted by many developers who are part of this program. “This is preliminary software and/or hardware and APIs are preliminary and subject to change.” First ksasao posted a very interesting demo of A Simple Rock-Scissors-Paper app He has even posted the sample code for this…

Read More

Falafel to help out at DVLUP Days 2014 North American Tour

By | Uncategorized | No Comments

Nokia’s DVLUP Days 2014 North American Tour is underway. As one of Nokia’s Developer Champions, I’ll be helping out by giving a talk or two and answering questions at the event in Dallas, Texas, on May 17th. Come on by and say “howdy”. There’ll be plenty of swag and hardware given out by Nokia and I’ll have some special swag to give out myself. New York City – March 22, 2014  Chicago (Downers Grove, IL) – April 12, 2014 San Diego – April 26, 2014 Dallas, Texas – May 17, 2014 Toronto – To Be Announced Date! Stay tuned!   …

Read More

Creating your first Angular program

By | JavaScript | One Comment

Angular is hot.  And with good reason.  Angular is a complete framework for building client-side JavaScript applications and includes the features you look for in a framework, such as: Two way data binding Model-View-Whatever Testability Dependency Injection Templates Routing View Composition Animation Patterns and a robust eco-system Promises Extensibility In this first in a series of Angular posts, I’ll review creating a simple Angular application that shows off some of Angular’s features without writing any JavaScript at all. To get started, you need Angularjs itself.  There are many good ways to get it, but the two best are either to…

Read More

The Four Deadly Sins of LINQ Data Access: Part 3–Insufficiently Chatty Queries

By | News | No Comments

This is post 3 of 4 in the series “The Four Deadly Sins of LINQ” Last time in this series, I showed how a common and easy-to-use method of Entity Framework would result in more columns than necessary being returned from the database, and before that, I described the cause and solution for Overly Chatty Queries. At the end of the last post, I said that yes, there is such a thing as an “Underly” chatty query, and I suspect that statement might have sounded odd to some. After all, the first post was all about how bad it is…

Read More

How to Prevent ASP.NET Forms Authentication from Timing Out on a Shared Host

By | ASP.NET | 2 Comments

The Mystery I’m hosting a website on a shared hosting server. This site uses Forms Authentication to generate the session cookie that authenticates my users. Everything worked fine with the site, including authentication, until I tried to make it so my authentication cookies didn’t expire every 20 minutes, which is the default expiration setting for Forms Authentication. NOTE: For more on setting up Forms Authentication on your site, check out my blog post on that subject.  With the timeout happening nearly every 20 minutes, I figure that simply changing the Form Authentication timeout from 20 minutes to 1051897 minutes (2…

Read More

The Truth About False in JavaScript

By | JavaScript | One Comment

The distinction between true and false is a blurry line in JavaScript. This is why you hear the term “truthy/falsy” in the JavaScript world. As a follow up to Noel’s blog post, I would like to focus only on one side of the coin. It was inspired by a pop quiz from my teammate, Jesse Liberty. Welcome to the False Side What does false really mean in JavaScript? To sum it up, zeros and empty: false == 0 //true false == ‘0’ //true false == ” //true false == [] //true false == [[]] //true false == [0] //true false == 000 //true…

Read More

Creating Individual Search Indexes for Multiple Sitefinity Blogs

By | Sitefinity | 2 Comments

Sitefinity provides the ability to index all of your content so that it is easily searchable by your visitors. You can also partition the contents of the search into separate indexes based on the different content types, such as News, Blogs, Events, etc. However, what if you have multiple blogs but want your visitors to be able to limit their search to a single specific blog? That’s the focus of today’s post. Sitefinity Publishing System The backbone of this solution comes by making use of and customizing the Sitefinity Publishing System, which is the collection of components responsible for pushing…

Read More

Kinect and Leap Motion: How Far Can Your Imagination Take You?

By | Microsoft | No Comments

Microsoft’s Kinect took the world by storm a few years back when it was released for the Xbox 360. Now, Kinect’s technology has moved us even closer to a perfect world of virtual reality. But the fun only starts with the Xbox. Combining the Leap Motion Controller with the Kinect opens up a world of possibilities for game designers, marketers, developers, and more.

Read More

Querying the List of Sitefinity Dynamic Modules and Types

By | Sitefinity | No Comments

The Code Reference of the Sitefinity Module Builder makes it simple to get started building custom widgets and components to interact with your Dynamic Modules. However, the generated code is specific to each module and type, requiring that you pass in the full type as a string, resolving the type at runtime. But what if you need to write generic code that could be used for multiple dynamic modules, where you won’t necessarily know in advance what the types are? The answer is the ModuleBuilderManager, which exposes methods for retrieving both modules and their associated types. Let’s take a closer…

Read More

Building an iOS UI using JSON

By | C#, iOS, Xamarin | No Comments

In my last post, The easiest way to build Native iOS UI, we discussed using MonoTouch.Dialog with Xamarin.iOS in order to create full-featured iOS screens and multi-level navigation using a clean, declarative C# “Elements API”. This time around we are going to do that same thing using JSON. As I mentioned last time, MonoTouch.Dialog offers a few different ways for us to construct a UITableView based user interface. One of those ways is to define the user interface using JSON. Let’s get right to it. The following JSON file represents the exact same UI that we constructed with the Elements…

Read More

Underscore: LINQ (almost) for JavaScript

By | Uncategorized | No Comments

As part of my emerging series on LINQ from Scratch, I’d like to take a small detour today into what you do if you need the functionality of LINQ in your JavaScript program.   One answer is the underscore.js library.  Here’s what they say about themselves: Underscore provides 80-odd functions that support both the usual functional suspects: map, select, invoke — as well as more specialized helpers: function binding, JavaScript templating, deep equality testing, and so on. It delegates to built-in functions, if present, so modern browsers will use the native implementations of forEach, map, reduce, filter, every, some and indexOf….

Read More