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,592
2
null
14,552
0
null
Can you check the permissions for your Network Service account? Specifically make sure they have the "Act as part of the OS" permission. If I'm reading the error message correctly, it looks like the NT AUTHORITY\NETWORK SERVICE account failed to execute as a logged on user. It doesn't look like it ever got to the que...
null
CC BY-SA 2.5
null
2008-08-18T13:31:35.730
2008-08-18T13:31:35.730
null
null
733
null
14,598
2
null
14,032
0
null
As a stop gap, I've installed DBDesigner via Wine (I should have just done that first) since that's what my Windows developers are using, but will look at both of these as well. The Eclipse plugin would be ideal if it's decent. Thanks.
null
CC BY-SA 2.5
null
2008-08-18T13:33:56.973
2008-08-18T13:33:56.973
null
null
1,665
null
14,597
2
null
14,588
4
null
I edit a lot of documents in LaTeX, so I use SVN to store the tex files and images and so on. Handy for doing Diffs, and hopefully will save me if I have a disaster.
null
CC BY-SA 2.5
null
2008-08-18T13:33:52.293
2008-08-18T13:33:52.293
null
null
170
null
14,591
2
null
14,464
58
null
I'd probably knock together something using attributes, then a conversion class to convert suitably attributed structures to the bitfield primitives. Something like... ``` using System; namespace BitfieldTest { [global::System.AttributeUsage(AttributeTargets.Field, AllowMultiple = false)] sealed class Bitfiel...
null
CC BY-SA 3.0
null
2008-08-18T13:31:30.533
2015-08-31T17:17:09.800
2015-08-31T17:17:09.800
2,185,245
1,200
null
14,577
1
14,699
null
2
5,830
Imagine the scene, you're updating some legacy Sybase code and come across a cursor. The stored procedure builds up a result set in a #temporary table which is all ready to be returned except that one of columns isn't terribly human readable, it's an alphanumeric code. What we need to do, is figure out the possible di...
How do I avoid using cursors in Sybase (T-SQL)?
CC BY-SA 4.0
null
2008-08-18T13:24:55.710
2020-04-24T12:59:00.307
2020-04-24T12:59:00.307
2,573,061
1,030
[ "tsql", "sybase", "cursors" ]
14,595
2
null
14,570
2
null
> Should I just do it when I'm going to use it? I would recommend that you only retrieve the data when you are going to use it. If you are not going to need it, there is no reason to waste resources by retrieving it in Page_Load. If you are going to need it multiple times throughout the page load, consider saving the ...
null
CC BY-SA 2.5
null
2008-08-18T13:32:51.937
2008-08-18T13:32:51.937
null
null
51
null
14,600
2
null
14,588
2
null
I have a folder in the path called bin with useful utilities like those from sysinternals and others. I use svn to keep these up to date on different machines. Also, things like powershell scripts, vimrc files, etc. are great to keep centralized.
null
CC BY-SA 2.5
null
2008-08-18T13:35:16.783
2008-08-18T13:35:16.783
null
null
748
null
14,603
2
null
14,588
2
null
I never even thought to use it for personal stuff, but on software projects, I check in pretty much everything that can't be regenerated at a later date (examples of this include executables and code-generated docs). Documentation always gets checked in. Presentations to customers gets checked in and tagged along with ...
null
CC BY-SA 2.5
null
2008-08-18T13:36:51.227
2008-08-18T13:36:51.227
null
null
572
null
14,605
2
null
14,588
3
null
Generally anything that the build process needs I put in to source control. The only issue that comes up is if you have resoruces prepared by other departments e.g. Marketing, that go in your install for example.
null
CC BY-SA 2.5
null
2008-08-18T13:37:28.680
2008-08-18T13:37:28.680
null
null
922
null
14,607
2
null
14,588
2
null
Most documentation that will be viewed by more than one pair of human eyes. It is incredibly useful, for instance, during project planning phases when the analyst updates the requirements document and you'd like to see what changed since the last time you saw it. Wikis also have this functionality, natch. We use ShareP...
null
CC BY-SA 2.5
null
2008-08-18T13:38:12.673
2008-08-18T13:38:12.673
null
null
1,212
null
14,604
2
null
12,807
5
null
Well, I have found a solution: 1. Run RegAsm.exe with the /regfile option to generate the registry entries. 2. Manually import the .reg file into the VS Setup project by viewing the registry, right clicking, and choosing "Import..."
null
CC BY-SA 2.5
null
2008-08-18T13:37:12.923
2008-08-18T13:37:12.923
null
null
1,490
null
14,612
2
null
14,588
5
null
At one of my early jobs, we used CVS for DNS revision control. It was mainly a cheap and dirty way to back up the zone files. I've also heard of people using a version control system for their home directories.
null
CC BY-SA 2.5
null
2008-08-18T13:41:41.997
2008-08-18T13:41:41.997
null
null
null
null
14,611
1
14,676
null
6
927
We're using Forms Authentication in SharePoint. When the account is created, the administrator can add some information, like name and address. But the required fields are username and email address. When a user goes to their profile page, all the fields are blank and they are unable to edit them. I have read a num...
Editing User Profile w/ Forms Authentication
CC BY-SA 2.5
null
2008-08-18T13:40:33.387
2017-10-11T02:00:53.937
2008-08-27T13:54:49.603
1,753
1,753
[ "sharepoint", "moss", "wss" ]
14,619
2
null
14,552
0
null
Can you hit the Web Service page (ReportService2005.asmx) for SRS with a web browser? If not, it might point to the SRS service, if you can, it might point to the scheduler service.
null
CC BY-SA 2.5
null
2008-08-18T13:45:33.050
2008-08-18T13:45:33.050
null
null
733
null
14,617
1
15,937
null
241
432,960
I'm trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this?
How to retrieve a file from a server via SFTP?
CC BY-SA 3.0
0
2008-08-18T13:43:48.730
2022-07-08T15:03:18.357
2017-01-10T16:24:18.400
2,756,409
1,769
[ "java", "ftp", "sftp", "security" ]
14,618
1
14,640
null
5
4,139
What's the best way of implementing a multiple choice option in Windows Forms? I want to enforce a single selection from a list, starting with a default value. It seems like a ComboBox would be a good choice, but is there a way to specify a non-blank default value? I could just set it in the code at some appropriate i...
Multiple choice on WinForms
CC BY-SA 3.0
null
2008-08-18T13:44:23.300
2013-07-04T12:17:15.493
2013-07-04T12:17:15.493
1,584,286
1,077
[ "winforms", "combobox" ]
14,624
2
null
14,618
2
null
You should be able to just set the ComboBox.SelectedIndex property with what you want the default value to be. [http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selectedindex.aspx](http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selectedindex.aspx)
null
CC BY-SA 2.5
null
2008-08-18T13:47:12.763
2008-08-18T13:47:12.763
null
null
1,185
null
14,621
2
null
14,588
6
null
I've seen version control being used for other non-source code purposes, like, 1. Schema files - a set of XML schema files that represent a real world schema 2. Content files - content represented in a specific format, this is tied to a designer in VStudio, using source control, allows history, rollbacks everything, ...
null
CC BY-SA 2.5
null
2008-08-18T13:46:29.600
2008-08-18T13:46:29.600
null
null
1,747
null
14,622
2
null
14,614
1
null
In C# 3.0, static methods can be used on interfaces as if they were a part of them by using extension methods, as with DumpToDatabase() below: ``` static class HelperMethods { //IHelper h = new HeleperA(); //h.DumpToDatabase() public static void DumpToDatabase(this IHelper helper) { /* ... */ } //IHelp...
null
CC BY-SA 3.0
null
2008-08-18T13:46:54.247
2012-08-11T15:37:27.323
2012-08-11T15:37:27.323
1,477,076
1,659
null
14,629
2
null
14,617
23
null
This was the solution I came up with [http://sourceforge.net/projects/sshtools/](http://sourceforge.net/projects/sshtools/) (most error handling omitted for clarity). This is an excerpt from [my blog](http://www.spindriftpages.net/blog/dave/2007/11/27/sshtools-j2ssh-java-sshsftp-library) ``` SshClient ssh = new SshCli...
null
CC BY-SA 2.5
null
2008-08-18T13:49:13.617
2008-08-18T13:49:13.617
null
null
1,769
null
14,614
1
14,683
null
10
9,020
First off, I understand the reasons why an interface or abstract class (in the .NET/C# terminology) cannot have abstract static methods. My question is then more focused on the best design solution. What I want is a set of "helper" classes that all have their own static methods such that if I get objects A, B, and C ...
Static Methods in an Interface/Abstract Class
CC BY-SA 2.5
0
2008-08-18T13:42:08.530
2012-08-11T15:39:31.283
null
null
1,108
[ ".net", "abstract-class", "static-methods", "interface-design" ]
14,623
2
null
14,308
1
null
Your question is interesting because your specifying that it be suitable for a small office. At the enterprise level, I would recommend something along the line of [EMC Documentum's eRoom](http://www.emc.com/products/family/eroom-family.htm), but obviously thats going to be way more than you need, and more than you wa...
null
CC BY-SA 2.5
null
2008-08-18T13:47:01.843
2008-08-18T13:47:01.843
null
null
292
null
14,626
2
null
14,618
2
null
Use the [ComboBox.SelectedItem](http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selecteditem.aspx) or [SelectedIndex](http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selecteditem.aspx) property after the items have been inserted to select the default item. You could also con...
null
CC BY-SA 2.5
null
2008-08-18T13:48:25.070
2008-08-18T13:48:25.070
null
null
51
null
14,630
2
null
14,582
20
null
Unfortunately, Subversion is case-sensitive. This is due to the fact that files from Subversion can be checked out on both case-sensitive file systems (e.g., *nix) and case-insensitive file systems (e.g., Windows, Mac). [This pre-commit hook script](http://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts...
null
CC BY-SA 3.0
null
2008-08-18T13:49:43.507
2017-06-22T12:40:31.530
2017-06-22T12:40:31.530
761,095
1,318
null
14,633
2
null
14,614
2
null
I personally would perhaps question why each of the types need to have a static method before even thinking further.. Why not create a utlity class with the static methods that they need to share? (e.g. `ClassHelper.RetrieveByID(string id)` or `ClassHelper<ClassA>.RetrieveByID(string id)` In my experience with these ...
null
CC BY-SA 3.0
null
2008-08-18T13:53:27.010
2012-08-11T15:36:55.857
2012-08-11T15:36:55.857
1,477,076
832
null
14,631
2
null
11,338
3
null
hm. I might have some homebrew available for it somewhere I could check, but for now: At our company, we basically gave up on this issue and implemented an (unfortunately win only) ActiveX solution: [Site Link](http://www.chestysoft.com/ximage/default.asp)
null
CC BY-SA 4.0
null
2008-08-18T13:50:13.197
2018-08-01T15:59:48.440
2018-08-01T15:59:48.440
1,018,611
547
null
14,636
2
null
14,588
5
null
During my final semester in school I took two classes that each had a large, time-consuming project due at the end of the semester. They both also required several long-ish papers throughout the semester. I made heavy use of SVN for both classes to track every change I made to every paper and project. I'm more of a "...
null
CC BY-SA 2.5
null
2008-08-18T13:55:27.193
2008-08-18T13:55:27.193
null
null
512
null
14,640
2
null
14,618
8
null
If you only want one answer from the group, then a RadioButton control would be your best fit or you could use the ComboBox if you will have a lot of options. To set a default value, just add the item to the ComboBox's collection and set the SelectedIndex or SelectedItem to that item. Depending on how many options yo...
null
CC BY-SA 2.5
null
2008-08-18T13:56:40.797
2008-08-18T13:56:40.797
null
null
1,117
null
14,634
1
14,648
null
2
157
Let's take a web development environment, where developers checkout a project onto their local machines, work on it, and check in changes to development. These changes are further tested on development and moved live on a regular schedule (eg weekly, monthly, etc.). Is it possible to have an auto-moveup of the latest t...
Is it possible to automatically make check-outs from any VCS?
CC BY-SA 3.0
null
2008-08-18T13:53:54.093
2013-07-04T12:16:57.633
2013-07-04T12:16:57.633
1,584,286
572
[ "svn", "version-control", "cvs", "versions" ]
14,643
2
null
14,618
2
null
You can use a ComboBox with the [DropDownStyle](http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.dropdownstyle.aspx) property set to DropDownList and SelectedIndex to 0 (or whatever the default item is). This will force always having an item from the list selected. If you forget to do that, the use...
null
CC BY-SA 2.5
null
2008-08-18T13:59:19.573
2008-08-18T13:59:19.573
null
null
1,367
null
14,641
2
null
14,614
2
null
How are ObjectA and AHelper related? Is `AHelper.RetrieveByID()` the same logic as `BHelper.RetrieveByID()` If Yes, how about a Utility class based approach (class with public static methods only and no state) ``` static [return type] Helper.RetrieveByID(ObjectX x) ```
null
CC BY-SA 3.0
null
2008-08-18T13:57:02.260
2012-08-11T15:38:04.980
2012-08-11T15:38:04.980
1,477,076
1,695
null
14,646
1
24,826
null
6
1,379
When I create a new project (or even when I edit the Sample Project) there is no way to add Description to the project. Or am I blind to the obvious?
How to add "Project Description" in FogBugz?
CC BY-SA 3.0
null
2008-08-18T14:00:11.303
2015-08-07T23:07:41.503
2015-08-07T23:07:41.503
1,832,942
123
[ "fogbugz" ]
14,648
2
null
14,634
1
null
Certainly, but the exact product may be dependent upon the VCS you are using. What you might want to do, is have a a few different branches, and migrate up as you progress. E.g., Development -> Stable-Dev -> Beta -> Production. You can then simply auto-update to the latest version of Stable-Dev and Beta for your teste...
null
CC BY-SA 2.5
null
2008-08-18T14:00:29.603
2008-08-18T14:00:29.603
null
null
685
null
14,625
2
null
11,532
25
null
Thanks Greg and Dave for the feedback. Wasn't quite what I was looking for, but I decided to put a bit of time into researching it and came up with this quick and dirty solution: ``` <?php $functions = array(); $path = "/path/to/my/php/project"; define_dir($path, $functions); reference_dir($path, $func...
null
CC BY-SA 2.5
null
2008-08-18T13:47:41.860
2009-01-06T15:33:20.947
2009-01-06T15:33:20.947
1,142
1,142
null
14,656
1
14,681
null
32
24,603
Can a (||any) proxy server cache content that is requested by a client over https? As the proxy server can't see the querystring, or the http headers, I reckon they can't. I'm considering a desktop application, run by a number of people behind their companies proxy. This application may access services across the inte...
Can a proxy server cache SSL GETs? If not, would response body encryption suffice?
CC BY-SA 2.5
0
2008-08-18T14:06:13.973
2018-11-05T04:07:11.353
2008-08-18T14:12:43.710
null
null
[ "security", "encryption", "caching", "ssl", "proxy" ]
14,654
2
null
14,552
0
null
Just to troubleshoot, can you use a domain account rather than the builtin NetworkService account to run your service? I also found [this](http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.sqlserver.reportingsvcs&tid=ca2a5bdd-93a8-48d6-a675-ffea355dbac1&cat=&lang=&cr=&sloc=&p=1) po...
null
CC BY-SA 3.0
null
2008-08-18T14:04:41.090
2016-03-03T06:26:08.913
2016-03-03T06:26:08.913
1,156,018
733
null
14,661
2
null
14,634
1
null
Anything you can do with cvs can be done with the command line, and I am pretty sure svn is the same. Just work out the functionality you want and stick it in a shell script or a command file.
null
CC BY-SA 2.5
null
2008-08-18T14:09:38.070
2008-08-18T14:09:38.070
null
null
259
null
14,660
2
null
9,702
0
null
I think there is a better third solution. It strikes me that you're storing two different things in the same table and that you might be better off creating 2 separate tables one for user templates and one for system templates. You might then be able to create a view over the two tables to make them appear as a single...
null
CC BY-SA 2.5
null
2008-08-18T14:08:13.550
2008-08-18T14:08:13.550
null
null
1,769
null
14,657
2
null
14,614
0
null
Are you looking for polymorphic behavior? Then you'll want the interface and normal constructor. What is unintuitive about calling a constructor? If you don't need polymorphism (sounds like you don't use it now), then you can stick with your static methods. If these are all wrappers around a vendor component, then ...
null
CC BY-SA 2.5
null
2008-08-18T14:07:03.240
2008-08-18T14:07:03.240
null
null
1,334
null
14,668
2
null
14,646
0
null
The description is mostly for system projects, like e-mail inbox. You might be able to set one in the underlying DB table.
null
CC BY-SA 2.5
null
2008-08-18T14:15:30.710
2008-08-18T14:15:30.710
null
null
905
null
14,655
2
null
14,614
0
null
How do I post feedback on Stack Overflow? Edit my original post or post an "answer"? Anyway, I thought it might help to give an example of what is going on in AHelper.RetrieveByID() and BHelper.RetreiveByID() Basically, both of these methods are going up against a third party webservice that returns various a generi...
null
CC BY-SA 2.5
null
2008-08-18T14:05:17.750
2008-08-18T14:05:17.750
null
null
1,108
null
14,671
2
null
14,577
1
null
Unless you are willing to duplicate the code in the xref proc, there is no way to avoid using a cursor.
null
CC BY-SA 2.5
null
2008-08-18T14:18:22.310
2008-08-18T14:18:22.310
null
null
414
null
14,663
2
null
14,491
4
null
In support of @Mike's answer, the reason to use this method is to trigger the correct shutdown sequence. Especially important for MDI/SDI applications because it gives a chance for documents to prompt for save before exit or to cancel the exit. @Matt Noguchi, your method will circumvent this sequence (which may be the...
null
CC BY-SA 2.5
null
2008-08-18T14:11:43.260
2008-08-19T01:08:09.287
2008-08-19T01:08:09.287
1,042
1,042
null
14,676
2
null
14,611
4
null
If you log in to the "Shared Services administration" through the "Central Admin Tool" there is an option "Profile services policies". You can define in here what fields are user-overridable.
null
CC BY-SA 3.0
null
2008-08-18T14:21:43.460
2017-10-11T02:00:53.937
2017-10-11T02:00:53.937
6,388,243
1,776
null
14,679
2
null
14,545
2
null
In my own wiki I check all the links (without caching), but my wiki is only used by a few people internally. You should benchmark stuff like this.
null
CC BY-SA 2.5
null
2008-08-18T14:23:06.903
2008-08-18T14:23:06.903
null
null
1,633
null
14,673
2
null
14,634
2
null
Yes, it is possible. This is usually a feature provided by [continuous integration tools](http://en.wikipedia.org/wiki/Continuous_integration). Typically they will get the latest source from version control, build the project, test it (running unit tests) and possibly deploy it on a (test) server. If you don't requir...
null
CC BY-SA 2.5
null
2008-08-18T14:19:35.587
2008-08-18T14:19:35.587
null
null
1,709
null
14,681
2
null
14,656
24
null
No, it's not possible to cache https directly. The whole communication between the client and the server is encrypted. A proxy sits between the server and the client, in order to cache it, you need to be able to read it, ie decrypt the encryption. You can do something to cache it. You basically do the SSL on your prox...
null
CC BY-SA 2.5
null
2008-08-18T14:24:39.477
2008-08-18T14:24:39.477
null
null
null
null
14,677
2
null
14,646
8
null
You are not crazy. It is used internally and not even stored in the database. I wondered the same thing when I first started using FogBugz, but found a forum entry to answer my question. As of today, I still don't think they have implemented it. Jump over to FogCreek and submit a request, if you would like to make ...
null
CC BY-SA 2.5
null
2008-08-18T14:21:56.640
2008-08-18T14:21:56.640
null
null
1,117
null
14,674
1
null
null
1
610
As part of improvements to our build process, we are currently debating whether we should have separate project/solution files on our CI production environment from our local development environments. The reason this has come about is because of reference problems we experienced in our previous project. On a frequent...
Different solutions/project files for Local vs Build environments
CC BY-SA 3.0
null
2008-08-18T14:20:09.563
2012-08-11T16:10:24.313
2012-08-11T16:10:04.657
1,477,076
1,193
[ "build-process" ]
14,672
2
null
14,614
2
null
You can't overload methods by varying just the return type. You can use different names: ``` static AObject GetAObject(string id); static BObject GetBObject(string id); ``` Or you can create a class with casting operators: ``` class AOrBObject { string id; AOrBObject(string id) {this.id = id;} static p...
null
CC BY-SA 3.0
null
2008-08-18T14:18:22.797
2012-08-11T15:38:50.020
2012-08-11T15:38:50.020
1,477,076
1,659
null
14,684
2
null
14,634
0
null
I doubt many VCSs provide this ability directly, however it should be very simple to script. Either a date or branch based checkout.
null
CC BY-SA 2.5
null
2008-08-18T14:26:43.527
2008-08-18T14:26:43.527
null
null
null
null
14,682
2
null
14,674
0
null
Usually, you would be creating Build projects/scripts in some form or another for your Production, and so putting together another Solution file doesn't come in the picture. It would be easier to train everyone to use project references, and create a directory under the project file structure for external assembly ref...
null
CC BY-SA 2.5
null
2008-08-18T14:24:48.710
2008-08-18T14:24:48.710
null
null
380
null
14,690
2
null
14,588
1
null
I use revision control for just about all of my documents for any purpose. I'm using Mercurial, so setting up a new repository in a given directory is a matter of a simple "hg init", which I found much less of a hassle than setting up a new Subversion repository. I've also found that RCS is great in any situation w...
null
CC BY-SA 2.5
null
2008-08-18T14:28:47.813
2008-08-18T14:28:47.813
null
null
188
null
14,680
2
null
14,634
1
null
The only two I have experience with are SVN and Mercurial. For Mercurial, you specify which branch you want it to update from (let's say default) and then whenever you merge a branch into default, you can just have the server run: ``` hg update ``` Which updates your repository to the latest version of the branch yo...
null
CC BY-SA 2.5
null
2008-08-18T14:23:59.757
2008-08-18T14:23:59.757
null
null
1,063
null
14,693
2
null
14,614
5
null
If I were you I would try to avoid any statics. IMHO I always ended up with some sort of synchronization issues down the road with statics. That being said you are presenting a classic example of generic programming using templates. I will adopt the template based solution of Rob Copper presented in one of the posts ab...
null
CC BY-SA 2.5
null
2008-08-18T14:30:19.777
2008-08-18T14:30:19.777
null
null
1,781
null
14,686
2
null
14,527
4
null
If you're using XSLT 2.0, it's easy: ``` <xsl:variable name="extension" select="tokenize($filename, '\.')[last()]"/> ``` If you're not, it's a bit harder. There's a good example from the [O'Reilly XSLT Cookbook](http://oreilly.com/catalog/9780596003722/toc.html). Search for "Tokenizing a String." I believe there'...
null
CC BY-SA 2.5
null
2008-08-18T14:27:21.327
2008-08-18T14:27:21.327
null
null
207
null
14,694
2
null
14,588
0
null
Yes, I have a doc directory in git. I contains a todo list, a calendar and a few other documents.
null
CC BY-SA 2.5
null
2008-08-18T14:30:36.950
2009-01-19T21:09:17.310
2009-01-19T21:09:17.310
12,579
1,633
null
14,692
2
null
14,614
3
null
For a generic solution to your example, you can do this: ``` public static T RetrieveByID<T>(string ID) { var fieldNames = getFieldNamesBasedOnType(typeof(T)); QueryResult qr = webservice.query("SELECT "+fieldNames + " FROM " + tyepof(T).Name ...
null
CC BY-SA 3.0
null
2008-08-18T14:30:03.053
2012-08-11T15:39:31.283
2012-08-11T15:39:31.283
1,477,076
1,659
null
14,683
2
null
14,614
3
null
Looking at [your response](https://stackoverflow.com/questions/14614/static-methods-in-an-interfaceabstract-class#14655) I am thinking along the following lines: - - I prefer the second option, although its of course down to you. If you need me to go into further detail, please let me know and I will be happy to edi...
null
CC BY-SA 2.5
null
2008-08-18T14:25:33.733
2008-08-18T14:25:33.733
2017-05-23T12:01:23.407
-1
832
null
14,688
2
null
14,061
0
null
@Arcturus: > ... clog up your memory and make your application really slow when they are not garbage collected. That's blindingly obvious, and I don't disagree. However: > ...you are leaking memory to object that you no longer use... because there is a reference to them. "memory is allocated to a program,...
null
CC BY-SA 2.5
null
2008-08-18T14:27:48.127
2008-08-18T14:27:48.127
null
null
1,975,282
null
14,699
2
null
14,577
1
null
You have to have a XRef table if you want to take out the cursor. Assuming you know the 100 distinct lookup values (and that they're static) it's simple to generate one by calling proc_code_xref 100 times and inserting the results into a table
null
CC BY-SA 2.5
null
2008-08-18T14:33:03.343
2008-08-18T14:33:03.343
null
null
1,769
null
14,698
1
23,585
null
3
6,554
When I try to precompile a *.pc file that contains a #warning directive I recieve the following error: > PCC-S-02014, Encountered the symbol "warning" when expecting one of the following: (bla bla bla). Can I somehow convince Pro*C to ignore the thing if it doesn't know what to do with it? I can't remove the `#warnin...
How to make Pro*C cope with #warning directives?
CC BY-SA 3.0
null
2008-08-18T14:32:41.830
2013-09-14T09:59:43.180
2013-09-14T09:59:43.180
635,608
1,733
[ "c", "oracle", "oracle-pro-c" ]
14,700
2
null
14,697
4
null
If I were starting a new web project now I'd be looking at using MVC from scratch. That uses re-written URLs as standard.
null
CC BY-SA 2.5
null
2008-08-18T14:34:00.750
2008-08-18T14:34:00.750
null
null
905
null
14,703
2
null
14,552
2
null
I found the answer here: [http://www.themssforum.com/SVCS/Unable-execute/](http://www.themssforum.com/SVCS/Unable-execute/) Apperently there was something wrong with the login for 'NT AUTHORITY\NETWORK SERVICE' and it wouldn't run the jobs it owned properly. Anyone understand why this might have happened?
null
CC BY-SA 2.5
null
2008-08-18T14:34:31.373
2008-08-18T14:34:31.373
null
null
1,545
null
14,706
2
null
14,697
7
null
There's System.Web.Routing that was just released with .NET 3.5. You can just use Request.RewritePath() in a custom HttpModule I prefer using an IHttpHandlerFactory implementation and have full control over all incoming URLs and where they're mapped to.
null
CC BY-SA 2.5
null
2008-08-18T14:35:13.120
2008-08-20T08:04:08.100
2008-08-20T08:04:08.100
1,659
1,659
null
14,712
1
null
null
1
2,927
does anyone have a clue why the TortoiseSVN windows client (in Win32 XP and Vista) is so incredible slow when used with Putty and PAM? It seems it connects for each request since datatransfers (checkout) are not slow at all? Any ideas how to change it? Update: I had no problems with SSH before. But I have to use key ...
TortoiseSVN & Putty very slow
CC BY-SA 3.0
null
2008-08-18T14:38:28.090
2016-07-12T15:57:40.073
2016-01-12T17:15:29.803
761,095
null
[ "svn", "tortoisesvn", "putty" ]
14,708
1
null
null
30
41,169
What's the DOS FINDSTR equivalent for [PowerShell](http://en.wikipedia.org/wiki/Windows_PowerShell)? I need to search a bunch of log files for "ERROR".
PowerShell FINDSTR eqivalent?
CC BY-SA 2.5
0
2008-08-18T14:36:49.280
2020-09-15T21:27:21.530
2010-01-16T17:27:29.230
63,550
1,351
[ "search", "powershell" ]
14,710
2
null
14,618
1
null
If you are giving the user a small list of choices then stick with the radio buttons. However, if you will want want to use the combo box for dynamic or long lists. Set the style to DropDownList. ``` private sub populateList( items as List(of UserChoices)) dim choices as UserChoices dim defaultChoice as UserChoi...
null
CC BY-SA 2.5
null
2008-08-18T14:37:09.293
2008-08-18T14:37:09.293
null
null
1,632
null
14,717
1
14,766
null
9
3,854
We're having sporadic, random query timeouts on our SQL Server 2005 cluster. I own a few apps that use it, so I'm helping out in the investigation. When watching the % CPU time in regular ol' Perfmon, you can certainly see it pegging out. However, SQL activity monitor only gives cumulative CPU and IO time used by a pro...
Identifying SQL Server Performance Problems
CC BY-SA 2.5
0
2008-08-18T14:39:51.333
2014-11-25T20:41:58.907
2014-11-25T20:41:58.907
2,641,576
1,212
[ "sql-server", "performance", "sql-server-2005" ]
14,722
2
null
14,712
3
null
Do you have a problem with standard SSH connections to the server as well? If it's generally slow to connect to your server via SSH, this could be a problem with reverse DNS lookups. Andrew
null
CC BY-SA 2.5
null
2008-08-18T14:43:34.850
2008-08-18T14:43:34.850
null
null
1,776
null
14,718
2
null
9,279
0
null
You can also use Fetch as an SFTP client, and then edit files directly on the server from within that. There are also SSHFS (mount an ssh folder as a Volume) options. This is in line with what stimms said - are you sure you want stuff kept in sync, or just want to edit files on the server? OS X has it's own file not...
null
CC BY-SA 2.5
null
2008-08-18T14:41:18.473
2008-08-18T14:41:18.473
null
null
188
null
14,723
2
null
9,033
26
null
It's not actually a C# hidden feature, but I recently discovered the [WeakReference class](http://msdn.microsoft.com/en-us/library/system.weakreference.aspx) and was blown away by it (although this may be biased by the fact that it helped me found a solution to a [particular problem of mine](http://www.juanformoso.com....
null
CC BY-SA 2.5
null
2008-08-18T14:43:56.020
2008-08-18T14:43:56.020
null
null
1,782
null
14,697
1
17,637
null
14
1,592
I've looked at several URL rewriters for ASP.Net and IIS and was wondering what everyone else uses, and why. Here are the ones that I have used or looked at: - [ThunderMain URLRewriter](http://www.codeproject.com/KB/aspnet/urlrewriter.aspx)- [Ewal UrlMapper](http://web.archive.org/web/20070202012119/blog.ewal.net/20...
What Url rewriter do you use for ASP.Net?
CC BY-SA 2.5
0
2008-08-18T14:32:12.237
2012-08-25T08:34:36.483
2017-05-23T10:27:42.823
-1
1,414
[ "asp.net", "iis", "url-rewriting", "urlrewriter" ]
14,724
2
null
14,708
35
null
Here's the quick answer ``` Get-ChildItem -Recurse -Include *.log | select-string ERROR ``` I found it [here](http://www.interact-sw.co.uk/iangblog/2006/06/03/pshfindstr) which has a great indepth answer!
null
CC BY-SA 3.0
null
2008-08-18T14:44:22.273
2017-02-07T16:40:04.160
2017-02-07T16:40:04.160
712,526
1,351
null
14,720
2
null
14,614
0
null
[marxidad](https://stackoverflow.com/users/1659/marxidad) Just a quick point to note, Justin has already said that the SQL varies a lot dependant on the type, so I have worked on the basis that it could be something different dependant on the type, hence delegating it to the subclasses in question. Whereas your soluti...
null
CC BY-SA 2.5
null
2008-08-18T14:42:11.407
2008-08-18T14:50:50.327
2017-05-23T12:01:23.407
-1
832
null
14,730
2
null
14,717
2
null
Profiler may seem like a "needle in a haystack" approach, but it may turn up something useful. Try running it for a couple of minutes while the databases are under typical load, and see if any queries stand out as taking way too much time or hogging resources in some way. While a situation like this could point to some...
null
CC BY-SA 2.5
null
2008-08-18T14:47:52.907
2008-08-18T14:47:52.907
null
null
51
null
14,733
2
null
14,634
0
null
As a follow up, I'm of the opinion that an app should do one job and do it well. Often if you start combining tools into one product, none of them will shine, and most of them will be "'alright, sort-of". If I was doing something like this, I would get myself something like SVN, ANT, and Subversion Ant Library ([http...
null
CC BY-SA 2.5
null
2008-08-18T14:50:34.900
2008-08-18T14:50:34.900
null
null
685
null
14,725
2
null
14,708
0
null
``` if ($entry.EntryType -eq "Error") ``` Being Object Oriented, you want to test the property in question with one of the standard comparison operators you can find [here](http://www.computerperformance.co.uk/powershell/powershell_syntax.htm#Operators_). I have a [PS script](http://slipsec.blogspot.com/2008/04/moni...
null
CC BY-SA 2.5
null
2008-08-18T14:44:30.293
2008-08-19T03:44:37.677
2008-08-19T03:44:37.677
1,635
1,635
null
14,726
2
null
14,061
4
null
Yes I know that in the old days Memory Leaks are an entirely different subject. But with managed code, new meaning to the term Memory Leak might be more appropriate... Microsoft even acknowledges it to be a memory leak: > Why Implement the WeakEvent Pattern?Listening for events can lead to memory leaks. The typical...
null
CC BY-SA 3.0
null
2008-08-18T14:44:49.763
2016-07-01T11:59:58.030
2016-07-01T11:59:58.030
254,882
900
null
14,736
2
null
14,731
71
null
I'm not a .NET guy, but, can't you use: ``` HttpUtility.UrlEncode Method (String) ``` Which is described here: [HttpUtility.UrlEncode Method (String) on MSDN](http://msdn.microsoft.com/en-us/library/4fkewx0t.aspx)
null
CC BY-SA 3.0
null
2008-08-18T14:51:06.503
2013-03-12T09:58:30.467
2013-03-12T09:58:30.467
83,178
1,776
null
14,731
1
8,931,490
null
62
61,580
Normally I would just use: ``` HttpContext.Current.Server.UrlEncode("url"); ``` But since this is a console application, `HttpContext.Current` is always going to be `null`. Is there another method that does the same thing that I could use?
UrlEncode through a console application?
CC BY-SA 3.0
0
2008-08-18T14:48:27.213
2022-09-16T21:25:52.957
2012-02-29T19:35:42.270
1,027,198
1,469
[ "c#", ".net", "console" ]
14,739
2
null
14,731
1
null
HttpUtility.UrlEncode("url") in System.Web.
null
CC BY-SA 2.5
null
2008-08-18T14:51:37.173
2008-08-18T14:51:37.173
null
null
380
null
14,737
2
null
14,708
9
null
For example, find all instances of "#include" in the c files in this directory and all sub-directories. ``` gci -r -i *.c | select-string "#include" ``` gci is an alias for get-childitem
null
CC BY-SA 2.5
null
2008-08-18T14:51:13.290
2008-08-18T14:51:13.290
null
null
748
null
14,738
2
null
10,877
6
null
I suggest playing with the :before attribute and seeing what you can achieve with it. It will mean your code really is limited to nice new browsers, and excludes the (annoyingly large) section of the market still using rubbish old browsers, Something like the following, which forces a fixed with on the items. Yes, I k...
null
CC BY-SA 2.5
null
2008-08-18T14:51:27.767
2008-08-18T14:51:27.767
null
null
1,000
null
14,735
2
null
12,671
1
null
After some research following DancesWithBamboo's answer, I figured out how to make it work. An example reference to my ascx page within my aspx page: ``` <uc1:ChildPage ID="MyModalPage" runat="server" /> ``` The aspx code-behind to grab and open the ModalPopupExtender (named modalPopup) would look like this: ``` Aj...
null
CC BY-SA 2.5
null
2008-08-18T14:50:46.117
2009-03-03T22:56:56.537
2009-03-03T22:56:56.550
1,463
1,373
null
14,742
2
null
14,731
1
null
use the static HttpUtility.UrlEncode method.
null
CC BY-SA 2.5
null
2008-08-18T14:52:08.640
2008-08-18T14:52:08.640
null
null
1,975,282
null
14,734
2
null
14,731
4
null
Try using the UrlEncode method in the HttpUtility class. 1. http://msdn.microsoft.com/en-us/library/system.web.httputility.urlencode.aspx
null
CC BY-SA 2.5
null
2008-08-18T14:50:38.127
2008-08-18T14:50:38.127
null
null
936
null
14,756
1
null
null
6
871
We are using classic asp to call a C# dll and in the C# dll we are using System.Drawing.Printing.PrinterSettings.InstalledPrinters to get a list of availabe printers. If the printers are not shared they will not show up when a user trys to print. The Local System account can see and print to them from a VB6 dll and Adm...
Printers not available unless shared
CC BY-SA 2.5
null
2008-08-18T15:00:54.037
2011-11-21T03:51:50.250
2011-11-21T03:51:50.250
3,043
1,545
[ "c#", "asp.net", "printing", "windows-server-2003" ]
14,745
2
null
14,731
6
null
You'll want to use ``` System.Web.HttpUtility.urlencode("url") ``` Make sure you have system.web as one of the references in your project. I don't think it's included as a reference by default in console applications.
null
CC BY-SA 3.0
null
2008-08-18T14:53:21.990
2012-02-29T19:39:06.323
2012-02-29T19:39:06.323
1,027,198
1,862
null
14,729
2
null
2,658
0
null
Just use TortoiseSVN, and you can live even without knowing actual Subversion commands... But that's bad. Luckily there will always be a “great opportunity” to learn them by heart — when your priceless repository first gets corrupted. Yes, it happens.
null
CC BY-SA 2.5
null
2008-08-18T14:47:18.493
2008-08-18T14:47:18.493
null
null
1,764
null
14,757
2
null
14,717
3
null
We use Quest's [Spotlight](http://www.quest.com/spotlight-on-sql-server-enterprise/) product. Obviously it's an investment in time and money so it might not help you out in the short term but if you are have a large SQL environment it's pretty useful.
null
CC BY-SA 2.5
null
2008-08-18T15:01:41.693
2008-08-18T15:01:41.693
null
null
225
null
14,748
2
null
13,021
5
null
To make sure you don't overwrite an existing object, you should so something like: ``` if(!window.NameSpace) { NameSpace = {}; } ``` or ``` var NameSpace = window.NameSpace || {}; ``` This way you can put this at the top of every file in your application/website without worrying about the overwriting the name...
null
CC BY-SA 2.5
null
2008-08-18T14:55:22.313
2008-08-18T14:55:22.313
null
null
653
null
14,740
2
null
14,712
1
null
I don't use Putty for my ssh+svn connections. I use TortoisePlink, which is a wrapper around Putty, I think. It is provided by TortoiseSVN in the install directory under bin. Basically go to the Settings dialog, by right clicking in a windows explorer window -> TortoiseSVN -> Settings Click on the Network item in t...
null
CC BY-SA 2.5
null
2008-08-18T14:51:40.747
2008-08-18T14:51:40.747
null
null
1,117
null
14,759
2
null
12,890
1
null
For MySQL I like this talk: [Real World Web: Performance & Scalability, MySQL Edition](http://develooper.com/talks/rww-mysql-2008.pdf). This contains a lot of different pieces of advice for getting more speed out of MySQL.
null
CC BY-SA 2.5
null
2008-08-18T15:03:36.463
2008-08-18T15:03:36.463
null
null
1,633
null
14,755
2
null
14,504
3
null
@Thomas Owens > I don't find code formatted like that easier to read. That's fine, it is just a personal preference and we can disagree. Format it the way you think is best and I'll respect it. I frequently ask myself 'how should I format this or that thing?' My answer is always to format it to improve readability...
null
CC BY-SA 2.5
null
2008-08-18T15:00:02.947
2008-08-18T15:00:02.947
null
null
1,254
null
14,775
1
14,856
null
7
4,918
I have been a VB.net developer for a few years now but I am currently applying to a few companies that use C#. I have even been told that at least one of the companies doesn't want VB.net developers. I have been looking online trying to find real differences between the two and have asked on crackoverflow. The only m...
Interview question on C# and VB.net similarities/differences
CC BY-SA 2.5
0
2008-08-18T15:11:40.783
2009-04-03T13:57:04.527
2009-01-27T08:12:00.970
2,902
1,632
[ "c#", "vb.net" ]
14,760
1
15,335
null
4
220
In the Visual Studio toolbar, you can enter commands into the search box by prefixing them with a > symbol. Is there any way to disable this? I've never used the feature, and it's slightly annoying when trying to actually search for something that you know is prefixed by greater-than in the code. It's particularly anno...
Is it possible to disable command input in the toolbar search box?
CC BY-SA 3.0
null
2008-08-18T15:04:25.603
2015-08-20T22:23:50.497
2013-07-04T12:21:31.560
1,584,286
1,739
[ "visual-studio" ]
14,766
2
null
14,717
12
null
This will give you the top 50 statements by average CPU time, check here for other scripts: [http://www.microsoft.com/technet/scriptcenter/scripts/sql/sql2005/default.mspx?mfr=true](http://www.microsoft.com/technet/scriptcenter/scripts/sql/sql2005/default.mspx?mfr=true) ``` SELECT TOP 50 qs.total_worker_time/q...
null
CC BY-SA 2.5
null
2008-08-18T15:09:27.683
2008-08-18T15:09:27.683
null
null
740
null
14,776
2
null
14,770
0
null
I keep them the same. But then, I don't have multifile assemblies, which is when the AssemblyVersion number becomes important. I use Microsoft-style date encoding for my build numbers, rather than auto-incrementing (I don't find the number of times that something has been built to be all that important).
null
CC BY-SA 2.5
null
2008-08-18T15:11:51.580
2008-08-18T15:11:51.580
null
null
1,975,282
null
14,767
2
null
14,061
-2
null
Well that (the manager bit) I can certainly understand, and sympathize with. But whatever Microsoft calls it, I don't think a "new" definition is appropriate. It's complicated, because we don't live in a 100% managed world (even though Microsoft likes to pretend that we do, Microsoft itself does not live in such a wor...
null
CC BY-SA 2.5
null
2008-08-18T15:09:55.577
2008-08-18T15:27:19.210
2008-08-18T15:27:19.210
1,975,282
1,975,282
null