Monthly Archives

May 2012

Get Ready to “Meet Windows Azure”

By | Uncategorized | No Comments

At Falafel Software we are big fans of Microsoft’s cloud platform, Windows Azure. We’ve been consulting and building with Azure for some time, even using it as the service platform for our mobile event application, EventBoard. Thanks to Windows Azure, EventBoard easily scales to support events of any size, anywhere in the world. We’ve hosted nearly 100 events over the past year and can testify to the “Always Up. Always On.” mantra. If you’ve been considering moving your system to the cloud, Microsoft is hosting a free online event that you might be interested in.  June 7th at 1PM PDT…

Read More

MVC 4 Web API Quirks

By | ASP.NET, MVC | No Comments

The ASP.NET MVC 4 Beta includes ASP.NET Web API which makes it very easy to expose data through a REST API in either XML or JSON with very little code.  There are some great tutorials on the asp.net site to get up and running.  After working with MVC 4 for a while, I have discovered a few quirks, so hopefully these tips will save you some time. XML and IEnumerable Properties The MVC4 ApiController will automatically detect the request’s Content-Type to see if it is expecting application/json or text/xml in the response.  One of my model classes had a collection…

Read More

Silverlight Binding on Strings; Fix Blank Strings

By | Uncategorized | No Comments

I have seen an interesting and sometimes annoying side effect of using Silverlight binding on string properties that makes them turn from a null string to an empty (length 0) string. Typically my bindings are bound to WCF RIA Services entities that can have a nullable string. By simply selecting and then unselecting a TextBox that is bound to a nullable string in an entity will cause it to become an empty string.   This wasn’t what I wanted to happen. I need strings that have been changed to empty to stay null if and only if the underlying entity…

Read More

Lino Speaking at ITCamp 2012 in Romania

By | News | No Comments

In few days, I travel to Cluj, Romania to speak about Windows 8 Metro Style Development and the latest in Windows Phone development as well at the ITCamp conference   This will be my 43rd country to visit, I am excited to visit Romania for the first time, as all the Romanians I know are extremely nice, welcoming and very funny , just the kind of people I like to hang around.   I am excited to see lots of my friends there as well (Tiberiu Covaci, Tim Huckaby, Martin Kulov, Mihai Tătăran and others…)   See you all in…

Read More

Convert a C# Object to JavaScript in MVC Razor

By | MVC | One Comment

Update:  Find more of these tips and tricks in our Foundations of Sitefinity 5.1 class, where you’ll learn how to use JavaScript, KendoUI and ASP.NET MVC + Razor in Telerik’s Sitefinity CMS. Sign up for Foundations of Sitefinity 5.1.  Creating a JavaScript application on top of ASP.NET MVC is becoming more common these days. Rightfully so, especially with the new Web API addition to MVC 4. The clear separation between client-side and server-side is an elegant architecture indeed! Retrieving collections and objects from MVC is simply a matter of calling the REST URL via AJAX. The result will give you a serialized JSON…

Read More

Happy 9th Birthday Falafel Software

By | News | No Comments

Nine years ago (On May 15th 2003), I had the pleasure and honor of starting Falafel Software from my garage in San Jose, CA.  It has been an amazing and blessed ride so far.  Happy Birthday Falafel! and Congratulations to all Falafel Team Members all around the globe.  I also would like to thank our partners Telerik and SmartBear for our important relationships and most of all our valued friendship. It is amazing to see how many projects have been completed over the years in so many verticals (medical, military, hospitality, financial, educational and many others) with great success!  I…

Read More

Defensive Coding Tools for JavaScript

By | Uncategorized | No Comments

After coding in a structured environment like Java or C#, JavaScript just seems a little freaky. Like HTML, JavaScript has hung out with a bad crowd of browsers and learned beastly habits. As JavaScript matures, best practices are emerging that bring JavaScript in line with “respectable” languages. Two of the big guns for making JavaScript safer are the “use strict” directive and the JSLint code quality tool. Use Strict Add “use strict” to the first line of a function to disallow some of the flakier aspects of JavaScript and make it easier for JavaScript engines to optimize. The example below…

Read More