mostlylucid

scott galloway's personal blog...
posts - 916, comments - 758, trackbacks - 11

My Links

News

Archives

Post Categories

Misc. Coding

March 2004 Entries

New blog alert...

One of my colleagues Jonny Anderson just started a new blog..."the joy of c#"

posted @ Tuesday, March 30, 2004 5:30 PM | Feedback (0) |

Simple Guid validator...

Another of my fairly simple functions (actually written by a colleague of mine, Jonny Anderson) - this time just a simple way to validate a Guid - in this implementation you pass in a Guid as an 'out' parameter along with the string you want to test - it then fills in the Guid and returns true / false depending on whether the Guid was valid... private static Regex isGuid = new Regex(@"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$", RegexOptions.Compiled); internal static bool IsGuid(string candidate, out Guid output) { bool isValid = false; output=Guid.Empty; if(candidate!=null) { if (isGuid.IsMatch(candidate)) { output=new Guid(candidate); ...

posted @ Monday, March 29, 2004 3:47 PM | Feedback (4) | Filed Under [ .NET Code Snippets ]

Lovely new Windows Forms DataGrid replacement

Paschal points out a really nice Windows Forms DataGrid replacement on CodeProject. This control looks really well done, the author has already posted some valuable updates on his own site, which also provides a nice RSS feed for updates on this and his other controls.

posted @ Monday, March 29, 2004 1:30 PM | Feedback (0) | Filed Under [ .NET ]

Another Nested Repeaters article

Marcie just let me know that there's another Nested Repeaters article been published, this time by Thomas 'Aylar' Johansen. Looks pretty good...I'll be working on a revision and followup to my article on this subject over the next few days, covering alternative, and I think, better ways of doing this as well as looking at some more advanced uses of nested repeaters.

posted @ Wednesday, March 24, 2004 9:05 PM | Feedback (0) | Filed Under [ ASP.NET ]

Bug from hell..my 3 days of pain!

Just sorted one of the nastiest bugs I have ever had...I built a .NET class which was used from Classic ASP, so it too in recordsets then loaded then into a DataTable and fired them across a Web Service to another .NET app. Problem was I got all sorts of strange errors like "MSDataShape error '80004005'" after the .NET component ran - this also affected every other use of ADO in my ASP application - not good! What was the error? Well, after 3 days of wrestling with deployment issues, all versioning stuff - hint, if you're going to do...

posted @ Wednesday, March 24, 2004 5:13 PM | Feedback (0) |

Data Access Application Block V2

New release of the Data Access Application Block (funny, I thought version 2 had already been released...). Got this from Michael Swanson's blog.

posted @ Wednesday, March 24, 2004 9:56 AM | Feedback (0) | Filed Under [ .NET ]

Woohoo! ASPToday is back...

Just noticed (well read it on Jason Salas' blog if truth be told) that ASPToday has finally made a comeback and it has new clothes! Oh, and it now includes the C# Today content - which is just so fantastic I think I may pop...anyway, go, subscribe and keep this thing going, it is just the single best ASP / ASP.NET resource around. Oh, and they even have an rss feed!

posted @ Wednesday, March 24, 2004 9:49 AM | Feedback (0) |

Running ASP.NET on Linux

Excellent article on ASPAlliance on how to run and test ASP.NET applications on Linux and using Mono...is it just me or are the 'pages' on ASPAlliance getting REALLY short?

posted @ Monday, March 22, 2004 9:43 AM | Feedback (0) |

Nested Repeaters article...part 1

I've published part 1 of the very first article I've ever written here, it includes a link to the source used in the article. Now I want some comments - but please remember, I am by no means a professional (or even barely competent) writer and I have never written anything like this before. So I will resind my usual policy for comments where I leave anything short of a porno ad in comments - please be constructive in any comments or I'll just delete them...sorry, but only way to protect my fragile ego.

posted @ Sunday, March 21, 2004 9:16 PM | Feedback (0) | Filed Under [ ASP.NET ]

Ok, so this article....slight change of plans...

I've realised that it's taking far longer to write this thing that I'd hoped (the fact that I've started again 4 times may have something to do with it...). Plan is, I'll post the first part tonight - this covers Nesting Repeaters using the ItemDatabound event the post the remaining part - which covers Member methods, declarative and a few other tips later...

posted @ Sunday, March 21, 2004 8:27 PM | Feedback (0) |

The hell of article writing...

Well, I've had a few emails asking where the hell the article I promised has gotten to - I am writing it, it's just really tricky to do that stuff; for me, people like Dino Espsito seem to crank fantastic articles out at a rate of knots. Well, currently I'm working on a few pieces of demo code - I figure that if I write the demos first it'll give me a bit of structure for the article. So, I've complted the first one - which I kind of like. Idea is to show what you're use events for in repeaters when...

posted @ Sunday, March 21, 2004 1:33 AM | Feedback (0) | Filed Under [ ASP.NET ]

Very nice little deployment tool from Matt 'eWorld' Hawley

Not content with producing some of the best free ASP.NET tools around, Matt's only gone and made a fantastic little utility to make deploying web sites much easier. This little tool lets you deploy sites to either FTP or file shares with version checking etc...this just makes life so much simpler when you have to deploy sites (and are incredibly disorganised as I am...)

posted @ Wednesday, March 17, 2004 3:36 PM | Feedback (0) | Filed Under [ Random ]

Rory goes nuts...playing with the mad folks...

I love this sort of stuff...(oh, and do check out the comments Chris A. has some really 'interesting' views :-)). It does remind me a lot of some summer jobs I had - I used to work with people with dementia / schzophrenia, the arguments I've read recently about open source versus MS are strangely reminiscent;Use of 'statistics' to justify a position - this happens a LOT, latching on to some meaningless stat as a basis for an entire position.'religious' arguments - 'Linux is better than windows' - then self-select 'evidence' to defend a single side of the argument. Reminds...

posted @ Wednesday, March 17, 2004 2:57 PM | Feedback (0) |

Right...gonna get back to this...and a request for assistance!

As I've been posting a bit recently,I've been having some problems with my DNS (entirely of my own making I should point out). Anyway, so these DNS problems have led me to do a bit of thinking about this here site - conclusion, I've been very lazy about posting stuff / looking after you my loyal reader (there is one of you right...hellooooo) - so I'm going to try and be a bit more proactive rather than reactive. Right, so plan is that I start writing mini-articles, at least one every two days on items as varied as repeaters to...

posted @ Tuesday, March 16, 2004 8:50 PM | Feedback (0) | Filed Under [ Help! ]

The saga continues...

Well there's still a problem with my mail server...so the contact section of this site doesn't work right now...trying to figure out why...

posted @ Monday, March 15, 2004 1:16 PM | Feedback (0) |

Another new version of BlogJet

New betasome features fixed looks good

posted @ Friday, March 12, 2004 11:36 PM | Feedback (0) |

Email Borked again...

I'm having 'issues' with my email at the moment...normal service will (hopefully) be resumed shortly...UPDATE:Umm...anyone who just got a really old email from me umm...sorry! I switched back to an old email server which seems to have had a bunch of mails stuck in it's queue...

posted @ Friday, March 12, 2004 8:56 PM | Feedback (0) |

Interesting site - with a focus on Patterns in .NET

Found this site really interesting from Maxim V. Karpov, basically it's a blog with a focus on the use of design patterns in .NET - which I personally think are currently not widely underused but could provide a huge boost to a whole lot of developers. Maxim recently wrote an article looking at the ASP.NET Out Of Process Session State - which is in itself an implementation of the Intercepting Filter pattern. If you're interested in patterns in .NET you could do a lot worse than look at the Microsoft Patterns site - whilst it isn't perfect (I'd personally like to see a...

posted @ Wednesday, March 10, 2004 1:17 PM | Feedback (0) | Filed Under [ Patterns ]

New Version of Ghengis

I forget where I shamelessly ripped this off from...but I did - if it was you, please leave a comment berating me in some way...Anyway, a new version of Ghengis , the excellent .NET Windows Forms control toolkit has been released...if you haven't checked this out before - go there now!UPDATE: Just found where I ruthlessly stole this from...it was Scott 'Great god of .Text' Watermasysk

posted @ Wednesday, March 10, 2004 12:00 PM | Feedback (0) | Filed Under [ .NET ]

Very handy thing on troubleshooting VS.NET Debugging

This is one of the major pains with using Visual Studio .NET to work with ASP.NET - debugging almost never works on a new install and it can be a major pain to get it working. Noticed this link on Min's blog (he's also on the Debugger Team which helps :-)) - from G. Andrew Duthie - who I always wonder about, what is so bad about the G. bit that it needs eliminating? Oh, and Eric Gunnerson - who I just noticed posted it a bit earlier (and who writes some cracking stuff in his regular MSDN column)

