mo.notono.us

Saturday, April 28, 2007

Links for 2007-04-27 [del.icio.us]

Link - Sat, 28 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Friday, April 27, 2007

Norwegian Helpdesk

In Norwegian, with English and Danish subtitles:

Ansgarr: Watch on YouTube

del.icio.us tags: ,

Labels:

Links for 2007-04-26 [del.icio.us]

Link - Fri, 27 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Thursday, April 26, 2007

Someone drank too much Kool-Aid

Bill English's What's in a Song

del.icio.us tags: , ,

Links for 2007-04-25 [del.icio.us]

Link - Thu, 26 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Wednesday, April 25, 2007

Links for 2007-04-24 [del.icio.us]

Link - Wed, 25 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Tuesday, April 24, 2007

Links for 2007-04-23 [del.icio.us]

Link - Tue, 24 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Saturday, April 21, 2007

Links for 2007-04-20 [del.icio.us]

Link - Sat, 21 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Friday, April 20, 2007

W3WP.exe ProcessID

Ok, so iisapp.vbs will give you the ProcessID of your App Pool, but I wanted to get it in code. 

For future pensieve moments, here's how:

int processID = System.Diagnostics.Process.GetCurrentProcess().Id

(Thanks, Peter)

del.icio.us tags: , , ,

MOSS: How to Create a WSP Solution for a Feature

I had previously hoped that VSeWSS would be the way to easily create solutions in VS, but, as one of my colleagues pointed out, using VSeWSS is indeed an exercise in frustration. At the moment, WSP files have to be created the hard way, I’m afraid.

Fortunately, Eric Kraus has a handy step-by-step guide to do this:

http://www.sharepointblogs.com/erickraus/archive/2007/04/13/create-wsp-solution-for-a-feature.aspx

(There are also some other ways to skin the cat:

VS.Net SharePoint Solution Template: http://blog.thekid.me.uk/archive/2007/02/13/vs-net-sharepoint-solution-template-on-codeplex.aspx

Dan and Ted’s Web Part Solution Template: http://daniellarson.spaces.live.com/blog/cns!D3543C5837291E93!1027.entry )

Labels: ,

Fun with iisapp.vbs

I'm not sure how I can have been doing web development on IIS for a whole decade without using iisapp.vbs before now...

iisap.vbs to the rescue on both counts.

del.icio.us tags: , ,

Labels:

The Kübler-Ross model of SharePoint Development

What stage are you at?

1. Denial - The initial stage.: "It can't be this complicated."

2. Anger .: "How dare you do this to me?!" (either referring to SharePoint, the documentation, or oneself)

3. Bargaining .: "Just let me live to see my solution deploy."

4. Depression .: "I'm so sad, why bother with any lists?  (let's just do it as a webpart)."

5. Acceptance .: "I know my career will be in a better place."

Loosely copied from the Wikipedia entry on the Five Stages of Grief.  (Coincidentally, according to the 1974 edition of "The Handbook of Psychiatry", the reactions that SharePoint development can evoke are not Grief, they are "Pathological Depressive Reactions," which sounds even more sad...)

del.icio.us tags: , ,

Labels: , ,

Bob Parson's 16 Rules To Live By

1. Get and stay out of your comfort zone.
I believe that not much happens of any significance when we're in our comfort zone. I hear people say, "But I'm concerned about security." My response to that is simple: "Security is for cadavers."
2. Never give up.
Almost nothing works the first time it's attempted. Just because what you're doing does not seem to be working, doesn't mean it won't work. It just means that it might not work the way you're doing it. If it was easy, everyone would be doing it, and you wouldn't have an opportunity.
3. When you're ready to quit, you're closer than you think.
There's an old Chinese saying that I just love, and I believe it is so true. It goes like this: "The temptation to quit will be greatest just before you are about to succeed."
4. With regard to whatever worries you, not only accept the worst thing that could happen, but make it a point to quantify what the worst thing could be.
Very seldom will the worst consequence be anywhere near as bad as a cloud of "undefined consequences." My father would tell me early on, when I was struggling and losing my shirt trying to get Parsons Technology going, "Well, Robert, if it doesn't work, they can't eat you."
5. Focus on what you want to have happen.
Remember that old saying, "As you think, so shall you be."
6. Take things a day at a time.
No matter how difficult your situation is, you can get through it if you don't look too far into the future, and focus on the present moment. You can get through anything one day at a time.
7. Always be moving forward.
Never stop investing. Never stop improving. Never stop doing something new. The moment you stop improving your organization, it starts to die. Make it your goal to be better each and every day, in some small way. Remember the Japanese concept of Kaizen. Small daily improvements eventually result in huge advantages.
8. Be quick to decide.
Remember what General George S. Patton said: "A good plan violently executed today is far and away better than a perfect plan tomorrow."
9. Measure everything of significance.
I swear this is true. Anything that is measured and watched, improves.
10. Anything that is not managed will deteriorate.
If you want to uncover problems you don't know about, take a few moments and look closely at the areas you haven't examined for a while. I guarantee you problems will be there.
11. Pay attention to your competitors, but pay more attention to what you're doing.
When you look at your competitors, remember that everything looks perfect at a distance. Even the planet Earth, if you get far enough into space, looks like a peaceful place.
12. Never let anybody push you around.
In our society, with our laws and even playing field, you have just as much right to what you're doing as anyone else, provided that what you're doing is legal.
13. Never expect life to be fair.
Life isn't fair. You make your own breaks. You'll be doing good if the only meaning fair has to you, is something that you pay when you get on a bus (i.e., fare).
14. Solve your own problems.
You'll find that by coming up with your own solutions, you'll develop a competitive edge. Masura Ibuka, the co-founder of SONY, said it best: "You never succeed in technology, business, or anything by following the others." There's also an old Asian saying that I remind myself of frequently. It goes like this: "A wise man keeps his own counsel."
15. Don't take yourself too seriously.
Lighten up. Often, at least half of what we accomplish is due to luck. None of us are in control as much as we like to think we are.
16. There's always a reason to smile. Find it.
After all, you're really lucky just to be alive. Life is short. More and more, I agree with my little brother. He always reminds me: "We're not here for a long time; we're here for a good time."

from Bob Parson's blog post "Robert, they can’t eat you!" My rules for success in business and life in general.

Links for 2007-04-19 [del.icio.us]

Link - Fri, 20 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Thursday, April 19, 2007

Idea: Volume-leveled Conference Call Service

Ever been on a conference call where one participant's a mumbler and another one's a shouter?  You're pressing your phone to your ear to hear what the first guy says, and then the other guy gets on and blasts your ear-drum out?

Well how about a simple (?) add-on to a conference call service that would automatically level the volume of the participants?  Phase 1 would work just like the Audio set up on your computer - you'd repeat a short sentence; Phase 2 would be to level the audio in real-time.

Come on, somebody build this, or point me to someone that already offers this.

del.icio.us tags:

Links for 2007-04-18 [del.icio.us]

Link - Thu, 19 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Tuesday, April 17, 2007

Links for 2007-04-16 [del.icio.us]

Link - Tue, 17 Apr 2007 02:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Monday, April 16, 2007

Links for 2007-04-15 [del.icio.us]

Link - Mon, 16 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Saturday, April 14, 2007

Links for 2007-04-13 [del.icio.us]

Link - Sat, 14 Apr 2007 02:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Friday, April 13, 2007

Simple Batch Jpg to Png Script in C#

Compile the following using SnippetCompiler
using System;
using System.Collections.Generic;
using System.IO;
using System.Drawing;
using System.Drawing.Imaging;

namespace JpgToPng
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.WriteLine("Path of the Folder containing the Image Files to Convert :");
      string inputFolder = Console.ReadLine();
      Console.WriteLine("Path of the Output Folder:");
      string outputFolder = Console.ReadLine();
      int count = BatchConvertJpgToPng(inputFolder, outputFolder);
      Console.WriteLine(new string('-', 60));
      Console.WriteLine("Converted {0} files - see {1}", count, outputFolder);
      Console.ReadLine();
    }
    public static int BatchConvertJpgToPng(string inputFolder, string outputFolder)
    {
      //basic error handling
      if (!Directory.Exists(outputFolder))
        Directory.CreateDirectory(outputFolder);
      
      int i = 0;
      DirectoryInfo inDI = new DirectoryInfo(inputFolder);
      string outputPath;
      foreach (FileInfo inFI in inDI.GetFiles("*.jpg"))
      {
        outputPath = Path.Combine(outputFolder, Path.GetFileNameWithoutExtension(inFI.FullName)) + ".png";
        new Bitmap(inFI.FullName).Save(outputPath, ImageFormat.Png);
        Console.WriteLine("Created {0}", outputPath);
        i++;
      }
      return i;
    }
  }
}

