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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31,583 | 2 | null | 30,995 | 0 | null | sounds like a job for process moniter. you should be able use process moniter to see what's really hapening and why.
[http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx](http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx)
Or you could install VS2008 sp1 and cross your fingers. (I'd do both)
| null | CC BY-SA 2.5 | null | 2008-08-28T03:03:29.613 | 2008-08-28T13:35:16.163 | 2008-08-28T13:35:16.163 | 1,433 | 1,433 | null |
31,578 | 2 | null | 13,128 | -2 | null | Combining several third-party libraries into one could create more problems for you—for instance, if two of those libraries define a common symbol which your program doesn't use. Now you've got to extract all (or all-but-one) of the instances of the common symbol before you combine the libraries.
| null | CC BY-SA 4.0 | null | 2008-08-28T02:58:33.463 | 2022-06-27T21:25:01.040 | 2022-06-27T21:25:01.040 | 63,550 | 3,286 | null |
31,587 | 2 | null | 29,647 | 6 | null | The question is how to generate a temporary file . Neither mkstemp nor tmpfile provide the caller with a name, they return a file descriptor or file handle, respectively.
| null | CC BY-SA 3.0 | null | 2008-08-28T03:07:03.507 | 2015-01-05T20:35:24.107 | 2015-01-05T20:35:24.107 | 1,983,495 | 3,343 | null |
31,572 | 1 | 31,768 | null | 19 | 11,877 | I'm working on a .net solution that is run completely inside a single network. When users make a change to the system, I want to launch an announcement and have everyone else hear it and act accordingly. Is there a way that we can broadcast out messages like this (like UDP will let you do) while keeping guaranteed del... | Broadcast like UDP with the reliability of TCP | CC BY-SA 2.5 | 0 | 2008-08-28T02:55:23.347 | 2020-03-04T20:06:49.560 | null | null | 3,259 | [
".net",
"networking",
"tcp",
"udp"
] |
31,589 | 2 | null | 31,584 | 2 | null | I wouldn't do it myself, because to me it muddies what a particular method does, and the method-chaining is of limited use to me over doing it longhand. It isn't going to send me into a quivering ball of rage and psychosis, though, which is always a good thing. :')
I wouldn't be concerned about performance; just ask K... | null | CC BY-SA 2.5 | null | 2008-08-28T03:07:59.197 | 2008-08-28T03:07:59.197 | null | null | 61 | null |
31,588 | 2 | null | 13,704 | 1 | null | WebForms can live with MVC controllers in the same app. By default, routing does not route requests for files that exist on disk. So you could start rewriting small parts of your site at a time to use the MVC pattern, and leave the rest of it using WebForms.
| null | CC BY-SA 2.5 | null | 2008-08-28T03:07:46.500 | 2008-09-20T07:27:44.160 | null | null | 598 | null |
31,586 | 2 | null | 31,572 | 0 | null | I think there are three options, broadly speaking:
1. Instead of broadcasting UDP, you could create an entity (a thread, process, server, service, or whatever the thing is that exists in your solution) that keeps a list of subscribers and sends unicast UDP messages to them.
2. Use UDP multicast, but you'll have to wr... | null | CC BY-SA 2.5 | null | 2008-08-28T03:07:01.493 | 2008-08-28T03:07:01.493 | null | null | 3,279 | null |
31,562 | 2 | null | 31,303 | 1 | null | And if the Scott Ambler paper whets your appetite I can recommend his book with Pramod J Sadolage called 'Refactoring Databases' - [http://www.ambysoft.com/books/refactoringDatabases.html](http://www.ambysoft.com/books/refactoringDatabases.html)
There is also a lot of useful advice and information at the Agile Databas... | null | CC BY-SA 2.5 | null | 2008-08-28T02:43:33.780 | 2008-08-28T02:43:33.780 | null | null | 2,661 | null |
31,595 | 2 | null | 31,535 | 0 | null | Ok, since you are looking for language-agnostic then you can try a REGEX like `/<meta\s.*content=.*>/` and take the result from that and parse out the specific values that you are looking for. I'm by no means a REGEX expert so there is probably a better way but in using the tool at [http://www.codehouse.com/webmaster_t... | null | CC BY-SA 2.5 | null | 2008-08-28T03:20:22.693 | 2008-08-28T03:20:22.693 | null | null | 1,353 | null |
31,581 | 1 | 31,833 | null | 26 | 10,206 | I'm writing an app that will need to make use of `Timer`s, but potentially very many of them. How scalable is the `System.Threading.Timer` class? The documentation merely say it's "lightweight", but doesn't explain further. Do these timers get sucked into a single thread (or very small threadpool) that processes all... | How scalable is System.Threading.Timer? | CC BY-SA 3.0 | 0 | 2008-08-28T03:01:10.773 | 2013-09-05T16:16:25.397 | 2013-09-05T16:16:25.397 | 3,279 | 3,279 | [
"c#",
".net",
"multithreading",
"timer"
] |
31,592 | 1 | 31,609 | null | 1 | 217 | I'm using Castle Windsor to do some dependency injection, specifically I've abstracted the DAL layer to interfaces that are now being loaded by DI.
Once the project is developed & deployed all the .bin files will be in the same location, but for while I'm developing in Visual Studio, the only ways I can see of getting... | How to get the libraries you need into the bin folder when using IoC/DI | CC BY-SA 2.5 | null | 2008-08-28T03:09:28.790 | 2008-09-26T19:23:44.240 | 2008-09-26T19:23:44.240 | 2,134 | 2,975 | [
"visual-studio",
"dependency-injection",
"inversion-of-control",
"castle-windsor"
] |
31,594 | 2 | null | 22,500 | 19 | null | Function prototypes were the most obvious change between K&R C and C89, but there were plenty of others. A lot of important work went into standardizing the C library, too. Even though the standard C library was a codification of existing practice, it codified existing practices, which made it more difficult. P.J. ... | null | CC BY-SA 2.5 | null | 2008-08-28T03:15:27.200 | 2008-08-28T03:15:27.200 | null | null | 3,286 | null |
31,600 | 2 | null | 31,287 | 0 | null | Virtual PC 2007 is very fast esp on a CPU that has hardware support for VM's. 3GB RAM a must for anything not small. XP makes a good guest OS, Vista works well as a host.
| null | CC BY-SA 2.5 | null | 2008-08-28T03:22:24.453 | 2008-08-28T03:22:24.453 | null | null | 1,433 | null |
31,574 | 2 | null | 31,535 | 2 | null | Note: single quotes (even no quotes, if the value doesn't contain a space) is valid according to [the W3C HTML spec](http://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.2). Quote:
> By default, SGML requires that all attribute values be delimited using either double quotation marks (ASCII decimal 34) or single qu... | null | CC BY-SA 2.5 | null | 2008-08-28T02:56:03.127 | 2008-08-28T02:56:03.127 | null | null | 1,265 | null |
31,598 | 1 | null | null | 2 | 2,203 | I am coding a client-server application using Eclipse's RCP.
We are having trouble testing the interaction between the two sides
as they both contain a lot of GUI and provide no command-line or other
remote API.
Got any ideas?
| Testing a client-server application | CC BY-SA 2.5 | 0 | 2008-08-28T03:21:39.617 | 2009-08-18T12:07:26.453 | null | null | 1,651 | [
"eclipse",
"testing",
"rcp"
] |
31,604 | 2 | null | 31,584 | 10 | null | This is called a [Fluent Interface](http://en.wikipedia.org/wiki/Fluent_interface), for reference.
Personally, I think it's a pretty neat idea, but a matter of taste really. I think [jQuery](http://en.wikipedia.org/wiki/Jquery) works this way.
| null | CC BY-SA 2.5 | null | 2008-08-28T03:25:23.993 | 2008-08-28T03:25:23.993 | null | null | 369 | null |
31,609 | 2 | null | 31,592 | 1 | null | Could you set the build output path of the concrete DAL project to be the bin folder of the dependent project?
| null | CC BY-SA 2.5 | null | 2008-08-28T03:31:14.523 | 2008-08-28T03:31:14.523 | null | null | 1,573 | null |
31,611 | 2 | null | 30,696 | 2 | null | One word of warning - jdbc -> Access queries (which bridge using odbc) do not work on 64 bit systems, as there exist no 64 bit Access database drivers (The driver is included into 32 bit copies of Windows and can only be accessed by 32 bit processes. You can run "odbcad32" or look at the ODBC control panel to see that ... | null | CC BY-SA 2.5 | null | 2008-08-28T03:32:11.120 | 2008-08-28T03:32:11.120 | null | null | 235 | null |
31,597 | 2 | null | 19,353 | 10 | null | If you want to efficiently calculate the average power over a sliding window: square each sample, then add it to a running total. Subtract the squared value from N samples previous. Then move to the next step. This is the simplest form of a [CIC](http://en.wikipedia.org/wiki/Cascaded_integrator-comb) Filter. [Parseva... | null | CC BY-SA 3.0 | null | 2008-08-28T03:21:26.513 | 2011-08-21T11:18:16.077 | 2011-08-21T11:18:16.077 | 95 | 3,343 | null |
31,601 | 2 | null | 31,535 | 1 | null | You may want to give Java's [HTMLEditorKit](http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/text/html/HTMLEditorKit.html) a shot. It is easy to experiment with to see if the parsing provides what you are looking for.
| null | CC BY-SA 2.5 | null | 2008-08-28T03:24:04.213 | 2008-08-28T03:24:04.213 | null | null | 2,006 | null |
31,617 | 2 | null | 31,567 | 0 | null | @[Haacked](https://stackoverflow.com/questions/31567/how-to-properly-cast-objects-created-through-reflection#31576)
I tried to keep the pseudocode simple. foreach's take up a lot of space and braces. I clarified it.
o.GetType().FullName returns Plugins.Multiply which is the expected object. Plugins.Multiply implement... | null | CC BY-SA 2.5 | null | 2008-08-28T03:35:46.557 | 2008-08-28T03:35:46.557 | 2017-05-23T12:34:50.137 | -1 | 1,880 | null |
31,603 | 2 | null | 31,561 | 5 | null | [Map](http://www.lispworks.com/documentation/HyperSpec/Body/f_map.htm) is more general than mapcar, for example you could do the following rather than using mapcar:
```
(map 'list #'function listvar)
```
How do I keep scheme and CL separate in my head? I guess when you know both languages well enough you just know w... | null | CC BY-SA 2.5 | null | 2008-08-28T03:24:20.437 | 2008-08-28T03:24:20.437 | null | null | 2,654 | null |
31,584 | 1 | 37,005 | null | 22 | 19,310 | For classes that have a long list of setters that are used frequently, I found this way very useful (although I have recently read about the [Builder pattern](http://en.wikipedia.org/wiki/Builder_pattern) in that is kinda the same).
Basically, all setter methods return the object itself so then you can use code like t... | Design: Java and returning self-reference in setter methods | CC BY-SA 4.0 | 0 | 2008-08-28T03:03:53.467 | 2019-01-03T02:43:27.660 | 2020-06-20T09:12:55.060 | -1 | 2,644 | [
"java"
] |
31,615 | 2 | null | 18,783 | 8 | null | `CREATE INDEX`
Assure there are indexes available for your `WHERE` and `JOIN` clauses. This will speed data access greatly.
If your environment is a indexes should abound for almost any conceivable query.
In a , the number of indexes should be lower and their definitions more strategic so that index maintenance do... | null | CC BY-SA 2.5 | null | 2008-08-28T03:34:35.140 | 2008-08-28T03:34:35.140 | null | null | 3,348 | null |
31,624 | 2 | null | 31,287 | 1 | null | I've used VirtualPCs for a few years for development of some fairly hefty web apps without much problem. Lots of RAM is important. I keep my VPCs on an external USB drive and they perform great from there. This gives me the flexibility to take the drive with me if I need to do work somewhere else... just install VP... | null | CC BY-SA 2.5 | null | 2008-08-28T03:38:45.317 | 2008-08-28T15:38:06.727 | 2008-08-28T15:38:06.727 | 1,865 | 1,865 | null |
31,607 | 2 | null | 2,988 | 4 | null | Circuit diagrams.
Compilation (Directed Acyclic graphs)
Maps. Very compact as graphs.
Network flow problems.
Decision for expert systems (sic)
Fishbone diagrams for fault finding, process improvment, safety analysis. For bonus points, implement your error recovery code as objects that the fishbone diagram.
| null | CC BY-SA 2.5 | null | 2008-08-28T03:29:30.957 | 2008-08-28T03:29:30.957 | null | null | 2,789 | null |
31,618 | 2 | null | 31,592 | 0 | null | Mike: Didn't think of that, that could work, have to remember to turn off copy-local for any libraries / projects that are common between them
| null | CC BY-SA 2.5 | null | 2008-08-28T03:36:14.230 | 2008-08-28T03:36:14.230 | null | null | 2,975 | null |
31,606 | 2 | null | 31,584 | -2 | null | I agree with @Bernard that method chaining like this muddles the purpose of the setters. Instead I would suggest that if you are always creating chains of setters like this that you create a custom Constructor for your class so instead of
```
MyClass
.setInt(1)
.setString("test")
.setBoolean(true)
;
```
... | null | CC BY-SA 2.5 | null | 2008-08-28T03:28:05.297 | 2008-08-28T03:28:05.297 | null | null | 1,353 | null |
31,625 | 2 | null | 31,584 | 0 | null | I use to be a fan of the Java (and worse C#) practice of making getters and setters (get set properties) throughout an object. This use to be what I considered object oriented, but really this leads us just to exposing the guts and implementation of the object and not really taking advantage of encapsulation. There a... | null | CC BY-SA 2.5 | null | 2008-08-28T03:39:02.757 | 2008-08-28T03:39:02.757 | null | null | 1,327 | null |
31,632 | 2 | null | 31,627 | 1 | null | I'd say stick with what works for you. Unless you are having issues with VSS, why switch? Subversion is swell, though a little sticky to begin using it. TFS is far better than VSS, though it is fairly expensive for such a small team. I have not used git so I can't really speak to it.
| null | CC BY-SA 2.5 | null | 2008-08-28T03:44:15.100 | 2008-08-28T03:44:15.100 | null | null | 2,849 | null |
31,627 | 1 | 31,631 | null | 12 | 2,491 | I've been programming for 10+ years now for the same employer and only source code control we've ever used is VSS. (Sorry - That's what they had when I started). There's only ever been a few of us; two right now and we usually work alone, so VSS has worked ok for us. So, I have two questions: 1) Should we switch to som... | Alternative to VSS for a one man show (army of one?) | CC BY-SA 3.0 | 0 | 2008-08-28T03:40:16.250 | 2016-01-06T17:03:18.417 | 2015-02-24T16:56:22.163 | 2,864,740 | 1,433 | [
"version-control",
"visual-sourcesafe"
] |
31,629 | 2 | null | 31,572 | 7 | null | You could use [Spread](http://www.spread.org/) to do group communication.
| null | CC BY-SA 2.5 | null | 2008-08-28T03:40:59.197 | 2008-08-28T03:40:59.197 | null | null | 3,071 | null |
31,634 | 2 | null | 31,192 | 0 | null | I once came across a .Net app that was ported from ASP. The .aspx pages were totally blank. To render the UI, the developers used StringBuilders in the code behind and then did a response.write. This would be the wrong way to do it!
| null | CC BY-SA 2.5 | null | 2008-08-28T03:44:55.317 | 2008-08-28T03:44:55.317 | null | null | 1,865 | null |
31,622 | 2 | null | 31,535 | 0 | null | If you must use regex, here is a regex to get just the content part:
```
content\s*=\s*['"].*?['"]
```
returns
```
content = "blogger"
```
and
```
content='Worpress.com'
```
respectively. I'm no regex expert, but it gets those when given your examples in [regexpal](http://regexpal.com/).
Once you get that you... | null | CC BY-SA 2.5 | null | 2008-08-28T03:38:00.547 | 2008-08-28T03:38:00.547 | null | null | 3,119 | null |
31,638 | 2 | null | 31,567 | 4 | null | I'm just guessing here because from your code it's not obvious where do you have definition of IPlugin interface but if you can't cast in your host application then you are probably having IPlugin interface in your host assembly and then at the same time in your plugin assembly. This won't work.
The easiest thing is t... | null | CC BY-SA 2.5 | null | 2008-08-28T03:46:33.257 | 2008-08-28T03:54:36.573 | 2008-08-28T03:54:36.573 | 275 | 275 | null |
31,620 | 2 | null | 31,500 | 3 | null | > So there's the potential for an "IN" clause to run a table scan, but the optimizer will
try and work out the best way to deal with it?
Whether an index is used doesn't so much vary on the type of query as much of the type and distribution of data in the table(s), how up-to-date your table statistics are, and the ... | null | CC BY-SA 2.5 | null | 2008-08-28T03:37:07.333 | 2008-08-28T03:37:07.333 | null | null | 2,567 | null |
31,636 | 2 | null | 31,627 | 3 | null | I like using Subversion for my personal projects. I could go down the list of features and pretend like it brings a lot to the table that other source control systems don't, but there's tons of good ones out there and the right choices is really a matter of style. If you check in after each small change (i.e. one che... | null | CC BY-SA 2.5 | null | 2008-08-28T03:45:34.240 | 2008-08-28T03:45:34.240 | null | null | 2,547 | null |
31,614 | 2 | null | 31,584 | 0 | null | This idea is seen a lot in c++, it allows operations to be cascaded...
for example
is where the stream method << returns an instance of itself (*this).
see this: [http://www.java2s.com/Tutorial/Cpp/0180__Class/Cascadingmemberfunctioncallswiththethispointer.htm](http://www.java2s.com/Tutorial/Cpp/0180__Class/Cascad... | null | CC BY-SA 2.5 | null | 2008-08-28T03:34:19.820 | 2008-08-28T03:34:19.820 | null | null | 1,638 | null |
31,637 | 1 | null | null | 2 | 2,554 | Is this possible? Does the .NET framework depend on the meta data in the bytecode? I'd like to have an application i write not work in reflector or a similar .NET decompiler.
| Remove Meta Data from .NET applications? | CC BY-SA 3.0 | 0 | 2008-08-28T03:46:30.837 | 2013-02-08T16:33:53.357 | 2013-02-08T16:33:53.357 | 1,908,677 | 87 | [
".net",
"metadata",
"decompiling"
] |
31,631 | 2 | null | 31,627 | 28 | null | I'd probably go with Subversion, if I were you. I'm a total Git fanatic at this point, but Subversion certainly has some advantages:
- - - - - -
Git has many, many other advantages, but the above tend to be the ones people care about when asking general questions like the above.
: the company I now work for is us... | null | CC BY-SA 3.0 | null | 2008-08-28T03:44:07.753 | 2016-01-06T17:03:18.417 | 2016-01-06T17:03:18.417 | 3,279 | 3,279 | null |
31,643 | 2 | null | 31,637 | 0 | null | The Dotfuscator will stop your code from being able to be decompiled
[http://www.preemptive.com/dotfuscator.html](http://www.preemptive.com/dotfuscator.html)
I should have mentioned, that's the professional version, the free community version ships with visual studio
| null | CC BY-SA 2.5 | null | 2008-08-28T03:49:47.803 | 2008-08-28T03:54:51.613 | 2008-08-28T03:54:51.627 | 2,975 | 2,975 | null |
31,645 | 2 | null | 20,882 | 2 | null | Send-Q is the amount of data sent by the application, but not yet acknowledged by the other side of the socket.
Recv-Q is the amount of data received from the NIC, but not yet consumed by the application.
Both of these queues reside in kernel memory.
There are [guides](http://www.speedguide.net/read_articles.php?id... | null | CC BY-SA 2.5 | null | 2008-08-28T03:50:02.107 | 2008-08-28T03:50:02.107 | null | null | 3,343 | null |
31,648 | 2 | null | 1,760 | 6 | null | I used to use NUnit, but now tend to use MbUnit, for two key features:
1. The RowTest feature allows you to easily run the same test on different sets of parameters, which is important if you really want thorough coverage.
2. The Rollback feature allows you to run tests against your database while rolling back changes ... | null | CC BY-SA 2.5 | null | 2008-08-28T03:52:44.877 | 2008-08-28T03:52:44.877 | null | null | 3,271 | null |
31,640 | 2 | null | 31,637 | 0 | null | I don't think you can remove the meta data, but you can obfuscate your code if you're looking to protect your IP.
| null | CC BY-SA 2.5 | null | 2008-08-28T03:47:49.523 | 2008-08-28T03:47:49.523 | null | null | 493 | null |
31,639 | 2 | null | 31,584 | 0 | null | @Dan again, for more complex situations (immutability comes in mind) the Builder Pattern is a great solution.
Also, I agree with you mostly in getters. I believe what you are saying is to mostly follow the "[Tell don't ask](http://www.pragprog.com/articles/tell-dont-ask)" paradigm and I greatly agree. But that is orie... | null | CC BY-SA 2.5 | null | 2008-08-28T03:47:25.187 | 2008-08-28T03:47:25.187 | null | null | 2,644 | null |
31,651 | 2 | null | 31,627 | 9 | null | If you're used to the way VSS works, check out (no pun intended) [Sourcegear's vault](http://www.sourcegear.com/vault/). It's an excellent way to migrate away from VSS as it comes with IDE integration and supports check out / check in, but when you're ready and feel comfortable you can also move to the edit update comm... | null | CC BY-SA 2.5 | null | 2008-08-28T03:55:46.243 | 2008-11-16T02:40:09.157 | 2008-11-16T02:40:09.157 | 16,076 | 493 | null |
31,652 | 2 | null | 31,627 | 1 | null | i used vss for years until switching to svn about two years ago. my biggest complaints about vss were the poor network performance (that problem may be solved now) and the pessimistic locking of files. svn solved both those, is easy to set up (i use collabnet server and tortoisesvn client, although there are two good... | null | CC BY-SA 2.5 | null | 2008-08-28T03:58:45.160 | 2008-08-28T03:58:45.160 | null | null | 3,142 | null |
31,646 | 2 | null | 31,598 | 3 | null | I have about 1.5 years worth of experience with the RCP framework, I really liked it. We simply JUnit for testing...
It's sort of cliche to say, but if it's not easy to test, maybe the design needs some refactoring?
Java and the RCP framework provide great facilities for keeping GUI code and logic code separate. We u... | null | CC BY-SA 2.5 | null | 2008-08-28T03:50:05.057 | 2008-08-28T03:50:05.057 | null | null | 1,638 | null |
31,653 | 2 | null | 31,637 | 1 | null | I think you are referring to the [Assembly Manifest](http://msdn.microsoft.com/en-us/library/1w45z383.aspx):
> Every assembly, whether static or
dynamic, contains a collection of data
that describes how the elements in the
assembly relate to each other. The
assembly manifest contains this
assembly metadata. ... | null | CC BY-SA 2.5 | null | 2008-08-28T04:01:29.007 | 2008-08-28T04:14:09.163 | 2008-08-28T04:14:09.163 | 718 | 718 | null |
31,654 | 2 | null | 31,192 | 0 | null | > I once came across a .Net app that was ported from ASP. The .aspx pages were totally blank. To render the UI, the developers used StringBuilders in the code behind and then did a response.write. This would be the wrong way to do it!
I've seen it done the other way, the code behind page was blank, except for declarat... | null | CC BY-SA 2.5 | null | 2008-08-28T04:02:53.683 | 2008-08-28T04:02:53.683 | null | null | 1,965 | null |
31,662 | 2 | null | 31,627 | 10 | null | Looks like SubVersion is the winner here. I'd do yourself a favor and use [VisualSVN Server](http://www.visualsvn.com/server/). It's free and will save you a bunch of installation headaches.
| null | CC BY-SA 2.5 | null | 2008-08-28T04:20:01.863 | 2008-08-28T04:20:01.863 | null | null | 247 | null |
31,641 | 2 | null | 31,627 | 6 | null | Whatever you do, don't change for the sake of changing.
If it's working for you and you're not having problems with it, I don't see any reason to switch.
| null | CC BY-SA 2.5 | null | 2008-08-28T03:48:35.310 | 2008-08-28T03:48:35.310 | null | null | 2,284 | null |
31,665 | 2 | null | 30,861 | 9 | null | You can use some hacks to only.
```
Try
Dim directoryEntry as New DirectoryEntry("LDAP://DomainController:389/dc=domain,dc=suffix", "username", "password")
Dim temp as Object = directoryEntry.NativeObject
return true
Catch
return false
End Try
```
If the user is not valid, the directory entry Native... | null | CC BY-SA 2.5 | null | 2008-08-28T04:21:26.090 | 2008-08-28T04:21:26.090 | null | null | 1,390 | null |
31,655 | 2 | null | 26,855 | 1 | null | Could depend a bit how you obtain those 2 strings. Probably the secure, fireproof way to do that is what is in URI::URL or similar libraries, where all alternatives, including malicious ones, would be considered. Maybe slower, but in some environments faster will be the speed of a bullet going to your own foot.
But if... | null | CC BY-SA 2.5 | null | 2008-08-28T04:05:38.747 | 2008-08-28T04:05:38.747 | null | null | 3,133 | null |
31,672 | 1 | 67,624 | null | 80 | 15,351 | I've recently come to maintain a large amount of scientific calculation-intensive FORTRAN code. I'm having difficulties getting a handle on all of the, say, nuances, of a forty year old language, despite google & two introductory level books. The code is rife with "performance enhancing improvements". Does anyone ha... | Learning FORTRAN In the Modern Era | CC BY-SA 2.5 | 0 | 2008-08-28T04:36:25.570 | 2021-01-02T00:06:33.273 | null | null | 1,390 | [
"fortran"
] |
31,671 | 2 | null | 31,637 | 2 | null | If you remove the metadata the framework won't be able to load your code, or figure out which other assemblies it references, or anything like that, so no, that's not a good idea.
Obfuscators will make it a lot harder for an 'attacker' to decompile your code, but at the end of the day if someone is motivated and smart... | null | CC BY-SA 2.5 | null | 2008-08-28T04:35:14.107 | 2008-08-28T04:35:14.107 | null | null | 234 | null |
31,668 | 2 | null | 31,627 | 1 | null | If you only have 2 people, and you mostly work independantly, git is going to give you a lot more flexibility, power, and be far and away the fastest to work with.
It is however a pain in the backside to use. Using VSS you're obviously programming for windows - if you're doing Win32 API stuff in C then git will be a l... | null | CC BY-SA 2.5 | null | 2008-08-28T04:28:47.897 | 2008-08-28T04:28:47.897 | null | null | 234 | null |
31,621 | 2 | null | 31,584 | 1 | null | I find this to be in poor style when used in setters. Immutable classes are usually a better fit for chaining, such as:
```
aWithB = myObject.withA(someA).withB(someB);
```
where `myObject` is of this class:
```
class MyClass {
withA(TypeA a) {
this.a.equals(a) ? this : new MyClass(this, a);
}
... | null | CC BY-SA 2.5 | null | 2008-08-28T03:37:24.230 | 2008-08-28T03:37:24.230 | null | null | 3,071 | null |
31,692 | 2 | null | 30,005 | 2 | null | @Alex aw that's a bummer. What if in your `iframe` you had an html document that looked like:
```
<html>
<head>
<meta http-equiv="refresh" content="0;url=/pdfs/somepdf.pdf" />
</head>
<body>
</body>
</html>
```
Definitely a hack, but it might work for Firefox. Although I wonder if the load event would fi... | null | CC BY-SA 2.5 | null | 2008-08-28T05:06:20.397 | 2008-08-28T05:06:20.397 | null | null | 1,414 | null |
31,673 | 1 | null | null | -1 | 2,845 | Wifi support on Vista is fine, but [Native Wifi on XP](http://msdn.microsoft.com/en-us/library/bb204766.aspx) is half baked. [NDIS 802.11 Wireless LAN Miniport Drivers](http://msdn.microsoft.com/en-us/library/aa504121.aspx) only gets you part of the way there (e.g. network scanning). From what I've read (and tried), th... | Wifi Management on XP (SP2/SP3) | CC BY-SA 2.5 | 0 | 2008-08-28T04:38:15.657 | 2010-05-20T08:05:52.037 | 2008-10-21T10:24:11.837 | 1 | 2,514 | [
"networking",
"windows-xp",
"wireless",
"wifi"
] |
31,687 | 2 | null | 31,672 | 5 | null | Well, in one sense, you're lucky, 'cause Fortran doesn't have much in the way of subtle flow-of-control constructs or inheritance or the like. On the other, it's got some truly amazing gotchas, like the arithmetically-calculated branch-to-numeric-label stuff, the implicitly-typed variables which don't require declarat... | null | CC BY-SA 2.5 | null | 2008-08-28T05:01:25.947 | 2008-08-28T05:01:25.947 | null | null | 3,286 | null |
31,658 | 2 | null | 20,882 | 9 | null | What is the distinction between 0.0.0.0, 127.0.0.1, and [::]?
- - - -
How should each part of the foreign address be read (part1:part2)?
- -
| null | CC BY-SA 3.0 | null | 2008-08-28T04:13:25.750 | 2015-04-15T02:53:03.253 | 2015-04-15T02:53:03.253 | 2,219 | 2,219 | null |
31,697 | 2 | null | 31,693 | 35 | null | Anders Hejlsberg himself described the differences here "[Generics in C#, Java, and C++](http://www.artima.com/intv/generics2.html)".
| null | CC BY-SA 2.5 | null | 2008-08-28T05:14:53.370 | 2008-08-28T05:14:53.370 | null | null | 718 | null |
31,659 | 2 | null | 31,627 | 4 | null | Don't worry about VSS corrupting you, worry about VSS corrupting your data. It does not have a good track record in that department.
Back up frequently if you do not switch to a different version control system. Backups should be happening daily even with other SCMs, but it's doubly important with VSS.
| null | CC BY-SA 2.5 | null | 2008-08-28T04:15:30.363 | 2008-08-28T04:15:30.363 | null | null | 235 | null |
31,693 | 1 | 31,929 | null | 203 | 58,868 | I mostly use Java and generics are relatively new. I keep reading that Java made the wrong decision or that .NET has better implementations etc. etc.
So, what are the main differences between C++, C#, Java in generics? Pros/cons of each?
| What are the differences between Generics in C# and Java... and Templates in C++? | CC BY-SA 2.5 | 0 | 2008-08-28T05:08:06.663 | 2013-09-26T03:22:11.110 | 2009-04-11T23:25:38.170 | 811 | 2,644 | [
"c#",
"java",
"c++",
"generics",
"templates"
] |
31,700 | 2 | null | 20,882 | 0 | null | For those seeing [::] in their netstat output, I'm betting your machine is running IPv6; that would be equivalent to 0.0.0.0, i.e. listen on any IPv6 address.
| null | CC BY-SA 2.5 | null | 2008-08-28T05:16:08.640 | 2008-08-28T05:16:08.640 | null | null | 153 | null |
31,704 | 2 | null | 31,572 | 1 | null | You could implement your own TCP-like behaviour at the application layer.
So for instance, you'd send out the UDP broadcast, but then expect a reply response from each host. If you didn't get a response within X seconds, then send another and so on until reaching some sort of threshold. If the threshold is reached (i... | null | CC BY-SA 2.5 | null | 2008-08-28T05:19:57.803 | 2008-08-28T05:19:57.803 | null | null | 1,693 | null |
31,701 | 1 | 34,140 | null | 4 | 591 | I have a mapping application that needs to draw a path, and then display icons on top of the path. I can't find a way to control the order of virtual earth layers, other than the order in which they are added.
Does anyone know how to change the z index of Virtual Earth shape layers, or force a layer to the front?
| How to control layer ordering in Virtual Earth | CC BY-SA 2.5 | 0 | 2008-08-28T05:17:19.730 | 2009-02-10T13:44:46.207 | null | null | 2,785 | [
"javascript",
"virtual-earth"
] |
31,710 | 2 | null | 31,708 | 29 | null | Try this:
```
var matches = dict.Values.Where(rec => rec.Name == "foo").ToList();
```
Be aware that that will essentially be creating a new list from the original Values collection, and so any changes to your dictionary won't automatically be reflected in your bound control.
| null | CC BY-SA 2.5 | null | 2008-08-28T05:23:15.067 | 2008-08-28T05:23:15.067 | null | null | 615 | null |
31,712 | 2 | null | 31,708 | 1 | null | ```
myListView.DataSource = (List<Record>) dict.Values.Where(rec => rec.Name == "foo");
```
| null | CC BY-SA 2.5 | null | 2008-08-28T05:23:30.807 | 2008-08-28T06:34:02.917 | 2008-08-28T06:34:02.917 | 493 | 493 | null |
31,721 | 2 | null | 31,693 | 1 | null | C++ templates are actually much more powerful than their C# and Java counterparts as they are evaluated at compile time and support specialization. This allows for Template Meta-Programming and makes the C++ compiler equivalent to a Turing machine (i.e. during the compilation process you can compute anything that is co... | null | CC BY-SA 2.5 | null | 2008-08-28T06:32:49.283 | 2008-08-28T06:32:49.283 | null | null | 2,150 | null |
31,717 | 2 | null | 31,242 | 0 | null | Yes - I've got experience with that - unfortunately it was no different from your own. I've generally avoided scrolling forms and used paging wherever possible on .Net CF. If this is an option for you, I'd recommend it.
I'd assume the scroll bar issue is to do with the form size being fixed to the width of the availab... | null | CC BY-SA 2.5 | null | 2008-08-28T06:27:24.927 | 2008-08-28T06:27:24.927 | null | null | 1,521 | null |
31,713 | 2 | null | 31,708 | 3 | null | You might also try:
```
var matches = new List<Record>(dict.Values.Where(rec => rec.Name == "foo"));
```
Basically generic collections are very difficult to cast directly, so you really have little choice but to create a new object.
| null | CC BY-SA 2.5 | null | 2008-08-28T06:21:44.880 | 2008-08-28T06:21:44.880 | null | null | 372 | null |
31,677 | 2 | null | 31,303 | 1 | null | Two quick notes:
1. It goes without saying... So I'll say it twice. Verify that you have a valid backup. Verify that you have a valid backup.
2. @mk. Check out Jeff's blog post on database version control (if you haven't already)
| null | CC BY-SA 2.5 | null | 2008-08-28T04:44:58.077 | 2008-08-28T04:44:58.077 | null | null | 1,372 | null |
31,711 | 1 | 31,788 | null | 3 | 405 | The obvious way to plot a path with virtual earth (VEMap.GetDirections) is limited to 25 points. When trying to plot a vehicle's journey this is extremely limiting.
How can I plot a by-road journey of more than 25 points on a virtual earth map?
| How to plot a long path with Virtual Earth | CC BY-SA 2.5 | null | 2008-08-28T05:23:30.120 | 2016-08-11T06:47:09.543 | null | null | 2,785 | [
"javascript",
"virtual-earth"
] |
31,696 | 2 | null | 31,693 | 2 | null | Wikipedia has great write-ups comparing both [Java/C# generics](http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java#Generics) and [Java generics/C++](http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B#Templates_vs._Generics) templates. The [main article on Generics](http://en.wikipedia.org/wiki/Generic... | null | CC BY-SA 2.5 | null | 2008-08-28T05:14:19.457 | 2008-08-28T05:14:19.457 | null | null | 1,414 | null |
31,722 | 1 | 33,500 | null | 90 | 36,926 | I'm interested in seeing a good diff algorithm, possibly in Javascript, for rendering a side-by-side diff of two HTML pages. The idea would be that the diff would show the differences of the HTML.
To clarify, I want to be able to see the side-by-side diffs rendered output. So if I delete a paragraph, the side by sid... | Anyone have a diff algorithm for rendered HTML? | CC BY-SA 3.0 | 0 | 2008-08-28T06:33:37.863 | 2015-01-05T21:57:59.760 | 2011-08-27T22:23:26.123 | 1,288 | 598 | [
"javascript",
"html",
"diff"
] |
31,724 | 2 | null | 31,297 | 0 | null | Not an expert with this stuff but it looks like the first 3 parts of the address are being masked out. Is it possible that the mobile device is being given a network mask of:
```
255.255.255.0
```
As to reach beyond the range of the first 3 parts you need the mask to be:
```
255.255.0.0
```
This may be an oversim... | null | CC BY-SA 4.0 | null | 2008-08-28T06:34:59.607 | 2018-05-18T09:12:03.557 | 2018-05-18T09:12:03.557 | 886,001 | 1,120 | null |
31,731 | 2 | null | 6,484 | 22 | null | For .NET, you could use something like [TypeMock](https://www.typemock.com/), which uses the profiling API and allows you to hook into calls to nearly anything.
| null | CC BY-SA 4.0 | null | 2008-08-28T06:44:22.923 | 2022-06-15T03:58:48.437 | 2022-06-15T03:58:48.437 | 1,402,846 | 598 | null |
31,730 | 2 | null | 31,297 | 0 | null | This looks like a network issue, unless there's an odd bug in .Net CF that doesn't allow you to traverse subnets in certain situations (I can find no evidence of such a thing from googling).
Can you get any support from the network/IT team? Also, have you tried it from a different subnet? I.e. not the same as the XP m... | null | CC BY-SA 2.5 | null | 2008-08-28T06:43:41.363 | 2008-08-28T06:43:41.363 | null | null | 1,521 | null |
31,698 | 2 | null | 31,693 | 1 | null | The biggest complaint is type erasure. In that, generics are not enforced at runtime. [Here's a link to some Sun docs on the subject](http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html).
> Generics are implemented by type
erasure: generic type information is
present only at compile time, after
wh... | null | CC BY-SA 2.5 | null | 2008-08-28T05:15:45.163 | 2008-08-28T05:15:45.163 | null | null | 828 | null |
31,747 | 2 | null | 31,466 | 0 | null | I occasionally get unexpected 404 errors with GETs objects that are part of a preceeding LIST but new to the bucket, and other misc. errors (eg: 403 on my access id and secret key), but nothing catastrophic.
My code runs server side, so I've put in some robust error handling and logging. I think this is a wise thin... | null | CC BY-SA 2.5 | null | 2008-08-28T06:55:26.453 | 2008-08-28T06:55:26.453 | null | null | 2,961 | null |
31,751 | 2 | null | 30,928 | 1 | null | @Soeren,
You can most definitely embed IE with the Javascript Markdown editor inside a Windows Forms application.
| null | CC BY-SA 2.5 | null | 2008-08-28T06:59:42.543 | 2008-08-28T06:59:42.543 | null | null | 1,554 | null |
31,728 | 2 | null | 31,722 | 1 | null | So, you expect
```
<font face="Arial">Hi Mom</font>
```
and
```
<span style="font-family:Arial;">Hi Mom</span>
```
to be considered the same?
The output depends very much on the User Agent. Like [Ionut Anghelcovici suggests](https://stackoverflow.com/questions/31722#31727), make an image. Do one for every brow... | null | CC BY-SA 2.5 | null | 2008-08-28T06:43:29.913 | 2008-08-28T06:43:29.913 | 2017-05-23T11:54:56.807 | -1 | 257 | null |
31,732 | 2 | null | 31,627 | 5 | null | I've recently started using [Mercurial](http://www.selenic.com/mercurial/wiki/) for some of my work. It's a distributed system like Git but seems easier to use and seems far better supported on Windows, the latter of which was crucial for me.
With distributed source code control every user has a complete local copy o... | null | CC BY-SA 2.5 | null | 2008-08-28T06:45:37.973 | 2008-08-28T06:45:37.973 | null | null | 3,171 | null |
31,752 | 2 | null | 29,700 | 0 | null | Have a look at the [Guided tour of WPF](http://joshsmithonwpf.wordpress.com/a-guided-tour-of-wpf/) by Josh Smith. I also really like Adam's Nathan book WPF Presentation Unleashed.
| null | CC BY-SA 2.5 | null | 2008-08-28T07:00:21.213 | 2008-08-28T07:00:21.213 | null | null | 1,013 | null |
31,725 | 2 | null | 31,366 | 5 | null | `disable-output-escaping` isn't evil in itself, but there are only few cases where you should use it and this isn't one of them. In XSLT you work with trees, not markup string. Here's an XSTL 1.0 solution:
```
<xsl:template match="/STORIES/STORY">
<component>
<xsl:if test="ARTICLEBODY">
<xsl:call-template ... | null | CC BY-SA 2.5 | null | 2008-08-28T06:38:45.697 | 2008-08-28T06:38:45.697 | null | null | 2,679 | null |
31,734 | 2 | null | 30,342 | 1 | null | It looks like you've got fewer items in q than you were expecting when you started iterating. Your script may be trying to access q[q.length], i.e. the element after the last element.
Could it be that your successful request has been popped from the queue, and you have a race condition? Are you trying to abort a reque... | null | CC BY-SA 2.5 | null | 2008-08-28T06:46:26.397 | 2008-08-28T06:46:26.397 | null | null | 1,157 | null |
31,768 | 2 | null | 31,572 | 15 | null | Almost all games have a need for the fast-reacting properties (and to a lesser extent, the connectionless properties) of UDP and the reliability of TCP. What they do is they build their own reliable protocol on top of UDP. This gives them the ability to just burst packets to whereever and optionally make them reliable,... | null | CC BY-SA 2.5 | null | 2008-08-28T07:16:35.153 | 2008-09-01T04:24:25.787 | 2008-09-01T04:24:25.787 | 2,928 | 2,928 | null |
31,727 | 2 | null | 31,722 | -6 | null | I believe a good way to do this is to [render the HTML to an image](http://weblogs.mozillazine.org/roc/archives/2005/05/rendering_web_p.html) and then use some [diff tool that can compare images](http://www.scootersoftware.com/) to spot the differences.
| null | CC BY-SA 2.5 | null | 2008-08-28T06:42:22.037 | 2008-08-28T06:42:22.037 | null | null | null | null |
31,765 | 2 | null | 29,856 | 1 | null | Hyposaurus,
It is possible to have multiple versions of Python installed simultaneously. Installing two versions in parallel solves your problem and helps avoid the problems laid out by Jason Baker above.
The easiest way, and the way I recommend, is to use [MacPorts](http://www.macports.org/), which will install all... | null | CC BY-SA 2.5 | null | 2008-08-28T07:16:15.437 | 2008-08-28T07:16:15.437 | null | null | 2,774 | null |
31,782 | 2 | null | 31,581 | 7 | null | I think you might want to rethink your design (that is, if you have control over the design yourself). If you're using so many timers that this is actually a concern for you, there's clearly some potential for consolidation there.
Here's a good article from MSDN Magazine from a few years ago that compares the three av... | null | CC BY-SA 2.5 | null | 2008-08-28T07:23:25.433 | 2008-08-28T07:23:25.433 | null | null | 1,975,282 | null |
31,726 | 2 | null | 18,787 | 6 | null | The method
```
ViewData.Eval("DisplayMessage")
```
should work for you.
| null | CC BY-SA 3.0 | null | 2008-08-28T06:41:08.170 | 2013-03-21T05:57:19.553 | 2013-03-21T05:57:19.553 | 951,830 | 598 | null |
31,788 | 2 | null | 31,711 | 1 | null | According to [this](http://www.lightmaker-manchester.com/blog/post.aspx?id=f081ca81-88a1-4958-9e15-b935d52e99cd) you need to call VEMap.GetDirections every 25 points until you reach the end of the route and then plot a custom shape of the complete route.
| null | CC BY-SA 2.5 | null | 2008-08-28T07:28:09.430 | 2008-08-28T07:28:09.430 | null | null | 3,139 | null |
31,778 | 2 | null | 31,693 | 1 | null | In Java, generics are compiler level only, so you get:
```
a = new ArrayList<String>()
a.getClass() => ArrayList
```
Note that the type of 'a' is an array list, not a list of strings. So the type of a list of bananas would equal() a list of monkeys.
So to speak.
| null | CC BY-SA 2.5 | null | 2008-08-28T07:22:31.113 | 2008-08-28T07:22:31.113 | null | null | 974 | null |
31,790 | 1 | 31,798 | null | 10 | 16,692 | How many ServiceContracts can a WCF service have?
Specifically, since a ServiceContract is an attribute to an interface, how many interfaces can I code into one WCF web service? Is it a one-to-one?
Does it make sense to separate the contracts across multiple web services?
| How many ServiceContracts can a WCF service have? | CC BY-SA 3.0 | 0 | 2008-08-28T07:28:17.857 | 2012-01-25T21:28:51.910 | 2012-01-25T21:28:51.910 | 63,550 | 831 | [
"wcf",
"web-services"
] |
31,784 | 2 | null | 31,572 | 0 | null | Yoy should take a look at the Norm (NACK-Oriented Reliable Multicast) specification. You can find [information about Norm here](http://cs.itd.nrl.navy.mil/work/norm/index.php).
> The NORM protocol is designed to
provide end-to-end reliable transport
of bulk data objects or streams over
generic IP multicast routi... | null | CC BY-SA 2.5 | null | 2008-08-28T07:24:24.120 | 2008-08-28T07:24:24.120 | null | null | 2,695 | null |
31,792 | 2 | null | 28,708 | 6 | null | I've read something similar to what you said in the past, Lars. Unfortunately, I'm somewhat restricted with what I can do with the machine in question (in other words, I can't go creating user groups willy-nilly: it's a server, not just some random PC).
Thanks for the answers, Will and Lars. Unfortunately, they didn't... | null | CC BY-SA 2.5 | null | 2008-08-28T07:30:55.510 | 2008-08-28T07:30:55.510 | null | null | 1,975,282 | null |
31,794 | 1 | 31,796 | null | 6 | 2,642 | In .net frameworks 1.1, I use
```
System.Configuration.ConfigurationSettings.AppSettings["name"];
```
for application settings. But in .Net 2.0, it says ConfigurationSettings is obsolete and to use ConfigurationManager instead. So I swapped it out with this:
```
System.Configuration.ConfigurationManager.AppSettin... | Help accessing application settings using ConfigurationManager | CC BY-SA 2.5 | null | 2008-08-28T07:31:48.580 | 2009-03-09T17:46:54.703 | 2008-08-28T09:15:50.267 | 905 | 2,121 | [
"c#",
".net",
".net-2.0"
] |
31,798 | 2 | null | 31,790 | 1 | null | You can have a service implement all the service contracts you want. I mean, I don't know if there is a limit, but I don't think there is.
That's a neat way to separate operations that will be implemented by the same service in several conceptually different service contract interfaces.
| null | CC BY-SA 2.5 | null | 2008-08-28T07:36:29.363 | 2008-08-28T07:36:29.363 | null | null | 2,954 | null |