Blog Home  Home Feed your aggregator (RSS 2.0)  
.Net Jonesie - May, 2006
A simple programmers blog
 
# Monday, May 29, 2006

Over the weekend I had a bit of a play with Office 2007 and apart from the usual beta issues (performance and small bugs) I love it.  The only remaining problem I have is that Visio won’t install with the same product key and I can’t find one specific to Visio.

I also downloaded and installed Expression Web Designer CTP.  When I fired it up, I thought, ‘Hello… this looks familiar’.  In fact the only difference between this and the Sharepoint Designer that I could find was the window caption and the about box.  I suspect that future versions of EWP will build on the basic functionality of SD.

So, the question is, did someone in the Office Team steal the code from the Expression Team or vice versa?  Maybe someone forgot to secure the Team System source code repository ??

 

Monday, May 29, 2006 9:15:41 AM (New Zealand Standard Time, UTC+12:00)  #    Comments [0]    | 
# Friday, May 26, 2006

Finally managed to get back to doing some more Wix things this week.  Since the last post I have added components to :

  •  Prompt the user for windows groups of valid users (5 of them)
  • Create a blank SQL Database
  • Add the groups to the SQL Server users
  • Add the groups to the appropriate database roles
  • Configures the web application for .Net 2

I’ve also added this into my Team Build project so that I get a nice new clean MSI for every successful build.

Today, I’ve extracted a few Wix snippets and I’m making these available to anyone who wants them.  There’s not much in there yet but hopefully it will save someone some time.  Do with them as you will!  If you have more and would like to start building a library of snippets then I’m more than willing to act as a librarian for these – unless someone else has already done this – in which case you can have mine.

Download: Wix_20060526.snippet

Friday, May 26, 2006 3:46:23 PM (New Zealand Standard Time, UTC+12:00)  #    Comments [0]   General  | 

Rob said, “it should just work” so I tried and it does.  I needed a reboot but otherwise the install does not seem to affect Team System at all.  Mind you, I’ve only done 5 minutes testing it so far…

Friday, May 26, 2006 12:03:53 PM (New Zealand Standard Time, UTC+12:00)  #    Comments [2]   Team System  | 
# Monday, May 15, 2006
Darryl has just posted that TechEd NZ 2006 is open for registration already!  I've been softening up ... ah sorry, I mean informing my boss about this for a while so hopefully we will have some budget for it this year :}
 
I think it's a great idea to open the labs on the Sunday - I never get time for them during the normal session time.  Scott Guthrey is another big feature of course - and I'm not talking about his body size!  I'm sure the MS crew will be working hard on getting the agenda and speakers finalised over the next couple of months.
Monday, May 15, 2006 1:44:47 PM (New Zealand Standard Time, UTC+12:00)  #    Comments [0]   General  | 
# Saturday, May 13, 2006

Tim & Nic have been having a few thoughts about browsers and home pages of late and it got me thinking about how I do things.  I'm mostly like Nic - I open IE 6 about 20-100 times a day and I often have 4 or 5 instances running.  Yes, I've tried IE 7 but for work it was too unstable.  I've also tried MSN toolbar for tab pages and Google toolbar but all they do is get in the way.  I don't do any web dev work so IE 6 is more than adequate for me. At Home I use IE 7 as I can put up with a few issues there.

My typical usage pattern is to open IE, go to Google and search for something technical about a development problem I'm having. No custom home page is going to make that any easier than Google. I use BlogLines for RSS feeds so that I can read stuff at home and work - I used to use NewsGator but it broke a while ago and I didn't like any of the other aggregators I tried - they were mostly too slow and buggy.

I'm also not very good at saving favorites - mostly because I have too many, it's just easier to search each time.  Sometimes, I wish I had saved a hard to find link in my fav's but usually I just have to repeat the 12 searches it took to find the page the first time.

If I was to have a customisable home page it would have to be:

  • FAST.  I mean REALLY FAST - like INSTANT - therefore local and static
  • Editable in the browser
  • Synchronisable with my other machines