Links for 2007-04-12 [del.icio.us]

Link - Fri, 13 Apr 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Thursday, April 12, 2007

Links for 2007-04-11 [del.icio.us]


Sent using Rmail R|mail.

Labels:

Wednesday, April 11, 2007

Links for 2007-04-10 [del.icio.us]


Sent using Rmail R|mail.

Labels:

Tuesday, April 10, 2007

SubSonic 2.0 goes Beta

Looks like v.2.0 of Rob Conery's (et. al.) excellent SubSonic has reached Beta status.  I used an early alpha build on a project a few months back, and though I'm normally a CodeSmith devotee, the simplicity of SubSonic was refreshing. 

(The use of a build provider to generate the DAL at run time is interesting, but unfortunately conflicts with ReSharper; I ended up using SubCommander and the web based dev tools instead.) 

Labels: , ,

Links for 2007-04-09 [del.icio.us]


Sent using Rmail R|mail.

Labels:

Saturday, April 07, 2007

Links for 2007-04-06 [del.icio.us]


Sent using Rmail R|mail.

Labels:

Friday, April 06, 2007

How to fix a broken .bat file extension

Somehow my Vista computer got set to open batch files (.bat) in NotePad.  No clue how, really (since there is no Open With right-click option for batch files).

Anyhow, the fix was as follows:

  1. Fire up Regedit
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\
    CurrentVersion\Explorer\FileExts\.bat
  3. Clear the OpenWithList Key
  4. Remove the UserChoice Key

Links for 2007-04-05 [del.icio.us]


Sent using Rmail R|mail.

Labels:

Thursday, April 05, 2007

Links for 2007-04-04 [del.icio.us]


Sent using Rmail R|mail.

Labels: , ,

Wednesday, April 04, 2007

Links for 2007-04-03 [del.icio.us]


Sent using Rmail R|mail.

Labels:

Tuesday, April 03, 2007

Links for 2007-04-02 [del.icio.us]


Sent using Rmail R|mail.

Labels: