Update-Database SQL Server connection error

Connection Error when Executing Code First Migrations from Class Library

By | Entity Framework | No Comments

I am fairly proficient at using Code First Migrations in Entity Framework, but recently I encountered a problem that was a real head-scratcher. Read on for the full story, or just skip to the end for the important details. I was working on a brand new ASP.NET Web API application, creating entity models and configuring their mappings in a separate class library. I added an App.config to the class library and set up the connection string my DbContext would need to access the database. When the time came to add my first migration I opened the Package Manager Console (PMC)…

Read More
hololens-techrewards-challenge

Launching a Unity Project in HoloLens

By | HoloLens, Unity | No Comments

This is post 4 of 4 in the series “HoloLens and Unity Playground” This video follows from the previous one created for the TechRewards challenge. This time we take that same project and discover what modifications are needed to open the same project in the Unity for HoloLens version, as well as deploy it as a 3D app to the emulator. Launching the TechRewards Unity Challenge Project in the HoloLens Although the audio quality is still weak (I promise the next video will be better!), I was able to leverage the Azure Media Services platform to actually transcribe the text….

Read More
CopyLocal

.NET: Shared App Settings

By | .NET, News | No Comments

I recently needed to write a couple of console applications to perform some tasks on an Azure Search Service.  I wanted both of the applications to be in a single .NET solution along with a common class library project for code shared between both console applications.  Easy enough, right?  Along the way I found myself duplicating the Azure Search configuration variables in both console applications.  Since the DRY principle is something I try diligently to practice, I started looking for a way to have shared app settings in the shared/common assembly and then reference them in the individual console applications….

Read More

Unity TechRewards Challenge Walkthrough

By | HoloLens, Unity | No Comments

This is post 3 of 4 in the series “HoloLens and Unity Playground” In this video I walk through the Build Code Challenge: Building Apps for Unity from TechRewards. TechRewards is a free program that awards points for completing code and app development challenges that help you build, grow, and enhance your developer skills with technologies including Windows, Azure, and yes even Unity. Now this video is not making use of the HoloLens (yet!), but since Unity is such an accessible tool for HoloLens development I thought this challenge was a great opportunity to get more familiar with the Unity…

Read More
Hololens-Emulator-Unity

Unity Step Zero: Launching a scene in the HoloLens Emulator

By | HoloLens, Unity, Windows | No Comments

This is post 2 of 4 in the series “HoloLens and Unity Playground” Now that we got the default HoloLens app template running successfully in the emulator, the next step is to get a project in Unity to do the same. Although you can certainly use DirectX and Direct3D to build HoloLens apps, Unity offers a much more approachable environment for unseasoned 3D developers like myself, especially with all the helpful resources available online. This video uses the sample Hololens project provided at Build to render a hologram in the emulator, and the Xbox One controller to navigate around it.

Read More

Escaping From Relative-Path require() in Node.js

By | JavaScript, node.js | No Comments

Introduction As an ASP.NET web developer coming to Node.js, one thing that you will notice quickly is the difference in how you reference code in other files. In .NET, you declare at the top of each file which namespace the enclosed code belongs to, and you can then reference that code from any other file simply by importing the namespace; relative file position is irrelevant. In Node.js, this is not the case; every file is implicitly a module, and other files can only reference and load them with the synchronous require function. The simplest way to use require in your own project…

Read More
HoloLens-Emulator

HoloLens and Unity: A Shared Video Journey

By | HoloLens, Unity, Windows | No Comments

This is post 1 of 4 in the series “HoloLens and Unity Playground” Microsoft HoloLens is a new frontier for developers, especially for people like me who are used to building traditional, business or user oriented applications. But since HoloLens is also a Windows device, it’s exciting to know that at least some of my existing skills can be leveraged to create new, interactive experiences with this device. However, giving my limited (read: zero) experience with 3D development, I’m essentially at step zero, and that’s where we begin today. I’ve decided to record and share my experiences getting familiar with…

