Id
int64
4
8.51M
PostTypeId
int64
1
7
AcceptedAnswerId
int64
7
75.5M
ParentId
int64
4
41.8M
Score
int64
-208
27.7k
ViewCount
int64
11
12.4M
Body
stringlengths
0
45k
Title
stringlengths
2
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
225
CreationDate
stringdate
2008-07-31 21:42:52
2011-12-14 18:48:47
LastActivityDate
stringdate
2008-08-01 12:19:17
2023-03-05 04:40:26
LastEditDate
stringdate
2008-08-01 13:54:25
2023-03-05 03:12:45
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
-1
21.1M
Tags
listlengths
1
6
14,995
2
null
14,934
0
null
in layman terms: if a prepared statement is sent then the DB will use a plan if it is available, it doesn't not have to recreate a plan every time this query is sent over but only the values of the params have changed. this is very similar to how procs work, the additional benefit with procs is that you can give permis...
null
CC BY-SA 2.5
null
2008-08-18T17:53:15.030
2008-08-18T17:53:15.030
null
null
740
null
14,989
2
null
14,967
26
null
Ironically setting the actual standards are likely to be the easy part. My first suggestion would be to elicit suggestions from the other engineers about what they feel should be covered, and what guidelines they feel are important. Enforcing any kind of guidelines requires a degree of buy-in from people. If you sudde...
null
CC BY-SA 2.5
null
2008-08-18T17:50:32.697
2008-08-18T17:50:32.697
null
null
1,043
null
14,991
2
null
14,923
2
null
The MVC routing lets you define pretty much any structure you want, you just need to define what each of the pieces mean semantically. You can have bits that are "hard-coded", like "shop/products", and then define the rest as variable, "{category}/{subcategory}/{speciality}", etc. You can also define several routes th...
null
CC BY-SA 2.5
null
2008-08-18T17:50:58.763
2008-08-18T17:50:58.763
null
null
1,124
null
14,999
2
null
14,698
0
null
You can't. Pro*C only knows #if and #include. My best advice would be to preprocess the file as part of your build process to remove stuff Pro*C won't like. Something like ``` grep -v -E '^#(warning|pragma|define)' unchangeable.h >unchangeable.pc.h ``` My other advice would be to avoid the abomination which is Pr...
null
CC BY-SA 2.5
null
2008-08-18T17:54:54.463
2008-08-18T17:54:54.463
null
null
1,813
null
15,004
2
null
2,767
20
null
I'm a big fan of [CodeRush and Refactor! Pro](http://www.devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/) by DevExpress. I've been using them for a number of years, and without a doubt it makes me a faster developer. Also, both are built on a free framework called [DXCore](http://www.devexpress.com/Do...
null
CC BY-SA 2.5
null
2008-08-18T18:00:31.567
2008-08-18T18:00:31.567
null
null
1,795
null
15,018
2
null
2,767
1
null
I like , too! It's affordable if you're a student or otherwise connected to an university. For interaction with SVN I'll prefer . .. and of course for connecting to TeamFoundation Server there's the
null
CC BY-SA 2.5
null
2008-08-18T18:12:52.573
2008-08-18T18:12:52.573
null
null
898
null
14,986
2
null
14,934
0
null
If you're using MS SQL, load up the profiler and you'll see what SQL statements are generated when you use parameterised queries. Here's an example (I'm using Enterprise Libary 3.1, but the results are the same using SqlParameters directly) against SQL Server 2005: ``` string sql = "SELECT * FROM tblDomains WHERE Doma...
null
CC BY-SA 2.5
null
2008-08-18T17:48:04.900
2008-08-18T17:56:57.940
2008-08-18T17:56:57.940
419
419
null
15,015
1
15,069
null
8
7,153
I've been using WatiN as a testing tool for my current project. Besides the minor bugs with the Test Recorder, I've been able to use it and automate a lot of my tests in conjunction with NUnit. Anyone else out there with experience with different tools they might suggest?
Web Application Testing for .Net (WatiN Test Recorder)
CC BY-SA 2.5
0
2008-08-18T18:12:09.187
2015-03-06T03:24:00.437
2008-08-18T19:06:14.243
905
877
[ ".net", "automated-tests", "watin" ]
15,002
2
null
7,074
78
null
It's a matter of convention, really. `string` just looks more like C/C++ style. The general convention is to use whatever shortcuts your chosen language has provided (int/Int for `Int32`). This goes for "object" and `decimal` as well. Theoretically this could help to port code into some future 64-bit standard in wh...
null
CC BY-SA 4.0
null
2008-08-18T17:58:11.917
2018-10-03T04:24:47.277
2018-10-03T04:24:47.277
4,588,756
1,763
null
15,020
2
null
14,967
0
null
I think I echo the other comments here that the MS guidlines already linked are an excellent starting point. I model my code largely on those. Which is interesting because my manager has told me in the past that he is not too keen on them :D You have a fun task ahead of you my friend. Best of luck, and please ask if ...
null
CC BY-SA 2.5
null
2008-08-18T18:14:55.190
2008-08-18T18:14:55.190
null
null
832
null
15,027
2
null
14,857
0
null
I know this sounds odd, but do you use "Build" or "Rebuild" to build the solution? If I have funny problems like that, a "Rebuild All" to the solution helps.
null
CC BY-SA 2.5
null
2008-08-18T18:20:48.327
2008-08-18T18:20:48.327
null
null
1,069
null
15,011
2
null
14,893
18
null
When taking on a project that has never had an automated build process, it is easier to take it in steps. Do not try to swallow to much at one time, otherwise it can feel overwhelming. 1. First get your code compiling with one step using an automated build program (i.e. nant/msbuild). I am not going to debate which ...
null
CC BY-SA 2.5
null
2008-08-18T18:07:27.763
2008-08-18T18:07:27.763
null
null
1,117
null
15,007
1
15,037
null
15
9,316
There are lots of widgets provided by sites that are effectively bits of JavaScript that generate HTML through manipulation or `document.write()`. Rather than slow the browser down even more with additional requests and trust yet another provider to be fast, reliable and not change the widget output, I want to execute...
Executing JavaScript to Render HTML for Server-Side Caching
CC BY-SA 3.0
0
2008-08-18T18:01:33.623
2017-04-24T10:20:20.247
2017-04-24T10:20:20.247
7,275,984
null
[ "javascript", "html", "rendering", "greasemonkey" ]
15,031
2
null
14,963
0
null
Is CustomErrors in your web.config set to On or RemoteOnly? If so, what do you get when you change it to Off?
null
CC BY-SA 2.5
null
2008-08-18T18:22:29.947
2008-08-18T18:22:29.947
null
null
1,786
null
15,030
2
null
14,967
1
null
> You are most likely being set up to fail. Welcome to the industry. I disagree - so long as he creates the document, the worst that can happen is that it gets forgotten by everyone. If other people have issues with the content, then you can ask them to update it to show what they'd prefer. That way it's off your pla...
null
CC BY-SA 2.5
null
2008-08-18T18:21:47.233
2008-08-18T18:21:47.233
null
null
517
null
15,023
1
null
null
11
3,443
In WindowsForms world you can get a list of available image encoders/decoders with ``` System.Drawing.ImageCodecInfo.GetImageDecoders() / GetImageEncoders() ``` My question is, is there a way to do something analogous for the WPF world that would allow me to get a list of available ``` System.Windows.Media.Imaging...
How to get list of installed BitmapEncoders/Decoders (the WPF world)?
CC BY-SA 2.5
null
2008-08-18T18:17:12.687
2015-01-01T22:53:30.643
2015-01-01T22:53:30.643
3,576,214
null
[ "c#", "wpf", "bitmap" ]
15,024
1
15,035
null
17
1,671
Questions #1 through #4 on the [Joel Test](http://www.joelonsoftware.com/articles/fog0000000043.html) in my opinion are all about the development tools being used and the support system in place for developers: 1. Do you use source control? 2. Can you make a build in one step? 3. Do you make daily builds? 4. Do you h...
Tools to help a small shop score higher on the "Joel Test"
CC BY-SA 2.5
0
2008-08-18T18:17:49.787
2012-05-11T11:35:20.843
2012-05-11T11:35:20.843
426,671
1,795
[ "version-control", "bug-tracking", "dailybuilds" ]
15,028
2
null
15,024
4
null
1) [Subversion](http://subversion.tigris.org/) 2) [Ant](http://ant.apache.org/) / [Maven](http://maven.apache.org/) 3) [Continuum](http://continuum.apache.org/) 4) [Bugzilla](http://www.bugzilla.org/) / [Trac](http://trac.edgewall.org/)
null
CC BY-SA 2.5
null
2008-08-18T18:21:11.573
2008-08-18T18:21:11.573
null
null
1,318
null
15,032
2
null
14,708
3
null
Just to expand on Monroecheeseman's answer. gci is an alias for Get-ChildItem (which is the equivalent to dir or ls), the -r switch does a recursive search and -i means include. Piping the result of that query to select-string has it read each file and look for lines matching a regular expression (the provided one in...
null
CC BY-SA 2.5
null
2008-08-18T18:22:41.490
2008-08-18T18:22:41.490
null
null
1,233
null
15,033
2
null
1,644
1
null
My favourites are: - - - I like listening to John C. Dvorak on TWiT, though I've never tried his other podcasts. He really knows his stuff and is frequently funny, but sometimes he's just an annoying old grump. I used to listen to [PaulDotCom Security Weekly](http://pauldotcom.com/), but they talk an awful lot abou...
null
CC BY-SA 2.5
null
2008-08-18T18:23:39.413
2008-08-18T18:23:39.413
null
null
1,821
null
15,037
2
null
15,007
4
null
Wikipedia's ["Server-side JavaScript"](http://en.wikipedia.org/wiki/Server-side_JavaScript) article lists numerous implementations, many of which are based on Mozilla's JavaScript-to-Java converter, or its cousin (the same engine as found in Firefox and other Gecko-based browsers). In particular, something simple lik...
null
CC BY-SA 2.5
null
2008-08-18T18:26:10.300
2008-08-18T18:26:10.300
null
null
1,600
null
15,038
2
null
14,963
2
null
I've seen various people with this problem recently. [This link](http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx) might help. And [this one](http://randomtech.blogspot.com/2007/05/http-404-error-in-iis-6-on-new-aspnet.html). And a few oth...
null
CC BY-SA 3.0
null
2008-08-18T18:26:14.043
2014-09-23T08:20:04.870
2014-09-23T08:20:04.870
3,212,782
null
null
15,034
1
15,055
null
7
18,711
When building a VS 2008 solution with 19 projects I sometimes get: ``` The "GenerateResource" task failed unexpectedly. System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.IO.MemoryStream.set_Capacity(Int32 value) at System.IO.MemoryStream.EnsureCapacity(Int32 value...
Visual Studio Error: The "GenerateResource" task failed unexpectedly
CC BY-SA 3.0
0
2008-08-18T18:25:13.810
2018-11-24T14:06:37.307
2016-03-04T15:51:18.830
996,815
1,365
[ "visual-studio", "out-of-memory" ]
15,026
2
null
2,767
1
null
[Dispatch](http://dispatchasp.net) for FTP is what Copy Web Site should have been. This just came out but I like it a lot: [Mindscape File Explorer](http://www.mindscape.co.nz/Products/vsfileexplorer/) VisualSVN is excellent for SVN integration. Much better than Ankh (have not tried Ankh 2+ though) [SonicFileFinder]...
null
CC BY-SA 2.5
null
2008-08-18T18:20:30.777
2008-08-18T18:20:30.777
null
null
1,786
null
15,039
2
null
14,967
9
null
Never write your own coding standards use the MS ones (or the Sun ones or ... as appropriate for your language). The clue is in the word standard, the world would be a much easier place to code in if each organization hadn't decided to write their own. Who really thinks learning a new set of 'standards' each time you c...
null
CC BY-SA 2.5
null
2008-08-18T18:26:49.580
2008-08-18T18:26:49.580
null
null
1,769
null
15,036
2
null
1,644
0
null
I have subscribed to quite a few podcasts but the ones I try and listen to weekly are: 1. Se-Radio 2. Hanselminutes 3. .NET Rocks 4. Polymorphic Podcast 5. RunAsRadio I have a 35 minute commute to work each morning (bus) and I like watching the [Channel 9](http://channel9.msdn.com/Feeds/RSS/) feed on my zune.
null
CC BY-SA 2.5
null
2008-08-18T18:25:33.967
2009-08-20T19:56:35.803
2009-08-20T19:56:35.803
63,550
null
null
15,046
2
null
2,767
14
null
+1 Visual Assist. It's unfortunate that you need a plugin to get really good intellisense but it's definitely worth paying for.
null
CC BY-SA 2.5
null
2008-08-18T18:30:11.693
2008-08-18T18:30:11.693
null
null
1,043
null
15,041
2
null
15,007
2
null
If you're just using plain JS, [Rhino](http://www.mozilla.org/rhino/) should do the trick. But if the JS code is actually calling DOM methods and so on, you're going to need a full-blown browser. [Crowbar](http://simile.mit.edu/wiki/Crowbar) might help you. Is this really going to make things faster for users without...
null
CC BY-SA 3.0
null
2008-08-18T18:27:03.183
2015-10-08T07:28:40.953
2015-10-08T07:28:40.953
67,579
1,813
null
15,045
2
null
15,024
0
null
A good issue tracker that was relatively inexpensive was [axoSoft OnTime](http://axosoft.com/products/ontime.aspx). I used it for years before getting MS TFS. [Nant](http://nant.sourceforge.net/) and [CruiseControl](http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET) are staples of my...
null
CC BY-SA 2.5
null
2008-08-18T18:29:58.310
2008-08-18T18:29:58.310
null
null
1,365
null
15,047
1
15,207
null
18
9,619
I'm working on a WinForm .Net application with the basic UI that includes toolbar buttons, menu items and keystrokes that all initiate the same underlying code. Right now the event handlers for each of these call a common method to perform the function. From what I've read this type of action could be handled by the [...
Looking for example of Command pattern for UI
CC BY-SA 2.5
0
2008-08-18T18:31:08.730
2015-12-29T14:24:11.860
null
null
1,752
[ ".net", "design-patterns", "command" ]
15,040
1
15,683
null
6
2,144
I am using xampp on Windows, but I would like to use something closer to my server setup. [Federico Cargnelutti tutorial](http://phpimpact.wordpress.com/2008/05/24/virtual-appliances-lamp-development-made-easy/) explains how to setup LAMP VMWARE appliance; it is a great introduction to VMware appliances, but one of th...
How do you set your LAMP testing server?
CC BY-SA 2.5
0
2008-08-18T18:26:53.603
2008-11-09T02:19:17.273
2008-10-12T16:52:32.073
137
1,771
[ "ubuntu", "vmware", "lamp" ]
15,044
2
null
15,040
5
null
Assuming you have VMware workstation, VMware player or anything that can run vmware appliance, you just need to: 1. Download, unzip Ubuntu 8.04 Server and start the virtual machine. 2. Update ubuntu and set the layout and the timezone: sudo apt-get update sudo apt-get upgrade sudo dpkg-reconfigure console-setup sudo ...
null
CC BY-SA 2.5
null
2008-08-18T18:29:40.917
2008-08-20T11:52:54.493
2008-08-20T11:52:54.510
1,771
1,771
null
15,048
2
null
14,278
2
null
The article is a bit older, but still applicable for creating an extensibility layer within your application: [Let Users Add Functionality to Your .NET Applications with Macros and Plug-Ins](http://msdn.microsoft.com/en-us/magazine/cc164072.aspx)
null
CC BY-SA 2.5
null
2008-08-18T18:32:17.807
2008-08-18T18:32:17.807
null
null
1,795
null
15,043
2
null
14,963
-1
null
No-one did before, so I'll point to the trivial solution: Have you already de-installed the Service Pack and re-installed it again (or the whole framework)? Edit: @Kev: Easy explanation: He said the update works on one machine, but not on the other. I had similar problems in the past and re-installing helped to solve ...
null
CC BY-SA 2.5
null
2008-08-18T18:29:05.487
2008-08-19T06:24:20.380
2008-08-19T06:24:20.380
1,069
1,069
null
15,050
2
null
15,024
0
null
I don't think you really need obfuscation on .Net any more ([see another response](https://stackoverflow.com/questions/2525/best-net-obfuscation-toolsstrategy)) I wouldn't consider Vault, SVN is really the market leader at the moment (and free). Git is looking pretty promising but currently is command line only with ...
null
CC BY-SA 2.5
null
2008-08-18T18:34:50.313
2008-08-18T18:34:50.313
2017-05-23T10:27:42.823
-1
905
null
15,054
2
null
15,040
0
null
I don't really understand your question because i really didn't see one. But i'll do my best to infer two: to change your keyboard layout, check this [forum post](http://ubuntuforums.org/showthread.php?t=884533&highlight=change+keyboard+layout) on ubuntu forums and to change the timezone, check this [forum post](http:/...
null
CC BY-SA 2.5
null
2008-08-18T18:36:19.047
2008-08-18T18:36:19.047
null
null
50
null
15,056
1
null
null
9
4,920
What are some macros that you have found useful in Visual Studio for code manipulation and automation?
Do you have any recommended macros for Microsoft Visual Studio?
CC BY-SA 2.5
0
2008-08-18T18:36:58.890
2022-07-21T14:05:58.490
2008-09-16T12:15:11.987
1,185
1,185
[ "visual-studio", "automation", "macros" ]
15,035
2
null
15,024
19
null
1. source control: Subversion or Mercurial or Git 2. build automation: NAnt, MSBuild, Rake, Maven 3. continuous integration: CruiseControl.NET or Continuum or Jenkins 4. issue tracking: Trac, Bugzilla, Gemini (if it must be .NET and free-ish) Don't forget automated testing with [NUnit](http://www.nunit.org/), [Fit]...
null
CC BY-SA 3.0
null
2008-08-18T18:25:23.437
2011-12-28T22:24:12.300
2011-12-28T22:24:12.300
5,486
150
null
15,055
2
null
15,034
0
null
I used to hit this now and again with larger solutions. My tactic was to break the larger solution down into smaller solutions. You could also try: [http://stevenharman.net/blog/archive/2008/04/29/hacking-visual-studio-to-use-more-than-2gigabytes-of-memory.aspx](http://stevenharman.net/blog/archive/2008/04/29/hacking...
null
CC BY-SA 2.5
null
2008-08-18T18:36:45.270
2008-08-18T18:36:45.270
null
null
419
null
15,057
1
15,060
null
11
1,702
I'm sure we've all seen it before...A code base that has been around for a year or two, and as features have been added and bugs fixed, we end up with pieces of code that aren't actually in use anymore. I'm wondering if there is a way (especially in VS.NET with or without a third-party tool) to search the codebase and...
find orphaned methods in codebase
CC BY-SA 2.5
null
2008-08-18T18:37:12.913
2012-09-13T08:05:42.853
2008-08-19T19:00:31.617
1,795
1,795
[ ".net", "visual-studio", "refactoring" ]
15,060
2
null
15,057
10
null
[FxCop](http://msdn.microsoft.com/en-us/library/bb429476(VS.80).aspx) will warn you of methods where nothing calls them.
null
CC BY-SA 2.5
null
2008-08-18T18:39:03.080
2008-08-18T18:39:03.080
null
null
905
null
15,063
2
null
15,034
1
null
Sounds like a bug. [http://www.codeprof.com/dev-archive/66/6-27-664019.shtm](http://www.codeprof.com/dev-archive/66/6-27-664019.shtm) Toward the bottom, someone suggests adding: > <GenerateResourceNeverLockTypeAssemblies>true</GenerateResourceNeverLockTypeAssemblies> to your project file. Seems kind of dubious, but...
null
CC BY-SA 2.5
null
2008-08-18T18:40:39.647
2008-08-18T18:40:39.647
null
null
null
null
15,064
2
null
15,024
2
null
My engineering stack: 1. Git (I love GitHub, but Git doesn't require a hosted solution) 2. Rake 3. CruiseControl.rb 4. FogBugz No doubt these choices are influenced by my development stack, which most often includes Ruby, Rails, SQLite, Firefox, and OSX.
null
CC BY-SA 2.5
null
2008-08-18T18:40:45.793
2008-08-18T18:40:45.793
null
null
1,190
null
15,053
1
null
null
5
2,073
I'm trying to create a custom workflow action with an output parameter for error handling. Working from various examples, I can't get Parameter Direction="Out" to work. Everything seems right, but when I try to assign the output to the "error" variable in SharePoint Designer, it places asterisks around it and flags it...
How to get out parameters working in SharePoint workflows
CC BY-SA 2.5
0
2008-08-18T18:35:22.230
2009-02-16T10:45:24.437
2008-08-28T21:50:05.723
1,533
1,533
[ "sharepoint", "moss", "workflow" ]
15,065
2
null
15,057
4
null
As it turns out, one of the things that [FxCop](http://blogs.msdn.com/fxcop/) does is identify unused bits of code, but it sometimes misses stuff. However, your best bet would likely be [ReSharper](http://www.jetbrains.com/resharper/).
null
CC BY-SA 2.5
null
2008-08-18T18:40:59.397
2009-07-30T12:46:05.257
2009-07-30T12:46:05.257
1,185
1,185
null
15,071
2
null
15,066
3
null
Why don't you just put the images in an array?
null
CC BY-SA 2.5
null
2008-08-18T18:43:32.930
2008-08-18T18:43:32.930
null
null
1,597
null
15,068
2
null
15,062
5
null
``` function CleanUrl([string] $url) { return $url.Replace("http://", "") } ```
null
CC BY-SA 2.5
null
2008-08-18T18:42:33.730
2008-08-18T19:00:27.420
2008-08-18T19:00:27.420
150
150
null
15,067
2
null
15,034
7
null
From [https://social.msdn.microsoft.com/Forums/vstudio/en-US/5154ef26-ccfe-44d5-a322-6804b61ac774/systemoutofmemoryexception?forum=clr](https://social.msdn.microsoft.com/Forums/vstudio/en-US/5154ef26-ccfe-44d5-a322-6804b61ac774/systemoutofmemoryexception?forum=clr): Try deleting the .suo file and re-opening the soluti...
null
CC BY-SA 3.0
null
2008-08-18T18:41:57.240
2015-07-14T02:16:02.117
2015-07-14T02:16:02.117
1,402,846
414
null
15,062
1
15,136
null
17
54,228
How do I convert function input parameters to the right type? I want to return a string that has part of the URL passed into it removed. ``` function CleanUrl($input) { $x = "http://google.com".Replace("http://", "") return $x } $SiteName = CleanUrl($HostHeader) echo $SiteName ``` ``` function CleanUrl...
How do I do a string replacement in a PowerShell function?
CC BY-SA 3.0
0
2008-08-18T18:40:34.403
2015-07-13T13:17:04.213
2015-07-13T13:11:08.253
63,550
636
[ "string", "powershell", "function", "replace" ]
15,076
2
null
15,066
0
null
You could subclass Button and override the BackgroundImage property so you can better keep track of the current resource that represents the image. You might also override the onclick method to internally handle cycling to the next image, though that might be a little weird if the resources are handled outside of your...
null
CC BY-SA 2.5
null
2008-08-18T18:49:05.557
2008-08-18T18:49:05.557
null
null
404
null
15,066
1
15,071
null
5
2,902
I have a form in C# that has a button that, when clicked, I want the background image to cycle through a set of images (which I have as resources to the project). The images are named '_1', '_2', etc. and each time I click the button I want its background image to increment to the next one and go back to "_1" when it ...
Cycle Button Background Images in C#
CC BY-SA 2.5
null
2008-08-18T18:41:19.690
2012-09-30T09:32:51.730
2008-08-18T21:15:25.370
null
271
[ "c#", ".net", "winforms" ]
15,077
2
null
15,024
1
null
I don't have any tools to suggest, but I do have a suggestion about the daily builds. I always answer yes to that question, even though we don't have daily builds. Instead, we do a build every time someone does a commit. We thereby catch any problems almost immediately. If any of our projects ever has enough LOC th...
null
CC BY-SA 2.5
null
2008-08-18T18:49:06.447
2008-08-18T18:49:06.447
null
null
1,813
null
15,069
2
null
15,015
1
null
I have used: > - [WatiN](http://watin.sourceforge.net/)- [AutomatedQA TestComplete](http://www.automatedqa.com/products/testcomplete/index.asp) All of them have had their purpose and are very good tools.
null
CC BY-SA 2.5
null
2008-08-18T18:43:14.943
2008-08-18T18:43:14.943
null
null
1,117
null
15,082
2
null
15,057
2
null
Remember though that any public-facing method, property, or field can be accessed via reflection or in a derived type in a seperate assembly. FxCop is the right answer here, but you also need to limit accessibility to your code. I.e. decorate things with private/protected/internal where appropriate.
null
CC BY-SA 2.5
null
2008-08-18T18:56:26.073
2008-08-18T18:56:26.073
null
null
322
null
15,072
2
null
15,024
0
null
*4) [Redmine](http://www.redmine.org/) I recommend [Bitnami](http://bitnami.org/stacks) for testing out different stacks. It's got Trac, Redmine, and Subversion, as well as several other unrelated ones.
null
CC BY-SA 2.5
null
2008-08-18T18:45:01.027
2008-08-18T18:45:01.027
null
null
1,650
null
15,080
2
null
15,024
2
null
You may want to look at an existing question of mine for [finding an alternative to Team System](https://stackoverflow.com/questions/11857/what-do-you-use-as-a-good-alternative-to-team-system). There are plenty of recommendations in there also.
null
CC BY-SA 2.5
null
2008-08-18T18:54:27.980
2008-08-18T18:54:27.980
2017-05-23T12:02:50.043
-1
1,117
null
15,084
2
null
2,767
0
null
- - GhostDoc (Takes away any excuse for not having comments in your code)- PowerCommands for VS 2008 (Forgot I even had this installed because it just adds a the little things that should have been there all along)
null
CC BY-SA 2.5
null
2008-08-18T18:59:31.370
2008-08-18T18:59:31.370
null
null
1,629
null
15,089
2
null
2,767
25
null
[RockScroll](http://www.hanselman.com/blog/IntroducingRockScroll.aspx) is awesome, and free. --- As @Andrei points out, [MetalScroll](http://code.google.com/p/metalscroll/) is a better alternative. It's Open Source, and corrects some annoying things about RS.
null
CC BY-SA 2.5
null
2008-08-18T19:01:31.070
2010-10-18T21:44:47.407
2010-10-18T21:44:47.407
1,249
1,249
null
15,095
2
null
15,087
0
null
I'd say check the VBA in the Macros to see how it is doing it. It is probably using some form of VB connection to the Database in the back. I love the fact a Database is contacting a Database for it's data... :)
null
CC BY-SA 2.5
null
2008-08-18T19:09:07.827
2008-08-18T19:09:07.827
null
null
null
null
15,092
2
null
15,015
0
null
WatiN is excellent. I inherited [Mercury Quicktest](http://en.wikipedia.org/wiki/HP_QuickTest_Professional) for functional testing a while back. £30k for the licences and it was truly awful. We never got the same results twice (running on the exact same application). Their support was terrible. It stored tests as co...
null
CC BY-SA 2.5
null
2008-08-18T19:04:51.127
2008-08-18T19:04:51.127
null
null
905
null
15,090
2
null
3,284
6
null
We actually override static methods (in delphi), it's a bit ugly, but it works just fine for our needs. We use it so the classes can have a list of their available objects without the class instance, for example, we have a method that looks like this: ``` class function AvailableObjects: string; override; begin Res...
null
CC BY-SA 2.5
null
2008-08-18T19:01:59.430
2008-08-18T19:01:59.430
null
null
727
null
15,094
2
null
15,062
-4
null
This worked for me: ``` function CleanUrl($input) { return $input.Replace("http://", "") } ```
null
CC BY-SA 2.5
null
2008-08-18T19:08:40.353
2008-08-18T19:08:40.353
null
null
1,358
null
15,099
2
null
15,087
0
null
All I've read about Access 2000 -> SQL Server 2005 is that the upsizing wizard isn't supported. If only the inserts and updates aren't functioning, it sounds like a permissions issue. Make sure the sql server login you are using in your connection string has read/write permission on your database. Please avoid u...
null
CC BY-SA 2.5
null
2008-08-18T19:14:53.930
2008-08-18T19:14:53.930
null
null
1,316
null
15,093
2
null
14,031
0
null
The general rule of thumb is: do not use triggers. As mentioned before, they add overhead and complexity that can easily be avoided by moving logic out of the DB layer. Also, in MS SQL Server, triggers are fired once per sql command, and not per row. For example, the following sql statement will execute the trigge...
null
CC BY-SA 2.5
null
2008-08-18T19:08:10.387
2008-08-18T19:08:10.387
null
null
1,316
null
15,102
1
16,690
null
6
562
I am working on a Office Word add-in for Word 2003. When I reopen the project, the VS2008 auto covert dialog box opens and tries to convert it to the Word 2007 format. How can I reopen this file and keep it in the Word 2003 format?
Office VSTO Word 2003 project keeps trying to autoconvert to 2007
CC BY-SA 2.5
0
2008-08-18T19:17:00.447
2010-07-31T18:29:44.870
2010-07-31T18:29:44.870
149,573
805
[ "c#", "visual-studio", "ms-word", "vsto" ]
15,096
2
null
14,674
0
null
I would strongly recommend against this. 1. Reference paths aren't only stored in the .user file. A hint path is stored in the project file itself. You should never have to check a .user file into source control. 2. Let there be one set of (okay, possibly versioned) solution/project files which all developers use, an...
null
CC BY-SA 3.0
null
2008-08-18T19:09:12.880
2012-08-11T16:10:15.220
2012-08-11T16:10:15.220
1,477,076
null
null
15,103
2
null
15,047
1
null
Try open source, .NET editors like [SharpDevelop](http://sharpdevelop.net/OpenSource/SD/) or [Notepad++](http://notepad-plus.sourceforge.net/uk/site.htm). There is (naturally) some discussion of the Command Pattern at [http://c2.com/cgi/wiki?CommandPattern](http://c2.com/cgi/wiki?CommandPattern) that might be helpful....
null
CC BY-SA 2.5
null
2008-08-18T19:17:42.347
2008-08-18T19:17:42.347
null
null
150
null
15,101
2
null
15,087
0
null
I'm not sure about that particular combination being supported, but have you tried setting the compatibilty mode for the database to sql server 2000. Maybe that will resolve your issues. ``` EXEC sp_dbcmptlevel Name_of_your_database, 80; ``` More details here: [http://blog.sqlauthority.com/2007/05/29/sql-server-2...
null
CC BY-SA 2.5
null
2008-08-18T19:16:29.230
2008-08-18T20:23:49.767
2008-08-18T20:23:49.767
770
770
null
15,104
2
null
14,963
0
null
I have not had this exact error with .NET 3.5 SP1, but have seen similar occur in the past. Typically it can be resolved by opening a command prompt, going to the appropriate .NET folder and running ASPNET_REGIIS -i. In the case of .NET 3.5 there wasn't an update to the main bits of the framework, so you'd actually g...
null
CC BY-SA 2.5
null
2008-08-18T19:21:05.070
2008-08-18T19:21:05.070
null
null
1,795
null
15,107
2
null
15,056
0
null
You might want to add in code snippets as well, they help to speed up the development time and increase productivity. The standard VB code snippets come with the default installation. The C# code snippets must be downloaded and added seperately. (Link below for those) As far as macros go, I generally have not used an...
null
CC BY-SA 2.5
null
2008-08-18T19:23:52.990
2008-08-18T19:23:52.990
null
null
1,393
null
15,098
2
null
14,963
4
null
This is broad problem, so let's start by asking some troubleshooting questions: > - - - [fiddler](http://www.fiddlertool.com/fiddler/)- [Make sure everything is set to allowed for your different versions of the framework.](http://www.dotnetjunkies.com/WebLog/photos/davetrux/images/295487/original.aspx) Well, let's st...
null
CC BY-SA 2.5
null
2008-08-18T19:14:46.223
2008-08-18T19:46:41.900
2008-08-18T19:46:41.900
1,117
1,117
null
15,120
2
null
14,828
1
null
The Database Publishing Wizard's generated scripts usually need to be tweaked since it sometimes gets the order wrong of table/procedure creation when dealing with constraints. What I do is first backup the database, then run the script, and if I get an error, I move that query to the end of the script. Continue restor...
null
CC BY-SA 2.5
null
2008-08-18T19:39:33.130
2008-08-18T19:39:33.130
null
null
26
null
15,118
2
null
15,087
0
null
> If only the inserts and updates aren't functioning, it sounds like a permissions issue. Make sure the sql server login you are using in your connection string has read/write permission on your database.Please avoid using the "sa" account for this purpose! We wanted to use a generic apps account but that ...
null
CC BY-SA 2.5
null
2008-08-18T19:34:06.090
2008-08-18T19:34:06.090
null
null
1,749
null
15,119
2
null
14,330
5
null
This depends on what your motivations are. If you just want to turn an arbitrary image to grayscale and have it look pretty good, the conversions in other answers to this question will do. If you are converting color photographs to black and white, the process can be both very complicated and subjective, requiring sp...
null
CC BY-SA 2.5
null
2008-08-18T19:38:49.233
2008-08-18T19:38:49.233
null
null
1,347
null
15,109
1
15,286
null
4
1,363
I have a setup project created by Visual Studio 2005, and consists of both a C# .NET 2.0 project and C++ MFC project, and the C++ run time. It works properly when run from the main console, but when run over a Terminal Server session on a Windows XP target, the install fails in the following way - When the Setup.exe...
Visual Studio 2005 Setup project install crashes over Terminal Server
CC BY-SA 2.5
0
2008-08-18T19:24:23.973
2009-03-09T23:43:06.827
2009-03-09T23:43:06.843
16,587
1,743
[ "visual-studio", "installation", "projects" ]
15,131
2
null
14,911
0
null
I did some searching, what about [tbookdtd](http://tbookdtd.sourceforge.net/)? It's downloadable [here](http://sourceforge.net/project/showfiles.php?group_id=48834) but it hasn't been active since 2005. It appears to convert the xml to Latex, into PDF.
null
CC BY-SA 2.5
null
2008-08-18T19:47:32.117
2008-08-18T19:47:32.117
null
null
1,611
null
15,124
1
15,134
null
6
1,843
I have a job interview tomorrow for a .NET shop. For the past few years I have been developing in languages other than .NET and figure it is probably a good idea to brush up on what is cool and new in the world of .NET. I've been reading about LINQ and WPF but these are more technologies than trends. What else shoul...
.net Job Interview
CC BY-SA 3.0
0
2008-08-18T19:41:39.740
2013-12-02T12:39:30.897
2013-12-02T12:39:30.897
2,432,317
361
[ ".net" ]
15,121
2
null
12,669
3
null
Ian's answer has a lot of weight. You could buy all those books and read them all and know nothing about web development. What you really need to do is start with something that is not nearly as big as Stack Overflow. Start with your personal site. Read some web dev/css articles on [a list apart](http://www.alistapart....
null
CC BY-SA 2.5
null
2008-08-18T19:39:33.660
2008-08-18T19:39:33.660
null
null
1,797
null
15,132
2
null
15,124
0
null
If you're doing web development, ASP.NET MVC and Silverlight (née WPF/e) come to mind as relatively recent trends.
null
CC BY-SA 2.5
null
2008-08-18T19:47:42.223
2008-08-18T19:47:42.223
null
null
1,600
null
15,130
2
null
15,124
4
null
This is completely language agnostic so you may want to skip over it, but I've based a lot of my practice and preparation for job interviews around [Steve Yegge's getting a job at google post](http://steve-yegge.blogspot.com/2008/03/get-that-job-at-google.html). I use a lot of the topics there not only as an interview...
null
CC BY-SA 2.5
null
2008-08-18T19:47:19.073
2008-08-18T19:53:01.997
2008-08-18T19:53:02.010
1,797
1,797
null
15,125
2
null
7,252
4
null
As a junior programmer myself, I thought that Id reveal what it was like when I found myself in a similar situation to your junior developer. When I first came out of uni, I found that it had severly un equipped me to deal with the real world. Yes I knew some JAVA basics and some philosophy (don't ask) but that was a...
null
CC BY-SA 2.5
null
2008-08-18T19:42:34.357
2008-08-18T19:42:34.357
null
null
1,816
null
15,128
2
null
11,430
3
null
I swear this isn't being pedantic, but is an important distinction -- I don't know what specifically you need when you say ".NET 3.5 CLR" -- probably the .NET 3.5 Framework? Possibly C# 3.0 language features? But the CLR that .NET 3.5 runs on [is still CLR 2.0.](http://msdn.microsoft.com/en-us/netframework/aa663314.a...
null
CC BY-SA 2.5
null
2008-08-18T19:45:09.547
2008-08-18T19:45:09.547
null
null
1,818
null
15,133
1
16,431
null
15
4,329
Does anyone have any recommendations of tools that can be of assistance with moving literal values into resource files for localization? I've used a resharper plugin called RGreatX but was wondering if there is anything else out there. It's one heck of a long manual process for moving the strings across and think the...
Tool in Visual Studio 2008 for helping with Localization
CC BY-SA 2.5
0
2008-08-18T19:49:40.130
2013-05-24T07:42:01.877
2009-03-04T21:43:24.877
null
942
[ "visual-studio", "winforms", "internationalization", "vsx", "extensibility" ]
15,134
2
null
15,124
1
null
Take this with a grain of salt, but in my experience, LINQ and WPF are still in the realm of "yeah we'd like to get into that someday". Most shops are still on VS2005 and .NET 2.0, so I'd want to make sure I was up to speed on core facilities: - - - And so forth.
null
CC BY-SA 2.5
null
2008-08-18T19:50:18.430
2008-08-18T19:50:18.430
null
null
null
null
15,139
1
15,234
null
23
32,889
With the increased power of JavaScript frameworks like YUI, JQuery, and Prototype, and debugging tools like Firebug, doing an application entirely in browser-side JavaScript looks like a great way to make simple applications like puzzle games and specialized calculators. Is there any downside to this other than exposi...
Building Standalone Applications in JavaScript
CC BY-SA 2.5
0
2008-08-18T19:52:16.273
2010-03-09T14:16:40.233
2008-08-23T17:22:54.223
2,134
1,323
[ "javascript", "deployment", "web-applications", "browser" ]
15,135
2
null
15,124
1
null
It's probably a bit late to be looking tonight at code trends for an interview tomorrow. Microsoft is currently busy doing what it has always done: me-too functionality, only better. New dynamically typed languages with a new language runtime and MVC are looking really promising. With WPF and Expression they're creat...
null
CC BY-SA 2.5
null
2008-08-18T19:50:22.297
2008-08-19T08:37:53.980
2008-08-19T08:37:53.980
905
905
null
15,136
2
null
15,062
16
null
The concept here is correct. The problem is with the variable name you have chosen. $input is a reserved variable used by PowerShell to represent an array of pipeline input. If you change your variable name, you should not have any problem. PowerShell does have [a replace operator](https://technet.microsoft.com/en-us...
null
CC BY-SA 3.0
null
2008-08-18T19:50:39.350
2015-07-13T13:17:04.213
2015-07-13T13:17:04.213
63,550
1,233
null
15,145
2
null
15,139
1
null
[Gears](http://gears.google.com) might provide the client-side persistent data storage you need. There isn't a terribly good way of not exposing your source code, though. You could obfuscate it but that only helps somewhat. I've done simple apps like this for stuff like a [Sudoku solver](http://hewgill.com/sudoku/).
null
CC BY-SA 2.5
null
2008-08-18T19:55:13.787
2008-08-18T19:55:13.787
null
null
893
null
15,148
2
null
14,697
2
null
I've had a good experience with [Ionic's ISAPI Rewrite Filter](http://cheeso.members.winisp.net/IIRF.aspx) which is very similar to ISAPI_Rewrite, except free. Both are modeled after mod_rewrite and are ISAPI filters, so you can't manage them in code as you have to set them up in IIS.
null
CC BY-SA 2.5
null
2008-08-18T19:56:55.013
2008-08-18T19:56:55.013
null
null
1,786
null
15,146
2
null
8,704
1
null
> Using those two exception handlers should work. Why "should?" The events are not raised using the below: ``` extern "C" void wWinMainCRTStartup(); // managed entry point [System::STAThread] int managedEntry( void ) { FinalExceptionHandler^ handler = gcnew FinalExceptionHandler(); Application::ThreadExcep...
null
CC BY-SA 2.5
null
2008-08-18T19:55:42.193
2008-08-18T19:55:42.193
null
null
1,042
null
15,149
2
null
15,142
22
null
The performance advantage for stored procedures is often negligable. More advantages for stored procedures: - - -
null
CC BY-SA 2.5
null
2008-08-18T19:57:57.820
2008-08-18T19:57:57.820
null
null
414
null
15,150
2
null
9,435
0
null
If you want to spend a very small amount of money, you can find a used copy of my book ["Palm OS Web Application Developer's Guide"](https://rads.stackoverflow.com/amzn/click/com/1928994326) on Amazon for under $1. While the specific tips about the old Palm VII devices don't apply anymore, there's a few sections on ma...
null
CC BY-SA 2.5
null
2008-08-18T19:59:09.987
2008-08-18T19:59:09.987
null
null
1,323
null
15,142
1
15,277
null
274
77,566
What are the advantages/disadvantages of keeping SQL in your C# source code or in Stored Procs? I've been discussing this with a friend on an open source project that we're working on (C# ASP.NET Forum). At the moment, most of the database access is done by building the SQL inline in C# and calling to the SQL Server DB...
What are the pros and cons to keeping SQL in Stored Procs versus Code
CC BY-SA 2.5
0
2008-08-18T19:54:39.467
2014-02-18T18:11:30.803
2008-10-27T14:46:03.313
24,179
1,463
[ "c#", "sql", "sql-server", "stored-procedures" ]
15,155
2
null
15,139
2
null
The downside to this would be that you are at the mercy of them having js enabled. I'm not sure that this is a big deal now. Virtually every browser supports js and has it enabled by default. Of course the other downside would be performance. You are again at the mercy of the client handling all the intensive work. Th...
null
CC BY-SA 2.5
null
2008-08-18T20:02:37.140
2008-08-18T20:02:37.140
null
null
1,797
null
15,153
2
null
15,142
99
null
This is being discussed on a few other threads here currently. I'm a consistent proponent of stored procedures, although some good arguments for Linq to Sql are being presented. Embedding queries in your code couples you tightly to your data model. Stored procedures are a good form of contractual programming, meanin...
null
CC BY-SA 2.5
null
2008-08-18T20:01:58.937
2008-08-18T20:01:58.937
2017-05-23T12:10:10.513
-1
1,219
null
15,151
2
null
15,142
13
null
Stored procedures. If an error slips or the logic changes a bit, you do not have to recompile the project. Plus, it allows access from different sources, not just the one place you coded the query in your project. I don't think it is harder to maintain stored procedures, you should not code them directly in the datab...
null
CC BY-SA 2.5
null
2008-08-18T20:01:04.100
2008-08-18T20:01:04.100
null
null
810
null
15,087
1
null
null
3
3,411
The company I work for has an old Access 2000 application that was using a SQL Server 2000 back-end. We were tasked with moving the back-end to a SQL Server 2005 database on a new server. Unfortunately, the application was not functioning correctly while trying to do any inserts or updates. My research has found man...
Access 2000 connecting to SQL Server 2005
CC BY-SA 3.0
null
2008-08-18T19:00:52.133
2014-11-25T21:06:06.713
2014-11-25T21:06:06.713
2,641,576
1,749
[ "sql-server", "ms-access", "sql-server-2005", "ms-access-2000" ]
15,152
2
null
15,142
6
null
I prefer keeping in them in code (using an ORM, not inline or ad-hoc) so they're covered by source control without having to deal with saving out .sql files. Also, stored procedures aren't inherently more secure. You can write a bad query with a sproc just as easily as inline. Parameterized inline queries can be just ...
null
CC BY-SA 2.5
null
2008-08-18T20:01:27.237
2008-08-18T20:01:27.237
null
null
1,786
null
15,161
2
null
15,024
0
null
Check out these articles on Continuous Integration using MSBuild, CruiseControl.NET, FxCop, NUnit, NCover and Subversion... [From the software development trenches](http://dotnet.org.za/cjlotz/archive/tags/ContinuousIntegration/default.aspx)
null
CC BY-SA 2.5
null
2008-08-18T20:09:28.093
2008-08-18T20:09:28.093
null
null
83
null
15,162
2
null
15,142
4
null
One of the suggestions from a Microsoft TechEd sessions on security which I attended, to make all calls through stored procs and deny access directly to the tables. This approach was billed as providing additional security. I'm not sure if it's worth it just for security, but if you're already using stored procs, it ...
null
CC BY-SA 2.5
null
2008-08-18T20:10:20.197
2008-08-18T20:10:20.197
null
null
1,533
null