Lunch With Mats Bryntse Today, Author of Ext Scheduler. Talked about Code Camp Integration and January 7th Meetup
Wednesday 23 December 2009 @ 4:11 pm
  Mats and I met today in Palo Alto for lunch to talk about the upcoming Ext Core Developer, and of course seeing old friends. We also talked about Mats incorporating his schedule component into the
Comments (0) - Posted in ExtJS  


How to Get a Stack Trace from C# without throwing Exception
Monday 21 December 2009 @ 9:48 am
  Say you have some logging in your code that finds something unusual going on.  In my case, I have a DataContext that I check to make sure it’s not already open before I open it.  The method that I call the DataContext in is a utility method that is buried many layers down.  [...]
Comments (2) - Posted in ASP.NET 2.0  


Another Cool Resharper Refactoring
Saturday 19 December 2009 @ 6:52 pm
  So, if you are like me, it’s easy to make mistakes on whether to use && or || when combining variables on if statements.  I hate to just start nesting if statements because the code gets bulky, but if not, I have to think three times about whether I got it right. [...]
Comments (1) - Posted in C#, ReSharper  


Book Review – Programming Entity Framework (EF) by Julie Lerman
Monday 14 December 2009 @ 10:36 am
  You all know that I’ve blogged quite a bit about LINQ2SQL.  That technology has saved me a huge amount of programming effort verses using ado.net directly.  We all know that LINQ2SQL is really just a stepping stone to Visual Studio 2010 beta 2.  It’s obviously not done, but from what I’ve seen, when [...]

How To User StreamReader to Open A File ReadOnly in C# (.NET)
Monday 7 December 2009 @ 6:14 pm
  This is probably something pretty simple, hardly worth blogging about, but it took me a little while (15 minutes)  to figure out how to open a file C#. Say you have a block of code like the following for simply reading all lines of a file: StreamReader streamReader = new StreamReader("myfile.txt") string [...]
Comments (3) - Posted in ASP.NET 3.5  


Most Amazing ReFactor Using ReSharper EAP 5.0 I’ve Seen!
Friday 4 December 2009 @ 11:27 am
  This one is just to amazing to not blog about.  I’ve been a die heart ReSharper Icon that is) so I hovered over to see what it wanted.   And, I chose what it suggested, and wow!  check this out.   The way I should have coded it in the first place. private static int GetTransitTime(string [...]
Comments (4) - Posted in LINQ, ReSharper  


Awesome Ext Scheduling Component Built By Mats Bryntse
Wednesday 2 December 2009 @ 7:10 pm
  My friend Mats Bryntse, who you may know from our our San Francisco ExtJS developer who builds the highest quality stuff so definitely worth your time if you need a component like this. Good Luck!
Comments (0) - Posted in ExtJS  


Using PLINQ for Managing Multiple Threads
Wednesday 2 December 2009 @ 1:05 pm
I’m currently watching an online video (400 level, very high) from PLINQ, this can be avoided with clean error free code (as long as my method is thread safe).  Here is some simple code that demonstrates this. var result = source.AsParallel().Where (x => [some condition]).Select(x => [something]); .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, “Courier [...]
Comments (0) - Posted in .NET 4.0, PLINQ, VS2010