Janne Mattila's blog

From programmer to programmer -- Programming just for the fun of it

Browse by Tags

Tagged Content List
  • Blog Post: Solving My Pocket Solitaire using Top-Down method

    This post continues My Pocket Solitaire series. This time we’re starting to open up the solving logic for this puzzle. Playing of the game starts from the initial position: No canvas support so cannot display the board :-( Sorry! From that initial state you should end up into this target state: No canvas...
  • Blog Post: History of me and My Pocket Solitaire (Peg Solitaire)

    As mentioned in previous post I’m going to write series of posts about thing I like to call “ My Pocket Solitaire ”. It’s Peg solitaire but since I have one game at home which says in the box “ Pocket solitaire ” so I have kind of used to that name. Especially since I have had that game as long as I...
  • Blog Post: Modifying application behavior with Detours (for Application Compatibility reasons)

    My previous post was about Application Compatibility Toolkit and shims. But what if you have a bit different situation... Imagine that I have my good old My Windows App application that has been working correctly in the past. Now it’s not maintained anymore and it seems that no one has created similar...
  • Blog Post: Live Mesh + Visual SourceSafe = Code everywhere!

    For long time I have wanted have my code _ everywhere _. Just because I have 3 different computers that I use to write my own stuff. Obviously it would be nice to have version control system (such as Team Foundation Server) but for my own use it would be quite heavy solution. And many times when I have...
  • Blog Post: My Chess (another chess application)

    I came up with the idea of My Chess when I wanted to play games with my friends and I noticed that I don’t have time to do that :-) So I decided to write an application that allows me to play chess with my friends just by using small amount of time every now and then (approach is pretty different compared...
  • Blog Post: My Notes (a small application between notepad and OneNote)

    I have been using Windows 7 and  Windows Server 2008 R2 since the first beta. And I mean on my “ production ” laptops. And I have to say that I haven’t had any major issues with them. In fact I’ve used to them so much that I don’t want to use older versions anymore :-) And there are few improvements...
  • Blog Post: Visual Studio 2008: Track Active Item in Solution Explorer

    If you’re working on solution that has many projects and many project items and you tend to get lost between your files ... You might want to go to Tools –> Options –> Projects and Solutions and set Track Active Item in Solution Explorer on. For me it was a big relief that I found it. I’m working...
  • Blog Post: Creating Excel Game (or something similar for fun)

    Awhile back I saw really interesting article: Microsoft Excel: Revolutionary 3D Game Engine? After that I was forced to do small test on that and that of course resulted to this post :-) I just grabbed the idea and made small “car game” (but in reality it just vaguely reminds of car game) on top of Excel...
  • Blog Post: Web Services and namespaces (or WCF?)

    You might have encountered following situation: 1. You have created class library “MyLibrary” and it contains following class: 1 2 3 4 5 6 7 8 namespace MyLibrary { public class Employee { public string FirstName; public string LastName; } } 2. You have...
  • Blog Post: Use LINQ to access CRM objects

    If you have written small console application to check some data from CRM database you have probably already read this article from MSDN: Use Filtered Views . That is okay but honestly I’m currently more into LINQ solution. I’ll show you what I mean... First I'll create new Console Application project...
  • Blog Post: Maximize the use of CPU with parallel extensions (+ some WPF stuff)

    Since this is my 40th post to this blog I decided to go back to square one… or post one actually :-) I’m going to create Windows Presentation Foundation (WPF) application that solves the Knight’s Tour puzzle. I actually didn’t know about this puzzle before I bought book called Puzzles for Programmers...
  • Blog Post: SQL Server Profiler and SPQuery

    Question: I’m using SPQuery to retrieve items from my SharePoint list and now I want to know little bit more about SPQuery properties. Actually I’m interested about performance related things since I’m not sure about my query currently. I currently have following code to retrieve my data: 1 2 3 4...
  • Blog Post: Creating Localization Tool with Silverlight

    Since Silverlight 2 is in Beta 2 phase it’s definately time to create small application with it. Together with my friend we’e created small example application called Localization Tool . Idea in our example application is pretty simple... allow end users to modify texts used in application. And for the...
  • Blog Post: Adding CRM 4.0 to your own win app with web form authentication

    Last year I wrote small article Adding MS CRM to your own windows forms applications that demonstrates the usage of CRM in your own custom windows forms applications. In CRM 4.0 the story is pretty much the same but there’re few things that you need to take into account so that everything works as you...
  • Blog Post: CRM 4.0 (or SharePoint or custom application) and DebugView

    Every now and then I’m find myself trying to solve same issues over and over again :-) That’s why I found myself (again) using DebugView as my debugging assistant at remote box. If you don’t know what DebugView is then you should definitely try it out. I’m going to give you few ideas how you could use...
  • Blog Post: Simple Outlook Add-in with VSTO 3.0

    Creating add-ins with Visual Studio 2008 and VSTO 3.0 (Visual Studio Tools for Office) is easy and fast… Just use File –> New –> Project –> Select correct add-in i.e. Outlook 2007 Add-in and you project template is created. And you can run you add-in in debug by just hitting F5! So the basic...
  • Blog Post: Comparing two databases (schema and/or data)

    Quite often people like to know what's happening under the covers when they do something through user interface. For example they use CRM, SharePoint or some other product through user interface and they would like to know what has happened at the database. Normally my answer is that you don't need to...
  • Blog Post: Catching unhandled exceptions in SharePoint

    If you have done some dev stuff with MOSS you have most likely seen this: " An unexpected error has occurred. " is something that you probably don't want to see at your browser.... you want to have customized error page. In ASP.NET application you normally put Application_Error into you global.asax file...
  • Blog Post: Building Arcade Game Player (first step in long path)

    For few months I have been thinking of building arcade game player. I mean that I would create application that would then play some old classic arcade game (i.e. Blues Brothers , Rick Dangerous , Super Mario Bros. etc.). Previously I have created applications that play puzzle games (i.e. Survo , MineSweeper...
  • Blog Post: Few development tips for CRM 4.0

    If you are working with Microsoft Dynamics CRM 4.0 and your planning to do code customizations then you probably should keep on reading. And why am I talking about code customizations and not just customizations ? Well just because in CRM you can do a lot without a single line of code... and this time...
  • Blog Post: Use dynamically created InfoPath form instance to pre-fill form

    If you want to pre-fill InfoPath form before user gets his/her hands to it... you have two ways to do that: Call Web Services from InfoPath It normally takes quite long Dynamically create InfoPath form instance Fast and there isn't any limitations where to get data Both methods have been mentioned many...
  • Blog Post: Dynamically create static Excel files for Excel Service

    Excel Services is pretty nice for displaying Excel files over the network. But if you're developing Excel Services solution for the first time you might first think of the limitations or something that forces you to build your overall solution in certain way. So I thought I'll write little bit about...
  • Blog Post: Minesweeper goes web

    Disclaimer/Important notice: I sometimes go crazy with my favorite programming tools. I use my imagination to do things and try to forget all the rules that I normally would keep in mind when developing applications. This post is one of those moments when I got loose. So you don't probably want to take...
  • Blog Post: From InfoPath to Database via Web Service

    I have been asked to build this kind of example sooooo many times that now I really need to write this down :-) This stuff isn't rocket science but I have got so many emails about this so I just want to answer all those questions at once. So I have previously written about getting data from web service...
  • Blog Post: Adding own custom web service to SharePoint

    I posted awhile back about InfoPath and Web Service data connection and I got question about using own web services in SharePoint (or at least I interpreted it that way :-). I tried to describe idea to have own custom "proxy" web service that would do all the necessary stuff inside SharePoint so that...
Page 1 of 2 (34 items) 12