2016-06-24 14_10_29-c__users_rachel_documents_visual studio 2015_Projects_Database1 Database1 - Micr

Mystery Solved: SQL Database Project Won’t Update using Schema Compare

By | Visual Studio | No Comments

I recently started using a SQL Database Project in Visual Studio 2015 to on a (pre-existing) complex database, and since the previous source control was pretty much nonexistent, it’s been a welcome change. Overall, the upgrade process went pretty well, with one exception that kind of screeched the whole thing to a halt. Since I’m sure I’ll run across the same issue again someday and by then I will have forgotten what the solution was, I’ll share it with you – and myself – in blog form.

Read More
angular2-series-bg

Routing in Angular2

By | Angular 2 | 2 Comments

This is post 10 of 10 in the series “An Introduction to Angular 2” In this post we will look at how Routing is done in Angular2. Router in Angular2 has changed quite a bit over the span of Angular2. When Angular2 Beta shipped it shipped with a Router which the Angular team are now deprecating in favor of the more modern Component Router. The old router is still available over a deprecated package but in this post, we will be using the new Component Router that is part of Angular RC and forward. To start using the new Component…

Read More
ng2-http-using

Working with HTTP – An Introduction to Angular 2

By | Angular 2, HTML5, JavaScript, Microsoft, News, Web | No Comments

This is post 9 of 10 in the series “An Introduction to Angular 2” In a previous article, we discussed RxJs and how we can use it with Angular2. In this post, we will take a closer look at HTTP and some of the key differences in using HTTP with Angular 2 vs Angular 1. Background jQuery came up with a very intuitive way of dealing with HTTP requests (XMLHttpRequest (XHR) and JSONP). It introduced a $.ajax() method which takes a request configuration and returns a promise. Many JavaScript frameworks followed the path of jQuery and Angular 1 was no different. While similar…

Read More
search-index

Customizing Search Result URLs in Sitefinity

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

One of Sitefinity’s many features is its search capabilities. Using Lucene under the hood, Sitefinity indexes your site content, both built-in content types and dynamic content types, along with static HTML, and allows you to present organized results to the user. You can customized what is and isn’t indexed among other things. Most of the time, Sitefinity is smart enough to create search result URLs that take you directly to the content in question. If you have “/my-news” as your news page, for instance, a particular article URL might look something like “/my-news/2015/1/1/my-article-url”. The search indexer automatically takes the page…

Read More
angular2-series-bg

Directives in Angular2

By | Angular 2 | No Comments

This is post 8 of 10 in the series “An Introduction to Angular 2” There are two different types of directives in Angular2. They are Structural Directives Attribute Directives Let us look at both of them in more detail – Structural Directives A structural directive changes the DOM by either adding or removing elements to the DOM. Some of the examples of Structural Directives are ngIf ngFor ngSwitch Structural directives internally use the HTML5 <template> tag which sets the DOM elements CSS display property to none by default and Angular2 not only sets the display to none but also removes…

Read More
angular2-series-bg

An introduction to RxJs in Angular2

By | Angular 2 | No Comments

This is post 7 of 10 in the series “An Introduction to Angular 2” In this article we will discuss the importance of RxJs in Angular2 and also look at couple of examples on where RxJs plays a crucial role in Angular2. But first, let’s try to understand what RxJs is? RxJs is short for Reactive Extensions for Javascript which brings the concept of Observables, which we know and love a lot in a lot of server side technologies, to Javascript world. Angular2 team are moving towards Observables instead of Javascript Promises for Http and Form data. Now, before we…

Read More
shield-large

Creating and Injecting Services – An Introduction to Angular 2

By | AngularJS | One Comment

This is post 6 of 10 in the series “An Introduction to Angular 2” In my last post we learned how to write our first Angular 2 component by writing a simple application comprised of a simple weather widget. The data displayed by our weather widget was static, defined directly within the component itself. Today we’ll learn about creating and injecting services. I’ll expand on the previous example by extracting the weather data into a separate service and injecting that service into the component. An Angular 2 Service In order to keep our weather component as simple as possible, we’re going…

Read More

Xamarin Android – Launch App From Browser

By | Android, Android, Xamarin | No Comments

Often times your mobile application will have an associated website and a typical scenario is to allow the user to open the  mobile app from the site when browsing on their mobile device.  Here is how you can accomplish this in Xamarin Android. First is the activity that will be the entry point for links coming from the browser.  In my case I just want to grab the passed in parameters, which we will talk about later, and then kickoff my main activity and that is all that is going on here.  Because this activity has no associated layout, i.e. we aren’t…

