In my continuing desire to explore the capability of Unity accessing the device sensors, I’m exploring the gyroscope. The gyroscope is an instrument that is used to measure the change in rotation along its axis. The first versions of this instrument started off as large and heavy mechanical tops, then progressed to very small MEMS that can now fit into our phones. To demonstrate the gyroscope I’ll use the same code base that I’ve been using in my previous Unity posts; Unity Accelerometer Device Attitude Alignment and Displaying the Device Compass in Unity. So you’ll see the device orientation cubes…
Telerik recently announced the launch for their new Telerik Developer Network, and with it the Telerik Developer Experts program. We’re excited to say that Telerik chose not just one, but FOUR of our fantastic Falafel team to be Telerik Developer Experts. The Developer Experts program recognizes members of the Telerik Developer Network community who have gone above and beyond to share their knowledge and contribute to the community, but are also experts in one or more of Telerik’s tools. We’re very proud of our CEO, Lino Tadros; Master Consultant, Jesse Liberty; Senior Software Engineer, Keith Burnell; and Software Architect, Venkata…
I have been doing some research into browser-less exports of some Kendo UI widgets on an existing page, and I am really liking PhantomJS as a solution for my needs. PhantomJS is targeted more for testing, but in this case I was looking for a way to create a PDF report of a Kendo UI widget server-side that could be saved and emailed as a snapshot-in-time of some particular data.
Why SignalR? For most Kendo projects that I’ve been involved with, Kendo UI consumes JSON data originating from an ASP.NET controller (either a JsonResult action or a WebAPI action). The lifecycle is pretty straight-forward: the DataSource reads the initial data, and then a separate AJAX postback is performed for each create, update, and destroy operation. The problem with this is that the user is looking at a snapshot of the data. Suppose that another user is also looking at that data, and decides to change it. How do we alert the first user that their data is stale and needs…
CodeMash is one of my favorite conferences, and I had the pleasure of doing a pre-con (4 hours hands on) and a sponsor talk this year. One of the (many) reasons I like this conference (and one of the reasons it has grown so large) is the people. It is by far one of the friendliest conferences around, and a good chance to see old friends (and make new ones – sounds like the girl scouts). This year CodeMash was, as usual, chock full of great presentations. I can tell by looking at my handy EventBoard application 🙂 There was…
We’re excited to share some more good news that Falafel’s Master Consultant, Jesse Liberty, has just been announced as a Xamarin MVP! Jesse is the first Falafel team member to receive the Xamarin MVP, and we couldn’t be more thrilled. The Xamarin MVP program was started in 2013 to recognize community leaders who have demonstrated their commitment to mobile app development by sharing their passion and real-world knowledge of C#, F# and Xamarin tools with the community. Congratulations to all of the new MVPs recognized by Xamarin today! Pssst! Want to learn from the master mobile developer himself? Learn more…
MVVM Light is a simple yet powerful framework for developing apps, and with the latest version 5 includes a new cross-platform NavigationService to aid in abstracting the navigation component of your apps. However, looking at the implementation of the INavigationService interface, there is no property available to support the idea of CanGoBack, which is important for devices like Windows Phone that include a back button. The default code that gets generated for the HardwareButtons.BackPressed event relies on the Windows implementation of NavigationService, which does have such a property, as shown in this example:
void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
//Indicate the back button press is handled so the app does not exit
e.Handled = true;
However since we’re using the MVVM Light version, we need a…
I’m working on a project using the new Telerik UI for Windows Universal, specifically the Rating control. This control is highly customizable, supporting different shapes and symbols, and is surprisingly easy to modify. In my case, I was satisfied with the default Star symbol, but needed to modify the color. I expected to see this as a simple property of the Rating control itself, but didn’t see one available in the Properties window nor via Intellisense. It turns out that the Rating control is a templated control, which is much more flexible than a simple property, as it allows you to intuitively specify different…
We can replace Data Annotations with Entity Type Configuration to make our classes look clean and simple. Majority of developers prefer using View Models for CRUD operations leaving no reason to have Data Annotations defined in our model classes. This article will show you how to replace Data Annotations with Entity Type Configuration when using Entity Framework Code-First.
When writing code in C#, I often come across a dependency that is hard to work with. Usually this comes in one of two forms: Static classes that are built into the .NET framework, or external libraries that don’t provide interfaces to use. Whenever I write code that takes on a dependency like this, I use the Wrapper Pattern.
If you use Entity Framework, you know it greatly simplifies database access for the developer. But it can also introduce its own problems particularly when you are writing more complex LINQ to Entities queries which may generate poorly-performing SQL or unexpected results. This is no reason to avoid using Entity Framework, but it helps to know how to inspect and troubleshoot the SQL your code is executing. The following are a few ways I like to inspect and troubleshoot my generated SQL when developing new code or troubleshooting data-related issues. 1. LINQPad If you haven’t tried LINQPad, you should go download…
Falafel’s experienced team of developers continues to achieve new certifications from Microsoft. Master Consultant Adam Anderson completed certifications in Developing Microsoft Azure Solutions and Implementing Microsoft Azure Infrastructure Solutions. Falafel is well known for its work in implementing Azure Services for clients and using it in internal applications, most notably, EventBoard Mobile. EventBoard uses Azure to handle event and agenda management for large conferences including Microsoft’s TechEd. For more on the awards and the certifications, view the full release!
It’s a new year, sure, but we we’re not quite ready to give up our most popular articles of 2014. From simple tips to deep dives into code, these posts have it all! AngularJS and Kendo UI – Part 1 – Getting Started We’re bringing together two themes I’ve been developing for the past few months: AngularJS and Kendo UI. These technologies go together like peanut butter and chocolate, and both share two characteristics that are critical to this series: The technology is hot, desirable and useful The reference documentation is very good, but good tutorials are in short supply…
Falafel’s Eric Fleming recently launched a new blog to share his experiences in programming and working with the top-notch developers at Falafel. In his most recent post, Dynamic LINQ Queries, he shows a simple way to build queries based off of the type of field you want to query against using Dynamic LINQ. In the article, he discusses: Handling Multiple Search Parameters How to Ensure a String Contains Certain Parameters Passing Multiple Parameters to Single Query Check out his full article to learn more about Dynamic LINQ Queries and follow his step-by-step guide for building queries