RE: [OT](ish) Interview Questions

2011-02-06 Thread Dylan Tusler
As for Notoriety in blog? i don't need it.. i had my name in lights thanks to your WPF app (that was oversold on complexity)... the one that is going to keep the WPF torch alive...as with apps like these, who needs bloggers who discuss confidential and/or disparaging remarks ...as

Re: Databases for Windows Phone 7.

2011-02-06 Thread David Burela
I haven't tried it myself., but I keep hearing that Perst is the best DB available for WP7. http://mobileworld.appamundi.com/blogs/andywigley/archive/tags/Perst/default.aspx I thought you had to pay for it, but he has the source code for it in one of those posts -David Burela On 2 February 2011

Placeholders in large text file

2011-02-06 Thread Bec Carter
Good mornin' all! I've a requirement to put certain values (after computing them) in various spots in a very large text file. So basically the starting text file can have placeholders where these computed values will end up- like a template. Then my code will compute some values based on user

Re: Placeholders in large text file

2011-02-06 Thread Noon Silk
On Mon, Feb 7, 2011 at 10:21 AM, Bec Carter bec.usern...@gmail.com wrote: Good mornin' all! I've a requirement to put certain values (after computing them) in various spots in a very large text file. So basically the starting text file can have placeholders where these computed values will

Re: Placeholders in large text file

2011-02-06 Thread Bec Carter
On Mon, Feb 7, 2011 at 10:25 AM, Noon Silk noonsli...@gmail.com wrote: On Mon, Feb 7, 2011 at 10:21 AM, Bec Carter bec.usern...@gmail.com wrote: Good mornin' all! I've a requirement to put certain values (after computing them) in various spots in a very large text file. So basically the

Re: Placeholders in large text file

2011-02-06 Thread Noon Silk
On Mon, Feb 7, 2011 at 10:29 AM, Bec Carter bec.usern...@gmail.com wrote: On Mon, Feb 7, 2011 at 10:25 AM, Noon Silk noonsli...@gmail.com wrote: On Mon, Feb 7, 2011 at 10:21 AM, Bec Carter bec.usern...@gmail.com wrote: Good mornin' all! I've a requirement to put certain values (after

Re: Placeholders in large text file

2011-02-06 Thread Bec Carter
On Mon, Feb 7, 2011 at 10:35 AM, Noon Silk noonsli...@gmail.com wrote: On Mon, Feb 7, 2011 at 10:29 AM, Bec Carter bec.usern...@gmail.com wrote: On Mon, Feb 7, 2011 at 10:25 AM, Noon Silk noonsli...@gmail.com wrote: On Mon, Feb 7, 2011 at 10:21 AM, Bec Carter bec.usern...@gmail.com wrote: Good

Re: Placeholders in large text file

2011-02-06 Thread Grant Molloy
Bec, Read this article and download the demo.. It goes through several different options for find and replace in large text strings.. http://www.codeproject.com/KB/string/fastestcscaseinsstringrep.aspx Grant On Mon, Feb 7, 2011 at 9:43 AM, Bec Carter bec.usern...@gmail.com wrote: On Mon, Feb

OT: 12 Month Contract for .NET Dev

2011-02-06 Thread Anton Felich
We are currently in the market for a senior developer for a 12 month contract in the Melbourne CBD. HR has put the below advertisement together and it will go up on the job boards in a week or so but I thought I’d get it out there and see if any of you were interested first. Feel free to send

Resharper naming rules

2011-02-06 Thread Stephen Price
Hey, I noticed some of the Visual Studio generated names (or it may be part of the template) has some names in the form of Application_Startup. The method names generated for events take that form too (when you type += then tab, tab). Do people normally rename those methods to

Re: Resharper naming rules

2011-02-06 Thread djones147
Look in the templates folder of visual studio. For the past two years I have coded against code analysis and stylecop. Most of the rubbish created by visual sudio automagicaly. Can be changed by editing the templates. Hth Davy --Original Message-- From: Stephen Price Sender:

Re: Placeholders in large text file

2011-02-06 Thread Michael Minutillo
Well, if the template size isn't going change and this is the only app running on the machine then so be it. Chances are good that neither of those things is true. I'd still err on the side of having a single line memory at a time because it's not like the optimization is making it any harder to

Re: Placeholders in large text file

2011-02-06 Thread Bec Carter
On Mon, Feb 7, 2011 at 12:49 PM, Michael Minutillo michael.minuti...@gmail.com wrote: If you're in .NET 4.0 land then I'd do something similar to this: public string ReplaceTokens(string src) { /* ... */ } File.WriteAllLines(outputFileName, File.ReadLines(inputFileName).Select(ReplaceTokens));

Re: Placeholders in large text file

2011-02-06 Thread Bec Carter
On Mon, Feb 7, 2011 at 1:33 PM, Michael Minutillo michael.minuti...@gmail.com wrote: Well, if the template size isn't going change and this is the only app running on the machine then so be it. Chances are good that neither of those things is true. I'd still err on the side of having a single

Re: Placeholders in large text file

2011-02-06 Thread Michael Minutillo
You could host Razor but I'm not sure how it will handle a template so large. http://www.west-wind.com/weblog/posts/864461.aspx Or possibly you could use NVelocity http://csharp-source.net/open-source/template-engines/nvelocity Or StringTemplate http://www.stringtemplate.org/ Or Spark

RE: Placeholders in large text file

2011-02-06 Thread Bill McCarthy
If the templates don't change often, but are used somewhat more often, then it might be worth pre-processing them: that is parse them initially, and spit them out in parts with a directive file. Then you simply read the directive file and stitch the parts together. Eg: Long text %=placeholder1 %

Re: Placeholders in large text file

2011-02-06 Thread Bec Carter
On Mon, Feb 7, 2011 at 1:59 PM, Bill McCarthy bill.mccarthy.li...@live.com.au wrote: If the templates don't change often, but are used somewhat more often, then it might be worth pre-processing them: that is parse them initially, and spit them out in parts with a directive file. Then you simply

Re: Placeholders in large text file

2011-02-06 Thread Bec Carter
On Mon, Feb 7, 2011 at 1:49 PM, Michael Minutillo michael.minuti...@gmail.com wrote: You could host Razor but I'm not sure how it will handle a template so large. http://www.west-wind.com/weblog/posts/864461.aspx Or possibly you could use NVelocity

Re: Placeholders in large text file

2011-02-06 Thread Preet Sangha
Sorry for hijacking the thread - but can i recommend the use of Memory Mapped Files for reading and writing large files? This will make it far far quicker as changes pages in memory won't need to be stored in the system page file. On 7 February 2011 16:23, mike smith meski...@gmail.com wrote:

RE: Placeholders in large text file

2011-02-06 Thread Bill McCarthy
There's caveats on that. Frist off it means you're using pointers kind-of approach which is good but it also means you immediately lose all built in text comparison options other than binary equality. The other big caveat is you need to endure replacements are the same size otherwise you end up