If I was able, I'd create a one page wiki in Java script that I could quickly edit and upload to a server somewhere.  The search box in the IE 7, Google & MSN toolbars is as good as using Google for a home page and if I had the space I'd also have the address bar on my desktop like Nic.
 
As for Live I've commented on this before. It's definitely NOT fast.  Even the default non signed-in page is slow.  At work, I'm lucky to get 100k for Internet and home is worse (so much for Telecom's BS about next generation broadband).  At modem speeds Live is Dead.  I just did a quick test- with a blank Live page and NO gadgets it loads as fast as Google, maybe a little faster. This is good, but then what's the point?  Your left with a page with just the search bar, much like Google.  MSN search is as good as Google but it's not better than it. 
 
I look forward to seeing the final non beta version of Live but currently, it's not for me. The current offering barely equals Google and as it's all about destroying.. sorry, competing with Google then Microsoft have a long way to go. But I'd put good money on them doing it. If I was a Google share holder, I'd be pretty nervous.
 
Now if Live had a gadget that gave me my one page wiki then I'd be very interested.
Saturday, May 13, 2006 9:42:18 AM (New Zealand Standard Time, UTC+12:00)  #    Comments [1]   General  | 
# Thursday, May 11, 2006
I've seen a couple of posts recently (Nigel & Xtramalt) regarding advertising and Microsoft's move into this market.  I'm not sure how long this has been going on or exactly where it is going, but I'm worried, VERY worried.  In particular, I'm worried about unsolicited advertising appearing on my own or kids desktops.  It's bad enough that subliminal advertising is so prevelant in TV programs (including News), Movies and Games.  The 8 hours (or more) I spend in front of a PC screen is the one place I am isolated from the marketing persons lies and brain washing.
 
Let me state now that if Microsoft intends to deliver advertising to my Vista desktop then I wont be using Vista.  In fact, I'd be inclined to not use Windows at all - given that I hate Linux that only leaves Mac or a change in career.  I might move into the PC demolision business.
 
Can someone please tell me that I'm unduely worried about this possible future?
 
Hmmm, does having a few Google ad's on my web site make me a hypocrit?
 
UpdateDarryl & Nigel have assured me that I am worried about nothing - it's just my over eager paranoia at work! Phew.  You have to keep a very watchful eye on these marketing people tho :}
Thursday, May 11, 2006 10:54:09 AM (New Zealand Standard Time, UTC+12:00)  #    Comments [1]   General  | 
I've been getting a lot of spam at work lately that is getting through our normally very efficient filter.  It gets through because the senders address 'looks' valid, isn't black listed and the content of the email is a single jpg.  For the spammer this is not so great because they can't put hyper links in the message so even if I was inclined to read the drivel they promote then I'd have to manually navigate to some stupid web site.  I'd be very annoyed if I was paying for these emails to go out.
 
However, the real issues is how to block these.  The simple answer is to use gray-listing - not sure if this is the correct name but this is what my wife does - I think it goes something like this:
  • Email is received.  Receiving server check's it's white-list of senders and finds that the email address is unknown.
  • Receiving server pings the senders domain email server and asks it to verify the address.
  • If the senders server doesn't respond at all then it's most likely spam and email is gray-listed
  • If the senders server responds with an OK response then the email is let through - at least to the next level of checkinig.
  • If the senders server responds with an error or BAD then the email if gray-listed or blocked.
Users are able to view gray-listed messages and unblock senders or whole domains.
 
This sounds very simple and logical but it's very suprising how few ISP's do this. Despite the advertising campaign Telecom don't do spam checking of any consequence.  My wife used to use Xtra but when she found out that they will allow through emails from non-existant Xtra accounts that didn't come from one of there own servers, well this was the last straw I think.
 
For my personal email I have my own server on my hosted domain.  It uses spam assassin which does a reasonable job - I get about 5 on a bad day.  What's your ISP like? 
Thursday, May 11, 2006 9:23:25 AM (New Zealand Standard Time, UTC+12:00)  #    Comments [0]   General  | 
# Tuesday, May 09, 2006
I've spent about a day and a half creating a MSI to install my project using Wix.  I wanted to use Wix because the MSI has to be built during my build process automatically.  After a confused start I now have a working installer that:
  • Displays a nice splash page
  • Displays a license agreement with a checkbox for confirmation
  • Checks for minimum OS version and .Net 2 Fx
  • Lets the user choose a Typical, Custom or Complete install.  Under custom they can choose Client and/or server components and specify directories for each.
  • Prompts the user to enter config parameters for the client and server and updates the corresponding exe.config and web.config files
  • If the server components are installed it creates a virtual directory in IIS
The next step is to add an option to create the SQL database but given my progress so far I don't expect this will be too hard. Then I need to figure out how to send out patch installs - I suspect this might be a tad harder.
 
Along the way I've discovered a few things about Wix so here's a list of stuff that might help others (and probably myself when I've forgotten this in a few weeks time :).
  • Use the v 2 latest revision.  I used 2.0.4103.0.  Get the source code and binaries - you'll need the source to create custom dialogs.
  • Use the Tutorial.  It's a bit vague in places but just hack something together and you can usually figure out the options.
  • Google 'wix anything' and you will find an answer quickly.
  • Join the wix-user mail list.  The chaps there are very helpful and friendly.
  • Creating a custom dialog is a piece of cake if you follow the tutorial but a GUI tool to create the dialog layouts would be nice.  Maybe there is one ?
  • There is a Visual Studio addin for Wix projects but I had problems with this - maybe my fault - so I just used the tried and true command line method and Visual Studio to edit the raw wxs files.  You should add the provided schemas to your VS schema directory and create a CMD or BAT file to compile and link your MSI.
  • Updating config / xml files from Wix is easy but you have to escape the xpath expression correctly, e.g.: 

    ElementPath="/configuration/applicationSettings/Airways.SUMS.Properties.Settings/setting[\[]@name='FirstDayOfWeek'[\]]/value"

  •  The syntax can be a little wordy in places but in general it all makes sense.  A ComboBox control in a custom dialog looks like this:

    <Control Id="FirstDay" Type="ComboBox" X="115" Y="70" Width="190" Height="15" TabSkip="no" Property="CC FIRSTDAYOFWEEK" ComboList="yes" Sorted="yes">
     <
    ComboBox Property="CC FIRSTDAYOFWEEK"
    >
      <
    ListItem Text="Sunday" Value="0"
    />
      <
    ListItem Text="Monday" Value="1"
    />
      <
    ListItem Text="Tuesday" Value="2"
    />
      <
    ListItem Text="Wednesday" Value="3"
    />
      <
    ListItem Text="Thursday" Value="4"
    />
      <
    ListItem Text="Friday" Value="5"
    />
      <
    ListItem Text="Saturday" Value="6"
    />
     </
    ComboBox
    >
    </
    Control>

  • You can edit the supplied Bitmaps to include your product or company logo.  In fact you can customise everything.
So, I don't know how this compares with InstallShield, Wise etc but I'm quite taken with Wix and I found it quite fun to use.  I'm certainly no expert on installers and MSI's but I've managed to create a slick installer with minimal effort.  Most importantly, Wix passes my 20 minute rule:  I have to be able to produce something useful in 20 minutes or it's no good for me.
 
Tell me what you think.
Tuesday, May 09, 2006 3:34:05 PM (New Zealand Standard Time, UTC+12:00)  #    Comments [2]   General  | 
# Friday, May 05, 2006
It's getting on for 2 months since TFS was released and I still haven't upgraded from RC to RTM.  Why?  Well several reasons really: time & budget (or lack of it) but mostly because I still can't get it.
 
Our only option, AFAIK, is to get it via Volume Licensing and it is only just becoming available this month - not sure exactly when but I've only this week managed to get local pricing (which thankfully was about half what I thought it would be :).  Considering that it was released in mid March and that the Workgroup and Trial versions have been available since then, I really don't understand why it has taken sooooo long.  Perhaps someone has explained why but I never saw it.
Friday, May 05, 2006 9:10:14 AM (New Zealand Standard Time, UTC+12:00)  #    Comments [0]   Team System  | 
# Thursday, May 04, 2006
I've been signing my project assemblies this week and today when I ran my Team Build, it failed with the following error:
 
    error MSB3323: Unable to find manifest signing certificate in the certificate store
 
It turns out that this is caused by a bug in Visual Studio or Team Build or MSBuild - take your pick.  If you ever turn on signing of Click Once Manifests in your project properties, the project file gets updated.  Turning off the setting does not completely remove everything it should remove - at least, not as far as MSBuild is concerned.  The solution is to manually edit the csproj or vbproj file and remove some settings.  For a full disclosure of the fix, read the forums thread.
Thursday, May 04, 2006 1:34:37 PM (New Zealand Standard Time, UTC+12:00)  #    Comments [0]   General  | 
# Wednesday, May 03, 2006
I've spent a lot of time lately - far too much in fact - getting DotNetNuke 4 setup for module development.  On the face of it, it seems very simple - install the start kit, create a DNN project and press F5 - but that will only give you grief. 
 
For future reference, the most useful thing you can read is this post by Shaun Walker. Follow the instructions there EXACTLY!  If you can't be bothered then here is my shortcut version:
  1. Download and install the DNN 4 Starter Kit.
  2. Create a VB Web Site project in VS05 (Express or other) and select the DNN Project.
  3. You MUST specify and HTTP web site - don't use FILE - Cassini is not up to it.
  4. Add the new database.mdf to the App Data directory (or create on elsewhere and change the config files connection string).
  5. Give Network Service or ASPNET Modify rights on the new web site folder.
  6. Rename release.config to web.config.
  7. Run
If you follow all of these steps you shouldn't have any problems.
 
Other tips:
  • Don't create modules in C#.  You are supposed to be able to and I did manage to create one once, but the 2nd time around it gave me all sort of stupid errors.  Just accept that DNN is VB and your modules should also be VB.  (It's not that bad really :)
  • Use SQL Express if you can.  The integration with VS05 is fantastic.
  • Make sure you have a decent machine to develop on.  My notebook is a 3 gig P4 but it only have 500mb RAM and VS05 grinds like a meat mincer full of concrete.
 
 
Wednesday, May 03, 2006 9:36:10 PM (New Zealand Standard Time, UTC+12:00)  #    Comments [2]   General  | 
# Tuesday, May 02, 2006

Rod just blogged that ERWin was recently (?) purchased by CA.  What a shame!  I never actually used ERWin in anger - I'm a code first, diagram later kind of guy - but it looked good. 

Does anyone remember Nantucket Clipper?  In the late 80's and early 90's it was THE database development language for DOS (a lot of FoxPro users may be laughing about now).  Nantucket created some wonderous stuff that we have only recently seen in Windows tools - things like code blocks,eg:

    LOCAL block := {|var1, var2| DoSomething(var1, var2) }
    LOCAL res
    res := ExecThing(block)

    ? res

    FUNCTION ExecThing(block)
      LOCAL v1 := 1, v2 := 2
      return eval(block, v1,v2)

    FUNCTION DoSomething(x,y)
      return x + y

It also included the best preprocessor I have ever seen, you could create user define statements to the extent that you could create your own language.  Very cool and very dnagerous.  I once heard someone describe Clipper 87 as a tool that let you shoot yourself in the foot and Clipper 5 as a tool that would let you shoot yourself in any part of the body you wanted. 

Anyway, Clipper still lives on - I have one customer that I still support with 12 year old code.

But I digress.  CA purchased Nantucket not long before they were due to release the long awaited Windows version of Clipper.  And that was about it.  CA did ship Visual Objects and a small upgrade for Clipper 5 but essentially CA killed it. 

So, if you like ERWin, then be warned.

Tuesday, May 02, 2006 8:35:02 PM (New Zealand Standard Time, UTC+12:00)  #    Comments [2]   General  | 
Copyright © 2010 Peter G Jones. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: