sedanwer
Name: sedanwer
Score: 390.2
Last Seen: 167 days, 23 hours, 56 minutes ago
Member Since: 15 December, 2009
DotNetShoutout
atom rss
4
Shouts

SQLGeography in SQL Server 2012 – Polygon must start on correct position | Daniel Wertheim

published 158 days, 23 hours, 39 minutes ago posted by sedanwersedanwer 168 days, 22 hours, 10 minutes ago
Wednesday, December 12, 2012 9:47:32 AM GMT Sunday, December 02, 2012 11:17:21 AM GMT
I've been working with some simple spatial data lately. In one use-case, the user marks a polygon by using an iPad or iPhone in field and walks around storing points (coordinates), which after at least three points, forms an area (the first coordinates are also used as the last to close it). I’m using the built in spatial functionality in SQL Server 2012. According to SqlGeography.STIsValid and SqlGeography.IsValidDetailed, the surface was a valid polygon, but when using e.g SqlGeography.STContains and c... (more)
category: How To | clicked: 22 | comment | | source: daniel.wertheim.se
tags:
4
Shouts

Customizing the minification of JavaScript in ASP.Net MVC4, allowing reserved words | Daniel Wertheim

published 174 days, 10 hours, 38 minutes ago posted by sedanwersedanwer 184 days, 4 hours, 54 minutes ago
Monday, November 26, 2012 10:49:22 PM GMT Saturday, November 17, 2012 4:33:21 AM GMT
A friend of mine just posted a question on StackOverflow, regarding having reserved member names in code, which doesn’t play well with the minifier. I opened up object explorer and started to look over the API in WebGrease and the System.Web.Optimazation framework. Just took a few minutes and put together some prototype code, that would replace the member names in the code, from “delete” to “fooDelete”. And it just doesn’t change the member names, but the usages of them as well. (more)
category: How To | clicked: 11 | comment | | source: daniel.wertheim.se
tags:
2
Shouts

MongoDb for .Net folks – a quick theoretical peak what schema-less means | Daniel Wertheim

published 240 days, 23 hours, 17 minutes ago posted by sedanwersedanwer 250 days, 10 hours, 28 minutes ago
Friday, September 21, 2012 10:09:58 AM GMT Tuesday, September 11, 2012 10:59:09 PM GMT
Now it’s time to have a quick peak on this whole “schema-less” thing that NoSQL products offer. We will of course focus on MongoDB when we compare a document-oriented DB against a more traditional, relational DB commonly found in RDBMS like SQL Server. (more)
category: Data | clicked: 35 | comment | | source: daniel.wertheim.se
tags:
7
Shouts

MongoDb for .Net folks – Having a quick go with MongoLab | Daniel Wertheim

posted by sedanwersedanwer 255 days, 2 hours, 53 minutes ago
Friday, September 07, 2012 6:34:25 AM GMT
This time we will have a quick look at using MongoDb as a service. The provider we will look at is MongoLab. It takes about 5 minutes to be up and running. Add a couple of minutes and you will have used Postman to do what we have done in the previous articles. Inserting and updating simple document. (more)
category: How To | clicked: 32 | comment | | source: daniel.wertheim.se
tags:
7
Shouts

MongoDb for .Net folks – Choosing a GUI tool and installing as a service | Daniel Wertheim

posted by sedanwersedanwer 255 days, 2 hours, 55 minutes ago
Friday, September 07, 2012 6:31:29 AM GMT
This is a short article, where we will look at installing MongoDb as a service as well as selecting a GUI tool that we can use to interact with MongoDb servers and databases. (more)
category: How To | clicked: 15 | comment | | source: daniel.wertheim.se
tags:
5
Shouts

Getting started (again) with MongoDb in .Net on Windows | Daniel Wertheim

published 249 days, 23 hours, 40 minutes ago posted by sedanwersedanwer 256 days, 15 minutes ago
Wednesday, September 12, 2012 9:46:40 AM GMT Thursday, September 06, 2012 9:12:24 AM GMT
It has been a while since I used MongoDb and wrote my C# driver, so I thought I would take a look at what has happened and to checkout how the official MongoDb driver from 10Gen works after having gone through how to install Mongo etc. (more)
category: Data | clicked: 20 | comment | | source: daniel.wertheim.se
tags:
3
Shouts

SisoDb and SQL Server Express 2012, LocalDB « Daniel Wertheim

published 278 days, 23 hours, 13 minutes ago posted by sedanwersedanwer 288 days, 3 hours, 6 minutes ago
Tuesday, August 14, 2012 10:13:56 AM GMT Sunday, August 05, 2012 6:20:39 AM GMT
This is a verry short introduction to SQL Server Express 2012, LocalDB, and I’ll show you how to use it in conjunction with SisoDb (Simple, Structure, Oriented DB). I'll be using Chocolatey to install it. (more)
category: Data | clicked: 19 | comment | | source: daniel.wertheim.se
tags:
5
Shouts

Having fun with ImpressJs and WebSockets, creating real-time presentations

