• Debugging in Visual Studio 2003

     

    I got this error trying to debug in VS 2003 on a web project

     

    error while trying to run project: unable to start debugging on the web server. the project is not configured to be debugged.

     

    Basically, I had to go into IIS and add DEBUG to the allowed verbs for .asmx and .aspx files.

     

    inetmgr

    ->

    home directory tab

    ->

    configuration button

    ->

    choose asmx

    choose 'all' or add DEBUG to the limit to: field.

     

    Full story

    Comments (0)

  • Using NUnit to learn sitefinity

    I've been working with Coders 4 charities over the weekend and our project was to build a content management site for one of our non profit organizations. I put together a little bit of NUnit code to learn how the lists work and thought I'd share it out. nothing special.

    you'll have to copy the telerik element out of the web.config into your app.config.

    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Text;

    using Telerik.Lists;

    using Telerik.Lists.PersistentObjects;

    using NUnit.Framework;

    using System.Collections;

     

     

    namespace James.Tests

    {

        [TestFixture]

        public class ListsFixture

        {

            ListManager lm = new ListManager();

            INamedList list;

     

            [SetUp]

            public void Setup()

            {

               

                list = lm.CreateList("JamesList");

                lm.SaveList(list);

                Assert.IsNotNull(lm.GetList(list.ID));

            }

            [TearDown]

            public void teardown()

            {

                lm.DeleteList(lm.GetList(list.ID));

                Assert.IsNull(lm.GetList(list.ID));

            }

           

     

            [Test]

            public void AddStuffToList()

            {

                IListItem item = new ListItem();

                item.Headline = "James Test Item";

                item.Content = "ITEM CONTENT";

                item.Parent = list;

                list.Items.Add(item);

               

                lm.SaveListItem(item);

                INamedList newList = lm.GetList(list.ID);

                Assert.AreEqual(1, newList.Items.Count);

     

            }

     

           

        }

     

    }

    Full story

    Comments (0)

  • Product Backlog Web 2.0 style

    I was introduced to this very cool software product called User Voice. Basically, it's a product backlog where your real users create it and vote on it directly! I can't think of a more agile way to handle a product backlog.

    Full story

    Comments (0)

  • CEO of PMI comments on "leadership values"

    Gregory Balestrero, the president and CEO of PMI (Project Managemen Institute) talks about his trip to the Florida Scrum Gathering (sponsored by the scrum alliance).

    He notes that "The leader has facilitation skills, employs team approaches to solve problems, and works well with and resolves conflict, engages more individuals to gain diversity of thought, and can bring convergence from such wide diversity. Clearly, our ideal leader is one who is far less hierarchical and autocratic, and believes in engagement as a way of doing business."

    I say, it's good to hear the PMI spokesperson finally talking down about the deeply hierarchical nature of organizations.

    We really do need to flatten our org charts and get engaged with our product development. We need to create leaner IT organizations that service our customers more effectively.

    Further PMI/Agile debates on the topic are being held here

    Full story

    Comments (0)

  • Converting Array of bytes to hex string

    I was working on saving a byte array to an xml file and kept running into an error trying to deserialize it. The byte array was an a SHA512 hash so it was quite large and had characters that weren't valid xml in them.

    Honestly, i can't remember what they were but the point is that I whipped together some code that would convert a byte array into a string of hexidecimal. I'm sure there's something not 'mathematically' correct about how it looks but it's basically converting

    new byte[]{255,0,15} into "FF000F" and back the other way. I found it useful.

     

      public class NumberTranslations

        {

            public static byte[] HexToByte(string hex)

            {

                var bytes = new List<byte>();

                var hexes = new List<string>();

                char[] chars = hex.ToCharArray();

                for (int x = 0; x < chars.Length; x += 2)

                {

                    hexes.Add(string.Concat(chars[x], chars[x + 1]));

                }

                foreach (string hexy in hexes)

                {

                    bytes.Add(byte.Parse(hexy, NumberStyles.HexNumber));

                }

                return bytes.ToArray();

            }

     

            public static string ByteToHex(byte[] bytes)

            {

                var builder = new StringBuilder();

                foreach (byte number in bytes)

                {

                    builder.Append(number.ToString("X").PadLeft(2, '0'));

                }

                return builder.ToString();

            }

        }

    Full story

    Comments (0)

  • Money Driven Development

    I'm tired of people misusing the word agile so I need a new word for what it is that I have come to know as "agile".

    I'm going to call it "Money driven development"

    it's very simple. You choose a length of time between 1 and 4 weeks as your iteration length. You make a list of all the things you want in your project. Then you order them by how much MONEY they will make your company.

    Not just when they're released but over the LONG haul. You have to calculate the TCO, ROI, ROC, all of that junk that should be figured out before you do anything anyhow. Now, no one sneaks anything into the feature that doesn't make it's money earned higher and especially nothing that would make it's money earned lower!

    Then you do the iteration and you only do as many things in the iteration as you can possibly do with the people you have. You just ask them, ccan you do this? if they say no, then you break that thing into two pieces and then put a money value to them. Whichever one is worth more money you ask the team, Can you do this one?

    repeat that until they say yes, then you do it!

    pretty easy no?

     

    here's an example of the money list, you can make it in excel!

    ROI:$200,000: Feature a. Team sizing: 1 relative point

    ROI: $399,000 Feature b. Team sizing: 2 relative points

    ROI: $199,800: Feature c. Team sizing: 1 relative point

    ROI: $199,700: :feature d. team sizing: 1 relative point

    See you just order them by whichever one makes you the most money. And you don't let the team do more than they have normally done before. So if the team did 2 relative points last iteration, we let them try to do 2 this iteration.

    Isn't it amazing. It's like no one's ever thought of it before ...

    hah hah hah.

    Full story

    Comments (0)