Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Dynamic Xamarin Forms From XAML and JSON

AddThis Social Bookmark Button
Yes, I’m well aware that the official API set for Xamarin.Forms only allows loading the compiled XAML into its “owning” view, using the LoadFromXaml(this TView view, Type callingType) extension method from the Xamarin.Forms.Xaml.Extensions class. And this is of course the actual real and supported way of doing it (for whatever reason, I’m not part of the Xamarin.Forms team :)). But, being just a .NET assembly, I got curious as to how they loaded that XAML in that case. So a bit of .NET Reflector revealed the internal Xamarin.Forms.Xaml.XamlLoader class, with the following nice overload: public static void Load(BindableObject view, string xaml) So nothing
prevents us from invoking that via reflection, you know? ;). Of course that is hardly a well-performing way of developing an entire app, but if you happen to need it for something, it’s totally doable and works acceptably well IMHO. I turned it into an extension method and was back in business in no time. Another thing I was pretty excited to try out with this new knowledge, was a way to dynamically bind data too, so that I could load a dynamic view, then a dynamic data/view model (using JSON, but why not also any arbitrary key/value dictionary?), and...(Read whole news on source site)

RavenDB Sharding: Adding a new shard to an existing cluster, splitting the shard

AddThis Social Bookmark Button
In my previous post, we have increased the capacity of the cluster by moving all new work to the new set of servers. In this post, I want to deal with a slightly harder problem, how to handle it when it isn’t new data that is causing the issue, but existing data. So we can’t just throw a new server, but need to actually move data between nodes. We started with the following configuration: var shards = new Dictionary { {"Shared", new DocumentStore {Url ="http://rvn1:8080", DefaultDatabase = "Shared"}}, {"EU", new DocumentStore {Url = "http://rvn2:8080", DefaultDatabase
= "Europe"}}, {"NA", new DocumentStore {Url = "http://rvn3:8080", DefaultDatabase = "NorthAmerica"}}, }; And what we want is to add another server for EU and NA. Our new topology would be: var shards = new Dictionary { {"Shared", new DocumentStore {Url ="http://rvn1:8080", DefaultDatabase = "Shared"}}, {"EU1", new DocumentStore {Url = "http://rvn2:8080", DefaultDatabase = "Europe1"}}, {"NA1", new DocumentStore {Url = "http://rvn3:8080", DefaultDatabase = "NorthAmerica1"}}, {"EU2", new DocumentStore {Url = "http://rvn4:8080", DefaultDatabase = "Europe2"}}, {"NA2", new DocumentStore {Url = "http://rvn5:8080", DefaultDatabase = "NorthAmerica2"}}, }; There are a couple of things...(Read whole news on source site)

How to export Excel sheet to PDF format in Excel 2013 ?

AddThis Social Bookmark Button
This blog post will explain in simple steps on how to export the excel sheet to PDF format in Microsoft Excel 2013 so that it can be easily shared and be used for printing later. How to export Excel sheet to PDF format in Excel 2013 ? Follow the below steps to export the excel......(Read whole news on source site)

Consumed: Queries and projections (F#)

AddThis Social Bookmark Button
This is the third post in my series on porting a node.js application to an F# application.

So far, I've looked at parsing command line arguments, handling commands and storing events. Today, I want to project those events into something useful that can be formatted and printed to the console.

In the original application, I only had a single query. The result of this query lists all items consumed grouped by category, sorted chronologically

Handling the query is done in a similar fashion to handling commands. The handle function matches each query
and has a dependency on the event store.

Where C# requires a bit of plumbing to get declarative projections going, F#'s pattern matching and set of built-in functions give you this for free.

We can fold over the event stream, starting with an empty list, to append each item that was consumed, excluding the ones that were removed later. Those projected items can then be grouped by category, to be mapped into a category type that contains a sorted list of items.

The result can be printed to the console using a more imperative style.

And...(Read whole news on source site)

Understanding AngularJS Isolated Scope

AddThis Social Bookmark Button
In Angular, directives can have an isolate scope that creates an inner scope that is separated from the outer scope. There are a variety of options for mapping the outer scope to the inner scope, and this can often be a source of confusion. Recently, I’ve noticed a ton of up-votes for my answer to the Stackoverlow question: Differences among = & @ in Angular directive scope? I created a simple jsFiddle to answer the question. The HTML markup looks like this:
   
Outer bar:... [[ This is a content summary only. Visit my website for full links, other content, and

I was speaking at Techorama 2015

AddThis Social Bookmark Button
Last week was my first time to be a speaker at Techorama, Belgium. It’s not a big and massive event like Build or Ignite but it’s still pretty big for Europe, I think. And it’s challenging for speakers as line-up is very strong. Really, it’s not kids game. Here is my short overview of Techorama and if you want to get quick answer then yes, for sure get there next year! The post I was speaking at Techorama 2015 appeared first on Gunnar Peipman - Programming Blog.

Last Post… But not the End

AddThis Social Bookmark Button
Originally posted on: http://geekswithblogs.net/dotNETvinz/archive/2015/05/24/last-posthellip-but-not-the-end.aspxI've been actively blogging here since 2008 and I've witnessed a lot of great improvements and features in the site. Being a part of GWB is awesome and things has been great. It's been months since i thought of having my own blog, getting a new domain, hosting it myself,getting a new look and a more modern feel. GWB offers most of the things you need for managing your blog except that it doesn't have a really nice built-in editor for you to use. Fortunately Windows Live Writer was there to help you make life
easier when publishing a post. The downside for using WLW as editor is I wont be able to create or edit post anywhere. Another thing that lacks GWB is thing called "responsiveness". These two main reasons pushed me to make my plans on getting my own blog put into a reality. So yes. This will be my last post here as I will be moving into a new blog. Note that this blog will remain active because I will not be moving my blog posts over. Feel free to visit my new blog for future posts....(Read whole news on source site)

Home