posted @ Wednesday, March 10, 2004 11:17 AM | Feedback (0) |

Improving .NET Application Performance and Scalability - free book (kind of)

Just come across this free book (well a bunch of word documents but get a printing press and a book binder - y've got yourself a book!) there's also a 'feedback' thingy on TheServerSide.NET. Anyway, I've been skimming through it and it's all good stuff, covering pretty mich every aspect of improving performance in .NET applications in a way I haven't seen done before...

posted @ Wednesday, March 10, 2004 11:09 AM | Feedback (0) | Filed Under [ .NET ]

Default Buttons update...

Notice Darrell has just created a new workspace for his 'Default Buttons' thing - nice! I posted the original version previously...

posted @ Tuesday, March 09, 2004 7:00 PM | Feedback (0) | Filed Under [ ASP.NET ]

Huge bargain alert!

I love those crazy ergonomic keyboards...I use an old Natural Keyboard Pro at home, it's just the best keyboard I've ever found, it prevents RSI entirely and it has a little USB hub - but they're stopped making that model and the latest ones aren't up to much...well, I just discovered this - it's the Logitech version of the same kind of keyboard,comes with a mouse - and it's wireless! Best thing though it that it only costs £19.99 (my original one cost me £80 about 3 years ago) - that's cheap even for a normal wireless keyboard, this place also has them (US),...

posted @ Friday, March 05, 2004 8:18 PM | Feedback (0) |

Nice article...declaratively bind Form / Querystring parameters onto member parameters

I just like this implementation of doing this pretty useful task...one of those things you end up doing over and over (I'm going to extend it to work with ViewState :-)). Also, a nice example of using Attributes and Reflection for something useful...

posted @ Friday, March 05, 2004 1:52 PM | Feedback (0) | Filed Under [ ASP.NET Links ]

Really nice cross-browser method of doing the 'DefaultButtons' thing - so that when you hit enter, the correct button 'clicks'

This is one of the major UI problems which is essentially caused by ASP.NET's 'one form' rule, as Darrell points out there's a number of solutions out there but none of them really solve the whole problem (i.e., for all browsers), well now there's a great solution - from Darrell Norton's Blog (link): (reproduced here because I'll never find it again otherwise...)Submitting default buttons when the user presses the Enter key - finally! One of the hardest things in web development is getting a certain button to submit if you have more than one button on the page. Andy Smith, of Metabuilders fame,...

posted @ Thursday, March 04, 2004 11:37 AM | Feedback (0) | Filed Under [ ASP.NET ]

Very cool stuff which I can't write about...

I've recently been working on a project for Microsoft UK doing some community stuff for the UK bCentral site which is pretty interesting - especially as it's given me some insight as to how Microsoft builds their sites. Recently I've been working on some branding stuff which involves using the core Microsoft branding elements - now, how this is done is amazingly cool and to be honest it pretty much sets the pattern for how I think sites should be built...however, it's covered by an NDA - I have no idea why, but it is so I can't discuss it. Well,...

posted @ Thursday, March 04, 2004 3:24 AM | Feedback (0) |

Dumb little thing...class which outputs an Excel compatible table from a DataSet

Very simple and based on the one I blogged about previously (well not based on the code but based on the same idea). Anyway, hook this up to a link button, pass in a dataset and it'll provide a downloadable Excel compatible file... public class GetExcel { public static void Convert(DataSet ds,...

posted @ Wednesday, March 03, 2004 10:41 AM | Feedback (0) | Filed Under [ ASP.NET Code Snippets ]

Smart spam...

I had an interesting comment spam today...as usual the URL of the sender was an 'Online Pharmacy' - interesting thing was that the actual comment was a reordering of a previous comment - so for all intents and purposes it looked like a real comment. Anyone know if these are human entered or if there's some system out there picking out keywords and posting realistic looking comments? Or am I just being paranoid?

posted @ Tuesday, March 02, 2004 4:57 PM | Feedback (0) |

Security through Diversity - why I don't like ValidateRequest

I'm aware this is a fairly controversial viewpoint, I should explain some of my own background as a precursor to my dislike of this. In the bad old days, I was a penetration tester; I ran my own little company which provided this service to a number of customers, my job was to essentially crack / in other ways break web sites and 'other' networks. In my time as a pen tester, one of the most annoying things was flaws which could effect a huge number of sites / installations at the same time, classics were Cisco password flaws, Perl and PHP...

posted @ Tuesday, March 02, 2004 3:10 PM | Feedback (0) | Filed Under [ ASP.NET Security ]

FreeTextBox 2.0 - now cross browser compatible!

This is so fantastic, I just read this on Colt Kwong's blog - FreeTextBox - which is just the best WYSIWYG editor for use in ASP.NET has just begun to support other browsers than IE. This is a really big step, for many web projects (which specify support of Mozilla browsers) this makes it possible to provide this type of functionality to all users - just remember to validate their input! UPDATE: Just noticed one thing, the source code is no longer included, you can buy it for $50 which is reasonable...but worth noting!Here's what Colt wrote...FreeTextBox 2.0 Released FreeTextBox 2.0 has...

posted @ Tuesday, March 02, 2004 11:16 AM | Feedback (0) |

Fixing Internet Explorer's CSS Deficiencies...and a link to the best menu implementation I've seen...

I really wish there were more blog posts like this one, it covers a whole host of problems IE has with CSS, from the lack of :hover support, to the well known issues with PNG files - oh and check out the comments, an awful lot of clever people have replied with other issues / fixes for issues with IE - oh and some stuff on CSS3 Media Queries - which seem just incredibly useful - anyone know when / if IE will support CSS 3?I also discovered this as a link from that article, essentially it's a nice, simple, standards...

posted @ Monday, March 01, 2004 11:03 AM | Feedback (0) |

Powered by: