JohnL

Reading, United Kingdom

about.me/johnludlow

Age: 32

2d
comment Wix Patch Generation issues
What's the value of REINSTALLMODE?
2d
comment How to prevent the "Too awesome to use" syndrome
You could apply a cost to carrying it around. Suppose your Staff of Corruption is the most powerful weapon in the world, but you suffer Corruption penalties while you carry it, possibly increasing over time. Or imply that the weapon is super-powerful but only in the current area, or against particular foes.
May
3
comment PowerShell enum value that represents all
I've added a note about the type already existing, to make it clearer to anyone else reading this answer.
May
3
revised PowerShell enum value that represents all
added 421 characters in body
May
3
comment powershell tabControl borders
What theme (e.g the 'classic' XP-style theme, Aero, Windows 8-style) is being used on the machine you're running the PowerShell script on? Are they the same OS? These all affect how controls are displayed. When I try the above code on a machine with Win7 and Aero, I get flat borders
May
3
comment powershell tabControl borders
Is this on the same machine?
May
2
comment Handle a manager who is prejudiced, untrusting?
You don't say exactly where you are based. That's fine, but be aware that there are laws that cover hostile working environments (that's the term used in the UK) and they differ from region to region. Check what the laws are in your region to see what actions you might take. Usually, this would end up with a chat with an HR rep where I live, if the issue was as bad as you describe
May
2
comment How to encourage people to visit conferences or do anything else to improve skills?
No-one's mentioned that it could just be that the expenses process is just too darn painful. I've been on a couple of trips for my current workplace and vowed never to do it again, because the expenses software was designed as a torture device.
May
2
comment powershell tabControl borders
Have you tried the BorderStyle property on the TabPage object?
May
2
comment How do I modify this powershell script so it creates a log of the date time and names of all files that were deleted or previously deleted?
You should tell us what behaviour you're seeing and how that differs from what you're expecting. I can't see how $report_items gets set and I also note that your out-file call will overwrite the file every time - you might want to try -Append
May
2
comment Powershell function argument default: Weirdness when it has a type constaint
I guess it's not consistent with C#, since I don't think casting or assigning null to a string will result in string.Empty in C#. But then there's no requirement that PowerShell be consistent with C# as they're different languages. Similarly, F# also has different behaviors than C#, and it's by design.
May
2
comment Pass arguments to a scriptblock in powershell
If you plan to use & then you can do this: & { param($hello) $hello } -hello world
May
2
answered PowerShell enum value that represents all
Apr
18
comment What is the C# equivalent to std::vector::iterators?
Yes but then I would have thought the empty list case (or null list case, for that matter) were also outside the scope.
Apr
18
comment What is the C# equivalent to std::vector::iterators?
Of course, you might still need a null check before you try and use closest_cluster
Apr
3
awarded Enlightened
Apr
3
awarded Nice Answer
Mar
31
comment What's the meaning of the `in` keyword in this example (F#)
Yeah the use of in really does not make that any more readable. I take it that in your example doing something like if ( a * a = 100 ) then printfn "Ok" would achieve the same thing?
Mar
31
comment What's the meaning of the `in` keyword in this example (F#)
Thanks, so it is the same use case as the SO question I had a link to, though the code layout was slightly different.
Mar
31
accepted What's the meaning of the `in` keyword in this example (F#)
1 2 3 4 5