RE: [OT] Backups

2011-06-03 Thread Greg Keogh
>Subversion. That way I get a change history as well. Danger Will Robinson! A version control system is not a backup. Greg

RE: [OT] Backups

2011-06-03 Thread Greg Keogh
Bec, don't rely on memory sticks. I bought a 16GB stick at the swap-meet a few weeks ago and one morning when I put it in I was asked for format it. I brushed this off as a coincidence, so I formatted and it work fine to another week before I got the same message. That $30 stick is now landfill. A

RE: [OT] Backups

2011-06-03 Thread Ken Schaefer
You can back up to a central location in your house, and then back that central point up to the cloud. That can help protect you against a disaster (e.g. lightning strike, fire etc.) affecting your house. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozd

RE: [OT] Backups

2011-06-03 Thread Ian Thomas
Ken You're using WHS (v1 or 2011 - ?), so what Cloud service do you use that does allow you to backup a server? Most cheaper ones preclude server backups (eg, iiNet's Vault is specific about that). Ian Thomas Victoria Park, Western Australia

Re: [OT] Backups

2011-06-03 Thread Grant Molloy
I've decided to go old school.. I just bought 10,000 floppy disks & a USB FDD.. (Got nothing else on this weekend anyway !! ) :-D On Fri, Jun 3, 2011 at 5:48 PM, Ian Thomas wrote: > Ken > > You’re using WHS (v1 or 2011 - ?), so what Cloud service do you use that * > does* allow you to backup a

Re: [OT] Backups

2011-06-03 Thread Scott Barnes
I backed up to the cloud today. I grabbed a balloon and tied a memory stick to it and then released it... Question if I may..how do i get it back down? --- Regards, Scott Barnes http://www.riagenic.com On Fri, Jun 3, 2011 at 9:02 PM, Grant Molloy wrote: > I've decided to go old school.. > I jus

Generic class question

2011-06-03 Thread Greg Keogh
Folks, in the tiny sample below I want to parse some text and set the generic value, which will be int, double or long. The highlighted statements show what I want to do, but how is it done in a generic way? Greg public class DemoClass where T : struct { private T value; pu

RE: Generic class question (TypeConverter)

2011-06-03 Thread Greg Keogh
I asked my cat after I posted the question and he had the answer ... I have to use a TypeConverter. I'll post the answer when I have it worked out - Greg

Re: Generic class question

2011-06-03 Thread Richard Mason
The Convert class will help: value = (T)Convert.ChangeType(rawValue, typeof(T)) On Sat, Jun 4, 2011 at 10:40 AM, Greg Keogh wrote: > Folks, in the tiny sample below I want to parse some text and set the > generic value, which will be int, double or long. The highlighted > statements show what I

RE: Generic class question

2011-06-03 Thread Greg Keogh
The Convert class will help: value = (T)Convert.ChangeType(rawValue, typeof(T)) Fascinating. I've not noticed that method before. The MSDN doco says that ChangeType expects an IConvertible, which int, double, long, etc do. It turns out I couldn't use a TypeConverter because I'm in Silverlight.

Re: Generic class question

2011-06-03 Thread Geoff Appleby
Surely there's very few types that a) you're using, that b) offer that Parse method. Could you save the reflection call and simply do something like if (typeof(T) is decimal) { decimal.Parse(...); } elseif (typeof(T) is int) { int.Parse(...); } ? On Sat, Jun 4, 2011 at 1:27 PM, Greg Keogh wrote

RE: Generic class question

2011-06-03 Thread David Kean
There's not a lot of point being generic if end up doing switch if/switch statements. ie Why don't you just have a specialized class for each numeric type? Ie IntFooClass, DoubleFooClass, etc. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Geoff Appleby

RE: Generic class question

2011-06-03 Thread Greg Keogh
Surely there's very few types that a) you're using, that b) offer that Parse method. Could you save the reflection call and simply do something like if (typeof(T) is decimal) { decimal.Parse(...); } elseif (typeof(T) is int) { int.Parse(...); } I can't cast a double, int or long to the generic typ