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

Part 5: Developing for a multitude of clients: strategies for code reuse and keeping costs in check.

AddThis Social Bookmark Button
Welcome to the fifth part of this article series on strategies for designing your application for a multitude of different clients.  In the first part, we’ve looked into the business case & some general concerns, and in the second part, we made a choice for a service layer: WCF RIA Services.  In the third part, we’ve seen how we can use MEF for on demand loading & code reuse across different clients, and in the fourth part, we’ve learned how to load a multitude of assemblies on demand, and we’ve learned how we can navigate
to views in an on-demand loaded assembly by implementing a custom content loader in combination with a view factory. In this part, we’re going to add another client to equation: a Silverlight Out of Browser client.  After all the work we’ve done on the previous articles, we’ll see just how easy it is to reuse most of the code...(Read whole news on source site)

New Coding4Fun Toolkit v1.5.6 officially released

AddThis Social Bookmark Button
by WindowsPhoneGeek A new Coding4Fun.Phone.Toolkit v1.5.6 official release was announced on 14 April 2012 with some minor fixes. NOTE: Coding4Fun quickly became one of the most popular free projects that offer additional components for Windows Phone  application development.  Here is what is included in the download package: Bug Fixes nuget was broken for Timespan and complete build due to how i did the target. Corrected and made all 3 match. workitem: http://coding4fun.codeplex.com/workitem/7917 Color Slider (and by default Color
Picker) didn't respect view state for being disabled depending on how it was set. Test application now has test cases. workitem: http://coding4fun.codeplex.com/workitem/7909 Stay tuned for our next "Coding4Fun Toolkit in depth" articles! ...(Read whole news on source site)

Converting to Windows 8 from Windows Phone | Working with third party libraries and JSON (6 of 12)

AddThis Social Bookmark Button
source: blog.jayway.com Right now, one of the big differences between Windows Phone and Windows 8 is what third party components you can use. For Windows Phone you have a huge selection of components that you can choose from to get help with anything from MVVM to animations. We used several when implementing Reseguidens sista-minuten application. One we used quite extensively throughout the application is ServiceStack.Text to parse JSON. If we had been lucky we would have been able to re use the same libraries in Windows 8. If we had been smart we would
have isolated all third party libraries so we easily could swap them. ...Read more ...(Read whole news on source site)

Working with Image Paths in WinRT–Something odd here

AddThis Social Bookmark Button
Over the weekend I was pounding away at my first ‘WinRT’ application which I plan to submit to the marketplace.  During this process I ran into some really odd issues with getting images to display in the UI at runtime. Let me explain my issue: I had images which were nested inside my Assets folder as below:
/Assets
  -> /Category
         -> /Animals
                -> horse.png These images were being bound to a view which was not
in the root of the solution but rather in a views folder as below:
/Views
  -> /Gameboard.xaml Originally I was trying to use binding to the Image control to a ImageSource property.  In my ImageSource property I was doing something like below public ImageSource Image { get { var uri = new Uri("ms-appx:///Assets/Category/Animals/horse.png"); return new Bitmapimage(uri); } } When I would put a break point in the property everything appeared right, however when I would bind to the UI no image would show up.    I then tried to play with the URI path by adding...(Read whole news on source site)

RavenDB & FreeDB: An optimization opportunity

AddThis Social Bookmark Button
The purpose of this post is to setup a scenario, see how RavenDB do with it, and then optimize the parts that we don’t like. This post is scheduled to go about two months after it was written, so anything that you see here is likely already fixed. In future posts, I’ll talk about the optimizations, what we did, and what was the result. System note: I run those tests on a year old desktop, with all the database activity happening on a single 7200 RPM 300GB disk with 8 GB of RAM. Please don’t get to hung up on
the actual numbers, I include them for reference, but real hardware on production system should kick this drastically higher. Another thing to remember is that this was an active system, while all of those operations were running, I was actively working and developing on the machine. The main point is to give us some sort of a metric about where we are, and to see whatever we like this or not. We keep looking at additional things that we can do with RavenDB, and having large amount of information to tests things with is awesome. Having non fake data is...(Read whole news on source site)

Rotate 3D model in XNA using Motion API

AddThis Social Bookmark Button
source: igrali.wordpress.com Motion API is a great way for you as a developer to get access to sensor data in more sophisticated and more useful way than just getting the raw data from each sensor. There's a complex math in the background that combines the sensor data for you to get more usable data. This way, you can use Motion API to do interesting things such as rotate 3D objects in space using XNA Framework and Windows Phone. ...Read more

Changes To The Dropbox API - Upload Files The New Way From a Windows Phone

AddThis Social Bookmark Button
source: dzone As I was working on my next Windows Phone project, I had to once again integrate the Dropbox API with my application. I already had a wrapper done (remember the SevenDrops project?) and it works pretty well. However, I signed up for a new API key, since the application is of a different nature compared to SevenDrops itself. I copied the code in my new project, modified the keys and... none of my previous method worked. I started SevenDrops - it works. The new app - fails on every single test. Apparently, the
problem is simple - Dropbox changed the terms of their API use for new applications. With SevenDrops, I used the very simple token acquisition method - by passing user credentials in the request URL. At the time, it was supported and the application worked well. This mechanism has since been discontinued. But why SevenDrops still works? My assumption is because at the time when I registered the application the basic auth token acquisition mechanism was available, I am still able to use it to avoid breaking the application. With new apps, there is only the OAuth way - which, in...(Read whole news on source site)

The Morning Brew #1085

AddThis Social Bookmark Button
Software ILSpy v2 4 U - ILSpy v2 RTWs - Greg Duncan highlights Christoph Willie’s announcement of the official 2.0 release of ILSpy, the open source .NET Decompiler. V2 brings support for decompilation to VB.NET, decompiling Expression Trees, and much more. Information Visual Studio 11 Fakes Part 1 - Stubs - Peter Provost kicks off a series [...]

Removing unwanted characters - Part 3

AddThis Social Bookmark Button
In this series at Part 1 Removing unwanted characters , I posted a method that used a function. In part 2 I posted a method that used Dynamic SQL.

Here is another improved method that uses Dynamic SQL --Create test data create table #data (data varchar(100)) insert #data select 'tes^@&t %stri)-n!g' data union all select '))aaer***********)' union all select '&^&&hsdf()' union all select 'jj&wk' union all select ')hw*pa' union all select 'No&@#$53*24,Mai()$n R--!oad' --Create table that has all set of characters to be removed create table clean_chars (char_id int identity(1,1),chars char(1)) insert into clean_chars (chars) select '^' as repl union all select ')' union all select '('
union all select '&' union all select '*' union all select '%' union all select '@' union all select '-' union all select ',' union all select '#' union all select '$' union all select '#' union all select '!' declare @sql varchar(max), @select varchar(max) select @sql='',@select='' select @select=@select+'replace(', @sql=@sql+','''+chars+''','''')' from clean_chars select @select='select data,'+@select+'data'+@sql+' as cleaned_data from #data' exec(@select) The result is data cleaned_data -------------------------------------------------------- tes^@&t %stri)-n!g ...(Read whole news on source site)

Home