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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13,983 | 2 | null | 13,963 | 4 | null | I was looking at almost this exact problem the other day: [this article](http://trackerrealm.com/blogs/2007/04/tokenize-string-with-c-regular.html) on string tokenizing is exactly what you need. You'll want to define your tokens as something like:
```
@"(?<level>\s) | " +
@"(?<term>[^:\s]) | " +
@"(?<separator>:... | null | CC BY-SA 2.5 | null | 2008-08-17T22:25:55.433 | 2008-08-17T22:25:55.433 | null | null | 1,370 | null |
13,993 | 2 | null | 13,881 | 1 | null | there is a an [Opensource Project](http://picasa2flickr.sourceforge.net/index.html#about) which created a "Upload To FlickR" Plugin. Maybe you could use it as an startingpoint...
| null | CC BY-SA 2.5 | null | 2008-08-17T22:41:06.087 | 2008-08-17T22:41:06.087 | null | null | 1,462 | null |
14,008 | 1 | 1,030,053 | null | 60 | 33,491 | I've been looking for some good genetic programming examples for C#. Anyone knows of good online/book resources? Wonder if there is a C# library out there for Evolutionary/Genetic programming?
| Genetic Programming in C# | CC BY-SA 2.5 | 0 | 2008-08-17T23:25:45.733 | 2017-08-03T09:33:35.573 | 2010-05-17T03:14:49.027 | 164,901 | 877 | [
"c#",
"genetic-algorithm",
"genetic-programming",
"evolutionary-algorithm"
] |
14,009 | 2 | null | 14,008 | 24 | null | MSDN had an article last year about genetic programming: [Genetic Algorithms: Survival of the Fittest with Windows Forms](http://msdn.microsoft.com/en-us/magazine/cc163934.aspx)
| null | CC BY-SA 2.5 | null | 2008-08-17T23:28:18.380 | 2008-08-17T23:28:18.380 | null | null | 536 | null |
13,990 | 2 | null | 13,963 | 12 | null | > I considered it, but I'm not going to use XML. I am going to be writing this stuff by hand, and hand editing XML makes my brain hurt. :')
Have you looked at [YAML](http://www.yaml.org/)?
You get the benefits of XML without all the pain and suffering. It's used extensively in the ruby community for things like confi... | null | CC BY-SA 2.5 | null | 2008-08-17T22:39:50.833 | 2008-08-17T22:46:20.180 | 2008-08-17T22:46:20.180 | 234 | 234 | null |
14,010 | 2 | null | 14,008 | 6 | null | I saw a good high-level discussion of it on channel9 by Mike Swanson at [http://channel9.msdn.com/posts/Charles/Algorithms-and-Data-Structures-Mike-Swanson-Genetic-Session-Scheduler/](http://channel9.msdn.com/posts/Charles/Algorithms-and-Data-Structures-Mike-Swanson-Genetic-Session-Scheduler/)
| null | CC BY-SA 2.5 | null | 2008-08-17T23:28:25.993 | 2008-08-17T23:28:25.993 | null | null | 748 | null |
14,033 | 2 | null | 12,374 | 0 | null | The problem with unit testing any kind of data-related programming is that you have to have a reliable set of test data to start with. A lot also depends on the complexity of the stored proc and what it does. It would be very hard to automate unit testing for a very complex procedure that modified many tables.
Some of... | null | CC BY-SA 2.5 | null | 2008-08-18T00:07:13.277 | 2008-08-18T00:07:13.277 | null | null | 1,577 | null |
14,032 | 1 | 14,598 | null | 28 | 75,252 | I've recently switched to Linux on my work machine and, new to the Linux desktop environment, I'd like to find a decent ERD tool for database design. Booting back into my Windows partition every time I need to create a diagram is going to get unpleasant quickly. I looked at Dia, but didn't see any DB tools - only UML... | What's a Good Database ERD Tool for Linux? | CC BY-SA 2.5 | 0 | 2008-08-18T00:01:42.230 | 2019-01-18T17:15:50.623 | null | null | 1,665 | [
"linux",
"ubuntu",
"erd"
] |
14,006 | 2 | null | 9,304 | 1 | null | In my opinion, you should always use auto-properties instead of public fields. That said, here's a compromise:
Start off with an [internal](http://msdn.microsoft.com/en-us/library/7c5ka91b.aspx) field using the naming convention you'd use for a property. When you first either
- -
Do this:
1. rename the field
2.... | null | CC BY-SA 2.5 | null | 2008-08-17T23:19:30.987 | 2008-08-17T23:19:30.987 | null | null | 150 | null |
14,029 | 1 | 40,687 | null | 7 | 5,358 | I have a ListView control, and I'm trying to figure out the easiest/best way to disallow changing the selected row(s), without the selected row(s).
I know there's a `HideSelection` property, but that only works when the `ListView` is still enabled (but not focused). I need the selection to be viewable even when the L... | Disabling a ListView in C#, but still showing the current selection | CC BY-SA 3.0 | null | 2008-08-17T23:59:38.940 | 2011-10-26T21:08:40.890 | 2011-10-26T21:08:40.890 | 63,550 | 369 | [
"c#",
".net",
"winforms",
"listview"
] |
14,035 | 2 | null | 14,031 | 0 | null | I'm not a fan, personally. I'll use them, but only when I uncover a bottleneck in the code that can be cleared by moving actions into a trigger. Generally, I prefer simplicity and one way to keep things simple is to keep logic in one place - the application. I've also worked on jobs where access is very compartmenta... | null | CC BY-SA 2.5 | null | 2008-08-18T00:09:32.510 | 2008-08-18T00:09:32.510 | null | null | 1,665 | null |
14,034 | 2 | null | 14,031 | 2 | null | I work with web and winforms apps in c# and I triggers with a passion. I have never come across a situation where I could justify using a trigger over moving that logic into the business layer of the application and replicating the trigger logic there.
I don't do any DTS type work or anything like that, so there migh... | null | CC BY-SA 2.5 | null | 2008-08-18T00:08:53.853 | 2008-08-18T00:08:53.853 | null | null | 493 | null |
14,031 | 1 | 14,129 | null | 18 | 5,917 | In the past I've never been a fan of using triggers on database tables. To me they always represented some "magic" that was going to happen on the database side, far far away from the control of my application code. I also wanted to limit the amount of work the DB had to do, as it's generally a shared resource and I al... | Database triggers | CC BY-SA 2.5 | 0 | 2008-08-18T00:01:19.203 | 2013-11-16T02:02:52.353 | 2008-08-18T00:05:04.467 | 380 | 1,680 | [
"sql-server",
"database-design",
"triggers"
] |
14,037 | 2 | null | 14,031 | 1 | null | I find myself bypassing triggers when doing bulk data imports. I think it's justified in such circumstances.
If you end up bypassing the triggers very often though, you probably need to take another look at what you put them there for in the first place.
In general, I'd vote for "they serve a purpose in some scenari... | null | CC BY-SA 2.5 | null | 2008-08-18T00:13:45.310 | 2008-08-18T00:13:45.310 | null | null | 369 | null |
14,048 | 2 | null | 9,304 | 8 | null | Auto-properties are as much a black magic as anything else in C#. Once you think about it in terms of compiling down to IL rather than it being expanded to a normal C# property first it's a lot less black magic than a lot of other language constructs.
| null | CC BY-SA 2.5 | null | 2008-08-18T00:27:08.307 | 2008-08-18T00:27:08.307 | null | null | 214 | null |
14,051 | 2 | null | 14,031 | 0 | null | I first used triggers a couple of weeks ago. We changed over a production server from SQL 2000 to SQL 2005 and we found that the drivers were behaving differently with NText fields (storing a large XML document), dropping off the last byte. I used a trigger as a temporary fix to add an extra dummy byte (a space) to t... | null | CC BY-SA 2.5 | null | 2008-08-18T00:30:46.210 | 2008-08-18T00:30:46.210 | null | null | 1,682 | null |
14,036 | 2 | null | 9,033 | 2 | null | > I think if you have to use nullable
types, it's better to use Nullable<.T>
rather than the question mark
notation. It makes it eye-achingly
obvious that magic is occurring. Not
sure why anyone would ever want to use
Nullable<.bool> though.
In a VB.NET Web service where the parameter might not be passed t... | null | CC BY-SA 3.0 | null | 2008-08-18T00:10:35.893 | 2012-02-13T21:58:36.123 | 2012-02-13T21:58:36.123 | 63,550 | 1,677 | null |
14,039 | 2 | null | 14,031 | 2 | null | Triggers can be very helpful. They can also be very dangerous. I think they're fine for house cleaning tasks like populating audit data (created by, modified date, etc) and in some databases can be used for referential integrity.
But I'm not a big fan of putting lots of business logic into them. This can make support ... | null | CC BY-SA 3.0 | null | 2008-08-18T00:18:13.863 | 2013-11-16T02:02:52.353 | 2013-11-16T02:02:52.353 | 1,577 | 1,577 | null |
14,060 | 2 | null | 14,031 | 0 | null | Honestly the only time I use triggers to simulate a unique index that is allowed to have NULL that don't count for the uniqueness.
| null | CC BY-SA 2.5 | null | 2008-08-18T00:40:58.123 | 2008-08-18T00:40:58.123 | null | null | 17 | null |
14,063 | 2 | null | 14,008 | 4 | null | Do you mean actual genetic programming, as opposed to genetic algorithms in general?
If so, C#/.net isn't the best language for it. LISP, for example, has always been a mainstay of GP.
However, if you must, you're probably going to want to dynamically generate CIL / MSIL. You could do this using [System.Reflection.... | null | CC BY-SA 2.5 | null | 2008-08-18T00:54:11.420 | 2008-08-18T00:54:11.420 | null | null | 1,164,871 | null |
14,065 | 2 | null | 14,061 | 0 | null | Make sure event referencing elements are with in the object they are referencing, like text boxes in the form control. Or if that can't be prevented. Create a static event on a global helper class and then monitor the global helper class for events. If these two steps cannot be done try using a WeakReference, they a... | null | CC BY-SA 2.5 | null | 2008-08-18T00:58:04.283 | 2008-08-18T00:58:04.283 | null | null | 17 | null |
14,064 | 2 | null | 11,857 | 1 | null | I develop on Linux also, which is one reason I came up with the solution I have. I was wondering how the SourceGear options work in this respect? I have used Vault before, which in my experience wasn't too bad, but I know it is mostly Windows based. I think I read at one point that they have a client that can work o... | null | CC BY-SA 2.5 | null | 2008-08-18T00:54:23.213 | 2008-09-04T14:47:39.070 | 2008-09-04T14:47:39.070 | 1,117 | 1,117 | null |
14,066 | 2 | null | 14,008 | 10 | null | You might be able to implement genetic programming using LINQ expression trees -- it's more likely to generate something usable than random IL generation.
| null | CC BY-SA 2.5 | null | 2008-08-18T01:00:07.010 | 2008-08-18T01:00:07.010 | null | null | 533 | null |
14,061 | 1 | 14,337 | null | 12 | 6,601 | I've created an "attached behaviour" in my WPF application which lets me handle the Enter keypress and move to the next control. I call it EnterKeyTraversal.IsEnabled, and you can see the code on my blog [here](http://www.madprops.org/blog/enter-to-tab-as-an-attached-property/).
My main concern now is that I may have ... | Preventing Memory Leaks with Attached Behaviours | CC BY-SA 2.5 | 0 | 2008-08-18T00:49:33.957 | 2016-07-01T11:59:58.030 | null | null | 615 | [
".net",
"wpf",
"memory"
] |
14,057 | 2 | null | 13,963 | 1 | null | Using a library is almost always preferably to rolling your own. Here's a quick list of "Oh I'll never need that/I didn't think about that" points which will end up coming to bite you later down the line:
- - - - - -
Like others have suggested, YAML looks like your best bet.
| null | CC BY-SA 3.0 | null | 2008-08-18T00:35:36.310 | 2015-12-29T02:45:57.650 | 2015-12-29T02:45:57.650 | 1,704,458 | 214 | null |
14,068 | 2 | null | 14,029 | 1 | null | There are two options, change the selected rows disabled colors. Or change all the other rows to simulate they are disabled except for the selected one. The first option is obviously the easiest, and the second option obviously is going to need some extra protections.
I have actually done the first option before a... | null | CC BY-SA 2.5 | null | 2008-08-18T01:01:35.790 | 2008-08-18T01:01:35.790 | null | null | 17 | null |
14,058 | 2 | null | 14,031 | 9 | null | Think of a database as a great big object - after each call to it, it ought to be in a logically consistent state.
Databases expose themselves via tables, and keeping tables and rows consistent can be done with triggers. Another way to keep them consistent is to disallow direct access to the tables, and only allowing... | null | CC BY-SA 3.0 | null | 2008-08-18T00:37:45.760 | 2012-03-28T22:40:54.247 | 2012-03-28T22:40:54.247 | 1,219,121 | 257 | null |
14,081 | 2 | null | 14,031 | 0 | null | Total fan,
but really have to use it sparingly when,
- Need to maintain consistency (especially when dimension tables are used in a warehouse and we need to relate the data in the fact table with their proper dimension . Sometime, the proper row in the dimension table can be very expensive to compute so you want the... | null | CC BY-SA 2.5 | null | 2008-08-18T01:32:48.143 | 2008-08-18T01:32:48.143 | null | null | null | null |
14,067 | 2 | null | 14,031 | 0 | null | > As to reducing the amount of work: databases are stunningly efficient when they don't have to deal with the outside world; you'd be really surprised how much even process switching hurts performance. That's another upside of stored procedures: rather than a dozen calls to the database (and all the associated round tr... | null | CC BY-SA 2.5 | null | 2008-08-18T01:01:10.017 | 2008-08-18T01:01:10.017 | null | null | 493 | null |
14,085 | 2 | null | 13,021 | 1 | null | As an alternative to a dot or an underscore, you could use the dollar sign character:
```
var namespaces$com$example = "data";
```
| null | CC BY-SA 2.5 | null | 2008-08-18T01:38:36.340 | 2008-08-18T01:38:36.340 | null | null | 1,659 | null |
14,090 | 2 | null | 13,938 | 0 | null | You can use a VS macro to parse the XML file and then call nunit.exe with the /fixture command line argument to specify which classes to run or generate a selection save file and run nunit using that.
| null | CC BY-SA 2.5 | null | 2008-08-18T01:47:11.017 | 2008-08-18T01:47:11.017 | null | null | 1,659 | null |
14,088 | 2 | null | 9,033 | 175 | null | Using @ for variable names that are keywords.
```
var @object = new object();
var @string = "";
var @if = IpsoFacto();
```
| null | CC BY-SA 2.5 | null | 2008-08-18T01:45:02.193 | 2008-08-18T01:45:02.193 | null | null | 1,659 | null |
14,091 | 2 | null | 14,032 | 1 | null | No recommendations as such, but,
You might want to broaden your search to Eclipse plugins such as [http://eclipse-erd.sourceforge.net/](http://eclipse-erd.sourceforge.net/).
Apart from that there are various ERD tools you have to pay for like [Data Architect](http://www.thekompany.com/products/dataarchitect/).
| null | CC BY-SA 2.5 | null | 2008-08-18T01:47:51.843 | 2008-08-18T01:47:51.843 | null | null | 1,666 | null |
14,092 | 2 | null | 14,061 | 3 | null | @Nick Yeah, the thing with attached behaviours is that by definition they're not in the same object as the elements whose events you're handling.
I think the answer lies within using WeakReference somehow, but I've not seen any simple code samples to explain it to me. :)
| null | CC BY-SA 2.5 | null | 2008-08-18T01:51:27.593 | 2008-08-18T01:51:27.593 | null | null | 615 | null |
14,102 | 2 | null | 11,879 | 0 | null | As others have said, it is possible. However, if both the service and client use an object that has the exact same domain behavior on both sides, you probably didn't need a service in the first place.
| null | CC BY-SA 2.5 | null | 2008-08-18T02:21:44.473 | 2008-08-18T02:21:44.473 | null | null | 1,644 | null |
14,108 | 2 | null | 14,106 | 0 | null | What about getting everyone's input? Everyone that a person is working with will have a unique insight into that person. One person might think someone is a slacker, while another person sees that they are spending a lot of time planning before they start coding, etc.
| null | CC BY-SA 2.5 | null | 2008-08-18T02:38:16.797 | 2008-08-18T02:38:16.797 | null | null | 55 | null |
14,112 | 2 | null | 14,032 | 2 | null | Check out SQL Developer: [[http://sqldeveloper.solyp.com/download/index.html]](http://sqldeveloper.solyp.com/download/index.html])
| null | CC BY-SA 2.5 | null | 2008-08-18T02:49:53.590 | 2008-08-18T02:49:53.590 | null | null | 1,693 | null |
14,087 | 1 | null | null | 31 | 15,031 |
How would you go adding automated testing to a game?
I believe you can unit test a lot of the game engine's functionality (networking, object creation, memory management, etc), but is it possible to automate test the actual game itself?
I'm not talking about gameplay elements (like Protoss would beat Zerg in map X)... | Automated testing a game | CC BY-SA 2.5 | 0 | 2008-08-18T01:44:57.153 | 2016-05-02T09:51:05.100 | 2009-12-07T08:06:40.873 | 1,599 | 1,599 | [
"unit-testing",
"automated-tests"
] |
14,106 | 1 | 14,137 | null | 10 | 3,725 | A few weeks ago, I was assigned to evaluate all our programmers. I'm very uncomfortable with this since I was the one who taught everyone the shop's programming language (they all got out of college not knowing the language and as luck would have it, I'm very proficient with it.). On the evaluation, I was very biased o... | How would you go about evaluating a programmer? | CC BY-SA 3.0 | 0 | 2008-08-18T02:29:34.177 | 2014-12-15T16:07:59.200 | 2014-12-15T16:07:59.200 | 1,777,090 | 1,599 | [
"evaluation"
] |
14,109 | 2 | null | 2,447 | 1 | null | [Unit testing](https://stackoverflow.com/questions/1383/what-is-unit-testing), [Defense Programming](http://en.wikipedia.org/wiki/Defensive_programming) and lots of logs
Make sure you unit test as early as possible (e.g. the password should be encrypted before sending, the SSL tunnel is working, etc). This would pre... | null | CC BY-SA 2.5 | null | 2008-08-18T02:40:37.040 | 2008-08-18T02:40:37.040 | 2017-05-23T12:09:00.433 | -1 | 1,599 | null |
14,121 | 2 | null | 14,106 | 0 | null | > What about getting everyone's input? Everyone that a person is working with will have a unique insight into that person.
That would work if (1) evaluation is conducted with open doors and (2) you've worked with that person on one project or even on the same module. As the person evaluating them, I couldn't judge th... | null | CC BY-SA 2.5 | null | 2008-08-18T03:05:24.760 | 2008-08-18T03:05:24.760 | null | null | 1,599 | null |
14,122 | 2 | null | 14,106 | 2 | null | I would first consider not necessarily the number of lines of code, but the value of the code that the person adds as reflective of course to what they are assigned to do. Someone told to maintain code verses building a new app is very different. Also consider how the person uses new techniques to make the code relevan... | null | CC BY-SA 2.5 | null | 2008-08-18T03:06:12.917 | 2008-08-18T03:06:12.917 | null | null | 657 | null |
14,126 | 1 | 14,127 | null | 31 | 13,536 | How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order?
| How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order? | CC BY-SA 2.5 | 0 | 2008-08-18T03:15:35.987 | 2009-07-11T19:17:49.180 | 2009-07-11T19:17:49.180 | 95,735 | 1,630 | [
"c++",
"boost-graph"
] |
14,118 | 1 | 14,124 | null | 14 | 13,521 | I'm writing my first Perl app -- an AOL Instant Messenger bot that talks to an Arduino microcontroller, which in turn controls a servo that will push the power button on our sysadmin's server, which freezes randomly every 28 hours or so.
I've gotten all the hard stuff done, I'm just trying to add one last bit of code... | How can I test STDIN without blocking in Perl? | CC BY-SA 3.0 | 0 | 2008-08-18T03:02:10.663 | 2019-02-21T21:35:56.237 | 2016-04-11T16:18:07.620 | 2,255,089 | null | [
"perl",
"stdin"
] |
14,135 | 1 | 14,154 | null | 9 | 1,019 | I'm introducing Subversion into our web shop. I want to want the checked in files to be uploaded into the server via FTP (and as they get use to Subversion, via SFTP). The files are sent to a release candidate page for testing purposes. A script can be called to move the files into production.
My question is this: How... | Subversion and web development | CC BY-SA 2.5 | 0 | 2008-08-18T03:33:13.987 | 2009-02-04T18:52:38.123 | 2008-08-18T18:34:21.640 | 1,220 | 1,599 | [
"svn",
"ftp"
] |
14,127 | 2 | null | 14,126 | 36 | null | ```
// Boost DFS example on an undirected graph.
// Create a sample graph, traverse its nodes
// in DFS order and print out their values.
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/depth_first_search.hpp>
#include <iostream>
using namespace std;
typedef boost::adjacency_list<boost::listS, boost::... | null | CC BY-SA 2.5 | null | 2008-08-18T03:17:39.603 | 2008-08-18T03:17:39.603 | null | null | 1,630 | null |
14,124 | 2 | null | 14,118 | 20 | null | The Perl built-in is [select()](http://perldoc.perl.org/functions/select.html), which is a pass-through to the `select()` system call, but for sane people I recommend [IO::Select](http://search.cpan.org/dist/IO/lib/IO/Select.pm).
Code sample:
```
#!/usr/bin/perl
use IO::Select;
$s = IO::Select->new();
$s->add(\*STD... | null | CC BY-SA 2.5 | null | 2008-08-18T03:12:06.150 | 2009-07-15T04:26:55.570 | 2009-07-15T04:26:55.570 | 1,337 | 430 | null |
14,129 | 2 | null | 14,031 | 12 | null | Triggers are generally used incorrectly, introduce bugs and therefore should be avoided. Never design a trigger to do integrity constraint checking that crosses rows in a table (e.g "the average salary by dept cannot exceed X).
[Tom Kyte](http://asktom.oracle.com), VP of Oracle has indicated that he would prefer to [... | null | CC BY-SA 2.5 | null | 2008-08-18T03:23:39.497 | 2008-10-14T16:56:21.270 | 2008-10-14T16:56:21.270 | 700 | 700 | null |
14,136 | 2 | null | 14,087 | 0 | null | This doesn't really answer your question but I was listening to a podcast on [Pex from microsoft](http://research.microsoft.com/pex/) which does a similar thing to the solution you're proposing and when I was listening to it I remember thinking that it would be really interesting to see if it would be able to test game... | null | CC BY-SA 2.5 | null | 2008-08-18T03:34:25.653 | 2008-08-18T03:34:25.653 | null | null | 493 | null |
14,140 | 2 | null | 14,135 | 1 | null | I think what you're looking for is something like integration with an automatic build script. I have used [CruiseControl](http://cruisecontrol.sourceforge.net/) to do a similar thing with an ASP.Net application. I don't know your exact requirements but I'd bet you could get it to do what you want.
| null | CC BY-SA 2.5 | null | 2008-08-18T03:36:43.260 | 2008-08-18T03:36:43.260 | null | null | 493 | null |
14,137 | 2 | null | 14,106 | 11 | null | Gets things done is really all you need to evaluate a developer. After that you look at the quality that the developer generates. Do they write unit tests and believe in testing and being responsible for the code they generate? Do they take initiative to fix bugs without being assigned them? Are they passionate abo... | null | CC BY-SA 2.5 | null | 2008-08-18T03:34:29.817 | 2008-08-18T03:34:29.817 | null | null | 1,117 | null |
14,138 | 1 | 72,787 | null | 2 | 9,418 | I installed the wxWidgets source code, compiled it and am linking the libraries thus obtained with my application code. Now I need to use OpenGL in my wxWidgets application. How do I enable this?
| Enabling OpenGL in wxWidgets | CC BY-SA 2.5 | 0 | 2008-08-18T03:34:30.723 | 2014-06-16T02:12:48.490 | null | null | 1,630 | [
"opengl",
"wxwidgets"
] |
14,147 | 2 | null | 14,135 | 1 | null | Post commit scripts are useful for this. Essentially on every commit a script is called after the event, which you can use to perform an svn export to where-ever.
An interesting [article](http://arstechnica.com/articles/columns/linux/linux-20050406.ars) shows how this might be done, and [this](http://svnbook.red-bean.... | null | CC BY-SA 2.5 | null | 2008-08-18T03:50:11.970 | 2008-08-18T03:50:11.970 | null | null | 716 | null |
14,150 | 2 | null | 14,135 | 1 | null | You can probably use the SVN "hooks" to do this. Basically, you can configure your server to run scripts before or after every checkin. Here's the direct link to the relevant section of the [online book](http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html).
| null | CC BY-SA 2.5 | null | 2008-08-18T03:52:28.783 | 2008-08-18T03:52:28.783 | null | null | 825 | null |
14,141 | 2 | null | 14,138 | -1 | null | (Assume $(WX_WIDGETS_ROOT) is the root directory of your wxWidgets installation.)
1. Open the file $(WX_WIDGETS_ROOT)\include\wx\msw\setup.h
2. Search and find the option wxUSE_GLCANVAS. Change its value from 0 to 1.
3. Recompile the library.
| null | CC BY-SA 2.5 | null | 2008-08-18T03:37:03.603 | 2008-08-18T03:37:03.603 | null | null | 1,630 | null |
14,152 | 2 | null | 10,599 | 1 | null | @Brian Warshaw
That is a really good point you make about not forgetting the users who navigate via the keyboard (uh, me).
Thanks for bringing our attention to that.
| null | CC BY-SA 2.5 | null | 2008-08-18T03:54:16.143 | 2008-08-18T03:54:16.143 | null | null | 242 | null |
14,143 | 2 | null | 14,061 | 0 | null | I just read your blog post and I think you got a bit of misleading advice, Matt. If there is an memory here, then that is a bug in the .NET Framework, and not something you can necessarily fix in your code.
What I think you (and the poster on your blog) are actually talking about here is not actually a leak, but ra... | null | CC BY-SA 2.5 | null | 2008-08-18T03:40:18.403 | 2008-08-18T03:40:18.403 | null | null | 1,975,282 | null |
14,153 | 2 | null | 14,135 | 3 | null | You want to build a script that uses the post commit hook in SubVersion. You can either have the script export from your repository and then FTP to the server, or you can just checkout from your repository into a working directory on your server and call "svn update" on the servers working directory in your post-commit... | null | CC BY-SA 2.5 | null | 2008-08-18T03:54:54.020 | 2008-08-18T03:54:54.020 | null | null | 1,538 | null |
14,148 | 2 | null | 6,126 | 2 | null | Try looking at Functors and Predicates. The Apache Commons project has a great set of objects to allow you to encapsulate conditional logic into objects. Example of their use is available on O'reilly [here](http://www.onjava.com/pub/a/onjava/2004/12/22/jakarta-gems-1.html?page=2). Excerpt of code example:
```
impor... | null | CC BY-SA 2.5 | null | 2008-08-18T03:51:12.607 | 2008-10-14T17:07:27.970 | 2008-10-14T17:07:27.970 | 700 | 700 | null |
14,155 | 1 | null | null | 32 | 39,675 | Other than Notepad++, what text editor do you use to program in Windows?
| Windows-based Text Editors | CC BY-SA 3.0 | 0 | 2008-08-18T04:03:04.660 | 2011-09-14T06:15:00.163 | 2011-09-14T06:15:00.163 | 17,174 | 1,632 | [
"windows",
"editor"
] |
14,164 | 2 | null | 14,135 | 0 | null | I second Orion's idea. If you've got shell access to the server, it's actually extremely easy to use Subversion itself as the deployment tool. Just make sure you have some web server rules set up so that you don't accidentally expose the .svn directories.
| null | CC BY-SA 2.5 | null | 2008-08-18T04:13:18.087 | 2008-08-18T04:13:18.087 | null | null | 1,384 | null |
14,160 | 2 | null | 14,155 | 14 | null | [Textpad](http://www.textpad.com/) is what I would use for random text editing (checking out HTML source, quick hackery, scripts and the like).
For actual Java development it's Eclipse all the way, although people tell me the IDEA is the cat's pyjamas.
| null | CC BY-SA 2.5 | null | 2008-08-18T04:07:42.997 | 2008-08-18T04:13:12.923 | 2008-08-18T04:13:12.923 | 1,666 | 1,666 | null |
14,154 | 2 | null | 14,135 | 3 | null | If you have shell access to your sever, and SVN installed on it (or the ability to install SVN), then your best bet may be just to bypass FTP entirely.
How we deploy our apps is (simplified)
- - -
If any changes need to be made to the server (or directly on the live server itself) it is trivial to use subversion to... | null | CC BY-SA 2.5 | null | 2008-08-18T03:57:18.930 | 2008-08-18T03:57:18.930 | null | null | 234 | null |
14,166 | 2 | null | 14,155 | 8 | null | gvim. I also use Dreamweaver for web stuff.
| null | CC BY-SA 2.5 | null | 2008-08-18T04:13:48.053 | 2008-08-18T04:13:48.053 | null | null | 1,063 | null |
13,918 | 2 | null | 4,884 | 9 | null | What you need to do is attach event listeners to the `div` with `id="results"`. You can do this by adding `onkeyup`, `onkeydown`, etc. attributes to the `div` when you create it or you can attach these using JavaScript.
My recommendation would be that you use an AJAX library like [YUI](http://developer.yahoo.com/yui/)... | null | CC BY-SA 2.5 | null | 2008-08-17T20:48:41.760 | 2008-08-21T02:46:05.673 | 2008-08-21T02:46:05.673 | 1,654 | 1,654 | null |
14,163 | 2 | null | 14,155 | 1 | null | I've always found Visual Studio to be outstanding for code editing. I still think it's pretty much the gold standard for code editing (but I'd love to be proven wrong).
Beyond that, I've used [JCreator](http://www.jcreator.com/) for Java editing. Of course, I've used notepad for basic stuff. I've used a lot of oth... | null | CC BY-SA 2.5 | null | 2008-08-18T04:10:32.053 | 2008-08-18T04:10:32.053 | null | null | 872 | null |
14,159 | 2 | null | 7,558 | 2 | null | It's been a while since I've played with SAP, but I always found the SAP Library to be particularly helpful when I got stuck...
I managed to come up with this one for you:
[http://help.sap.com/saphelp_nw04/helpdata/en/47/aa7a18c80a11d3a6f90000e83dd863/frameset.htm](http://help.sap.com/saphelp_nw04/helpdata/en/47/aa7a1... | null | CC BY-SA 2.5 | null | 2008-08-18T04:07:19.173 | 2008-08-18T04:07:19.173 | null | null | 1,677 | null |
14,176 | 2 | null | 14,155 | 1 | null | going for the easy answer. emacs
| null | CC BY-SA 2.5 | null | 2008-08-18T04:19:34.983 | 2008-08-18T04:19:34.983 | null | null | 1,455 | null |
14,165 | 1 | 14,169 | null | 7 | 2,415 | I'm seeing strange errors when my C++ code has min() or max() calls. I'm using Visual C++ compilers.
| Strange C++ errors with code that has min()/max() calls | CC BY-SA 2.5 | 0 | 2008-08-18T04:13:34.920 | 2017-12-16T06:41:59.323 | 2017-12-16T06:41:59.323 | null | 1,630 | [
"c++",
"c"
] |
14,167 | 2 | null | 6,126 | 0 | null | I like to break each condition into descriptive variables.
```
bool isVar1Valid, isVar2Valid, isVar3Valid, isVar4Valid;
isVar1Valid = ( var1 == 1 )
isVar2Valid = ( var2.Count >= 2 )
isVar3Valid = ( var3 != null )
isVar4Valid = ( var4 != null && var4.IsEmpty() == false )
if ( isVar1Valid && isVar2Valid && isVar3Valid &... | null | CC BY-SA 2.5 | null | 2008-08-18T04:15:01.220 | 2010-05-13T18:15:00.373 | 2010-05-13T18:15:00.373 | 1,632 | 1,632 | null |
14,181 | 2 | null | 14,087 | 2 | null | > Values are so random within the gameplay aspects of development that it would be a far fetched idea to test for absolute values
But we can test deterministic values. For example, a unit test might have Guybrush Threepwood move toward a door (pathfinding), open the door (use command), fail because he doesn't have a k... | null | CC BY-SA 2.5 | null | 2008-08-18T04:24:39.187 | 2008-08-18T04:24:39.187 | null | null | 1,599 | null |
14,177 | 2 | null | 14,165 | 0 | null | Ugh... scope it, dude: `std::min()`, `std::max()`.
| null | CC BY-SA 2.5 | null | 2008-08-18T04:20:09.693 | 2008-08-18T04:20:09.693 | null | null | 825 | null |
14,183 | 2 | null | 13,851 | 0 | null | The real solution:
```
#middle { font-size: 0; line-height: 0; }
```
| null | CC BY-SA 2.5 | null | 2008-08-18T04:28:37.867 | 2008-08-18T04:28:37.867 | null | null | 795 | null |
14,169 | 2 | null | 14,165 | 18 | null | Check if your code is including the header file and either your code or other third-party headers have their own / definitions. If yes, then prepend your inclusion with a definition of like this:
```
#define NOMINMAX
#include <windows.h>
```
| null | CC BY-SA 2.5 | null | 2008-08-18T04:15:34.510 | 2008-08-18T04:15:34.510 | null | null | 1,630 | null |
14,180 | 2 | null | 14,155 | 6 | null | Not everybody uses Notepad++, it's not that good.
# Crimson Editor
[http://www.crimsoneditor.com/images/overview.gif](http://www.crimsoneditor.com/)
| null | CC BY-SA 2.5 | null | 2008-08-18T04:22:19.677 | 2008-08-18T04:22:19.677 | null | null | 795 | null |
14,179 | 2 | null | 14,155 | 22 | null | [GNU Emacs](http://www.gnu.org/software/emacs/windows/ntemacs.html) is my preferred text editor and it works well on Windows (copy/paste actually works as expected) It's also available on all major platforms so you can reuse your knowledge if you jump around OSes like I tend to do.
I really like [JEdit](http://www.jed... | null | CC BY-SA 2.5 | null | 2008-08-18T04:20:59.663 | 2008-08-18T08:03:57.090 | 2008-08-18T08:03:57.090 | 680 | 680 | null |
14,187 | 2 | null | 14,155 | 13 | null | [E-TextEditor](http://e-texteditor.com/)
Is a bit buggy, but beats the pants off any other editors I've used due to it's using the Textmate bundle format (and the bundles) - also gets updated very regularly. I use it every day and would gladly purchase it again.
| null | CC BY-SA 2.5 | null | 2008-08-18T04:32:12.650 | 2008-08-18T04:32:12.650 | null | null | 234 | null |
14,185 | 2 | null | 14,155 | 4 | null | I personally like [ConTEXT](http://www.contexteditor.org/index.html).
A lot of people gave their suggestions for favourite text editor here:
[https://stackoverflow.com/questions/10238/text-editor-or-ide#10391](https://stackoverflow.com/questions/10238/text-editor-or-ide#10391)
| null | CC BY-SA 2.5 | null | 2008-08-18T04:30:12.890 | 2008-08-18T04:48:47.140 | 2017-05-23T10:29:31.030 | -1 | 202 | null |
14,182 | 2 | null | 13,224 | 4 | null | IMHO: The value of `HttpContext.Current.Request.Headers("User-Agent")` is a much safer bet as it actually indicates the browser that is making the request, and not the type of device .
I've learnt from experience that if a smart phone makes a request through a third-party browser to your service, more-often-than-not a... | null | CC BY-SA 2.5 | null | 2008-08-18T04:27:17.060 | 2008-08-18T04:27:17.060 | null | null | 1,677 | null |
14,189 | 2 | null | 14,155 | 19 | null | [UltraEdit](http://www.ultraedit.com/) is my second home. It is a great general purpose text editor.
| null | CC BY-SA 2.5 | null | 2008-08-18T04:35:46.340 | 2009-01-28T09:18:31.490 | 2009-01-28T09:18:31.490 | 11,721 | 731 | null |
14,190 | 2 | null | 14,155 | 4 | null | I have used [UltraEdit](http://www.ultraedit.com/) for years... If I'm working on a project I prefer to use a real IDE, but nothing beats it for quickly making changes to source files, or especially for those small PHP projects where you're just hacking away anyway. The killer feature for me is the compare functionalit... | null | CC BY-SA 2.5 | null | 2008-08-18T04:36:07.587 | 2008-08-18T04:36:07.587 | null | null | 291 | null |
14,195 | 2 | null | 14,165 | 0 | null | I haven't used it in years but from memory boost assigns min and max too, possibly?
| null | CC BY-SA 2.5 | null | 2008-08-18T04:49:15.377 | 2008-08-18T04:49:15.377 | null | null | 234 | null |
14,194 | 2 | null | 13,786 | 0 | null | It depends on your target audience and if you think you can afford to alienate users. If you are making a geeky web app and you think most users will use firefox, then don't worry about IE6. I would launch with it working in Firefox, IE7, and Safari and look at who goes to your site. If you see the need to make it work... | null | CC BY-SA 2.5 | null | 2008-08-18T04:48:14.130 | 2008-08-18T04:48:14.130 | null | null | 1,632 | null |
14,188 | 2 | null | 14,155 | 5 | null | Commercial product (Windows): [UltraEdit](http://www.ultraedit.com/).
Freeware (Windows): [Notepad++](http://notepad-plus.sourceforge.net/uk/site.htm), [PSPad](http://www.pspad.com/).
Cross-Platform: [JEdit](http://www.jedit.org/). It's written in Java and runs on almost anything.
If you don't mind taking a perform... | null | CC BY-SA 2.5 | null | 2008-08-18T04:33:41.710 | 2008-08-18T04:33:41.710 | null | null | 958 | null |
14,197 | 2 | null | 14,135 | 2 | null | I think you should probably use svn export rather than svn checkout for deployments, so you don't have those .svn directories muddying up your production backup jobs. svn export is a "clean" checkout.
I'd also create a script that handles it all for you. Depending on how your code is structured, you can often version ... | null | CC BY-SA 2.5 | null | 2008-08-18T04:56:25.347 | 2008-08-18T04:56:25.347 | null | null | 291 | null |
14,192 | 2 | null | 5,629 | 143 | null | Well consider this:
When serving as text/html, all you need a doctype for is to trigger standards mode. Beyond that, the doctype does nothing as far as browsers are concerned.
When serving as text/html, whether you use XHTML markup or HTML markup, it's treated by browsers as HTML.
So, really it comes down to using t... | null | CC BY-SA 2.5 | null | 2008-08-18T04:42:59.413 | 2008-08-18T05:22:43.110 | 2008-08-18T05:22:43.110 | 1,697 | 1,697 | null |
14,202 | 2 | null | 13,786 | 5 | null | It depends on your audience, and whether the cost (development, maintenance, opportunity cost of developing to a 7 year old lowest common denominator) is worth it to gain those IE6 viewers.
Also worth asking - is the IE6 demographic likely to care about or use your site? I think a large amount of IE6 users don't care ... | null | CC BY-SA 2.5 | null | 2008-08-18T05:05:58.730 | 2008-08-18T05:05:58.730 | null | null | 5 | null |
14,199 | 2 | null | 14,155 | 4 | null | I strictly use jEdit.
| null | CC BY-SA 2.5 | null | 2008-08-18T05:01:53.293 | 2008-08-18T05:01:53.293 | null | null | 479 | null |
14,054 | 2 | null | 13,927 | 39 | null | You need to use `-removeObserver:forKeyPath:` to remove the observer before `-[NSObject dealloc]` runs, so yes, doing it in the `-dealloc` method of your class would work.
Better than that though would be to have a deterministic point where whatever owns the object that's doing the observing could tell it it's done an... | null | CC BY-SA 2.5 | null | 2008-08-18T00:33:13.943 | 2008-08-18T00:33:13.943 | null | null | 714 | null |
14,210 | 2 | null | 13,786 | 0 | null | Notice that some users in the Enterprise have no choice.
So if you target Enterprise customers, notice they are still on IE6. In general, Enterprise moves slower than consumer.
| null | CC BY-SA 2.5 | null | 2008-08-18T05:25:38.253 | 2008-08-18T05:25:38.253 | null | null | 350 | null |
14,201 | 2 | null | 14,155 | 0 | null | I mostly just use Notepad++, but I like [BabelPad](http://www.babelstone.co.uk/Software/BabelPad.html) when I need to open a file in a unicode path or when I need to have more control over unicode stuff.
I like EditPlus too. You can save a file as a template and create a new instance of it under the file menu. It's al... | null | CC BY-SA 2.5 | null | 2008-08-18T05:04:48.373 | 2008-08-18T05:04:48.373 | null | null | 1,697 | null |
14,214 | 2 | null | 14,209 | 3 | null | You should add an explicit User Instance=true/false to your connection string
| null | CC BY-SA 3.0 | null | 2008-08-18T05:31:26.697 | 2014-11-26T09:50:38.747 | 2014-11-26T09:50:38.747 | 168,175 | 372 | null |
14,204 | 2 | null | 13,786 | 1 | null | Ask your customer this: are they willing to upgrade to Vista? If they say yes, then don't support IE6. Your target customers are the people who goes "whoa! vista. ". They're also the kind of people who want the .
If your customer goes, "huh? what's vista? I want my screensaver of cats back please", then you need to s... | null | CC BY-SA 2.5 | null | 2008-08-18T05:15:25.480 | 2008-08-18T05:15:25.480 | null | null | 1,599 | null |
14,212 | 2 | null | 14,155 | 1 | null | I'm attempting to switch to the [Code::Blocks](http://www.codeblocks.org/) IDE for all of my C/C++ editing, but have used Visual Studio 2003, and [Programmer's Notepad 2](http://www.pnotepad.org/) for C/C++ projects. For Python, I currently use IDLE, but have been looking for something else that has a horozontal scrol... | null | CC BY-SA 2.5 | null | 2008-08-18T05:27:49.293 | 2008-08-18T05:27:49.293 | null | null | 1,256 | null |
14,219 | 2 | null | 14,155 | 20 | null | I use [SciTE](http://www.scintilla.org/SciTE.html)
| null | CC BY-SA 2.5 | null | 2008-08-18T05:37:40.973 | 2009-06-23T14:19:15.237 | 2009-06-23T14:19:15.237 | 101,371 | 482 | null |
14,218 | 2 | null | 4,170 | 0 | null | Another way of getting a command object is to call `connection.CreateCommand()`.
That way you shouldn't have to set the `Connection` property on the command object.
| null | CC BY-SA 3.0 | null | 2008-08-18T05:35:21.227 | 2016-06-30T14:04:38.937 | 2016-06-30T14:04:38.937 | 1,659 | 1,659 | null |
14,220 | 2 | null | 6,126 | 2 | null | Steve Mcconell's advice, from [Code Complete](https://rads.stackoverflow.com/amzn/click/com/0735619670):
Use a multi-dimensional table. Each variable serves as an index to the table,
and the if statement turns into a table lookup. For example if (size == 3 && weight > 70)
translates into the table entry decision[size][... | null | CC BY-SA 2.5 | null | 2008-08-18T05:39:28.880 | 2008-08-18T05:39:28.880 | null | null | 1,702 | null |
14,209 | 1 | null | null | 5 | 15,485 | `System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.`
Anybody ever get this error and/or have any idea on it's cause and/or solution?
[This link may have relevant information.](http://forums... | System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server | CC BY-SA 3.0 | 0 | 2008-08-18T05:24:47.817 | 2021-08-18T16:38:01.137 | 2016-03-29T18:28:10.753 | 3,077,495 | 1,659 | [
".net",
"sql-server",
"ado.net"
] |
14,203 | 2 | null | 14,155 | 12 | null | Note that I primarily work in C/C++. For C/C++ code, I use or . For the little bit of Python I'm learning, I use the editor in the [PythonWin](http://www.python.org/download/windows/) IDE. (Mostly because it does a bit of code completion.) For everything else, I use [GViM](http://www.vim.org/).
Tip:
> After you inst... | null | CC BY-SA 2.5 | null | 2008-08-18T05:11:53.240 | 2008-08-22T01:21:23.823 | 2008-08-22T01:21:23.823 | 1,630 | 1,630 | null |
14,233 | 2 | null | 14,087 | 8 | null | [This post](http://gamesfromwithin.com/?p=97) at [Games From Within](http://gamesfromwithin.com) might be relevant/interesting.
| null | CC BY-SA 2.5 | null | 2008-08-18T05:59:19.853 | 2009-06-12T00:22:03.740 | 2009-06-12T00:22:03.740 | 488 | 488 | null |