Read More
Sitefinity 9 for Developers Book

Sitefinity 9 for Developers

By | Sitefinity | No Comments

We at Falafel Software are excited to announce the release of the updated Sitefinity 9 for Developers book, available for immediate purchase in the Falafel Store. This update includes an exclusive new chapter covering the new Web Services module introduced in Sitefinity 9, useful for building and managing API services for your Sitefinity content. As a result of this new update, the Web Services chapter has been entirely rewritten to offer a developer-focused look at its use, configuration, as well as helpful tips and tricks and even gotchas to watch out for when getting started. Despite the introduction of this…

Read More
shield-large

Data Binding – An Introduction to Angular 2

By | Angular 2, TypeScript | One Comment

This is post 5 of 10 in the series “An Introduction to Angular 2” Data binding in Angular 2 is another area where things have changed a bit compared with Angular 1.  The ways or types of data binding have remained the same: interpolation, one-way, two-way, and event, but the syntax has changed.  This post will show that new syntax. The following examples assume the application is accessing component below:

Interpolation Interpolation is something very familiar from Angular 1 and it uses the {{expression}} syntax.

In Angular 2 it is pretty much the same but we can omit…

Read More
NaturalSort

A Simple Natural Sort

By | .NET, C# | 5 Comments

If you’ve ever had to sort alphanumeric data, you’ve probably encountered the issue of sort order when letters and numbers are mixed. Here is a quick example:

The first set is using a standard ASCII sort which is sorted correctly, but not what most people expect–shouldn’t a2 come BEFORE a11? What they want is a natural sort which treats letters as letters and numbers as numbers rather than treating everything as an individual ASCII character. There are PLENTY of natural sort solutions out there and some may work better for your particular situation, but I came up with a simple natural…

Read More
shield-large

Writing Your First Component – An Introduction to Angular 2

By | AngularJS | One Comment

This is post 4 of 10 in the series “An Introduction to Angular 2” If you’ve been following along with this series, by now you should be comfortable setting up a basic Angular 2 application and running it in your local browser. You should also be familiar with the language options available to you as an Angular 2 developer. In this blog post we’ll be looking at how to write an Angular 2 component. All examples will be in TypeScript. Creating an Angular 2 Component Components are the core building blocks of Angular 2 applications. They represent distinct areas of an application’s UI…

Read More
shield-large

Bootstrapping Your App – An Introduction to Angular 2

By | AngularJS, JavaScript, TypeScript | No Comments

This is post 3 of 10 in the series “An Introduction to Angular 2” Bootstrapping your app in Angular 2 is quite a bit different than in Angular 1 where we add “ng-app”.   Bootstrapping in Angular 2 uses the ‘bootstrap’ function from which is located in angular2/platform/browser.  Here are examples of bootstrapping an Angular 2 application.   Which example you use will depend on which language you are using JavaScript(ECMAScript 5), JavaScript(ECMAScript 6), or TypeScript. Bootstrapping with JavaScript(ECMAScript 5)

Download complete code sample for ECMAScript 5 Bootstrapping with JavaScript(ECMAScript 6)

Download complete code sample for ECMAScript 6…

Read More

An introduction to Microsoft PowerBI – Video Blog

By | News | No Comments

Recently Kevin Babcock on our team did a webcast on getting started with Microsoft PowerBI. We thought it would be a great idea to record this and make it available for all developers who want to get started with data visualization . Kevin gives a great overview of the PowerBI platform as well as a quick getting started introduction. Enjoy the recording. Cheers, -Falafel Software Team

Read More
language choices

Language Options – An Introduction to Angular2

By | Angular 2, CSS, HTML5, JavaScript, Microsoft, News, Web | One Comment

This is post 2 of 10 in the series “An Introduction to Angular 2” Before you start developing an Angular2 application, there are a few selections that you have to make. One of those choices is the programming language that you want to use with Angular2. While Angular2 is a JavaScript framework at heart, there are nevertheless, a few options to choose from. In this column, we are going to look at the options and examine the differences in syntax, to help you make that choice. Background The JavaScript language specification standard is called ECMAScript, or ES.ECMAScript is standardized by the ECMA International standards organization and…

Read More
shield-large

An introduction to Angular 2 – Series