Read More
nodemcu_sleep

ESP8266/NodeMCU Deep Sleep

By | ESP8266, IoT | No Comments

This is post 9 of 9 in the series “IoT with the ESP8266” Sometimes, an IoT device will perform small chunks of work, and then will otherwise be idle. For instance, a weather station with sensors for temperature, pressure, and humidity (such as the BME280) may only need to take a reading every 15 minutes and broadcast to the cloud – something that requires 10 seconds to accomplish. If the device is powered by a battery, then you want it to enter a deep sleep state in between the work cycles in order to maximize battery life. But, how would you force an ESP8266 to…

Read More
WP_20160330_20_21_02_Pro

Build 2016 and the Upcoming Windows 10 Anniversary Goodies

By | Events, Microsoft, Windows | One Comment

Last week I had the truly great honor and privilege of attending my very first Microsoft Build conference. It was an incredible experience; surrounded by developers, creators, architects and dreamers who share the same passion for Windows and all things Microsoft. There were enough sessions, labs, and exhibits to fill the day ten times over, and of course not enough time to see them all! There were many fantastic announcements, which have certainly made the rounds on the web. I’m not going to try and duplicate that content (although if you are looking for a thorough recap, your best place…

Read More
30 Fastest Growing Companies

Falafel Software named one of the 30 fastest growing companies of 2016

By | Azure, Microsoft, News, Training | No Comments

Falafel Software is named one of the 30 fastest growing companies of 2016 by The Silicon Review. With Lino Tadros, CEO of Falafel Software at the helm, the company has expanded to provide world-class consulting in Colorado, Texas, Washington, Florida, Wisconsin, Ohio, Oklahoma and North Carolina. The award-winning consulting, training and mentoring programs include major Microsoft platforms and technologies including Azure, Web, MVC, Silverlight, WinForms, WCF, WPF and SQL Server. Falafel has experience with mobile app development using native iOS, Android and Windows Phone SDKs along with other cross-platform tools like Xamarin, Cordova, Ionic and the Telerik Platform. Falafel Software has…

Read More
code

Node.js in Visual Studio Code review

By | JavaScript, node.js, Visual Studio | 3 Comments

Over the last two posts, I’ve described my experience searching for the best Node.js development setup for me, an ASP.NET developer working in Windows. First I tried Node.js Tools for Visual Studio but found the experience sluggish and frustrating. Next, I moved to Sublime Text 3 with some plugins and command-line based tools, where I lost a few creature comforts but gained more than enough speed in my day-t0-day operations to compensate. But then one of my peers mentioned Atom, so I thought I’d have to give it a serious look. As you might have guessed from the title of…

Read More
Sublime_Text_Logo

Node.js on Windows with Sublime Text 3

By | node.js | One Comment

I recently posted about my experiences developing Node.js apps with Node Tools for Visual Studio: the good and the painful, and why I decided to try something else. I kept hearing good things about Sublime Text over the years, so I thought this would be a good opportunity to try developing with just a good text editor and an ecosystem of command-line tools. Over the course of the first few days, I organically added plugins and utilities as needed to make my development life as comfortable as I could. This is the setup I ended up with: Editor and plugins…

Read More
visual studio options

Based on your project, we have identified extensions you may find helpful

By | Visual Studio | 2 Comments

I love Visual Studio extensions and I’m always open to suggestions of new extensions to try. What I don’t like is hearing the same suggestion over and over. Or in this case, the suggestion of a suggestion. If you have recently installed or upgraded Visual Studio 2015 you might have seen this annoying message when opening HTML files: “Based on your project, we have identified extensions you may find helpful.” The folks at Microsoft were kind enough to provide a Don’t Show Again option next to the message. Unfortunately, clicking it doesn’t seem to work and the message appears again the next…

Read More
VisualStudio

Node.js Tools for Visual Studio (NTVS) review

By | JavaScript, News, node.js, Visual Studio | No Comments

Here at Falafel, we started out as a .NET consulting and training company and that’s been our bread and butter for many years. But lately, I’ve had the opportunity to get my feet wet with some Node.js projects and I’ve been learning a lot and having a lot of fun. One of the first challenges I faced was to get a comfortable development environment set up to edit and debug my Node.js code. It took no less than three different approaches before I found one that I really liked, and I want to share the journey and lessons learned with…

Read More

Kendo UI: Easily share templates in ASP.NET MVC

By | ASP.NET, Kendo UI, News | 3 Comments

Sharing Kendo UI templates among multiple pages in your web application is not a straightforward task.  The Kendo UI documentation does provide a detailed explanation of how to accomplish this but it requires an abundance of messy code.  Fortunately though, if you happen to be using ASP.NET MVC there is a much simpler way with the help of Partial Views.   First create a partial view that includes the templates:

    And finally render the templates partial view in your page:

   

Read More
azure-3d

Get your Free eBook – Getting Started with Microsoft Azure

By | News | 2 Comments

At Falafel Software, our engineers are always on the cutting edge of technology and love to learn new things that we can share with our community. Well, we created this eBook to help other developers get started with cloud development. More specifically, Microsoft Azure. Getting Started with Microsoft Azure is a great place to begin exploring your options for creating software solutions in Microsoft Azure. The eBook covers many technologies including virtual machines, web apps, machine learning, IoT and many other topics that will help you get started with different types of solutions. Enjoy!  

Read More
AutoincrementHeader

Head scratcher of the day, Ad Hoc SQL and reentrancy?

By | Azure, Data & Storage, News, SQL Server | No Comments

Reentrant and thread-safe are often used interchangeably. Both speak to a body of code’s ability to properly handle multiple threads. While thread safety and reentrancy are fundamental to the design of a database engine, we rarely need concern ourselves with either when writing SQL. It’s one of those little cases of “rarely” I’d like to discuss here. Reentrancy in a nutshell  I’ll briefly touch on the following two concepts that underly my case of rarely. Thread safe refers to code which can properly multiple threads without failing or intermingling threads-specific data while safely interacting with data. Thread safety is accomplished using a number of…

Read More
TDEs

Telerik Developer Experts

By | News, Telerik | No Comments

I am very proud that 7 out of the 27 Telerik Developer Experts worldwide are Falafel Software architects and Sr. Engineers. We are grateful for Progress for including us in this elite group of Telerik Experts and we are all committed to continue supporting their products at the highest level for a long time to come.

Read More
typescriptsnippet

TestComplete TypeScript?

By | News, SmartBear, TestComplete, Testing, TypeScript | One Comment

TestComplete TypeScript? TypeScript lets you write JavaScript that is easier to extend, maintain and is more readable. For example, I’ve always had issues with web browser scripting because there are several TestComplete script objects to simply open, navigate, and close a browser. So, would you rather work with TestComplete script running wild like this example?

…or express your scripting ideas this way:

I vote for example #2. Both examples have the same functionality, but the second example is easier to follow and is much more compact. Note: For an introduction to TypeScript and examples, check out this blog…

Read More
022916_1108_BuildingTes21.png

Building Test Environments with Azure DevTest Labs

By | Azure, DevTest Labs | One Comment

This is post 31 of 31 in the series “A Cloudy 29 Days of Microsoft Azure” Building Test Environments with Azure DevTest Labs DevTest labs isn’t just for scaling compute resources, but for scaling the process of provisioning those resources with consistent and immediately usable environments. If you’re new on a dev or QA team, you don’t want to email IT for correctly versioned installs, then wander from cubicle to cubicle (like Diogenes with his lantern, looking for the last honest man), pleading for configuration details or the latest bits. You want to sit down and prove your worth. As…

Read More