Hi!, As I wrote in previous post, I'm gonna show you a little about ASP.NET MVC. If you wanted to read this and next posts, I would expect you to know what is MVC pattern and how ASP.NET works. Here is something about MVC pattern on MSDN and here is something about ASP.NET, if you don't know what is it yet ;] Okay, so we reached the point, where we start studying technical details of ASP.NET MVC. (I assume that you too have installed MVC Beta October 2008) For first post we'll make pretty simple,...
Welcome to my new blog about web technologies. Firstly, sorry for my poor english, I guess that sometimes it would be difficult for you to understand, what I wanted to say, but you should always try ;]. You know I'm from Poland and that's a country, where they teach as they wouldn't want you to know anything. Very sad country. But whatever happens, you must never give up. In next posts I'm gonna consider mainly ASP.NET MVC. Kinda new framework, as described by guys form m$ it's alternative approach...
To Use VS 2005 Web Deployment Projects 1. install VS 2005 Web Deployment Project add-in at "setup" link below a. http://msdn.microsoft.com/en-us/asp.net/aa336619.aspx 2. In File Name Box - "*.*" -> Click Open Button 3. Select an available .wdproj file Other links: · http://msdn.microsoft.com/en-us/asp.net/aa336619.aspx · http://msdn.microsoft.com/en-us/library/aa479568.aspx...
I came across a requirement where we needed to create types dynamically based on XML Configuration files, so that in the furture new types are required we dont need to update the application again by creating a new class. The additional requirement was to populate the property names of the class based on the Cml configuration and its values using the Querystring values from the HttpWebRequest. I earlier thought about using Dynamic methods from .NET Framework 2.0, but that did not fit my purpose since...
This is a lot harder than it sounds. At first you think there will be a built in option with the Read Identities method on the IGroupSecurityService Interface, but you would be wrong! When capturing an event from Team Foundation Server you have access to a lot of information about the change, including the Display Name of the fields for Assigned To and Changed By. But what if you allow Work Items to be assigned to groups! First, lets achieve that. Create a group called “Program Management” on a project...
So, got the Motorola MC75 working with its inbuilt camera. However during a demo the other day I inadvertently clicked my camera capture button on a device that doesn't have an inbuilt camera (doh). Of course my application then blew up. So here's the code that performs a camera capture but also detects (well catches) if the device doesn't have one... try { CameraCaptureDialog ccd = new CameraCaptureDialog(); ccd.InitialDirectory = @"\"; ccd.DefaultFileName = "test.jpg"; ccd.Mode = CameraCaptureMode.Still;...
Tampa CodeCamp is this weekend. Great speakers and great sessions, see you there! 12/6/2008 8:30 AM - 5:30 PM Welcome Time: 12/6/2008 7:30 AM Eastern Time K-FORCE BLDG 1001 E Palm Ave Tampa, FL , FL 33605 Be sure to sign up for this event ASAP at - http://www.tampacodecamp.com/...
The 2009 date has been set for January 24, 2009 from 8:00 - 4:30 at New Horizons of MN. Details are being finalized and as soon as the registration page is open, we will post the information here SharePoint Camps are about the SharePoint community at large. They are meant to be a place for developers, administrators and any SharePoint user to come and learn from their peers. Topics are always based on community interest and never determined by anyone other than the community. Registration link: http://www.nhmn.com/Courses/CrsDetail.aspx?C=NHTCSPCamp2...
To access a method from master page in the content page ensure first: The method in master page is declared as public than call this code from your content page code behind: MasterPageClassName MyMasterPage = (MasterPageClassName)Page.Master; MasterPageClassName.SetMenuToRegistered(); where: SetMenuToRegistered() - is a method positioned in the master page class...
Annual Holiday Networking Event Where: Eagan Community Center When: Tuesday, December 9, 2008, Special Time: 3:00 p.m. - 6:00 p.m. Speaker: Sue Lindgren, YESS! Registration Link: http://www.ctamn.org/cde.cfm?event=219036 Are you as effective as you could be? Do you know what is holding you back or getting in your way so you can be effective? What is Emotional Intelligence? Event Notes: • Afternoon Event (3 p.m. to 6 p.m.) • Plenty of Networking Delight • Appetizers • Cash Bar (registration includes...
You're invited. Register at www.sharepointmn.com Please join us on Wednesday, December 10, for another opportunity to collaborate with experts on methods used to maximize the potential of the Microsoft Office SharePoint platform. Previous MNSPUG presenters will team to facilitate an open forum around the platform. Be sure to bring your questions and experience to participate in this dynamic discussion. Several subject areas within the SharePoint platform will be covered, including: • Planning • Development...
Following the PDC, there has been a whole host of announcements about the new features we’ll be seeing in .NET 4.0. I’d like to take a moment to look at some of the features that will be coming to VB.NET 10. Auto implemented properties When this feature came to C# it created real language envy among VB developers. In those instances where all you need a property to do is hold a value (i.e. where a public field would do the job nicely if it wasn’t evil), C# 3.0 allows the developer to write the property...
Here is a HelloWorld sample on the new ASP.NET Charting control. To begin with, install the free Microsoft Chart Controls and the "Tools for VS 2008 for Chart Controls" from here and here Note that if you don’t install the Tools for VS 2008 for Chart controls, the Chart Server Control doesnt show up in the Toolbox Once you are done with the installation, restart Visual Studio if you are already running the same (of course, save your work) 1. Start Visual Studio 2008 and create a File – New – ASP.NET...
Last week, I had a discussion with some friends about the new features in C# programming language. It is kind of interesting that for most of the new features, I always found myself start with some sort of reluctance and then gradually accept it and finally find myself couldn’t write code without it. When I started learning C# a few years ago, I didn’t even like properties (I was a big fun of java). I didn’t understand that if they are just getters and setters, why we were bothered to have properties...
In one of static class in our application, I found local static members that were used to pass data between calls of static methods. It’s wrong and can cause errors that are intermittent and very hard to reproduce. The problem will happen if the same code executed for 2 users simultaneously. In this case value for one user could be used for the second user and result will be unpredictable. The code was similar the following: public static class HelperClass { private static string _dataToPass = "";...
The Windows Live Team put up a neat bunch of controls that can be used in your ASP.NET Websites. In fact once you install the Windows Live Tools for Visual Studio 2008 from http://dev.live.com/tools/ you get a few server controls in the toolbox as well as website templates for Visual Studio 2008 project/website. I wanted to demonstrate how you can quickly add a video to your website that is being streamed from the Silverlight Streaming Service, all within 5 minutes. Pre-requisites 1. Visual Studio...
For many years savvy iTunes users have been setting up US iTunes accounts to not only get music, video and film at a reduced cost but also be able to get TV programs early. It has been one of the ‘legal’ ways of breaking the Sky monopoly. That has all been stopped as Apple decides to maximize revenue. Previously a US account could be had by setting up an iTunes account and selecting the ‘No’ card payment option. Of course a US address was required and the purchase of iTunes US gift certificates thro’...
Hello. I’ve often wondered why I’ve never blogged before and never really came up with a convincing reason why not. I guess it’s partly laziness and partly wondering if no-one is going to read it then what is the point. I’ve slowly come to the conclusion that I should at least blog my thoughts so that even if nobody else reads them, at least I’ve taken the time to consider more about what I am thinking and writing which can only be a good thing. I’m currently focused on Integration and have been...
This web page from Sprint takes web widgets to the nth level. It most certainly is one page to rule them all! Lord of the widgets...
Ever had the issue, when you think you're laptop is powering down. Place laptop in bag only to find a while later laptop didn't power down and has done a nice job in warming up your bag? This phenomenon has been happening more and more to me, as the graphics drivers are causing a crash when my machines attempts to hibernate. I just thought we'd better give this syndrome a name. I've called it 'Hot Bag Syndrome'...
VMware workstation is 25% of today at the www.vmware.com estore, use CyberMondayDeal code to get the discount. Thanks to Oliver Sturm for the top tip...
Selecting Items in a list using DIVs instead of Radio Buttons Problem: Radio buttons cannot be styled using CSS. Another problem is that they simply f*** up your design if used incorrectly. They are also not very useful if you would like a user to be able to click on a large item in order to select it. Solution: A solution to this problem would be to allow the user to click on whole DIVs in order to select an item. This is done using some javascript, CSS and a hidden textbox. This is how it's done...
So you have a Silverlight application, and you want it to serve up some videos or deep zoom images, but you don’t want to fork over major cash to your hosting provider for the extra disk space and traffic. Well has Microsoft got a deal for you… The Microsoft Silverlight Streaming program gives you space online to not only host your media files but also the bandwidth to serve them up to your Silverlight app…and its *free*! Here’s the details: - 10 GB of space to host your media files. - Up to 5 TB...
I've been struggling through a Team Foundation Server 2008 install with Sql Server 2008 over the weekend. It seems to be having an especially hard time with the SQL Server Reporting Services. After analyzing a few things, I determined that the configuration tool was having an issue due to some prior installations of software. The report urls were pointing to a SQL Express directory. I went about setting up the virtual directories manually. This required setting up an application pool, and I assigned...
When you program in a high level language like .NET where the Garbage collector takes care of your memory you do not have to think about memory as often as it is the case in C++. Memory leaks tend to show up much more often in C++ and other non garbage collected languages because nobody is cleaning after you. Garbage collection is a good thing but somehow your application consumes much more memory than you thought it should. What should you do now? First of all you need to understand how your memory...
Back in the past (circa May 2006) I entered the GWB Game Contest. Six weeks of design and programming in Visual C#.Net 2005, pre-XNA days. I created a post-apocalyptic arena card game, similar to Magic, where patrons fight their champions (or slaves) in an arena. It included anime game art created by my daughter Mindy. Now I have been converting it to XNA. In addition, I want to significantly tweak the gameplay, and add lots more cards. Mindy is unavailable for game art, so I was stumped for card...
As one of the books part of the 75 centimeters of MS Press books I won as Speaker Idol at TechEd EMEA Barcelona I selected the training kit for the WCF Exam (70-503). Here's my review on this book. You can buy the book at http://www.microsoft-press.co.uk/scripts/product.asp?ref=877207 Included in the book is : - a DVD with Visual Studio 2008 Professional Edition (90 day evaluation). Nice to have for people without VS2008 at their work environment and want to learn WCF and prepare for the exam. -...
Nice presentation on Mobile VAS in India. Mobile Vas In India View SlideShare presentation or Upload your own. (tags: bda bajaj)...
I am for 7 years now in the IT industry I have heard a lot of good things about pair programming, I don't know if it is just a rumour :), like the fact that pair programming reduces the number of bugs by 30% , reduces the maintaience of the code, which is the largest part of a programme's lifecycle... Well now I have the very exciting opportunity of working in an Agile driven development environment and I could peek a few advantages over this last two weeks. First it was very, very easy for me to...
There is plenty of documentation on how to install and configure SharePoint. For the novice SharePoint user there are step-by-step guides, and for the more experienced user there are checklists. During all of these instructions there is very little emphasis on the proper use of Service Accounts used to install and configure SharePoint. It is, by far, one of the ways that you can spend days in SharePoint install and uninstall. In most cases, when I visit a client to help with the installation, they...
I've noticed some confusion amongst VB6 programmers who've moved to .NET regarding garbage collection, so I'd like to explain the differences. VB6 is built on top of COM. In COM, each object has a hidden reference count inside it, a count of the number of in scope variables that point to the object. When you new an object the reference count is set to 1. If you then assign that variable to another, the reference count is incremented to 2. As those references go away, either by variables going out...
Today marks the first real snow of the season, here in Minneapolis. We've had a few days of flurries here and there, but nothing that would stick. It's already stopped falling as I write this, but its definitely about a half inch or so on the ground...
Just installed BizTalk on my Vista notebook. Here are some information that may help: My BizTalk’s edition – BizTalk Server 2006 R2 (Developer edition) Operating System – Windows Vista Ultimate The installation process is as seamless as it was for previous editions of BizTalk Server 2006. Only important point to remember is you download the prerequisite cab file for Vista. You may be in habit of using previously downloaded prerequisite cab file. Setup will automatically download the CAB file (BtsRedistVistaEN32.cab)...
Still busy setting up my Windows 7 partition. Just noticed that Silverlight was pushed to it through Windows Update. Cool...
Thank you all for attending my “Applying Domain Driven Design on Asp.net MVC” session. It’s interesting how things went that we got a bit deep into the ASP.NET MVC framework and have achieved the geeky talk goal via covering the other aspects of ASP.NET. Even that this took the entire session, it is nice that it could benefit the attendance. I am not sure whether we can arrange another session for Domain Driven Design fundamentals and combining that in the same project while using the MVC pattern...
In this issue: Hannes Preishuber, Tim Greenfield, Peter Bromberg, and Jonathan van de Veen. Shoutout: Adan Kinney has announed a Windows FireStarter, free event on Dec 12th... if you're in the area, it looks like it will be an interesting day! From SilverlightCream.com: B# and Silverlight Isolated Storage Hannes Preishuber has a good post up on Isolated Storage, and he's using B# to do it. Animate collapsing a Grid column or row in Silverlight Tim Greenfield discusses and demonstrates collapsing...
Came across this video via some blogs…very kewl timelapse showing exactly what goes on to setup for keynote speeches at Microsoft conferences (this one from the recent PDC). Video: PDC 2008 Timelapse...
My buddy Juan Larios did a 4 part blog series on using a…well, you read the title of this post so you know. I figured the Sharepoint-inclined readers of my blog might find it interesting, so below are the links. Part 1 Part 2 Part 3 Part 4 Enjoy! D...
We’ve been experimenting with calling ASMX web services from orchestrations without having to add a web reference (for the SOAP adapter) or use the generated items (for the R2 WCF adapter). The idea, in short, is to achieve increased decoupling between systems even in a web service scenario - Generally when you add a reference to a service in BizTalk 2006 or in R2 (although there are some clear differences between the implementation) the schemas for the request and response types are generated for...
Curtis Gray informs me that the first Ship It On The Side podcast is now published.Listen to us talk about building and shipping great software while holding down day jobs...
As I mentioned back in this post, the initial phase of work needed to allow Sotue to recognize data in input streams is to build a state machine that input characters can move through as they are read. If the state machine ends up in what is called an accepting state, then the input characters match a pattern. To review, Sotue’s process for building these state machines are as follows: Construct a non-deterministic finite automaton (NFA) from a regular expression. Convert the NFA into a deterministic...
Here is a handy little attribute: [ThreadStatic] private static int count; This attribute allows you to create a separate static instance of "count" per thread...
I wrote last time about setting up my Linksys router with DD-WRT and sharing my media on the local network with a USB storage drive. I had intended to also install a Universal Plug and Play (uPnP) media server on the router, but never could find a good media server that ran on embedded Linux. I tried uShare, and it worked OK, but only with my pictures. I also attempted to run TwonkyMedia, but never could get it installed on the router. A friendly request in the Twonky Vision forums went unanswered,...
I was at the SOA/BPM Conference this week at reading and was watching one of the presentations which discussed the differences between BizTalk and Dublin. It occured to my that with BizTalk being pitched as the integration product and dublin being pitched as the application server product this means that BAM is strategically misplaced in terms of being within BizTalk. This is just my opinion but I think that in the future it would make sense to move BAM to be part of the SQL Server BI offering. I...
Author : Pankaj Tahiliani Technology : ASP.NET Error : The 'MasterPageFile' property can only be set in or before the 'Page_PreInit' event. Solution : At this point, the logical step is to move the line of code into Page_PreInit. Doing this in a real ASPX page avoids the above error (but doesn’t quite actually work). You need to OVERRIDE the PreInit event. Protected Overrides Sub OnPreInit(ByVal e As System.EventArgs) '++++++++++++++++++++++++++++++++++++++++++++++ ' Check for login ' if logged in...
I've been banging my head on the desk for several days trying to figure out why the formulas in my FarPoint Spread (an awesome control, by the way) control aren't working and it turns out it has nothing to do with the Spread control at all. I was binding my spread control to a DataSet up until a few days ago, when a requirements change caused me to alter the code a bit. One of the changes I made was to bind to a DataView instead of directly to the DataSet, which I did without giving it another thought....
A business classic tells us that Quality Is Free. The title is intentionally provocative: no, quality isn't free, it just pays for itself. But first, you have to pay for it. And that, unfortunately, is where we fail in the quality game so often. Corporations seem addicted to the practice of compartmentalized budgeting, or what I think of as "bucket budgeting": you've got a bunch of different buckets you pour money into at the start of the fiscal period; and each bucket can only be spent on a particular...
I put together the following OutputNotifications() function to show how to enumerate User Notifications. #include <Notify.h> void OutputNotifications() { HANDLE *hNotifications = NULL; DWORD NumNotifications; DWORD Count; DWORD BytesNeeded; CE_NOTIFICATION_INFO_HEADER *NIHeader; CE_NOTIFICATION_TRIGGER* Trigger; CE_USER_NOTIFICATION* UserNotification; void *pBuffer; // First call CeGetUserNotifications to find out how many notifications are available // by passing in zero as the second argument...
Stage 1: Know nothing about design patterns Stage 2: Know every single design pattern and try to use them everywhere Stage 3: Use design patterns appropriately Stage 4: Try not to use design patterns Stage 5: Know nothing about design patterns...