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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29,192 | 2 | null | 13,963 | 1 | null | There is [another YAML library for .NET](http://yamldotnet.wiki.sourceforge.net/) which is under development. Right now it supports reading YAML streams and has been tested on Windows and Mono. Write support is currently being implemented.
| null | CC BY-SA 2.5 | null | 2008-08-26T23:33:36.833 | 2008-08-26T23:33:36.833 | null | null | 2,680 | null |
29,204 | 2 | null | 29,175 | 1 | null | If your having touble with RegEdit in Windows 2000 you can try the following:
- -
| null | CC BY-SA 2.5 | null | 2008-08-26T23:38:37.073 | 2008-08-26T23:38:37.073 | null | null | 383 | null |
29,203 | 2 | null | 28,538 | 0 | null | If it's a public jar (as in, not yours) then it might be in the [Maven Repository](http://mvnrepository.com/).
| null | CC BY-SA 2.5 | null | 2008-08-26T23:38:27.197 | 2008-08-26T23:38:27.197 | null | null | 1,666 | null |
29,107 | 1 | 165,333 | null | 25 | 18,663 | Can anyone suggest a good implementation of a generic collection class that implements the `IBindingListView` & `IBindingList` interfaces and provides Filtering and Searching capabilities?
I see my current options as:
- - `BindingList<T>``IBindingListView`- `IBindingListView``IBindingList`
Obviously, the first optio... | Generic IBindingListView Implementations | CC BY-SA 3.0 | 0 | 2008-08-26T22:32:51.660 | 2019-02-27T03:52:13.017 | 2017-12-14T10:04:23.590 | 3,817,004 | 708 | [
".net",
"data-binding"
] |
29,206 | 2 | null | 29,155 | 110 | null | In addition to the syntactic and operational properties, there's also a semantical difference.
Delegates are, conceptually, function templates; that is, they express a contract a function must adhere to in order to be considered of the "type" of the delegate.
Events represent ... well, events. They are intended to a... | null | CC BY-SA 2.5 | null | 2008-08-26T23:39:55.930 | 2009-09-26T20:14:56.887 | 2009-09-26T20:14:56.887 | 102,937 | 2,695 | null |
29,207 | 2 | null | 29,144 | 0 | null | Not sure about the research, but here's one data point for you:
My team chose PVCS (checkout) mostly because of comfort. Doubts about merge and lack of awareness of tools like Subversion definitely contributed to that.
| null | CC BY-SA 2.5 | null | 2008-08-26T23:40:13.323 | 2008-08-26T23:40:13.323 | null | null | null | null |
29,209 | 2 | null | 29,157 | 5 | null | I suspect you're going to have to do the resizing manually thru the Image class and DrawImage function and respond to the resize events on the PictureBox.
| null | CC BY-SA 2.5 | null | 2008-08-26T23:41:19.593 | 2008-08-26T23:41:19.593 | null | null | 645 | null |
29,212 | 2 | null | 27,758 | 1 | null | Separate your serializable object from your domain object.
| null | CC BY-SA 2.5 | null | 2008-08-26T23:45:25.013 | 2008-08-26T23:45:25.013 | null | null | null | null |
29,208 | 2 | null | 29,100 | 2 | null | @Tim Sullivan from Bertrand Meyer it can only be related to Eiffel :)
I think he's talking about [ESpec](http://www.cse.yorku.ca/~sel/espec/). Given the name RSpec from the Ruby Folk, I think we can give them the label "heavily inspired".
| null | CC BY-SA 2.5 | null | 2008-08-26T23:40:59.640 | 2008-08-26T23:40:59.640 | null | null | 3,069 | null |
29,213 | 2 | null | 3,667 | 15 | null | trunk for development, and a branch (production) for the production stuff.
On my local machine, I have a VirtualHost that points to the trunk branch, to test my changes.
Any commit to trunk triggers a commit hook that does an svn export and sync to the online server's dev URL - so if the site is stackoverflow.com the... | null | CC BY-SA 2.5 | null | 2008-08-26T23:45:56.213 | 2008-08-26T23:45:56.213 | null | null | 2,900 | null |
29,218 | 2 | null | 29,141 | 0 | null | Have you tried the SaveAs from the Worksheet?
| null | CC BY-SA 2.5 | null | 2008-08-26T23:48:04.693 | 2008-08-26T23:48:04.693 | null | null | 645 | null |
29,215 | 2 | null | 29,157 | -4 | null | When resizing an image in .net, the System.Drawing.Drawing2D.InterpolationMode offers the following resize methods:
- - - - - - - -
| null | CC BY-SA 2.5 | null | 2008-08-26T23:47:17.583 | 2008-08-26T23:47:17.583 | null | null | 383 | null |
29,220 | 2 | null | 3,667 | 0 | null | We use release branching - this seems to be more efficient for us than the feature branching we were doing.
Don't make different branches for the different environments.
| null | CC BY-SA 2.5 | null | 2008-08-26T23:50:45.530 | 2008-08-26T23:50:45.530 | null | null | 137 | null |
29,069 | 2 | null | 29,040 | 0 | null | If you select only the columns you want in the linq query, and then call .ToList() on the query, it will be immedietly executed, and will only bring back the columns you are interested in. For example if you do this:
```
var q = from p in dataContext.products select p.ProductName;
var results = q.ToList();
```
You w... | null | CC BY-SA 2.5 | null | 2008-08-26T22:11:03.600 | 2008-08-26T22:11:03.600 | null | null | 1,737,192 | null |
29,222 | 2 | null | 29,141 | 1 | null | Rather than using an ExcelApplication, you can use the Workbook object and call the SaveAs() method. You can pass the updated file name in there.
| null | CC BY-SA 2.5 | null | 2008-08-26T23:53:28.580 | 2008-08-26T23:53:28.580 | null | null | 2,470 | null |
29,219 | 2 | null | 6,155 | 3 | null | several things we use them for:
- [Trac in our case](http://trac.edgewall.org/)- [buildbot in our case](http://buildbot.net/)- [svnchecker](http://svnchecker.tigris.org/)[PEP8 correctness](http://www.python.org/dev/peps/pep-0008/)- -
| null | CC BY-SA 2.5 | null | 2008-08-26T23:49:14.457 | 2008-08-26T23:49:14.457 | null | null | 2,900 | null |
29,217 | 2 | null | 29,099 | -2 | null |
The ability to express real-world scenarios in code.
```
foreach(House house in location.Houses)
{
foreach(Deliverable mail in new Mailbag(new Deliverable[]
{
GetLetters(),
GetPackages(),
GetAdvertisingJunk()
})
{
if(mail.AddressedTo(house... | null | CC BY-SA 3.0 | null | 2008-08-26T23:47:35.413 | 2013-01-05T06:12:08.477 | 2013-01-05T06:12:08.477 | 712,603 | 1,143 | null |
29,165 | 2 | null | 29,145 | 0 | null | Some of the really big dogs, such as [ERwin Data Modeler](http://ca.com/us/products/product.aspx?id=260), will go object to DB. You need to have the big bucks to afford the product though.
| null | CC BY-SA 2.5 | null | 2008-08-26T23:13:33.653 | 2008-08-26T23:13:33.653 | null | null | 71 | null |
29,224 | 2 | null | 27,253 | 0 | null | For completeness, check out [http://uncrustify.sourceforge.net/](http://uncrustify.sourceforge.net/)
| null | CC BY-SA 2.5 | null | 2008-08-26T23:55:42.757 | 2008-08-26T23:55:42.757 | null | null | 645 | null |
29,230 | 2 | null | 29,175 | 0 | null | Oh, let me try that! I didn't realize you could remotely connect to another registry.
(EDIT: I was wrong, it did work... it just took several minutes to respond to my request to change permissions remotely)
The remote connection idea did it! You're good! Thanks so much for your help! I never realized you could rem... | null | CC BY-SA 2.5 | null | 2008-08-26T23:59:59.937 | 2008-08-26T23:59:59.937 | null | null | 3,068 | null |
29,228 | 2 | null | 29,104 | 6 | null | First of all gather the requirements you start coding. You can begin the design while you are gathering them depending on your project life cicle but you shouldn't ever start coding without them.
Requirements are a set of well written documents that protect both the client and yourself. Never forget that. If no requi... | null | CC BY-SA 2.5 | null | 2008-08-26T23:56:58.213 | 2008-08-26T23:56:58.213 | null | null | 2,695 | null |
29,234 | 2 | null | 29,144 | 0 | null | I'm not sure I understand the question here - I'm not aware of any modern source control system (other than Visual SourceSafe) that doesn't fully support merging.
| null | CC BY-SA 2.5 | null | 2008-08-27T00:04:07.823 | 2008-08-27T00:04:07.823 | null | null | 2,284 | null |
29,232 | 2 | null | 29,141 | 8 | null | Excel interop is pretty painful. I dug up an old project I had, did a little fiddling, and I think this is what you're looking for. The other commenters are right, but, at least in my experience, there's a lot more to calling SaveAs() than you'd expect if you've used the same objects (without the interop wrapper) in ... | null | CC BY-SA 2.5 | null | 2008-08-27T00:02:59.557 | 2008-08-27T00:12:26.163 | 2008-08-27T00:12:26.163 | 1,818 | 1,818 | null |
29,226 | 2 | null | 2,988 | 1 | null | @DavidJoiner / all:
FWIW: A new version of the [Algorithm Design Manual](https://rads.stackoverflow.com/amzn/click/com/1848000693) is due out any day now.
The entire course that he Prof Skiena developed this book for is also available on the web:
[http://www.cs.sunysb.edu/~algorith/video-lectures/2007-1.html](http:/... | null | CC BY-SA 2.5 | null | 2008-08-26T23:56:47.183 | 2008-08-26T23:56:47.183 | null | null | 620 | null |
29,205 | 2 | null | 29,044 | 127 | null | When people ask about a replacement for Access, a lot of them only think about the database, but what they are really asking about are all of the other features in Access. They usually don't care what database Access is using.
Some of the functionality provided by Access are: Forms, Query Building, Reports, Macros, Da... | null | CC BY-SA 3.0 | null | 2008-08-26T23:39:51.483 | 2012-02-06T20:50:33.700 | 2012-02-06T20:50:33.700 | 446,456 | 791 | null |
29,245 | 2 | null | 29,244 | 2 | null | Does the button need to be black? you could apply the black background to the options instead.
| null | CC BY-SA 2.5 | null | 2008-08-27T00:27:27.797 | 2008-08-27T00:27:27.797 | null | null | 2,098 | null |
29,174 | 1 | 31,338 | null | 25 | 10,450 | I'm using [jQuery](http://jquery.com/) and [SimpleModal](http://www.ericmmartin.com/projects/simplemodal/) in an ASP.Net project to make some nice dialogs for a web app. Unfortunately, any buttons in a modal dialog can no longer execute their postbacks, which is not really acceptable.
There is one source I've found w... | SimpleModal breaks ASP.Net Postbacks | CC BY-SA 2.5 | 0 | 2008-08-26T23:19:47.960 | 2014-04-01T13:43:12.620 | 2008-08-27T16:06:13.767 | 2,363 | 2,363 | [
"asp.net",
"javascript",
"jquery",
"postback",
"simplemodal"
] |
29,247 | 1 | 29,252 | null | 7 | 384 | Are there any conflicts with having any combination of Visual Studio 2003, 2005 and/or 2008 installed? I noticed a related question [here](https://stackoverflow.com/questions/9693/visual-studio-2005-macros-stop-working-when-visual-studio-2008-is-installed) but wanted a more general answer.
| What versions of Visual Studio can be installed concurrently? | CC BY-SA 2.5 | 0 | 2008-08-27T00:29:30.180 | 2017-12-16T10:07:27.160 | 2017-12-16T10:07:27.160 | null | 327 | [
"visual-studio"
] |
29,244 | 1 | 29,439 | null | 8 | 23,082 | I have the following HTML (note the CSS making the background black and text white)
```
<html>
<select id="opts" style="background-color: black; color: white;">
<option>first</option>
<option>second</option>
</select>
</html>
```
Safari is smart enough to make the small triangle that appears to the righ... | HTML Select Tag with black background - dropdown triangle is invisible in Firefox 3 | CC BY-SA 3.0 | null | 2008-08-27T00:23:02.783 | 2017-02-23T10:32:31.573 | 2014-07-08T11:27:57.347 | 3,326,275 | 234 | [
"html",
"css",
"firefox",
"drop-down-menu",
"html-select"
] |
29,249 | 2 | null | 29,247 | 2 | null | I have all 3 installed and have had no adverse problems...knocking on wood
| null | CC BY-SA 2.5 | null | 2008-08-27T00:31:01.017 | 2008-08-27T00:31:01.017 | null | null | 1,638 | null |
29,252 | 2 | null | 29,247 | 8 | null | 6, 2000/2001 (I can't remember which is .net 1.0), 2003, 2005, 2008... of course within .NET you may have issues with getting the right solution with the right version. I haven't really seen any conflicts in particular.
| null | CC BY-SA 2.5 | null | 2008-08-27T00:32:32.327 | 2008-08-27T00:32:32.327 | null | null | 2,017 | null |
29,253 | 2 | null | 29,247 | 2 | null | 6/2002/2003/2005/2008, I believe, can all coexist.
Though just this weekend I purged 'em all except 2008 as it went totally mad and stopped showing the build output. Plus my splash screen wasn't right. Now it is.
| null | CC BY-SA 2.5 | null | 2008-08-27T00:34:39.700 | 2008-08-27T00:34:39.700 | null | null | 2,131 | null |
29,254 | 2 | null | 29,242 | 1 | null | Could you write your [own dissector](http://www.richardsharpe.com/ethereal-stuff.html#Writing%20a%20Dissector) for Wireshark?
Edit: written before the precision in the question
| null | CC BY-SA 2.5 | null | 2008-08-27T00:35:06.233 | 2008-08-28T17:07:32.720 | 2008-08-28T17:07:32.720 | 3,069 | 3,069 | null |
29,257 | 2 | null | 21,749 | 3 | null | I ultimately ended up finding the [answer](http://groups.google.com/group/borland.public.delphi.winapi/browse_frm/thread/36b3d5a199be91f4/7de8dab437f6aa1e?lnk=st&q=delphi+main+form+modal+dialog+z-order#7de8dab437f6aa1e) using Google Groups. In a nutshell, all the modal dialogs need to have the following added to them:
... | null | CC BY-SA 2.5 | null | 2008-08-27T00:38:15.370 | 2008-08-27T00:38:15.370 | null | null | 2,219 | null |
29,255 | 2 | null | 29,243 | 9 | null | Setting an attribute on an object won't give a compile-time or a run-time error, it will just do nothing useful if the object doesn't access it (i.e. "`node.noSuchAttr = 'bar'`" would also not give an error).
Unless you need a specific feature of `minidom`, I would look at `ElementTree`:
```
import sys
from xml.etree... | null | CC BY-SA 2.5 | null | 2008-08-27T00:35:29.807 | 2008-08-27T00:35:29.807 | null | null | 3,002 | null |
29,258 | 2 | null | 29,067 | 1 | null | You could consider inverting the problem. That is add the control to the repeaters definition and the remove it if it is not needed. Not knowing the details of your app this might be a tremendous waste of time but it might just work out in the end.
| null | CC BY-SA 2.5 | null | 2008-08-27T00:38:23.060 | 2008-08-27T00:38:23.060 | null | null | 2,894 | null |
29,238 | 2 | null | 29,144 | 2 | null | Perhaps you meant Source Safe rather than Perforce? Perforce supports merging, and in fact had better merge support than SVN until SVN 1.5 where named merges were added (as well as change lists, which Perforce has always had and I mis very much moving to a shop that used SVN, but we won't upgrade until 1.5 has been a b... | null | CC BY-SA 2.5 | null | 2008-08-27T00:13:49.780 | 2008-08-27T00:13:49.780 | null | null | 1,329,401 | null |
29,172 | 2 | null | 29,142 | 365 | null | I had this problem in a program I wrote a year ago -- turns out the answer is rather complicated. You'll need to use nohup as well as output redirection, as explained in the wikipedia artcle on [nohup](http://en.wikipedia.org/wiki/Nohup), copied here for your convenience.
> Nohuping backgrounded jobs is for
example... | null | CC BY-SA 2.5 | null | 2008-08-26T23:18:41.147 | 2008-08-26T23:18:41.147 | null | null | 23 | null |
29,265 | 2 | null | 29,104 | 2 | null |
1. High-level discussions about purpose, scope, limitations of operating environment, size, etc
2. Audition a single paragraph description of the system, hammer it out
3. Mock up UI
4. Formalize known requirements
5. Now iterate between 3 and 4 with more and more functional prototypes and more specs with more details.... | null | CC BY-SA 2.5 | null | 2008-08-27T00:45:14.727 | 2008-08-27T00:45:14.727 | null | null | 1,042 | null |
29,260 | 2 | null | 29,247 | 3 | null | Just make sure you only have RTM versions and not Beta or RC versions installed. You'll have no end of pain if you don't cleanly remove the beta or RC versions before installing the RTM versions.
| null | CC BY-SA 2.5 | null | 2008-08-27T00:38:59.487 | 2008-08-27T00:38:59.487 | null | null | 493 | null |
29,268 | 2 | null | 1,711 | 0 | null | In addition to other people's suggestions, I'd recommend either acquiring a copy of SICP, or [reading it online](http://mitpress.mit.edu/sicp/full-text/book/book.html). It's one of the few books that I've read that I feel increased my skill in designing software, particularly in creating good abstraction layers.
A bo... | null | CC BY-SA 2.5 | null | 2008-08-27T00:46:53.367 | 2008-08-27T00:46:53.367 | null | null | 242,853 | null |
29,273 | 2 | null | 1,711 | 2 | null | I'm a big fan of most titles by Robert C. Martin, especially [Agile Software Development, Principles, and Practices](http://amazon.com/o/ASIN/0135974445) and [Clean Code: A Handbook of Agile Software Craftsmanship](http://amazon.com/o/ASIN/0132350882).
| null | CC BY-SA 2.5 | null | 2008-08-27T00:50:03.843 | 2008-08-27T00:50:03.843 | null | null | 470 | null |
29,276 | 2 | null | 27,442 | 0 | null | Make sure to add the "--routines" parameter to mysqldump if you have any stored procs in your database so it backs them up too.
| null | CC BY-SA 2.5 | null | 2008-08-27T00:53:49.187 | 2008-08-27T00:53:49.187 | null | null | 2,994 | null |
29,267 | 2 | null | 29,144 | 1 | null | If I understand correctly, Perforce makes all files that are not checked out read-only. This is similar to the behavior under Microsoft TFS and VSS. Subversion on the other hand does not set read-only attributes. IMO, the Subversion method is easier because you don't have to bother with a source control client in or... | null | CC BY-SA 2.5 | null | 2008-08-27T00:46:26.473 | 2008-08-27T00:46:26.473 | null | null | 327 | null |
29,277 | 2 | null | 28,353 | 1 | null | If the failover logic is in your application you could write a status screen that shows which box you're connected by writing to a var when the first connection attempt fails.
I think your best bet would be a ping daemon/cron job that checks the status of each box periodically and sends an email if one doesn't respond... | null | CC BY-SA 2.5 | null | 2008-08-27T00:57:04.997 | 2008-08-27T00:57:04.997 | null | null | 149 | null |
29,279 | 2 | null | 29,242 | 1 | null | I have seen [PSPad](http://www.pspad.com/) used as a hex editor, but I usually do the same thing you do. I'm surprised there's not an "instant answer" for this question. It's a very common need.
| null | CC BY-SA 2.5 | null | 2008-08-27T00:58:25.367 | 2008-08-27T00:58:25.367 | null | null | 1,219 | null |
29,278 | 2 | null | 29,099 | 1 | null | As far as I can tell, the main view of what makes a language "Object Oriented" is supporting the idea of grouping data, and methods that work on that data, which is generally achieved through classes, modules, inheritance, polymorphism, etc.
See [this discussion](http://c2.com/cgi/wiki?NobodyAgreesOnWhatOoIs) for an o... | null | CC BY-SA 2.5 | null | 2008-08-27T00:57:29.380 | 2008-08-27T00:57:29.380 | null | null | 242,853 | null |
29,282 | 2 | null | 1,711 | 0 | null | [Agile Software Development](https://rads.stackoverflow.com/amzn/click/com/0201699699) by Alistair Cockburn
| null | CC BY-SA 2.5 | null | 2008-08-27T00:59:15.177 | 2008-08-27T00:59:15.177 | null | null | 2,785 | null |
29,274 | 2 | null | 29,099 | 32 | null | [Definitions for Object-Orientation](http://C2.Com/cgi/wiki?DefinitionsForOo) are of course a [huge can of worms](http://C2.Com/cgi/wiki?OoBestFeatures), but here are my 2 cents:
To me, Object-Orientation is all about objects that collaborate by sending messages. That is, to me, the single most important trait of an o... | null | CC BY-SA 2.5 | null | 2008-08-27T00:51:49.703 | 2008-08-27T01:09:02.097 | 2008-08-27T01:09:02.097 | 2,988 | 2,988 | null |
29,288 | 2 | null | 24,556 | 0 | null | Rather than attaching to a new data context why not just requery the object in the new datacontext? It believe it is a more reliable and stateless strategy.
| null | CC BY-SA 2.5 | null | 2008-08-27T01:04:58.037 | 2008-08-27T01:04:58.037 | null | null | 2,785 | null |
29,289 | 2 | null | 5,527 | 1 | null | I don't think it's a matter of which language is better. In the .NET world there are some inconsistencies between the libraries different languages provide. There are certain functionality that is available in VB.NET that you might like to use from C# but can't. I remember I had to use J# to use some ZIP libraries that... | null | CC BY-SA 2.5 | null | 2008-08-27T01:07:40.133 | 2008-08-27T01:07:40.133 | null | null | 3,087 | null |
29,292 | 1 | 29,330 | null | 53 | 37,602 | Say a development team includes (or makes use of) graphic artists who create all the images that go into a product. Such things include icons, bitmaps, window backgrounds, button images, animations, etc.
Obviously, everything needed to build a piece of software should be under some form of version control. But most ... | Version Control for Graphics | CC BY-SA 3.0 | 0 | 2008-08-27T01:11:16.460 | 2017-10-14T12:51:01.717 | 2017-03-06T12:26:08.993 | 1,175 | 1,175 | [
"version-control",
"graphics",
"versioning"
] |
29,284 | 1 | 29,789 | null | 4 | 12,043 | I was testing on a customer's box this afternoon which has Windows Vista (He had home, but I am testing on a Business Edition with same results).
We make use of a .DLL that gets the Hardware ID of the computer. It's usage is very simple and the sample program I have created works. The Dll is [This from AzSdk](http://w... | Windows Vista: Unable to load DLL 'x.dll': Invalid access to memory location. (DllNotFoundException) | CC BY-SA 3.0 | 0 | 2008-08-27T01:03:22.827 | 2016-03-04T15:51:34.707 | 2016-03-04T15:51:34.707 | 996,815 | 2,684 | [
"c#",
".net",
"windows-vista",
"dllnotfoundexception"
] |
29,293 | 2 | null | 1,949 | 4 | null | I think John is correct.
"My main concern is that instantiating and disposing one huge DataContext class all the time for individual operations that relate to specific areas of the Database would be impose an unnecessary imposition on application resources"
How do you support that statement? What is your experiment ... | null | CC BY-SA 2.5 | null | 2008-08-27T01:11:45.710 | 2008-08-27T01:11:45.710 | null | null | 2,785 | null |
29,296 | 2 | null | 28,353 | 1 | null | Use something like Host Monitor [http://www.ks-soft.net/hostmon.eng/](http://www.ks-soft.net/hostmon.eng/) to monitor the Event Log for messages related to the failover event, which can send you an alert via email/SMS.
I'm curious though how you wouldn't need to know that the failover happened, because don't you have ... | null | CC BY-SA 2.5 | null | 2008-08-27T01:13:09.310 | 2008-08-27T01:13:09.310 | null | null | 2,929 | null |
29,283 | 2 | null | 4,612 | 9 | null | CompileAssemblyFromDom compiles to a .cs file which is then run through the normal C# compiler.
Example:
```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.CSharp;
using System.CodeDom;
using System.IO;
using System.CodeDom.Compiler;
using System.Reflection;
names... | null | CC BY-SA 3.0 | null | 2008-08-27T01:03:17.197 | 2016-02-07T14:29:25.583 | 2020-06-20T09:12:55.060 | -1 | 3,140 | null |
29,301 | 2 | null | 29,292 | 2 | null | I would definitely put the graphics under version control. The diff might not be very useful from within a diff tool like diffmerge, but you can still checkout two versions of the graphic and view them side by side to see the differences.
I don't see any reason why the resultant graphics shouldn't be kept in the same ... | null | CC BY-SA 3.0 | null | 2008-08-27T01:15:21.333 | 2011-04-08T15:39:09.380 | 2011-04-08T15:39:09.380 | 2,047,962 | 493 | null |
29,304 | 2 | null | 29,292 | 2 | null | @lomaxx TortoiseSVN includes a program called TortoiseIDiff which looks to be a diff for images. I haven't used it but looks intriguing.
| null | CC BY-SA 2.5 | null | 2008-08-27T01:17:36.070 | 2008-08-27T01:17:36.070 | null | null | 1,886 | null |
29,297 | 2 | null | 29,292 | 2 | null | We use subversion. Just place a folder under /trunk/docs for comps and have designers check out and commit to that folder. Works like a champ.
| null | CC BY-SA 2.5 | null | 2008-08-27T01:13:38.997 | 2008-08-27T01:13:38.997 | null | null | 2,676 | null |
29,243 | 1 | 29,255 | null | 20 | 26,964 | Here is my sample code:
```
from xml.dom.minidom import *
def make_xml():
doc = Document()
node = doc.createElement('foo')
node.innerText = 'bar'
doc.appendChild(node)
return doc
if __name__ == '__main__':
make_xml().writexml(sys.stdout)
```
when I run the above code I get this:
```
<?xml ve... | How do I create an xml document in python | CC BY-SA 3.0 | 0 | 2008-08-27T00:21:35.643 | 2020-12-27T16:00:30.793 | 2012-10-29T21:12:59.370 | 321,731 | 1,638 | [
"python",
"xml"
] |
29,306 | 2 | null | 29,292 | 3 | null | Interesting question. I don't have a bunch of experience working directly with designers on a project. When I have, it's been through a contractual sort of agreement where they "delivered" a design. I have done some of my own design work for both web sites and desktop applications, and though I have not used source ... | null | CC BY-SA 2.5 | null | 2008-08-27T01:19:07.080 | 2008-08-27T01:19:07.080 | null | null | 1,875 | null |
29,262 | 2 | null | 29,243 | 13 | null | @Daniel
Thanks for the reply, I also figured out how to do it with the minidom (I'm not sure of the difference between the ElementTree vs the minidom)
```
from xml.dom.minidom import *
def make_xml():
doc = Document();
node = doc.createElement('foo')
node.appendChild(doc.createTextNode('bar'))
doc.app... | null | CC BY-SA 2.5 | null | 2008-08-27T00:42:32.723 | 2008-08-27T00:42:32.723 | null | null | 1,638 | null |
29,300 | 2 | null | 25,461 | 11 | null | I found the answer to my own question by finding a more compatible implementation of `stdbool.h` that is compliant with the C99 standard.
```
#ifndef _STDBOOL_H
#define _STDBOOL_H
#include <stdint.h>
/* C99 Boolean types for compilers without C99 support */
/* http://www.opengroup.org/onlinepubs/009695399/basedefs/s... | null | CC BY-SA 3.0 | null | 2008-08-27T01:14:06.767 | 2013-09-22T21:02:23.677 | 2013-09-22T21:02:23.677 | 1,763,392 | 1,675 | null |
29,307 | 2 | null | 11,831 | 8 | null | I think there is a great misunderstanding about the use of the Singleton pattern. Most of the comments here refer to it as a place to access global data. We need to be careful here - Singleton as a pattern is for accessing globals.
Singleton should be used to have of the given class. [Pattern Repository](http://www... | null | CC BY-SA 2.5 | null | 2008-08-27T01:20:26.250 | 2008-08-27T01:20:26.250 | null | null | 3,087 | null |
29,309 | 2 | null | 29,292 | 1 | null | With respect to diff and merging, I think the version control is more critical for graphics and media elements. If you think about it, most designers are going to be the sole owners of a file -- at least in the case of graphics -- or at least I would think that'd be the case. I'd be curious to hear from a designer.
| null | CC BY-SA 2.5 | null | 2008-08-27T01:22:07.977 | 2008-08-27T01:22:07.977 | null | null | 1,875 | null |
29,311 | 1 | 72,080 | null | 3 | 1,237 | Is there a list of 3D cards available that provide full scene antialiasing as well as which are able to do it in hardware (decent performance)?
| Which 3D cards support full scene antialiasing? | CC BY-SA 2.5 | 0 | 2008-08-27T01:23:29.503 | 2008-11-03T14:30:40.980 | 2008-11-03T14:30:40.997 | 23,855 | 1,432 | [
"opengl",
"antialiasing"
] |
29,316 | 2 | null | 29,247 | 0 | null | I've got 2005 and 2008 installed concurrently.
2008 is a superset of 2005, so I have no reason whatsoever to have them both, I just haven't gotten around to un-installing it yet
| null | CC BY-SA 2.5 | null | 2008-08-27T01:27:22.287 | 2008-08-27T01:27:22.287 | null | null | 234 | null |
29,317 | 2 | null | 29,311 | 2 | null | Agree with Orion Edwards, pretty much everything new can. Performance also depends greatly on the resolution you run at.
| null | CC BY-SA 2.5 | null | 2008-08-27T01:27:22.630 | 2008-08-27T01:27:22.630 | null | null | 522 | null |
29,313 | 2 | null | 29,284 | 1 | null | Is the machine you have the code deployed on a 64-bit machine? You could also be running into a [DEP](http://en.wikipedia.org/wiki/Data_Execution_Prevention) issue.
Edit
> This is a 1st gen Macbook Pro with a 1st gen Core Duo 2 Intel processor. Far from 64 bits.
I mentioned 64 bit, because at low levels structs fro... | null | CC BY-SA 2.5 | null | 2008-08-27T01:24:48.190 | 2008-08-27T03:01:14.793 | 2008-08-27T03:01:14.793 | 1,117 | 1,117 | null |
29,318 | 2 | null | 28,009 | 1 | null | I haven't used Oracle's table clusters myself, but I understand that its index table clusters are very much like MS SQL Server's clustered indexes. That is, the row data is physically organized by the clustered index's key.
That makes one ideal for a heavily-accessed column that has a reasonably small number of possib... | null | CC BY-SA 2.5 | null | 2008-08-27T01:27:23.910 | 2008-08-27T01:27:23.910 | null | null | 726 | null |
29,319 | 2 | null | 29,308 | 3 | null | If you put .ToString() to a var query variable you get the sql. You can laso use this in Debug en VS2008. [Debug Visualizer](http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx)
ex:
```
var query = from p in db.Table
select p;
MessageBox.SHow(query.ToString());
```
| null | CC BY-SA 2.5 | null | 2008-08-27T01:27:25.750 | 2008-08-27T01:49:31.877 | 2008-08-27T01:49:31.877 | 1,154 | 1,154 | null |
29,320 | 2 | null | 29,242 | 0 | null | [xxd](http://gd.tuwien.ac.at/linuxcommand.org/man_pages/xxd1.html) is the 'standard' hex dump util and looks like it should solve your problems
| null | CC BY-SA 2.5 | null | 2008-08-27T01:28:33.783 | 2008-08-27T01:28:33.783 | null | null | 234 | null |
29,241 | 2 | null | 27,743 | 1 | null | Better question is how to keep your app from consuming so much memory that it requires you to reboot mongrels from time to time.
www.modrails.com reduced our memory footprint significantly
| null | CC BY-SA 2.5 | null | 2008-08-27T00:18:05.620 | 2008-08-27T00:18:05.620 | null | null | 1,295 | null |
29,314 | 2 | null | 29,311 | 3 | null | Off the top of my head, pretty much any card since a geforce 2 or something can do it. There's always a performance hit, but this varies on the card and AA mode (of which there are about 100 different kinds) but generally it's quite a performance hit.
| null | CC BY-SA 2.5 | null | 2008-08-27T01:25:31.153 | 2008-08-27T01:25:31.153 | null | null | 234 | null |
29,324 | 1 | 29,336 | null | 13 | 78,534 | What is the most straightforward way to create a hash table (or associative array...) in Java? My google-fu has turned up a couple examples, but is there a standard way to do this?
And is there a way to populate the table with a list of key->value pairs without individually calling an add method on the object for eac... | How do I create a hash table in Java? | CC BY-SA 3.0 | 0 | 2008-08-27T01:32:15.177 | 2019-05-03T11:35:05.880 | 2015-05-07T17:34:15.663 | 3,924,118 | 145 | [
"java",
"hash",
"hashmap"
] |
29,330 | 2 | null | 29,292 | 18 | null | Yes, having art assets in version control is very useful. You get the ability to track history, roll back changes, and you have a single source to do backups with. Keep in mind that art assets are MUCH larger so your server needs to have lots of disk space & network bandwidth.
I've had success with using [perforce]... | null | CC BY-SA 3.0 | null | 2008-08-27T01:35:58.367 | 2011-10-27T16:43:40.293 | 2011-10-27T16:43:40.293 | 274,502 | 1,841 | null |
29,328 | 2 | null | 29,292 | 4 | null | A lot of the graphics type people will want something more sophisticated than subversion. While it's good for version control, they will want a content management system that allows cross-referencing of assets, tagging, thumbnails and that sort of thing (as well as versioning).
| null | CC BY-SA 2.5 | null | 2008-08-27T01:33:26.750 | 2008-08-27T01:33:26.750 | null | null | null | null |
29,334 | 2 | null | 29,324 | 2 | null | ```
import java.util.HashMap;
Map map = new HashMap();
```
| null | CC BY-SA 3.0 | null | 2008-08-27T01:38:38.453 | 2015-05-07T17:34:37.427 | 2015-05-07T17:34:37.427 | 3,924,118 | 2,168 | null |
29,338 | 2 | null | 1,711 | 7 | null | I think that "The Art of Unix Programming" is an excellent book, by an excellent hacker/brilliant mind as Eric S. Raymond, who tries to make us understand a few principles of software design (simplicity mainly). This book is a must for every programming who is about to start a project under Unix platform.
| null | CC BY-SA 2.5 | null | 2008-08-27T01:42:43.217 | 2008-08-27T01:42:43.217 | null | null | 1,876 | null |
29,336 | 2 | null | 29,324 | 27 | null | ```
Map map = new HashMap();
Hashtable ht = new Hashtable();
```
Both classes can be found from the java.util package. The difference between the 2 is explained in the following [jGuru FAQ entry](http://www.jguru.com/faq/view.jsp?EID=430247).
| null | CC BY-SA 2.5 | null | 2008-08-27T01:40:43.020 | 2008-08-27T01:46:43.957 | 2008-08-27T01:46:43.957 | 2,633 | 2,633 | null |
29,339 | 2 | null | 29,311 | -1 | null | Having seen a pile of machines recently that don't do it, I don't think that's quite true. The GMA 950 integrated ones don't do it to start with, and I don't think that the 3100/X3100 do either (at least not in hardware... the 3100 was enormously slow in a demo). Also, I don't believe that the GeForce MX5200 supporte... | null | CC BY-SA 2.5 | null | 2008-08-27T01:42:51.970 | 2008-08-27T02:17:34.007 | 2008-08-27T02:17:34.023 | 1,432 | 1,432 | null |
29,335 | 1 | null | null | -1 | 728 | My current employer uses a 3rd party hosted CRM provider and we have a fairly sophisticated integration tier between the two systems. Amongst the capabilities of the CRM provider is for developers to author business logic in a Java like language and on events such as the user clicking a button or submitting a new ac... | Best practices for development environment and API dev? | CC BY-SA 2.5 | null | 2008-08-27T01:38:54.397 | 2016-05-31T16:41:34.627 | 2016-05-31T16:41:34.627 | 6,083,675 | 2,228 | [
"development-environment",
"pipeline",
"api-design"
] |
29,315 | 2 | null | 28,881 | 3 | null | For more than you ever wanted to know about `sort`, read the [specification of sort](http://OpenGroup.Org/onlinepubs/009695399/utilities/sort.html) in the [Single Unix Specification v3](http://OpenGroup.Org/onlinepubs/009695399/). It states
> Comparisons [...] shall be performed using the collating sequence of the cur... | null | CC BY-SA 2.5 | null | 2008-08-27T01:25:42.137 | 2008-08-27T01:25:42.137 | null | null | 2,988 | null |
29,342 | 2 | null | 29,324 | 1 | null | What [Edmund](https://stackoverflow.com/questions/29324/how-do-i-create-a-hash-table-in-java#29336) said.
As for not calling .add all the time, no, not idiomatically. There would be various hacks (storing it in an array and then looping) that you could do if you really wanted to, but I wouldn't recommend it.
| null | CC BY-SA 2.5 | null | 2008-08-27T01:45:32.307 | 2008-08-27T01:45:32.307 | 2017-05-23T11:47:07.663 | -1 | 1,666 | null |
29,349 | 2 | null | 29,346 | 0 | null | I've had no problems connecting to network shares transparently as if they were local drives. The only issue you may have is what you mentioned: having the `aspnet` account gain access to the share. Impersonation is probably the best way to do this.
You should be able to use any filestream objects to access the networ... | null | CC BY-SA 2.5 | null | 2008-08-27T01:54:13.033 | 2008-08-27T01:54:13.033 | null | null | 392 | null |
29,346 | 1 | null | null | 10 | 31,524 | I have a web application that needs to read (and possibly write) files from a network share. I was wondering what the best way to do this would be?
I can't give the network service or aspnet accounts access to the network share. I could possibly use impersonation.
The network share and the web application are both ho... | Access files from network share in c# web app | CC BY-SA 3.0 | 0 | 2008-08-27T01:49:30.160 | 2012-08-10T12:29:41.407 | 2012-08-10T10:34:16.610 | 298,479 | 493 | [
"c#",
"asp.net",
"security",
"web-applications",
"file-io"
] |
29,326 | 2 | null | 29,292 | 5 | null | We, too, just put the binaries in source control. We use Git, but it would apply just as well to Subversion.
One suggestion I have is to use SVGs where possible, because you can see actual differences. With binaries (most other image formats), the best you can get is a version history.
| null | CC BY-SA 2.5 | null | 2008-08-27T01:32:46.220 | 2008-08-27T01:32:46.220 | null | null | 1,190 | null |
29,352 | 2 | null | 29,346 | 0 | null | Impersonation worked well for me in this scenario. We had a wizard that uploaded a zip file through the website, but we load balanced the site. Therefore needed to setup a way to save the file on all the machines.
There are many different ways to do it. We decided to make all requests to run under the user we setup... | null | CC BY-SA 2.5 | null | 2008-08-27T01:56:45.337 | 2008-08-27T02:33:56.060 | 2008-08-27T02:33:56.060 | 1,117 | 1,117 | null |
29,356 | 2 | null | 29,324 | 7 | null | Also don't forget that both Map and Hashtable are generic in Java 5 and up (as in any other class in the [Collections framework](http://java.sun.com/javase/6/docs/technotes/guides/collections/index.html)).
```
Map<String, Integer> numbers = new HashMap<String, Integer>();
numbers.put("one", 1);
numbers.put("two", 2);
... | null | CC BY-SA 2.5 | null | 2008-08-27T02:07:29.303 | 2008-08-27T02:07:29.303 | null | null | 3,087 | null |
29,242 | 1 | 29,395 | null | 17 | 24,030 | I work a lot with network and serial communications software, so it is often necessary for me to have code to display or log hex dumps of data packets.
Every time I do this, I write yet another hex-dump routine from scratch. I'm about to do so again, but figured I'd ask here: Is there any good free hex dump code for... | Off-the-Shelf C++ Hex Dump Code | CC BY-SA 3.0 | 0 | 2008-08-27T00:18:19.113 | 2017-10-13T02:47:28.367 | 2017-01-19T15:06:56.510 | 1,175 | 1,175 | [
"c++",
"logging",
"hex",
"hexdump"
] |
29,355 | 2 | null | 28,652 | 4 | null | I did quite a bit of googling trying to find this answer. There are plenty of people asking for it:
- [http://developers.slashdot.org/comments.pl?sid=414610&cid=21996944](http://developers.slashdot.org/comments.pl?sid=414610&cid=21996944)- [http://www.arguingwithmyself.com/archives/75-the-biggest-feature-your-editor-i... | null | CC BY-SA 2.5 | null | 2008-08-27T02:06:16.763 | 2008-08-27T02:06:16.763 | null | null | 2,908 | null |
29,358 | 2 | null | 29,311 | 1 | null | Integrated GPUs are going to be really poor performers with games FSAA or no. If you want even moderate performance, buy a separate video card.
For something that's not crazy expensive go with either a nVidia Geforce 8000 series card or an ATI 3000 series card. Even as a nVidia 8800 GTS owner, I will tell you the ATI... | null | CC BY-SA 2.5 | null | 2008-08-27T02:09:47.147 | 2008-08-27T02:09:47.147 | null | null | 1,644 | null |
29,363 | 2 | null | 29,311 | 1 | null | Yes, of course integrated cards are awful. :) But this wasn't a question about gaming, but rather about an application that we are writing that will use OpenGL/D3D for 3D rendering. The 3D scene is relatively small, but antialiasing makes a dramatic difference in terms of the quality of the rendering. We are curiou... | null | CC BY-SA 2.5 | null | 2008-08-27T02:16:50.030 | 2008-08-27T02:16:50.030 | null | null | 1,432 | null |
29,362 | 2 | null | 29,357 | 3 | null | It really depends on what kind of security you are looking to integrate. Do you want security to ensure that the user isn't running any debuggers or such to flip bits in your application to change the votes? Do you want to ensure that the user doesn't install logging software to keep track of who voted for who? Do y... | null | CC BY-SA 2.5 | null | 2008-08-27T02:14:03.050 | 2008-08-27T02:14:03.050 | null | null | 1,862 | null |
29,364 | 2 | null | 29,292 | 1 | null | We keep the binary files and images in revision control, using Perforce. It's great!
We keep a lot of art assets, and it scales well for lots of large files. It recognizes binary files, the ones that can't be diffed, and stores them as full file copies in the back end.
It has P4V (cross-platform visual browser), an... | null | CC BY-SA 2.5 | null | 2008-08-27T02:17:51.463 | 2008-08-27T02:17:51.463 | null | null | 116 | null |
29,365 | 2 | null | 29,244 | 0 | null | > I dropped that code into a file and pushed it to ff3 and I don't see what you see...the arrow is default color with gray background and black arrow.Are you styling scrollbars too?
I've updated the post, the HTML in there is now literally the html that is being loaded, no other CSS/JS or anything, and it still looks ... | null | CC BY-SA 2.5 | null | 2008-08-27T02:19:16.873 | 2008-08-27T02:19:16.873 | 2020-06-20T09:12:55.060 | -1 | 234 | null |
29,369 | 2 | null | 29,357 | 1 | null | If you're looking for a "higher-level" explanation of this stuff (as in, not code), [Applied Cryptography](http://www.schneier.com/book-applied.html) has quite a few relevant examples (and I believe a section on "secure elections" that covers some voting strategies).
| null | CC BY-SA 2.5 | null | 2008-08-27T02:19:45.610 | 2008-08-27T02:19:45.610 | null | null | 242,853 | null |
29,367 | 2 | null | 29,284 | 0 | null | Have you made a support request to the vendor? Perhaps there's something about the MacBook Pro hardware that prevents the product from working.
| null | CC BY-SA 2.5 | null | 2008-08-27T02:19:22.037 | 2008-08-27T02:19:22.037 | null | null | 533 | null |
29,371 | 2 | null | 29,284 | 0 | null | Given that the exception is a DllNotFoundException, you might want to try checking the HardwareID.dll with [Dependency Walker](http://www.dependencywalker.com/) BEFORE installing any dev tools on the Vista install to see if there is in fact a dependency missing.
| null | CC BY-SA 2.5 | null | 2008-08-27T02:21:22.390 | 2008-08-27T02:21:22.390 | null | null | 2,508 | null |
29,375 | 2 | null | 29,099 | 6 | null | It's not really the languages that are OO, it's the code.
It is possible to write object-oriented C code (with structs and even function pointer members, if you wish) and I have seen some pretty good examples of it. (Quake 2/3 SDK comes to mind.) It is also definitely possible to write procedural (i.e. non-OO) code in... | null | CC BY-SA 2.5 | null | 2008-08-27T02:26:05.530 | 2008-08-27T02:26:05.530 | null | null | 1,088 | null |