published 373 days, 22 hours, 10 minutes ago posted by sedanwersedanwer 381 days, 13 hours, 22 minutes ago
Friday, May 11, 2012 11:16:49 AM GMT Thursday, May 03, 2012 8:04:29 PM GMT
A friend of mine showed me ImpressJs today. He was going to have notes on another screen (well actually on an iPad) and I thought it would be cool if the presentation could be synced with notes on another screen as well. Fired up Visual Studio and put together a small socket server as well as a simple java script client and created a Presenter-Attendee solution with ImpressJs and WebSockets. (more)
category: Screencast | clicked: 51 | comment | | source: daniel.wertheim.se
tags:
4
Shouts

Some XSockets and SisoDb fun – Part 2 of 2

published 398 days, 13 hours ago posted by sedanwersedanwer 404 days, 4 hours, 11 minutes ago
Monday, April 16, 2012 8:26:36 PM GMT Wednesday, April 11, 2012 5:15:32 AM GMT
This is a continuation of Some XSockets and SisoDb fun. This post is about putting SisoDb to use and we will look how to implement Insert, Gets, Updates, Queries and Deletes in JavaScript against a socket handler. (more)
category: Architecture | clicked: 18 | comment | | source: daniel.wertheim.se
tags:
3
Shouts

C#, Parallel deserialization of JSON stored in database « Daniel Wertheim

published 490 days, 21 hours, 32 minutes ago posted by sedanwersedanwer 494 days, 10 hours, 30 minutes ago
Sunday, January 15, 2012 11:54:38 AM GMT Wednesday, January 11, 2012 10:57:27 PM GMT
A while back ago I had to yield entities constructed by deserializing JSON stored in a database. The first solution just opened a simple single result, sequential reader against the database returning a one column result set containing JSON. This was just yield returned after deserialized to the desired entity. Trying to tweak this I turned to the task parallel library. The idea was to in a separate task, read from the datareade... (more)
category: Architecture | clicked: 34 | 1 comment | | source: daniel.wertheim.se
tags: JSON, ADO.NET, Task Parallel Library, DataReader, C#
2
Shouts

C#, Visual Studio 2010, No more Client profile in 5minutes. « Daniel Wertheim

published 495 days, 13 hours, 1 minute ago posted by sedanwersedanwer 497 days, 22 hours, 4 minutes ago
Tuesday, January 10, 2012 8:26:19 PM GMT Sunday, January 08, 2012 11:22:45 AM GMT
C#, Visual Studio 2010, No more Client profile in 5minutes. I guess I’m not alone being tired of running into the “Client profile” framework version used when creating a Console application in Visual Studio 2010. Don’t know how life is going to be in coming version of Visual Studio, but until then, lets show you a solution that takes no more than 5 minutes. (more)
category: How To | clicked: 105 | comment | | source: daniel.wertheim.se
tags: Visual Studio 2010
3
Shouts

C#, Generic factory with support for private constructors « Daniel Wertheim

published 503 days, 13 hours, 49 minutes ago posted by sedanwersedanwer 507 days, 9 hours, 8 minutes ago
Monday, January 02, 2012 7:37:30 PM GMT Friday, December 30, 2011 12:18:55 AM GMT
Shows how-to create a generic factory allowing creation of generic classes having a private constructor using compiled lambdas to get better performance. (more)
category: How To | clicked: 22 | 1 comment | | source: daniel.wertheim.se
tags: private constructor, C#, .Net 4.0, generic factory, lambdas, private constructors
3
Shouts

Tip: Install missing NuGet packages using Albacorebuild and Rake « Daniel Wertheim

published 658 days, 13 hours, 35 minutes ago posted by sedanwersedanwer 661 days, 12 hours, 15 minutes ago
Sunday, July 31, 2011 7:52:05 PM GMT Thursday, July 28, 2011 9:12:19 PM GMT
As I’m using Albacorebuild and Rake together with TeamCity and GitHub to setup a continuous integration (CI) flow I’m about to stop checking in NuGet packages in my source code repository at GitHub. What I do want, is a simple way for the developer and the CI server to use rake to install any missing NuGet packages. (more)
category: How To | clicked: 7 | comment | | source: daniel.wertheim.se
tags: Rake, albacorebuild
2
Shouts

Why the ExpectedExceptionAttribute sucks! « Daniel Wertheim

published 668 days, 13 hours, 49 minutes ago posted by sedanwersedanwer 669 days, 1 hour, 46 minutes ago
Thursday, July 21, 2011 7:38:07 PM GMT Thursday, July 21, 2011 7:40:58 AM GMT
Today I was reading a book which showed an example of an unit test. And even if it was just there to show unit testing as a concept when doing ASP.Net MVC development, I really think you never, ever, ever, ever, ever…..(n)….ever should use that ugly attribute. Why, well follow along. (more)
category: How To | clicked: 10 | comment | | source: daniel.wertheim.se
tags: TDD, unit testing
5
Shouts

