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
12,384
2
null
12,304
1
null
If you are using a maintenance plan you'd probably be better off use the check database integrity task. If you really want to run you own maintenance written in t-sql then run it using a step in a job, not in a maintenance plan and the code above will work ok. Like Stu said the GO statement is client directive not a sq...
null
CC BY-SA 2.5
null
2008-08-15T15:34:09.180
2008-08-15T15:34:09.180
null
null
1,433
null
12,390
2
null
12,268
4
null
It's always been the case that its been obfuscated. It was one of the first things I tried with it years ago ;).
null
CC BY-SA 2.5
null
2008-08-15T15:35:47.320
2008-08-15T15:35:47.320
null
null
942
null
12,385
1
12,436
null
2
2,456
How would you attach a propertychanged callback to a property that is inherited? Like such: ``` class A { DependencyProperty prop; } class B : A { //... prop.AddListener(PropertyChangeCallback); } ```
How to attach a ChangeEvent handler to an inherited dependency property?
CC BY-SA 3.0
null
2008-08-15T15:34:20.367
2013-10-29T10:47:20.770
2013-10-29T10:47:20.770
393,487
93
[ ".net", "silverlight", "dependency-properties" ]
12,387
2
null
12,374
10
null
Have you tried [DBUnit](http://dbunit.sourceforge.net/)? It's designed to unit test your database, and just your database, without needing to go through your C# code.
null
CC BY-SA 2.5
null
2008-08-15T15:35:02.907
2008-08-15T15:35:02.907
null
null
372
null
12,351
2
null
12,144
14
null
First: This is a really big debate issue, not a quick Q+A. My favourite right now is to simply include [Lua](http://www.lua.org), because - - - - Another option, if there's a lot of data is to use [sqlite3](http://www.sqlite.org/), because they're right to claim - - - To which I would like to add: - - But a...
null
CC BY-SA 2.5
null
2008-08-15T15:19:04.813
2008-08-15T15:19:04.813
null
null
1,421
null
12,395
2
null
12,374
4
null
I am assuming that you want unit testing in MSSQL. Looking at DBUnit there are some limitations in it's support for MSSQL. It doesn't support NVarChar for instance. [Here are some real users and their problems with DBUnit.](http://dbunit.wikidot.com/mssql)
null
CC BY-SA 2.5
null
2008-08-15T15:40:50.320
2008-08-15T15:40:50.320
null
null
648
null
12,396
2
null
12,368
14
null
Would it be appropriate to also mention that dispose doesn't always refer to memory? I dispose resources such a references to files more often than memory. GC.Collect() directly relates to the CLR garbage collector and may or may not free memory (in Task Manager). It will likely impact your application in negative ways...
null
CC BY-SA 2.5
null
2008-08-15T15:41:02.803
2008-08-15T15:41:02.803
null
null
636
null
12,399
2
null
12,374
0
null
LINQ will simplify this only if you remove the logic from your stored procedures and reimplement it as linq queries. Which would be much more robust and easier to test, definitely. However, it sounds like your requirements would preclude this. TL;DR: Your design has issues.
null
CC BY-SA 2.5
null
2008-08-15T15:44:00.127
2008-08-15T15:44:00.127
null
null
null
null
12,403
2
null
11,043
-1
null
Aliases are required when joining tables with columns that have identical names.
null
CC BY-SA 3.0
null
2008-08-15T15:45:37.147
2016-11-01T19:19:57.343
2016-11-01T19:19:57.343
1,195,620
1,431
null
12,398
2
null
12,368
2
null
You can't really force a GC to clean up an object when you want, although there are ways to force it to run, nothing says it's clean up the all the object you want/expect. It's best to call dispose in a try catch ex finally dispose end try (VB.NET rulz) way. But Dispose is for cleaning up system resources (memory, hand...
null
CC BY-SA 2.5
null
2008-08-15T15:42:36.217
2008-08-15T15:42:36.217
null
null
1,433
null
12,397
1
19,051
null
7
2,516
We've been working on an application that quite heavily relies on VirtualPathProviders in ASP.NET. We've just come to put the thing on a live server to demonstrate it and it appears that the VirtualPathProviders simply when the site is pre-compiled!! I've been looking at the workaround which has been posted here: [h...
.NET VirtualPathProviders and Pre-Compilation
CC BY-SA 3.0
0
2008-08-15T15:41:53.160
2012-08-11T16:02:40.280
2012-08-11T16:02:40.280
1,477,076
475
[ "asp.net", "virtualpathprovider" ]
12,404
2
null
12,141
6
null
About 7 years ago, I was generating a change script for a client's DB after working late. I had only changed stored procedures but when I generated the SQL I had "script dependent objects" checked. I ran it on my local machine and all appeared to work well. I ran it on the client's server and the script succeeded. Th...
null
CC BY-SA 2.5
null
2008-08-15T15:46:59.577
2008-08-15T15:46:59.577
null
null
1,414
null
12,401
1
3,003,400
null
6
1,317
I've been searching (with little success) for a free/opensource session clustering and replication solution for asp.net. I've run across the usual suspects (indexus sharedcache, memcached), however, each has some limitations. - - - I am fairly used to the Java world where it is kind of taken for granted that many s...
FOSS ASP.Net Session Replication Solution?
CC BY-SA 2.5
0
2008-08-15T15:45:21.217
2012-01-15T13:22:26.170
2012-01-15T13:22:26.170
1,060,350
1,432
[ "asp.net", "session", "cluster-computing", "failover", "session-replication" ]
12,400
2
null
12,008
1
null
In my experience it depends on what kind of problem you are tacking. In my experience it's difficult to beat BizTalk 2006 R2 for bang for the buck but it does imply the use of a Microsoft technology stack. Websphere MQ seems to be an easier sell to larger corporates and it probably seen greater use at the enterprise ...
null
CC BY-SA 2.5
null
2008-08-15T15:44:50.313
2008-08-15T15:44:50.313
null
null
942
null
12,406
1
12,424
null
9
8,193
From what I've read, [VS 2008 SP1 and Team Foundation Server SP1 packages are traditional service packs that require you to first install the original versions before you will be able to install the SP](http://blogs.msdn.com/astebner/archive/2008/08/11/8849574.aspx). Is there a way, supported or not, to slipstream the...
Is it possible to slipstream the Visual Studio 2008 SP1 install?
CC BY-SA 2.5
0
2008-08-15T15:48:58.527
2013-01-26T20:56:54.307
2008-12-14T10:50:57.723
19,756
5
[ "visual-studio-2008", "visual-studio-2008-sp1" ]
12,408
2
null
12,332
27
null
The .exe file (or equivalent on other platforms) contains an 'entry point' address. To a first approximation, the OS loads the relevant sections of the .EXE file into RAM, and then jumps to the entry point. As others have said, this entry point will not be 'main', but will instead be a part of the runtime library - it...
null
CC BY-SA 4.0
null
2008-08-15T15:50:12.457
2022-06-27T21:08:59.153
2022-06-27T21:08:59.153
63,550
987
null
12,409
2
null
12,374
6
null
If you think about the kind of code that unit testing tends to promote: small highly-cohesive and lowly-coupled routines, then you should pretty much be able to see where at least part of the problem might be. In my cynical world, stored procedures are part of the RDBMS world's long-standing attempt to persuade you to...
null
CC BY-SA 2.5
null
2008-08-15T15:51:15.433
2008-08-15T15:51:15.433
null
null
1,060
null
12,410
2
null
12,374
0
null
We unit test the C# code that calls the SPs. We have build scripts, creating clean test databases. And bigger ones we attach and detach during test fixture. These tests could take hours, but I think it`s worth it.
null
CC BY-SA 2.5
null
2008-08-15T15:51:21.313
2008-08-15T15:51:21.313
null
null
1,069
null
12,413
2
null
11,620
5
null
I usually run into that error when I am trying to restore a database I usually just go to the top of the tree in Management Studio and right click and restart the database server (because it's on a development machine, this might not be ideal in production). This is close all database connections.
null
CC BY-SA 2.5
null
2008-08-15T15:52:24.463
2008-08-15T15:52:24.463
null
null
648
null
12,419
2
null
12,141
2
null
I thought I was working in the testing DB (which wasn't the case apparently), so when I finished 'testing' I run a script to reset data back to the standard test data we use... ouch! Luckily this happened on a database that had backups in place, so after figuring out I did something wrong we could easily bring back th...
null
CC BY-SA 2.5
null
2008-08-15T16:00:13.683
2008-08-15T16:00:13.683
null
null
46
null
12,421
2
null
6,661
2
null
If you're going to be working with events (setting custom functions and event handlers), then I'd recommend checking out the [jQuery library](http://jquery.com/). It makes [event binding](http://docs.jquery.com/Events) so much easier than doing it by hand.
null
CC BY-SA 2.5
null
2008-08-15T16:03:06.063
2008-08-15T16:03:06.063
null
null
1,414
null
12,405
2
null
12,368
23
null
You can only dispose instances that implement the IDisposable interface. ``` GC.Collect(); GC.WaitForPendingFinalizers(); ``` This is normally bad practice, but there is for example a bug in the x64-version of the .NET framework that makes the GC behave strange in some scenarios, and then you might want to do ...
null
CC BY-SA 2.5
null
2008-08-15T15:48:42.957
2008-08-26T09:31:11.243
2008-08-26T09:31:11.243
905
936
null
12,412
2
null
2,732
11
null
This has already been answered correctly, but the solution has not been stated yet. Use ksh, not bash. Compare: ``` $ echo 'echo "hello world" | read var1 var2 echo $var1 echo $var2' | bash -s ``` To: ``` $ echo 'echo "hello world" | read var1 var2 echo $var1 echo $var2' | ksh -s hello world ``` ksh is a superi...
null
CC BY-SA 2.5
null
2008-08-15T15:52:01.110
2008-08-15T15:52:01.110
null
null
1,438
null
12,394
2
null
12,368
102
null
IDisposable has nothing to do with freeing memory. IDisposable is a pattern for freeing resources -- and memory is quite definitely a managed resource. The links pointing to GC.Collect() are the correct answer, though use of this function is generally discouraged by the Microsoft .NET documentation. Having earned ...
null
CC BY-SA 2.5
null
2008-08-15T15:40:33.567
2008-09-02T01:44:45.490
2008-09-02T01:44:45.490
533
533
null
12,424
2
null
12,406
3
null
Here's an [MSDN forum post](https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3337363&SiteID=1) in which an MSFTie indicates it will be possible and that details are forthcoming. Another poster is relaying results of her almost-successful attempt. Looks like this will be doable soon. Related: [how to slipstream...
null
CC BY-SA 2.5
null
2008-08-15T16:06:39.427
2008-08-15T16:12:33.970
2008-08-15T16:12:33.987
1,042
1,042
null
12,425
2
null
7,603
2
null
I had to give myself a crash course in WS-Security a few months back, here are a few links that I found helpful: [http://www.ibm.com/developerworks/webservices/library/ws-security.html](http://www.ibm.com/developerworks/webservices/library/ws-security.html) [http://www.devx.com/security/Article/15634](http://www.devx...
null
CC BY-SA 2.5
null
2008-08-15T16:07:21.377
2008-08-15T16:07:21.377
null
null
1,357
null
12,432
2
null
10,042
22
null
Use [java.util.LinkedList](http://java.sun.com/j2se/1.5.0/docs/api/java/util/LinkedList.html). Like this: ``` list = new java.util.LinkedList() ```
null
CC BY-SA 2.5
null
2008-08-15T16:11:25.190
2008-08-20T06:45:06.857
2008-08-20T06:45:06.857
1,431
1,431
null
12,439
2
null
12,428
1
null
If you're writing in C#, the WebClient classes might be a good place to start. I bet people could give more specific advice if you mentioned which wiki platform you are using, and whether it requires authentication, though. I'd probably start by downloading fiddler and watching the http requests from doing it manuall...
null
CC BY-SA 2.5
null
2008-08-15T16:16:22.170
2008-08-15T16:16:22.170
null
null
1,432
null
12,428
1
null
null
3
190
Once I have my renamed files I need to add them to my project's wiki page. This is a fairly repetitive manual task, so I guess I could script it but I don't know where to start. The process is: ``` Got to appropriate page on the wiki for each team member (DeveloperA, DeveloperB, DeveloperC) { for each of two fil...
Automate adding entries to a wiki
CC BY-SA 4.0
null
2008-08-15T16:09:37.783
2019-08-29T08:29:21.317
2019-08-29T08:29:21.317
8,791,568
849
[ "scripting", "automation", "webautomation" ]
12,426
2
null
12,401
2
null
As far as Velocity is concerned I have heard some great things about that project lately. It's still in the developing stages and probably not primetime ready yet. But I think the project has a solid footing and will become a strong mature product from Microsoft and not fall off into the ether like you predict. Recen...
null
CC BY-SA 2.5
null
2008-08-15T16:08:17.053
2008-08-15T16:08:17.053
null
null
648
null
12,436
2
null
12,385
4
null
(edited to remove recommendation to use DependencyPropertyDescriptor, which is not available in Silverlight) [PropertyDescriptor AddValueChanged Alternative](http://agsmith.wordpress.com/2008/04/07/propertydescriptor-addvaluechanged-alternative/)
null
CC BY-SA 2.5
null
2008-08-15T16:14:18.913
2009-08-29T14:38:01.757
2009-08-29T14:38:01.757
5
5
null
12,441
2
null
12,142
6
null
I would guess that possibly those don't happen because they would break the build for existing code, but that's just a guess on my part. Here's my logic: First, EF is supposed to be more than 1:1 table mapping, so it's quite possible that just because you are deleting a column from table A doesn't mean that for that ...
null
CC BY-SA 2.5
null
2008-08-15T16:18:22.633
2008-08-15T16:18:22.633
null
null
77
null
12,447
2
null
8,688
4
null
Worth a read: [http://blogs.msdn.com/heaths/archive/2008/07/24/why-windows-installer-may-require-so-much-disk-space.aspx](http://blogs.msdn.com/heaths/archive/2008/07/24/why-windows-installer-may-require-so-much-disk-space.aspx)
null
CC BY-SA 2.5
null
2008-08-15T16:27:40.600
2008-08-15T16:27:40.600
null
null
419
null
12,454
2
null
1,983
4
null
Whenever I need to pass in a collection of items to a function, if I want the function to not change the values passed in - I use tuples. Else if I want to have the function to alter the values, I use list. Always if you are using external libraries and need to pass in a list of values to a function and are unsure ...
null
CC BY-SA 2.5
null
2008-08-15T16:38:59.597
2008-08-15T19:09:11.603
2008-08-15T19:09:11.603
1,448
1,448
null
12,452
2
null
12,332
1
null
[Expert C++/CLI](http://books.google.com/books?id=wZoQyVi5f60C&printsec=frontcover&dq=expert+c%2B%2B%2Fcli&ei=MKylSPz2JJOaigHlkLn7BA&sig=ACfU3U36tvex7dO7wVyGtuy1arcJuU3N0g) (check around page 279) has very specific details of the different bootstrap scenarios for native, mixed, and pure CLR assemblies.
null
CC BY-SA 2.5
null
2008-08-15T16:35:07.403
2008-08-15T16:35:07.403
null
null
1,042
null
12,457
2
null
12,374
1
null
We use [DataFresh](http://blogs.ent0.com/files/default.aspx) to rollback changes between each test, then testing sprocs is relatively easy. What is still lacking is code coverage tools.
null
CC BY-SA 2.5
null
2008-08-15T16:41:34.100
2008-08-15T16:41:34.100
null
null
905
null
12,444
2
null
12,428
1
null
You might find [CoScripter](http://services.alphaworks.ibm.com/coscripter) useful -- it's a Firefox extension that allows you to automate tasks you perform on websites. I'm not certain how you'd integrate this with the list of files you're changing on your local system, but it can certainly handle the file uploading t...
null
CC BY-SA 2.5
null
2008-08-15T16:23:47.927
2008-08-15T16:23:47.927
null
null
72
null
12,453
2
null
4,544
1
null
I'd recommend checking out the [iMacros addon for Firefox](http://www.iopus.com/imacros/firefox/). I use it to login to a local web server and after logging in, navigate directly to a certain page. The code I have looks like this, but it allows you to record your own macros: ``` VERSION BUILD=6000814 RECORDER=FX TAB T...
null
CC BY-SA 2.5
null
2008-08-15T16:35:35.297
2008-08-15T16:35:35.297
null
null
1,414
null
12,460
2
null
16
24
null
Make a set of Data Transfer Objects, a couple of mappers, and return that via the .asmx. You should expose the database objects directly, as a change in the procedure schema will propagate to the web service consumer without you noticing it.
null
CC BY-SA 2.5
null
2008-08-15T16:42:54.097
2008-08-15T16:42:54.097
null
null
960
null
12,374
1
25,204
null
37
6,997
We’ve found that the unit tests we’ve written for our C#/C++ code have really paid off. But we still have thousands of lines of business logic in stored procedures, which only really get tested in anger when our product is rolled out to a large number of users. What makes this worse is that some of these stored proc...
Has anyone had any success in unit testing SQL stored procedures?
CC BY-SA 2.5
0
2008-08-15T15:29:14.837
2015-07-22T10:15:02.233
2008-08-23T19:43:46.007
2,134
1,078
[ "sql", "unit-testing", "linq-to-sql" ]
12,468
2
null
12,075
10
null
Remember, obfuscation is not encryption. IMHO, if somebody perceives value in reverse-engineering your code, they will do it. That's true for managed code or native code, obfuscated or not. Sure, obfuscation deters the casual observer, but is your business actually threatened by such people? Every .NET obfuscation ...
null
CC BY-SA 2.5
null
2008-08-15T16:46:02.810
2008-08-15T16:46:02.810
null
null
1,529
null
12,470
2
null
12,368
0
null
IDisposable interface is really for classes that contain unmanaged resources. If your class doesn't contain unmanaged resources, why do you to free up resources before the garbage collector does it? Otherwise, just ensure your object is instantiated as late as possible and goes out of scope as soon as possible.
null
CC BY-SA 2.5
null
2008-08-15T16:48:49.967
2008-08-15T16:48:49.967
null
null
1,453
null
12,472
2
null
12,374
2
null
> But I get the impression you're actually more concerned with performance, which isn't really the preserve of unit testing at all. Unit tests are supposed to be fairly atomic and are intended to check behaviour rather than performance. And in that case you're almost certainly going to need production-class loads in or...
null
CC BY-SA 2.5
null
2008-08-15T16:53:22.110
2008-08-15T16:53:22.110
null
null
1,078
null
12,433
2
null
104
32
null
I think the "what is a memory leak" and "what are the effects" questions have been answered well already, but I wanted to add a few more things on the other questions... One interesting way is to open and add traces for and , in each case looking just at your process. If exercising a particular feature causes th...
null
CC BY-SA 3.0
null
2008-08-15T16:11:41.103
2012-01-26T15:51:52.180
2012-01-26T15:51:52.180
231,716
1,529
null
12,476
1
12,484
null
24
12,751
This is a self-explanatory question: Why does this thing bubble into my try catch's even when nothing is wrong? Why is it showing up in my log, hundreds of times?
Why is my asp.net application throwing ThreadAbortException?
CC BY-SA 4.0
0
2008-08-15T17:02:44.867
2020-01-18T12:47:47.157
2020-01-18T12:47:47.157
5,230,358
1,220
[ "asp.net", "multithreading" ]
12,474
2
null
12,268
10
null
I'll accept Keith's answer, but he's 180 degrees off. Its ironic that the tool used to peer at the source of assemblies is obfuscated. Also, I'm suprised how serious some of you are. Lighten up! What are you, cobol programmers? <-- (edit: Maybe some of you are!)
null
CC BY-SA 2.5
null
2008-08-15T16:55:53.603
2008-08-15T17:09:09.927
2008-08-15T17:09:09.927
null
null
null
12,480
2
null
12,075
0
null
Obsfucation is limited in it's effectiveness, it might keep the casual guy away. The most effective obsfucation is making only the smallest amount of code available to the user. If you can, make your app run depend heavily on a fat server.
null
CC BY-SA 2.5
null
2008-08-15T17:07:25.250
2008-08-15T17:07:25.250
null
null
1,208
null
12,446
2
null
16
98
null
As mentioned in the question, `IEnumerable` has a `CopyToDataTable` method: ``` IEnumerable<DataRow> query = from order in orders.AsEnumerable() where order.Field<DateTime>("OrderDate") > new DateTime(2001, 8, 1) select order; // Create a table from the query. DataTable boundTable = query.CopyToDataTable<...
null
CC BY-SA 3.0
null
2008-08-15T16:27:31.600
2012-05-04T09:01:40.563
2012-05-04T09:01:40.563
1,039,608
5
null
12,484
2
null
12,476
20
null
This is probably coming from a Response.Redirect call. Check this link for an explanation: [http://dotnet.org.za/armand/archive/2004/11/16/7088.aspx](http://dotnet.org.za/armand/archive/2004/11/16/7088.aspx) (In most cases, calling Response.Redirect(url, false) fixes the problem)
null
CC BY-SA 2.5
null
2008-08-15T17:11:32.213
2008-08-15T17:11:32.213
null
null
1,219
null
12,482
1
462,529
null
24
13,038
I have CruiseControl.NET Version 1.4 set up on my development server. Whenever a developer checks in code, it makes a compile. Now we're at a place where we can start giving our application to the testers. We'd like to use ClickOnce to distribute the application, with the idea being that when a tester goes to test...
How can you publish a ClickOnce application through CruiseControl.NET?
CC BY-SA 2.5
0
2008-08-15T17:08:19.583
2009-04-03T14:27:04.657
2008-10-17T21:43:37.910
39
702
[ "msbuild", "clickonce", "cruisecontrol.net", "publish" ]
12,469
2
null
8,472
1
null
Have you looked at [Waegis](http://waegis.com/)? "Waegis is an online web service that exposes an open API (Application Programming Interface). It gets incoming data through its API methods and applies a quick check and identifies spam and legitimate content on time. It then returns a result to client to specify if th...
null
CC BY-SA 2.5
null
2008-08-15T16:46:52.467
2008-08-15T16:46:52.467
null
null
5
null
12,483
2
null
12,374
0
null
One option to re-factor the code (I'll admit a ugly hack) would be to generate it via CPP (the C preprocessor) M4 (never tried it) or the like. I have a project that is doing just that and it is actually mostly workable. The only case I think that might be valid for is 1) as an alternative to KLOC+ stored procedures a...
null
CC BY-SA 2.5
null
2008-08-15T17:09:23.060
2008-08-15T17:09:23.060
null
null
1,343
null
12,487
2
null
12,476
7
null
The most common reason for a ThreadAbortException is calling [Response.End, Response.Redirect, or Server.Transfer](http://support.microsoft.com/kb/312629). Microsoft has published some suggested functions that should be used in stead of those functions.
null
CC BY-SA 3.0
null
2008-08-15T17:12:45.283
2011-07-25T12:31:18.807
2011-07-25T12:31:18.807
1,185
1,185
null
12,490
2
null
8,472
2
null
Without an actual CAPTCHA as your line of defense, aren't you still vulnerable to spammers scripting the browser (trivial using VB and IE)? I.e. load the page, navigate the DOM, click the submit button, repeat...
null
CC BY-SA 2.5
null
2008-08-15T17:17:07.367
2008-08-15T17:17:07.367
null
null
245
null
12,489
1
null
null
69
143,773
How do you scan a directory for folders and files in C? It needs to be cross-platform.
How do you get a directory listing in C?
CC BY-SA 2.5
0
2008-08-15T17:15:04.670
2022-06-16T17:15:11.660
2019-11-03T18:33:01.207
527,702
432
[ "c", "file", "directory", "cross-platform", "common-tasks" ]
12,486
2
null
8,688
2
null
I was faced with the same problem, and ended up moving my Outlook archive.pst and the windows.edb (the new live search index file) over to D: to make room instead of trying to cram a square peg into a round hole with SP1 splitting drives. A huge help in this regard is [WinDirStat](http://windirstat.info/), which scans ...
null
CC BY-SA 2.5
null
2008-08-15T17:12:39.077
2008-08-15T17:12:39.077
null
null
1,212
null
12,485
2
null
12,428
2
null
Check if the wiki you mean to talk to supports [XMLRPC](http://www.jspwiki.org/wiki/WikiRPCInterface2), because if it does it should be a snap. I wrote a tool called [WikiUp](http://trac.gargoyle.ath.cx/trac/wiki/WikiUp) to solve a similar problem (updating a delineated section on a wiki page).
null
CC BY-SA 2.5
null
2008-08-15T17:11:40.967
2008-08-15T17:19:41.200
2008-08-15T17:19:41.200
1,421
1,421
null
12,492
1
12,534
null
86
43,961
I use emacs to edit my xml files (nxml-mode) and the files were generated by machine don't have any pretty formatting of the tags. I have searched for pretty printing the entire file with indentation and saving it, but wasn't able to find an automatic way. Is there a way? Or atleast some editor on linux which can do...
Pretty printing XML files on Emacs
CC BY-SA 2.5
0
2008-08-15T17:17:14.823
2020-08-21T06:33:23.763
2008-09-11T02:13:54.640
-1
1,448
[ "xml", "emacs", "editor" ]
12,500
2
null
12,489
6
null
opendir/readdir are POSIX. If POSIX is not enough for the portability you want to achieve, check [Apache Portable Runtime](http://apr.apache.org/docs/apr/1.3/group__apr__dir.html)
null
CC BY-SA 2.5
null
2008-08-15T17:26:02.387
2009-02-05T06:17:48.757
2009-02-05T06:17:48.757
15,168
927
null
12,491
2
null
12,271
5
null
Check out MSDN "[How to: Locate and Organize Project and Item Templates](http://msdn.microsoft.com/en-us/library/y3kkate1.aspx)" Create a folder within one of these ``` <VisualStudioInstallDir>\Common7\IDE\ItemTemplates\CSharp\ My Documents\Visual Studio 2008\Templates\ProjectTemplates\CSharp\ ```
null
CC BY-SA 2.5
null
2008-08-15T17:17:11.797
2008-08-15T17:17:11.797
null
null
1,042
null
12,497
2
null
12,482
-1
null
You want to use the ClickOnce manifest generation tasks in msbuild. The process is a little long winded, so I am just going to point you to a couple of links. Here is the [reference on msdn](http://msdn.microsoft.com/en-us/library/6wc2ccdc.aspx) and a [sample article](http://windowsclient.net/articles/ClickOnce_MsBui...
null
CC BY-SA 2.5
null
2008-08-15T17:22:33.423
2008-08-15T17:22:33.423
null
null
1,117
null
12,507
2
null
12,489
22
null
The strict answer is "you can't", as the very concept of a folder is not truly cross-platform. On MS platforms you can use _findfirst, _findnext and _findclose for a 'c' sort of feel, and FindFirstFile and FindNextFile for the underlying Win32 calls. Here's the C-FAQ answer: [http://c-faq.com/osdep/readdir.html](h...
null
CC BY-SA 2.5
null
2008-08-15T17:27:42.383
2009-02-05T06:17:11.707
2009-02-05T06:17:11.707
15,168
987
null
12,515
2
null
12,509
0
null
There are a lot of RSS feed readers out there that people are used to using, and most importantly, RSS is very well known and has been around much longer. Why mess with something if it works?
null
CC BY-SA 2.5
null
2008-08-15T17:30:37.230
2008-08-15T17:30:37.230
null
null
1,185
null
12,508
2
null
12,374
6
null
The key to testing stored procedures is writing a script that populates a blank database with data that is planned out in advance to result in consistent behavior when the stored procedures are called. I have to put my vote in for heavily favoring stored procedures and placing your business logic where I (and most DBA...
null
CC BY-SA 2.5
null
2008-08-15T17:27:51.963
2008-08-15T17:27:51.963
null
null
1,219
null
12,509
1
12,586
null
40
5,948
...instead of using the Atom syndication format? Atom is a [well-defined](http://www.atomenabled.org/developers/syndication/), general-purpose XML syndication format. RSS is fractured into four different versions. All the major feed readers have supported Atom for as long as I can remember, so why isn't its use more p...
Why Are People Still Creating RSS Feeds?
CC BY-SA 2.5
0
2008-08-15T17:27:52.213
2017-05-06T14:28:32.177
2017-05-06T14:28:32.177
2,449,905
1,450
[ "xml", "rss", "atom-feed" ]
12,513
2
null
12,489
11
null
There is no standard C (or C++) way to enumerate files in a directory. Under Windows you can use the FindFirstFile/FindNextFile functions to enumerate all entries in a directory. Under Linux/OSX use the opendir/readdir/closedir functions.
null
CC BY-SA 2.5
null
2008-08-15T17:29:29.557
2008-08-15T17:29:29.557
null
null
1,043
null
12,506
2
null
12,489
89
null
The following POSIX program will print the names of the files in the current directory: ``` #define _XOPEN_SOURCE 700 #include <stdio.h> #include <sys/types.h> #include <dirent.h> int main (void) { DIR *dp; struct dirent *ep; dp = opendir ("./"); if (dp != NULL) { while ((ep = readdir (dp)) != NULL)...
null
CC BY-SA 4.0
null
2008-08-15T17:27:32.307
2022-06-16T17:15:11.660
2022-06-16T17:15:11.660
740,378
1,449
null
12,517
2
null
12,509
0
null
Because the developers of sed sights got reemed from their marketing manager that they were "excluding" people by not providing rss. Since Mr. Marketing has never heard of Atom, you just provide both. If you are restfully implementing it, its not a big deal to just do both and not get yelled at by other departments.
null
CC BY-SA 2.5
null
2008-08-15T17:32:08.023
2008-08-15T17:32:08.023
null
null
1,220
null
12,518
2
null
12,509
1
null
The same reason that people are HTML 4 loose, strict, XHTML transitional, XHTML strict, etc. Legacy code / working with what you already know. Besides, both formats have their merits. Better to support a couple different formats than have one be-all-end-all-subscribe-to-everything feed that becomes bloated.
null
CC BY-SA 2.5
null
2008-08-15T17:33:13.217
2008-08-15T17:33:13.217
null
null
77
null
12,466
2
null
9,882
6
null
Overview: A algorithm keeps track of the frequency of words in a per-column manner, where one can assume that each line can be separated into columns with a delimiter. Example input: > The dog jumped over the moon The cat jumped over the moon The moon jumped over the moon The car jumped over the moon Frequ...
null
CC BY-SA 2.5
null
2008-08-15T16:45:12.813
2008-08-22T11:54:38.500
2008-08-22T11:54:38.500
1
1,416
null
12,519
2
null
5,494
3
null
Daniel, keep in mind that just because something is possbile in IIS, and via any number of off box solutions (like hardware load balancers and SSL) doesn't mean that it is supported by SharePoint, that it is implemented in the same way. You can do what you are asking for, however you should do it via SharePoint Centr...
null
CC BY-SA 2.5
null
2008-08-15T17:34:38.593
2008-08-15T17:34:38.593
null
null
897
null
12,524
2
null
12,509
2
null
For the same reason that every "better" solution did not succeed for mass market. RSS is widely deployed and it solves the same problem Atom is trying to solve. Personaly, I have a large number of RSS feeds that I generate myself. They are working today and solving a problem. I wonder how you could convince me to rewr...
null
CC BY-SA 2.5
null
2008-08-15T17:38:19.180
2008-08-15T17:38:19.180
null
null
268
null
12,512
2
null
12,482
22
null
We've done this and can give you some pointers to start. 2 things you should be aware of: - - To use MSBuild to generate the ClickOnce manifests, here's the command you'll need to issue: ``` msbuild /target:publish /p:Configuration=Release /p:Platform=AnyCPU; "c:\yourProject.csproj" ``` That will tell MSBuild to...
null
CC BY-SA 2.5
null
2008-08-15T17:29:01.757
2008-08-15T17:35:46.127
2008-08-15T17:35:46.127
536
536
null
12,522
2
null
12,509
1
null
Because for the majority of purposes either will work, and RSS has the advantage of being the acronym that defines the category. Beyond that you would have to email individual sites and ask them.
null
CC BY-SA 2.5
null
2008-08-15T17:36:19.153
2008-08-15T17:36:19.153
null
null
1,043
null
12,531
2
null
12,523
0
null
There's a couple out there. They all hook into the windows API to log item clicks, and then reproduce them to test. We're now mostly web based (using WatiN), but we used to use Mercury Quicktest. Don't use Quicktest, it's awful for a tremendously long list of reasons.
null
CC BY-SA 2.5
null
2008-08-15T17:47:02.110
2008-08-15T17:47:02.110
null
null
905
null
12,501
1
null
null
2
3,628
I thought that I had the latest CTP of PowerShell 2 but when I try the command: `invoke-expression –computername Server01 –command 'get-process PowerShell'` I get an error message: So the question is: How can I tell which version of PowerShell I have installed? And what the latest version is?
PowerShell's Invoke-Expression missing param
CC BY-SA 4.0
0
2008-08-15T17:26:44.663
2019-02-18T15:42:17.470
2019-02-18T15:42:17.470
11,025,476
1,463
[ "powershell", "powershell-2.0" ]
12,528
2
null
1,383
3
null
Unit-testing is the testing of a unit of code (e.g. a single function) without the need for the infrastructure that that unit of code relies on. i.e. test it in isolation. If, for example, the function that you're testing connects to a database and does an update, in a unit test you might not want to do that update. Y...
null
CC BY-SA 2.5
null
2008-08-15T17:42:54.617
2008-08-15T17:42:54.617
null
null
1,463
null
12,523
1
12,540
null
10
14,419
What tools are useful for automating clicking through a windows form application? Is this even useful? I see the testers at my company doing this a great deal and it seems like a waste of time.
Tools for automating mouse and keyboard events sent to a windows application
CC BY-SA 2.5
0
2008-08-15T17:37:06.280
2018-01-22T19:33:11.397
null
null
1,455
[ "testing", "automation" ]
12,532
2
null
2,873
5
null
We've been using [Coverity Prevent](http://www.coverity.com/) to check out C++ source code. It's not a free tool (although I believe they offer free scanning for open source projects), but it's one of the best static analysis tools you'll find. I've heard it's even more impressive on C than on C++, but it's helped us...
null
CC BY-SA 2.5
null
2008-08-15T17:47:21.813
2008-08-15T17:47:21.813
null
null
1,466
null
12,525
2
null
12,501
2
null
`$host.version.tostring()` will return the version number. RTM of v1 is 1.0.0.0 Couldn't honestly tell you what the latest version of the previews are because I haven't had a chance to play yet.
null
CC BY-SA 3.0
null
2008-08-15T17:38:50.427
2013-11-24T07:35:11.590
2013-11-24T07:35:11.590
419
419
null
12,538
2
null
12,516
2
null
String Tokenizer + LL(1) Parser will give you an expression tree... the polymorphism way might involve an abstract Arithmetic class with an "evaluate(a,b)" function, which is overridden for each of the operators involved (Addition, Subtraction etc) to return the appropriate value, and the tree contains Integers and Ari...
null
CC BY-SA 2.5
null
2008-08-15T17:50:11.853
2008-08-15T17:50:11.853
null
null
1,370
null
12,527
2
null
8,472
27
null
> So, CAPTCHA is mandatory for all users except moderators. [[1]](https://stackoverflow.com/questions/8472?sort=oldest#8487) That's incredibly stupid. So there will be users who can but not post without CAPTCHA? If you have enough rep to downvote posts, you have enough rep to post without CAPTCHA. Make it higher if...
null
CC BY-SA 2.5
null
2008-08-15T17:40:58.583
2008-08-15T17:40:58.583
2017-05-23T12:26:24.527
-1
432
null
12,534
2
null
12,492
25
null
I use [nXML mode](http://www.thaiopensource.com/nxml-mode/) for editing and [Tidy](http://tidy.sourceforge.net/) when I want to format and indent XML or HTML. There is also [an Emacs interface to Tidy.](http://www.emacswiki.org/emacs/tidy.el)
null
CC BY-SA 3.0
null
2008-08-15T17:47:29.893
2015-10-23T00:59:41.673
2015-10-23T00:59:41.673
192,737
676
null
12,541
2
null
12,533
0
null
This is not possible without using the result to select the day yourself. For one thing the textual representation of the day is locale-dependent. For another the returned value depends upon the 'datefirst' setting.
null
CC BY-SA 2.5
null
2008-08-15T17:50:32.883
2008-08-15T17:50:32.883
null
null
1,043
null
12,533
1
12,548
null
7
12,588
Is there a quick one-liner to call datepart in Sql Server and get back the name of the day instead of just the number? ``` select datepart(dw, getdate()); ``` This will return 1-7, with Sunday being 1. I would like 'Sunday' instead of 1.
How do you convert the number you get from datepart to the name of the day?
CC BY-SA 2.5
0
2008-08-15T17:47:28.677
2013-10-03T19:12:32.120
2013-10-03T19:12:32.120
2,611,492
1,219
[ "sql-server", "datepart" ]
12,548
2
null
12,533
12
null
``` select datename(weekday, getdate()); ```
null
CC BY-SA 2.5
null
2008-08-15T17:54:22.143
2008-08-15T17:54:22.143
null
null
1,373
null
12,544
2
null
12,533
0
null
If you want a localizable solution, just join the result against a table with the names and numbers.
null
CC BY-SA 2.5
null
2008-08-15T17:52:04.627
2008-08-15T17:52:04.627
null
null
960
null
12,516
1
12,861
null
27
7,330
This morning, I was reading [Steve Yegge's: When Polymorphism Fails](http://steve.yegge.googlepages.com/when-polymorphism-fails), when I came across a question that a co-worker of his used to ask potential employees when they came for their interview at Amazon. > As an example of polymorphism in action, let's look a...
Expression Evaluation and Tree Walking using polymorphism? (ala Steve Yegge)
CC BY-SA 2.5
0
2008-08-15T17:31:39.427
2013-10-25T20:39:14.880
2008-08-31T20:18:03.223
116
25
[ "oop", "recursion", "polymorphism", "binary-tree" ]
12,540
2
null
12,523
7
null
Check out [https://github.com/TestStack/White](https://github.com/TestStack/White) and [http://nunitforms.sourceforge.net/](http://nunitforms.sourceforge.net/). We've used the White project with success.
null
CC BY-SA 3.0
null
2008-08-15T17:50:31.730
2018-01-22T19:33:11.397
2018-01-22T19:33:11.397
13,531
748
null
12,552
2
null
10,870
0
null
ok, I see the problem now. Rather than null, try setting it to the dragInitiator. Check this out. ``` <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import m...
null
CC BY-SA 2.5
null
2008-08-15T17:57:40.840
2008-08-15T17:57:40.840
null
null
22
null
12,559
2
null
12,141
3
null
We were trying to fix a busted node on an Oracle cluster. The storage management module was having problems, so we clicked the un-install button with the intention of re-installing and copying the configuration over from another node. Hmm, it turns out the un-install button applied to the entire cluster, so it cheerf...
null
CC BY-SA 2.5
null
2008-08-15T18:02:40.613
2008-08-15T18:02:40.613
null
null
116
null
12,556
1
16,222
null
8
3,035
It looks interesting and I've played around with it some --- but the development IDE in a web browser seems to be nightmare eventually. Does anyone have experience using it and what are your thoughts?
What is your experience using the TIBCO General Interface?
CC BY-SA 2.5
0
2008-08-15T18:00:04.020
2014-02-02T13:01:06.223
2008-09-26T19:57:33.300
2,134
1,341
[ "cross-browser", "tibco" ]
12,563
2
null
12,523
1
null
You can do it programmatically via the [Microsoft UI Automation API.](http://msdn.microsoft.com/en-us/ms750446.aspx) There's an [MSDN Magazine article](http://msdn.microsoft.com/en-us/magazine/cc163465.aspx) about it. Integrates well with unit test frameworks. A better option than the coordinate-based script runners b...
null
CC BY-SA 2.5
null
2008-08-15T18:07:28.043
2008-08-15T18:11:14.510
2008-08-15T18:11:14.510
1,042
1,042
null
12,557
2
null
1,983
8
null
The notion of tuples are highly expressive: - Pragmatically, they are great for packing and unpacking values (`x,y=coord`).- In combination with dictionaries (hash tables), they allow forms of mapping that would otherwise require many levels of association. For example, consider marking that (x,y) has been found.``` ...
null
CC BY-SA 2.5
null
2008-08-15T18:00:37.467
2008-08-15T18:00:37.467
null
null
1,416
null
12,549
2
null
12,533
1
null
It actually took me more searching than I thought it would to find this answer. It's funny how you can use a technology for ages and never know about simple functions like this. ``` select datename(dw, getdate()) ``` I'm not sure how localization would work with this function. Getting the name client-side is prob...
null
CC BY-SA 2.5
null
2008-08-15T17:54:26.667
2008-08-15T17:54:26.667
null
null
1,219
null
12,564
2
null
12,492
1
null
Tidy looks like a good mode. Must look at it. Will use it if I really need all the features it offers. Anyway, this problem was nagging me for about a week and I wasn't searching properly. After posting, I started searching and found one site with an [elisp function](http://blog.bookworm.at/2007/03/pretty-print-xml-w...
null
CC BY-SA 2.5
null
2008-08-15T18:09:10.227
2008-08-16T06:01:12.050
2008-08-16T06:01:12.050
1,448
1,448
null
12,561
2
null
12,523
7
null
Though they're mostly targeted at automating administration tasks or shortcuts for users, [Autohotkey](http://www.autohotkey.com/) and [AutoIT](http://www.autoitscript.com/autoit3/) let you automate nearly anything you want as far as mouse/keyboard interaction. Some of the mouse stuff can get tricky when the only way...
null
CC BY-SA 2.5
null
2008-08-15T18:05:07.987
2008-08-15T18:05:07.987
null
null
1,124
null
12,566
2
null
9,882
0
null
@Anders > Well, even a strong AI couldn't be sure it had the right answer. I was thinking that sufficiently strong AI could figure out the right answer from the context. e.g. Strong AI could recognize that "35F" in this context is a temperature and not a hex number. There are definitely cases where even strong AI ...
null
CC BY-SA 2.5
null
2008-08-15T18:11:42.263
2008-08-15T18:11:42.263
null
null
872
null
12,565
1
13,935
null
87
51,991
In Ruby, what's the difference between `{}` and `[]`? `{}` seems to be used for both code blocks and hashes. Are `[]` only for arrays? The documention isn't very clear.
What do the different brackets in Ruby mean?
CC BY-SA 3.0
0
2008-08-15T18:09:52.267
2015-06-05T13:28:03.240
2014-12-04T05:32:19.467
128,421
1,470
[ "ruby", "syntax" ]
12,558
2
null
9,882
0
null
@Derek Park: Well, even a strong AI couldn't be sure it had the right answer. Perhaps some compression-like mechanism could be used: 1. Find large, frequent substrings 2. Find large, frequent substring patterns. (i.e. [pattern:1] [junk] [pattern:2]) Another item to consider might be to group lines by [edit-distan...
null
CC BY-SA 2.5
null
2008-08-15T18:01:45.187
2008-08-15T18:01:45.187
null
null
1,421
null