Re: Microsft DNS manipulation using dotnet

2010-06-17 Thread Jason Finch
google says http://msdn.microsoft.com/en-us/library/ms682131(VS.85).aspx for accessing via WMI. On Fri, Jun 18, 2010 at 4:30 PM, Anthony wrote: > Anyone have any experience manipulating Microsoft Dns from dotnet. Want > to be able to add zones/records to my DNS server programmatically. Any >

Microsft DNS manipulation using dotnet

2010-06-17 Thread Anthony
Anyone have any experience manipulating Microsoft Dns from dotnet. Want to be able to add zones/records to my DNS server programmatically. Any reference or code? Is your website being IntelliXperienced? regards Anthony (*12QWERNB*) Is your websi

Re: How to validate directory path

2010-06-17 Thread noonie
Can you change the workflow so that the folder creation happens closer to crunch-time? This does not solve your problem but may not annoy the user as much, particularly if you provide a method of recovery if permissions aren't correct. This stackoverflow discussion links to checking permissions an

RE: [OT] Laptop - Dell vs Toshiba

2010-06-17 Thread Ian Thomas
Thanks to all for the feedback. Ian Thomas Victoria Park, Western Australia

Re: operator overload extension method??

2010-06-17 Thread Tom Rutter
Cheers On Fri, Jun 18, 2010 at 12:10 PM, David Kean wrote: > Nope. Unfortunately, they don’t support adding Properties either. :( > > > > *From:* ozdotnet-boun...@ozdotnet.com [mailto: > ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Tom Rutter > *Sent:* Thursday, June 17, 2010 6:35 PM > *To:* oz

RE: operator overload extension method??

2010-06-17 Thread David Kean
Nope. Unfortunately, they don't support adding Properties either. :( From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Tom Rutter Sent: Thursday, June 17, 2010 6:35 PM To: ozDotNet Subject: operator overload extension method?? Is it possible to overload the

operator overload extension method??

2010-06-17 Thread Tom Rutter
Is it possible to overload the = operator using an extension method in either c# or vb .net 4? This SO thread says no http://stackoverflow.com/questions/172658/operator-overloading-with-c-extension-methods Cheers

Re: How to validate directory path

2010-06-17 Thread Tom Rutter
The time in fact can vary. Some times it can be a few seconds and other times it may be 10s of minutes. I would hate it as a user if i make a request and then 5 minutes later i get told that the directory path i provided as input is bad. I prefer to get told that up front On Fri, Jun 18, 2010 at

Re: How to validate directory path

2010-06-17 Thread noonie
Greetings, On 17 June 2010 14:12, Tom Rutter wrote: > Mainly because of design I guess. I have a function that uses the folder > path way down the line someplace after a lot of other work has been done, so > i dont want to do lots of stuff and then find out the folder path i was > given cant be

Re: How to validate directory path

2010-06-17 Thread silky
On Fri, Jun 18, 2010 at 7:58 AM, David Connors wrote: > On 17 June 2010 22:25, mike smith wrote: > > The most cogent argument against the idea of creating and then > > deleting has already been made:  Namely, sure, you can do it now, but > > may not be able to in 10 seconds time.  Hypothesise tha

Re: How to validate directory path

2010-06-17 Thread silky
On Fri, Jun 18, 2010 at 7:43 AM, David Richards wrote: > Ah silky, > > You must have a huge target painted on you with a little picture of a > flame in the middle :) Someone's got to be the bad guy, right? :) > Not that I want to take sides here but the OP didn't seem to take > offense to the "

Re: How to validate directory path

2010-06-17 Thread silky
On Fri, Jun 18, 2010 at 2:33 AM, Ken Schaefer wrote: > +1 > > "terrible" is one of those subjective adjectives that casts the subject in a > negative light, and by > implication the person who posted it. If you are going to take pot-shots from > the sidelines (i.e. > not provide an illustrative

Re: How to validate directory path

2010-06-17 Thread David Connors
On 17 June 2010 22:25, mike smith wrote: > The most cogent argument against the idea of creating and then > deleting has already been made: Namely, sure, you can do it now, but > may not be able to in 10 seconds time. Hypothesise that this is a > network share, and the network just pisadeared o

Re: How to validate directory path

2010-06-17 Thread David Richards
Ah silky, You must have a huge target painted on you with a little picture of a flame in the middle :) Not that I want to take sides here but the OP didn't seem to take offense to the "offending" comment so there's no need to pounce on someone in that regard. I highly recommend making sure you u

RE: How to validate directory path

2010-06-17 Thread Ken Schaefer
+1 "terrible" is one of those subjective adjectives that casts the subject in a negative light, and by implication the person who posted it. If you are going to take pot-shots from the sidelines (i.e. not provide an illustrative counter example to demonstrate your point) then you should keep yo

RE: How to validate directory path

2010-06-17 Thread David Kean
> Ignoring the terrible coding style. Comments like this don't help the conversation. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of silky Sent: Thursday, June 17, 2010 3:32 AM To: ozDotNet Subject: Re: How to validate directory

Re: How to validate directory path

2010-06-17 Thread mike smith
The most cogent argument against the idea of creating and then deleting has already been made: Namely, sure, you can do it now, but may not be able to in 10 seconds time. Hypothesise that this is a network share, and the network just pisadeared on you? Some kind of transactional system is the on

Re: How to validate directory path

2010-06-17 Thread Michael Minutillo
Here's a recursive version that only requires one create and one delete: (Use with caution it hasn't been tested that thoroughly) bool CanCreate(string path) { try { var toCreate = new DirectoryInfo(path); if(toCreate.Exists) return true; var toDelete = MostGeneralMissing(toCreate); toCreate.Creat

Re: Math.Round

2010-06-17 Thread silky
On Thu, Jun 17, 2010 at 9:32 PM, Ian Thomas wrote: > Doesn't math.floor() do what you want? You mean Math.Ceil. I think he only wants .5 to round up (i.e. not .5 or <, which is what Ciel would do), whereas it would normally round down (I assume). -- silky http://www.programmingbranch.com/

RE: Math.Round

2010-06-17 Thread Ian Thomas
Doesn't math.floor() do what you want? Ian Thomas Victoria Park, Western Australia -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Alastair Waddell Sent: Thursday, 17 June 2010 12:20 PM To: ozDotN

Re: How to validate directory path

2010-06-17 Thread silky
On Thu, Jun 17, 2010 at 8:53 PM, James Chapman-Smith wrote: > Hi silky, > > It only creates then deletes folders that don't exist so nothing else (bar > some sort of file system watching rogue program) will write to those > folders. > > But what do you mean "terrible coding style"? The only thing

RE: Need some CMS Advice

2010-06-17 Thread Michael Nemtsev
CRMs can be grouped by the following categories with the leading products in each Enterprise - TYPO3, SharePoint Social - Drupal, Wordpress Business card site - Joomla What are your business requirements and usage scenarios? Michael Nemtsev Microsoft MVP B: http://msmvps.com/blogs/laflour S: h

RE: How to validate directory path

2010-06-17 Thread James Chapman-Smith
Hi silky, It only creates then deletes folders that don't exist so nothing else (bar some sort of file system watching rogue program) will write to those folders. But what do you mean "terrible coding style"? The only thing that I can fault is the use of the general-purpose `catch` statement. Pl

Re: How to validate directory path

2010-06-17 Thread silky
On Thu, Jun 17, 2010 at 7:30 PM, James Chapman-Smith wrote: > How about this? Ignoring the terrible coding style, it assumes that you've got delete priveledges, which may not be the case. It also assumes that nothing gets put in that directory outside of the program, etc. -- silky http://www

RE: Math.Round

2010-06-17 Thread James Chapman-Smith
Hi Alastair, Doing this would change the expected behaviour of the Round function and lead to ambiguous code. If you could do this then adding some bit of new code that changes the rounding could invalidate existing code that was functioning correctly. Think space shuttle challenger-like rounding

RE: How to validate directory path

2010-06-17 Thread James Chapman-Smith
How about this? public static bool CanCreateDir(string path) { var @return = false; try { var actions = new List(); var di = new System.IO.DirectoryInfo(path); while (true) { if (di.Exists) { @return

RE: Need some CMS Advice

2010-06-17 Thread Leah Garrett
For a CMS I am using the .Net open source mojoportal http://www.mojoportal.com/ It was easy to setup. It has in place editing which seems to be a lot easier to understand for our content editors. They had been using Joomla for an older web site and had a lot of trouble. What do you mean by