NHibernate – Custom Id-generator « Daniel Wertheim

published 800 days, 21 hours, 23 minutes ago posted by sedanwersedanwer 803 days, 14 hours, 13 minutes ago
Friday, March 11, 2011 12:04:09 PM GMT Tuesday, March 08, 2011 7:13:52 PM GMT
Recently I had a case where I needed to switch from the Identity generator to the HiLo generator in an existing project with existing data. Why? Well for one thing it gives better performance since identities brakes the ability to use batch inserts, since the generated Id needs to be returned (selected) after each insert. I didn’t want to go through and configure params for each entity, hence I created a custom implementation of an Id-generator and added some conventionbased configuration in that class ... (more)
category: Architecture | clicked: 10 | comment | | source: daniel.wertheim.se
tags: id-generator, NHibernate, hilo
3
Shouts

Json.Net vs ServiceStack.Text « Daniel Wertheim

published 830 days, 19 hours, 58 minutes ago posted by sedanwersedanwer 832 days, 14 hours, 58 minutes ago
Wednesday, February 09, 2011 1:28:37 PM GMT Monday, February 07, 2011 6:28:36 PM GMT
This is going to be a verry short comparision of the two Json-serialization frameworks: Json.Net – http://json.codeplex.com ServiceStack.Text – https://github.com/mythz/ServiceStack.Text I have always used Json.Net when dealing with serialization of entities back and forth to Json, but then I stumbled upon this: “Fastest JSON Serializer for .NET released” – http://www.servicestack.net/mythz_blog/?p=344 Man was I excited, since I need the “best” performance I can get for this in SisoDb.Com ... (more)
category: Architecture | clicked: 18 | comment | | source: daniel.wertheim.se
tags: servicestack, Performance, Json.NET
4
Shouts

C#, Clean up your Linq-queries and lambda expressions « Daniel Wertheim

published 832 days, 15 hours, 16 minutes ago posted by sedanwersedanwer 832 days, 22 hours, 7 minutes ago
Monday, February 07, 2011 6:10:41 PM GMT Monday, February 07, 2011 11:20:20 AM GMT
Last week something caught my eyes. How scattered business logic can become if you let your binary expressions be used “here and there” when matching entities against certain rules. Logic for a single entity, e.g Customer can be used all over your codebase. This article will show you a way to get around this and to get a central repository of rules/predicates that can be applied to entities and makes your daily unit test writing easier. I will use simple operator overloading for accomplishing this. (more)
category: Architecture | clicked: 6 | comment | | source: daniel.wertheim.se
tags: Design, C#, clean code, Architecture, CSharp, Linq, lambda expressions
4
Shouts

C# – Custom datareader for SqlBulkCopy

published 921 days, 17 hours, 46 minutes ago posted by sedanwersedanwer 922 days, 2 hours, 51 minutes ago
Wednesday, November 10, 2010 3:41:01 PM GMT Wednesday, November 10, 2010 6:35:38 AM GMT
When prototyping SisoDb I used datatables under the covers when consuming the SqlBulkCopy class to insert data. This lead to that I had the source entities in memory as well as the datatables. Since the SqlBulkCopy class can work with readers I created a very simple datareader implementation over my entities instead. I gained a little performance boost and got rid of unnecessary creation of in-memory datatables. At first the API of a datareader seems kind of tedious to implement, but in the context of us... (more)
category: Architecture | clicked: 10 | 1 comment | | source: daniel.wertheim.se
tags: ADO.NET, C#, Custom DataReader, SQLBulkCopy
5
Shouts

Json.Net – private setters

published 923 days, 1 hour, 50 minutes ago posted by sedanwersedanwer 925 days, 13 hours, 15 minutes ago
Tuesday, November 09, 2010 7:37:01 AM GMT Saturday, November 06, 2010 8:12:26 PM GMT
This post is a simple on explaining how you can make Json.Net handle private setters. I will show you three solutions but only one fulfills my requirements: No attributes should be required No fields should be serialized/deserialized only properties The solution is to extend the DefaultContractResolver..... (more)
category: Architecture | clicked: 2 | comment | | source: daniel.wertheim.se
tags: Json.NET
6
Shouts

C# – Batch identity inserts « Daniel Wertheim

published 937 days, 21 hours, 2 minutes ago posted by sedanwersedanwer 938 days, 19 hours, 22 minutes ago
Monday, October 25, 2010 12:24:46 PM GMT Sunday, October 24, 2010 2:04:59 PM GMT
I’m currently building support for identity inserts in SisoDb where I need to let the database generate the ids and then assign them to the entities. To get better performance I want to batch up the inserts and sending them in a large chunk to the Sql-server and I want to make use of parameters to be protected from sql-injection attacks. You can of course use SqlBulkCopy but it will not let you get the generated identities so that you can assign them to your entities. (more)
category: Data | clicked: 0 | comment | | source: daniel.wertheim.se
tags: ADO.NET, bulk insert, identity bulk insert
Previous 1 2 Next