Re: Managing databases

2012-12-17 Thread Ben Scott
I have a similar system but I have a simple ruby script that applies migration scripts. I can run it against development databases and when I'm deploying a new version of the system I just run it against the production database. It includes a bootstrap migration to create the schema version table,

Re: Managing databases

2012-12-17 Thread Ben Scott
@ozdotnet.com] *On Behalf Of *Ben Scott > *Sent:* Monday, December 17, 2012 8:29 PM > *To:* ozDotNet > *Subject:* Re: Managing data > > ** ** > > I have a similar system but I have a simple ruby script that applies > migration scripts. I can run it against development databa

Re: Image Exif updating

2012-12-28 Thread Ben Scott
Greg, I decided to risk an in-place upgrade from W7 to W8 and didn't have any problems at all. VS2010, SQL Server Express, MySQL, PHP, Apache, Git, chocolatey, Ruby, etc etc. Everything worked perfectly. My wireless network settings were even kept. Mind. Blown. On Fri, Dec 28, 2012 at 4:23 PM, Gr

RE: Image Exif updating

2012-12-28 Thread Ben Scott
VS2010 pro runs fine under W8, side by side with VS2012 express at least Sent from my Windows Phone -- From: Greg Keogh Sent: 29/12/2012 1:33 PM To: ozDotNet Subject: Re: Image Exif updating Katherine, Ben, I've never run an upgrade, I always fresh install. That's why

Re: SPAM-LOW Re: WCF service best practises

2013-02-04 Thread Ben Scott
In the MarkPad Code52 project I was using remoting to implement appdomains for plugins, so that plugins couldn't crash the editor. It didn't work, probably due to my inexperience, but it seemed like remoting is still the status quo for appdomains. I don't see why you would try to do that over somet

Re: SPAM-LOW Re: WCF service best practises

2013-02-04 Thread Ben Scott
ogies (WebApi etc..) as you would be seriously wasting time with > unnecessary network calls, serialisation/de serialisation etc…. > > ** ** > > **- **Glav > > ** ** > > ** ** > > *From:* ozdotnet-boun...@ozdotnet.com [mailto: > ozdotnet-boun...@o

Re: does anyone know a good technique to keep track of your braces in C#?

2013-02-13 Thread Ben Scott
Katherine, from what I understand you are vision-impaired? I can understand that braces would quickly become a problem for you. Maybe you could look into a language like F# which uses tabs for nesting rather than braces. There would be a learning curve but that may be worthwhile in the long term. O

RE: ASP.NET app for different devices

2013-03-15 Thread Ben Scott
I would start with twitter bootstrap. It is trivial to build a responsive interface and styling past tue default is pretty simple too. Sent from my Windows Phone -- From: Arjang Assadi Sent: 16/03/2013 10:30 AM To: ozDotNet Subject: Re: ASP.NET app for different devices

Re: Skywards (Emirates) sent me my password back in clear text

2013-04-04 Thread Ben Scott
NetRegistry does the same. At least you have to sign in to the reseller account first but after that, clear text all the way. On 4/04/2013 6:09 PM, Bec Carter wrote: Just realised the web hoster I use does the same (ahem studiocoast).

Re: Commercial Source Code Licence

2013-04-18 Thread Ben Scott
I release my oss projects as CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0/) which is a really easy licence that allows commercial use and modification. IANAL but my understanding is that there is no requirement to actually release or open source any commercial modifications. O

Re: Winforms\WIndows Service

2013-07-22 Thread Ben Scott
s that are controlled in the GUI. Cheers Ben Scott @belfryimages On 22/07/13 5:34 PM, Tom Rutter wrote: Does it need to run even when no user is logged in? If not, then you could just create a gui app as required and add it to the Windows startup list. Much cleaner and using the features already

Re: decimal.ToString() (JSON Serialization)

2013-08-10 Thread Ben Scott
Looks like decimal.ToString("G0") will strip the zeros, so s1.ToString("G0") == s2.ToString("G0"). I don't know if you can make NewtonSoft do that though. Note that this will fall back to scientific notation, so 0.1m.ToString("G0") == "1E-25". Ben On 11/08/2013 3:02

Re: WPF - Get scrollbar position of WebBrowser control

2013-09-09 Thread Ben Scott
MarkPad does this to sync the position of the editor and preview. It uses Chromium but you might be able to find something useful. I don't recall exactly how it works but you would look in the preview view. https://github.com/Code52/DownmarkerWPF On 10/09/13 10:18 AM, Jim Baker wrote: Hel

Re: Learning LINQ - update

2012-03-15 Thread Ben Scott
I don't know GridView very well (or LINQ to SQL), but to rule out deferred execution being the problem you could change "GridViewStaff.DataSource = stafflist;" to "GridViewStaff.DataSource = stafflist.ToList();". Calling ToList() will execute the query and returns an IList<> instead of IEnumerable

Re: log4net sample

2012-03-18 Thread Ben Scott
You're probably right, in my experience log4net silently fails if there is anything wrong with the configuration. I don't have anything at hand but I have configurations for email and database appenders, I think both in XML and code, that I'll pass in later. Sent from my iPod On 18/03/2012, at

Re: log4net sample

2012-03-18 Thread Ben Scott
Ok, so given a WinForms app, I have a 'myapp.log4net' file ( https://gist.github.com/2070790) which gets copied to the output directory. This file contains an AdoNetAppender and an SmtpAppender. The database table is included in the l4n documentation I believe. Note the tag at the end of the file,