By | Angular 2, AngularJS, Web, WebUI | No Comments

This is post 1 of 10 in the series “An Introduction to Angular 2” At Falafel Software we like to stay engaged with the community and share our knowledge around topics that are current and interesting. Tomorrow we will be starting a series on topics about Angular 2 to help developers get started. The topics will be: Angular 2 Language Options Bootstrapping Angular 2 Writing your First Component in Angular 2 Databinding and Expressions Creating and Injecting Services Understanding the role of rx/js and observables Directives in Angular 2 Angular 2 and Http Angular 2 Routing Explained Loading Components on Demand…

Read More

ASP.NET Core Training – June 2016

By | News | No Comments

If you’ve been wondering when the time would come for you to start learning about ASP.NET Core, it’s quickly approaching. ASP.NET Core RC2 should be available some time in the next few weeks, and Steve Smith is going to be teaching a 2-day online class on ASP.NET Core June 14-15 2016. The first day will cover ASP.NET Core fundamentals; the second day will offer an overview of ASP.NET Core MVC. Both sessions are 4 hours long, from 1pm to 5pm Eastern Time (10am-2pm Pacific). Space is limited so if you’re interested please register early. ASP.NET Core Online Training – Both Days…

Read More
00-cover

Working with Hybrid Forms in Sitefinity Widgets

By | .NET, C#, MVC, Sitefinity | No Comments

Throughout the course of web development, you often find yourself in a situation where you need data input from your user. Scenarios range from a simple contact form, to something as complex as a multi-part job application. In either case, Sitefinity offers multiple solutions. The easiest solution, for the simpler forms such as the aforementioned contact form, is to use Sitefinity’s built-in Forms capabilities. Much like with their pages, Sitefinity Forms provide a very simple, powerful way to create and customize even more complex forms for your site. The resulting data is then stored in Sitefinity, and can be set…

Read More
Creating a new Xamarin iOS Application

Xamarin Quick Tip : Add a Full Color Image to the Navigation Bar

By | .NET, C#, iOS, Visual Studio, Xamarin | No Comments

In iOS the Navigation Bar is not one of the easiest things to stylize. In a recent project, I needed to add a full color image of a logo on the left hand side of the Navigation Bar. Here is how I accomplished this requirement. Setting Up the Project Create a new Xamarin Blank iOS project in Visual Studio. I’ve named mine NavBarFullColorLogo. Creating the Storyboard Once the project has been generated. Add a new Empty Storyboard item to the project, name it Main.storyboard. Open the Info.plist file, and select Main.storyboard as the Main Interface. Open the AppDelegate.cs source file, and…

Read More
Blank iOS Appliation

Xamarin Quick Tip : Setting a UI Table View Background Image

By | .NET, C#, iOS, Visual Studio, Xamarin | No Comments

Full-screen background images are an attractive design feature in many mobile applications. In this article, I will show you how to set an iOS table view background image using C# so you can achieve full screen backgrounds on your Table View Controllers in your application. Creating the Solution Open Visual Studio, and create a new Blank iOS Application. I’ve named mine BackgroundImage. Creating the Storyboard Once the solution has finished generating, add a new Empty Storyboard to the solution, name it Main.storyboard. Next we will need to assign the storyboard to our application launch sequence. To do this open the info.plist file, and under…

Read More
command prompt ipconfig

Expose an IIS Express site to your local network

By | Visual Studio | 2 Comments

As a web developer, testing my web app from the browser of various mobile devices is a must. There are plenty of tools for emulating mobile browsers on my local machine during development, but at some point I need to physically test it from another device. ASP.NET developers are used to running our web apps locally in IIS Express and testing them locally from the PC. But did you know you can expose an IIS Express site to your local network, making it accessible from other devices? Full disclosure: I am running Visual Studio 2015 Pro on a Windows 10 machine….

Read More
Clock

How to Set the Current Datetime with NodeMCU

By | News | No Comments

This is post 11 of 11 in the series “IoT with the ESP8266” When the ESP8266 starts up, the Realtime Clock (RTC) is not initialized. If your IoT project has the need to provide timestamps in its generated data, then your code will need to fetch the current datetime from a server after the network is available. One way to do this with NodeMCU is to use the sntp (Simple Network Time Protocol) module in conjunction with the rtctime module. The sntp module will fetch the time from a specified time server (could be on your LAN, or from an official source on the internet) and…

Read More