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
35,621
2
null
35,614
1
null
MS has [Visual Studio training kit](http://www.microsoft.com/downloads/details.aspx?FamilyID=8BDAA836-0BBA-4393-94DB-6C3C4A0C98A1&displaylang=en). I think the best way is to teach the basics and then start using it in projects. Let them learn the features they need as they are using it on a project.
null
CC BY-SA 2.5
null
2008-08-30T02:46:46.397
2008-08-30T02:46:46.397
null
null
718
null
35,632
2
null
35,615
3
null
> I refer to [A List Apart](http://www.alistapart.com/) articles all the time for those sorts of things. They do a lot of trial-and-error research to come up with really creative ways to handle those common CSS problems in the cleanest most portable way possible.
null
CC BY-SA 4.0
null
2008-08-30T03:01:03.867
2020-02-26T13:50:45.293
2020-02-26T13:50:45.293
11,393,381
3,674
null
35,618
2
null
35,599
1
null
There are differences in how Windows and Unix operating systems expose the disk drives to users and how drive space is partitioned. The biggest difference between the two operating systems is that Unix essentially treats all of the physical drives as one logical drive. (This isn't exactly how it works, but should give...
null
CC BY-SA 2.5
null
2008-08-30T02:44:10.223
2008-08-30T02:44:10.223
null
null
1,559
null
35,634
1
35,635
null
9
478
Is there a Ruby equivalent for Python's "is"? It tests whether two objects are identical (i.e. have the same memory location).
Ruby "is" equivalent
CC BY-SA 2.5
0
2008-08-30T03:04:54.527
2013-07-18T12:40:48.477
2013-07-18T12:40:48.477
null
3,594
[ "python", "ruby" ]
35,635
2
null
35,634
13
null
Use `a.equal? b` [http://www.ruby-doc.org/core/classes/Object.html](http://www.ruby-doc.org/core/classes/Object.html) > Unlike ==, the equal? method should never be overridden by subclasses: it is used to determine object identity (that is, a.equal?(b) iff a is the same object as b).
null
CC BY-SA 2.5
null
2008-08-30T03:06:02.310
2008-08-30T03:06:02.310
null
null
3,560
null
35,640
2
null
34,428
0
null
I did subclass and it was easy and did work. I still don't like it so much. I was already subclassing column styles for other reasons. I'd rather handle all databinding myself, where I can more easily change it and test it. This whole mixing of the UI with the data is old school, and not in a good way. Thanks very...
null
CC BY-SA 2.5
null
2008-08-30T03:16:44.407
2009-04-30T05:42:42.903
2009-04-30T05:42:42.903
785
785
null
35,627
2
null
35,599
3
null
I'm not at all familiar with the inner workings of the UNIX file systems, as in how the bits and bytes are stored, but really that part is interchangeable ([ext3](http://en.wikipedia.org/wiki/Ext3), [reiserfs](http://en.wikipedia.org/wiki/ReiserFS), etc). When people say that UNIX file systems are better, they might m...
null
CC BY-SA 2.5
null
2008-08-30T02:53:11.530
2008-08-30T02:53:11.530
null
null
3,674
null
35,638
2
null
35,528
3
null
Have you looked at Wikipedia's [Category:Computational problems](http://en.wikipedia.org/wiki/Category:Computational_problems) and [Category:NP Complete Problems](http://en.wikipedia.org/wiki/Category:NP-complete_problems) pages? It's probably not complete, but they look like good starting points. Wikipedia seems to do...
null
CC BY-SA 2.5
null
2008-08-30T03:14:09.653
2008-08-30T03:14:09.653
null
null
3,674
null
35,641
2
null
35,026
2
null
A lot of times I'll use client alias to point an application at a different sql server than the ones it's connection string is for, esp. handy when working on DTS or an application with a hard coded connection string. Have everybody use a commonly named alias, use the alias in the connection string and point the alias’...
null
CC BY-SA 2.5
null
2008-08-30T03:17:53.950
2008-08-30T03:17:53.950
null
null
1,433
null
35,639
1
null
null
3
648
I'm interested in using Office 2007 to convert between the pre-2007 binary formats (.doc, .xls, .ppt) and the new Office Open XML formats (.docx, .xlsx, .pptx) How would I do this? I'd like to write a simple command line app that takes in two filenames (input and output) and perhaps the source and/or destination types...
Using Office to programmatically convert documents?
CC BY-SA 3.0
0
2008-08-30T03:16:38.180
2017-10-11T03:12:44.290
2017-10-11T03:12:44.290
1,033,581
113
[ "ms-office" ]
35,637
1
null
null
1
709
I need some help with ASP.NET MVC routes. I need to create 2 routes for a cms type application. One route will be for category level URLS, and the other route will be for the actual page content. - categories, always ends in a '/'``` www.example.com/category/ www.example.com/category/subcategory/ www.example.com/cat...
ASP.NET MVC Route Help, 2 routes, 1 with a category url structure and the other for content page
CC BY-SA 3.0
null
2008-08-30T03:11:46.960
2012-07-13T06:42:18.873
2012-07-13T06:42:18.873
727,208
null
[ "asp.net-mvc", "asp.net-mvc-routing" ]
35,636
2
null
34,674
21
null
Dot notation for property access in Objective-C a message send, just as bracket notation. That is, given this: ``` @interface Foo : NSObject @property BOOL bar; @end Foo *foo = [[Foo alloc] init]; foo.bar = YES; [foo setBar:YES]; ``` The last two lines will compile exactly the same. The only thing that changes t...
null
CC BY-SA 2.5
null
2008-08-30T03:06:31.170
2008-08-30T03:06:31.170
null
null
714
null
35,644
2
null
35,639
2
null
Microsoft has a page which gives several examples of writing scripts to "drive" MS Word. [One such example](http://gallery.technet.microsoft.com/scriptcenter/3f1802f7-60da-4d5a-841a-12ae8a2f8a4b) shows how to convert from a Word document to HTML. By changing the last parameter to any values listed [here](http://msdn....
null
CC BY-SA 3.0
null
2008-08-30T03:25:23.433
2013-04-24T16:29:07.860
2013-04-24T16:29:07.860
863
863
null
35,643
2
null
35,614
2
null
We are a C++ shop, that is moving to C# for UI work (our image processing and 3D graphics code will stay in native C++). I found [C# for C++ Developers](http://media.wiley.com/assets/264/22/0764557599_bonus_AppD.pdf) a very quick and handy introduction to the language. Our team has been using Visual Studio for while, w...
null
CC BY-SA 2.5
null
2008-08-30T03:19:57.487
2008-08-30T03:19:57.487
null
null
3,114
null
35,647
2
null
35,639
0
null
The easiest way would be to use Automation thru the Microsoft.Office.Interop. libraries. You can create an instance of a Word application, for example. There are methods attached to the Application object that will allow you to open and close documents, plus pretty much anything else you can accomplish in VBA by reco...
null
CC BY-SA 2.5
null
2008-08-30T03:28:55.093
2008-08-30T03:28:55.093
null
null
2,470
null
35,648
2
null
35,646
1
null
The trunk is generally the main development line. Releases are branched off and often times experimental or major work is done on branches then merged back to the trunk when it's ready to be integrated with the main development line.
null
CC BY-SA 2.5
null
2008-08-30T03:30:19.427
2008-08-30T03:30:19.427
null
null
2,284
null
35,650
2
null
35,646
36
null
I tend to take the "release branch" approach. The trunk is volatile. Once release time approaches, I'd make a release branch, which I would treat more cautiously. When that's finally done, I'd label/tag the state of the repository so I'd know the "official" released version. I understand there are other ways to do ...
null
CC BY-SA 2.5
null
2008-08-30T03:32:30.467
2008-08-30T03:32:30.467
null
null
863
null
35,649
2
null
35,615
0
null
The already mentioned [A List Apart](http://www.alistapart.com/) is really good. Another site I've used since I started web development is SitePoint.com. Here is their [CSS Reference](http://reference.sitepoint.com/css). If you want a good CSS book their's is one of my favorites.
null
CC BY-SA 2.5
null
2008-08-30T03:30:27.057
2008-08-30T03:30:27.057
null
null
3,030
null
35,652
2
null
35,646
10
null
I think your second approach (e.g., tagging releases and doing experimental stuff in branches, considering the trunk stable) is the best approach. It should be clear that branches inherit all the bugs of a system at the point in time where it is branched: if fixes are applied to a trunk, you will have to go one by on...
null
CC BY-SA 2.5
null
2008-08-30T03:32:58.920
2008-08-30T03:32:58.920
null
null
372
null
35,646
1
35,690
null
171
48,328
Suppose you're developing a software product that has periodic releases. What are the best practices with regard to branching and merging? Slicing off periodic release branches to the public (or whomever your customer is) and then continuing development on the trunk, or considering the trunk the stable version, tagging...
Do you continue development in a branch or in the trunk?
CC BY-SA 2.5
0
2008-08-30T03:26:11.450
2019-07-01T07:05:21.673
2014-04-10T03:24:34.673
321,731
577
[ "version-control" ]
35,651
2
null
10,293
0
null
I'll add this [Url](http://www.ibm.com/developerworks/web/library/wa-aj-jaxer/index.html?ca=dgr-jw64wa-aj-jaxer&S_TACT=105AGY46&S_CMP=GRsitejw64) to my post I found it today, it has some information regarding the subject but no real "performance" information.
null
CC BY-SA 2.5
null
2008-08-30T03:32:46.207
2008-08-30T03:32:46.207
null
null
567
null
35,653
2
null
35,646
1
null
The trunk should generally be your main development source. Otherwise you will spend a lot of time merging in new features. I've seen it done the other way and it usually leads to a lot of last minute integration headaches. We label our releases so we can quickly respond to production emergencies without distribing ...
null
CC BY-SA 2.5
null
2008-08-30T03:34:02.070
2008-08-30T03:34:02.070
null
null
1,208
null
35,655
2
null
35,646
4
null
Attempting to manage maintenance of current production code in line with new development is problematic at best. In order to mitigate those problems code should branch into a maintenance line once testing efforts have completed and the code is ready for delivery. Additionally, the mainline should branch to assist in re...
null
CC BY-SA 2.5
null
2008-08-30T03:35:43.877
2008-08-30T03:35:43.877
null
null
null
null
35,657
2
null
35,646
1
null
For me, it depends on the software I'm using. Under CVS, I would just work in "trunk" and never tag/branch, because it was really painful to do otherwise. In SVN, I would do my "bleeding edge" stuff in trunk, but when it was time to do a server push get tagged appropriately. I recently switching to git. Now I find ...
null
CC BY-SA 2.5
null
2008-08-30T03:38:05.260
2008-08-30T03:38:05.260
null
null
3,674
null
35,645
2
null
33,978
150
null
. One of the problems you may find is that Python objects - like lists and dicts - may have references to other python objects (in this case, what would your size be? The size containing the size of each object or not?). There are some pointers overhead and internal structures related to object types and garbage collec...
null
CC BY-SA 3.0
null
2008-08-30T03:25:43.557
2018-03-28T06:36:34.167
2018-03-28T06:36:34.167
563,532
3,702
null
35,658
2
null
29,744
2
null
These are all weighty topics, but here is my recommendation for updating. You did not specify your platform, but for NANT build environments I use [Tarantino](http://jeffreypalermo.com/blog/the-tarantino-project-automated-database-migrations-and-more/). For every database update you are ready to commit, you make a ch...
null
CC BY-SA 2.5
null
2008-08-30T03:46:48.733
2008-08-30T03:46:48.733
null
null
1,208
null
35,654
2
null
35,646
8
null
We develop on the trunk unless the changes are too major, destabilizing, or we are nearing a major release of one of our products, in which case we create a temporary branch. We also create a permanent branch for every individual product release. I found Microsoft's document on [Branching Guidance](http://www.codeplex....
null
CC BY-SA 2.5
null
2008-08-30T03:35:39.587
2008-08-30T03:35:39.587
null
null
3,114
null
35,665
2
null
35,537
1
null
There is no way (that I know of) to do what you ask with typical WinForms. If you're doing custom painting/drawing, you can zoom that by using a zoom transform, but so far as I know there is no "Zoom" property for the form in the entire world of .NET and native Windows/C++ APIs combined. You could probably rig someth...
null
CC BY-SA 2.5
null
2008-08-30T03:55:38.413
2008-08-30T03:55:38.413
null
null
null
null
35,663
2
null
35,646
2
null
If you are gonna be working through a release cycle, big feature, you get marooned to a branch. Otherwise we work in trunk, and branch for every production release at the moment we build. Previous production builds are moved at that time to old_production_ and current prod release is always just production. All our b...
null
CC BY-SA 2.5
null
2008-08-30T03:55:04.483
2008-08-30T03:55:04.483
null
null
1,220
null
35,664
2
null
23,907
24
null
You may get both added and removed lines with git log, like: ``` git log --shortstat --reverse --pretty=oneline ``` From this, you can write a similar script to the one you did using this info. In python: ``` #!/usr/bin/python """ Display the per-commit size of the current git branch. """ import subprocess import...
null
CC BY-SA 2.5
null
2008-08-30T03:55:23.157
2008-08-30T03:55:23.157
null
null
3,702
null
35,661
2
null
35,646
5
null
It depends on your situations. We use Perforce and have typically have several lines of development. The trunk is considered "gold" and all development happens on branches that get merged back to the mainline when they are stable enough to integrate. This allows rejection of features that don't make the cut and can ...
null
CC BY-SA 2.5
null
2008-08-30T03:53:27.297
2008-08-30T03:53:27.297
null
null
2,659
null
35,659
2
null
28,588
10
null
You might also look into setting up your own site as a delegate for another OpenID provider. That way, you can use your own custom URL, but not worry about security and maintenance as mentioned already. However, it's not very difficult, so it may not meet your criteria :) As an example, you would add this snippet of...
null
CC BY-SA 2.5
null
2008-08-30T03:50:28.520
2008-08-30T03:50:28.520
null
null
3,344
null
35,669
1
35,692
null
1
1,971
I've been using Window Home Server for my backups here at home for most of a year now, and I'm really pleased with it. It's far better than the software I was using previously (Acronis). I'm thinking about a backup strategy for my work machine and I'd like to know how WHS compares with Vista's built-in backup and res...
Windows Home Server versus Vista Backup and Restore Center
CC BY-SA 2.5
null
2008-08-30T04:01:53.860
2014-10-15T18:32:19.650
2014-10-15T18:32:19.650
2,422,776
2,600
[ "backup", "windows-vista" ]
35,670
1
35,672
null
17
3,761
I am ready to start using SVN, but I have NO (as in the money required for free beer) experience with source control. I have installed subversion on my server (that was easy, 'apt-get install subversion') but now I don't know what to do, how to configure it, or how to use it.What suggestions do you have, and where can...
How do I begin using SVN?
CC BY-SA 2.5
0
2008-08-30T04:01:55.263
2018-10-21T12:52:22.963
2008-11-24T23:00:38.723
4,872
115
[ "svn" ]
35,667
2
null
22,059
7
null
I'm not familiar with the specific services listed, but the field of natural language processing has developed a number of techniques that enable this sort of information extraction from general text. As Sean stated, once you have candidate terms, it's not to difficult to search for those terms with some of the other ...
null
CC BY-SA 2.5
null
2008-08-30T03:56:57.663
2008-08-30T03:56:57.663
null
null
3,446
null
35,666
2
null
35,002
51
null
No, but a wrapper is rather trivial: ``` public class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue> { IDictionary<TKey, TValue> _dict; public ReadOnlyDictionary(IDictionary<TKey, TValue> backingDict) { _dict = backingDict; } public void Add(TKey key, TValue value) { ...
null
CC BY-SA 2.5
null
2008-08-30T03:56:02.440
2009-07-08T22:00:52.727
2009-07-08T22:00:52.727
838
838
null
35,684
2
null
35,315
4
null
You could add the DB2 database as a linked server in sql server and just join the two tables in a view/sproc in sql. I've done it, it's not hard and you'll get data in realtime.
null
CC BY-SA 2.5
null
2008-08-30T04:23:30.237
2008-08-30T04:23:30.237
null
null
1,433
null
35,672
2
null
35,670
17
null
Eric Sink has an [excellent series](http://www.ericsink.com/scm/source_control.html) on source code control aimed at beginners. For Subversion specifics, including setting up and administering a server, the [Subversion book](http://svnbook.red-bean.com/) is a great resource, and includes a section with examples of a ty...
null
CC BY-SA 2.5
null
2008-08-30T04:04:35.197
2008-08-30T04:11:08.283
2008-08-30T04:11:08.283
3,542
3,542
null
35,685
2
null
3,748
0
null
Another benefit of storing the images in the file system is that you don't have to do anything special to have the client cache them... ...unless of course the image isn't accessible via the document root (e.g. authentication barrier), in which case you'll need to check the cache-control headers your code is sending.
null
CC BY-SA 2.5
null
2008-08-30T04:27:40.490
2008-08-30T04:27:40.490
null
null
3,542
null
35,687
2
null
35,670
5
null
[http://blog.clickablebliss.com/2006/04/26/introduction-to-subversion-screencast/](http://blog.clickablebliss.com/2006/04/26/introduction-to-subversion-screencast/) explains how to use SVN very well.
null
CC BY-SA 2.5
null
2008-08-30T04:45:56.827
2008-08-30T04:45:56.827
null
null
745
null
35,674
2
null
35,646
4
null
It depends on the size of your development effort. Multiple teams working in parallel won't be able to work effectively all on the same code (trunk). If you have just a small group of people working and your main concern is cutting a branch so you can continue to work while going back to the branch for making bug-fix...
null
CC BY-SA 2.5
null
2008-08-30T04:05:32.073
2008-08-30T04:05:32.073
null
null
855
null
35,676
2
null
35,670
2
null
Where do you live that you can get free bear!? Subversion is complicated to set up -- if you have no experience with version control at all, I'd recommend using a distributed VCS because they don't require any server configuration. [Bazaar in five minutes](http://doc.bazaar-vcs.org/bzr.dev/en/mini-tutorial/index.html)...
null
CC BY-SA 2.5
null
2008-08-30T04:08:04.703
2008-08-30T04:08:04.703
null
null
3,560
null
35,683
2
null
16,248
14
null
While nifty, the revision keyword trick only updates the file when it's changed in that revision - if you don't change the file, then it will continue to reflect the old revision. If you want the software to always reflect the overall revision number, then you'll have to delve into the [relevant SVN entries file](http...
null
CC BY-SA 2.5
null
2008-08-30T04:23:00.737
2008-08-30T04:23:00.737
null
null
3,542
null
35,677
1
36,212
null
9
4,244
If I have a separate system with its own concept of users and presence, what is the most appropriate architecture for creating a bridge to an XMPP server network? As far as I can tell there are three primary ways: 1. Act as a server. This creates one touchpoint, but I fear it has implications for compatibility, and ...
What is the best architecture to bridge to XMPP?
CC BY-SA 2.5
0
2008-08-30T04:11:35.070
2012-10-01T21:21:48.373
2012-05-02T17:39:08.130
352,841
2,659
[ "networking", "architecture", "xmpp" ]
35,698
1
null
null
7
1,549
I've encountered the term "multi-agent computing" as of late, and I don't quite get what it is. I've read a book about it, but that didn't answer the fundamental question of what an agent was. Does someone out there have a pointer to some reference which is clear and concise and answers the question without a load of ...
"Multi-agent computing" in simple terms
CC BY-SA 2.5
0
2008-08-30T05:26:02.083
2011-12-09T16:40:57.827
2011-12-09T16:40:57.827
464,359
3,542
[ "agent-based-modeling", "multi-agent" ]
35,694
2
null
35,491
8
null
- - . ``` $ size python __TEXT __DATA __OBJC others dec hex 860160 159744 0 2453504 3473408 350000 ```
null
CC BY-SA 2.5
null
2008-08-30T05:12:31.397
2008-09-16T03:52:11.163
2008-09-16T03:52:11.163
116
116
null
35,689
2
null
514
5
null
I used to get these all the time on Apache1/fastcgi. I think it's caused by fastcgi hanging up before Ruby is done. Switching to mongrel is a good first step, but there's more to do. It's a bad idea to cull from web services on live pages, particularly from Rails. Rails is not thread-safe. The number of concurrent co...
null
CC BY-SA 2.5
null
2008-08-30T04:55:25.743
2008-08-30T04:55:25.743
null
null
3,674
null
35,692
2
null
35,669
4
null
Chris, They're different beasts. WHS backup is pretty much automatic and uses deltas - Vista's is manual and I don't believe offers incremental updates. While your solution (Vista + network copy) would preserve your data it has two problems I an see; 1. Your documents will only have the latest revision. If you fin...
null
CC BY-SA 2.5
null
2008-08-30T05:05:39.137
2008-08-30T05:05:39.137
null
null
1,043
null
35,700
1
35,715
null
14
7,409
What things should be kept most in mind when writing cross-platform applications in C? Targeted platforms: 32-bit Intel based PC, Mac, and Linux. I'm especially looking for the type of versatility that Jungle Disk has in their USB desktop edition ( [http://www.jungledisk.com/desktop/download.aspx](http://www.jungledisk...
Writing cross-platform apps in C
CC BY-SA 2.5
0
2008-08-30T05:30:24.333
2022-04-06T02:05:28.560
2008-11-03T13:32:10.943
23,855
356
[ "c", "cross-platform", "32-bit" ]
35,701
2
null
35,670
7
null
Another good Subversion book is [Pragmatic Version Control with Subversion](http://www.pragprog.com/titles/svn2/pragmatic-version-control-using-subversion), a Pragmatic Programmer book that goes out of its way to make key concepts of version control (from checkin & checkout to branching & merging) clear.
null
CC BY-SA 2.5
null
2008-08-30T05:30:41.603
2008-08-30T05:30:41.603
null
null
3,569
null
35,699
1
1,842,279
null
16
6,452
I'm trying to make a two-column page using a div-based layout (no tables please!). Problem is, I can't grow the left div to match the height of the right one. My right div typically has a lot of content. Here's a paired down example of my template to illustrate the problem. ``` <div style="float:left; width: 150px...
On a two-column page, how can I grow the left div to the same height of the right div using CSS or Javascript?
CC BY-SA 4.0
0
2008-08-30T05:28:40.483
2019-08-13T17:17:59.103
2019-08-13T17:17:59.103
11,261,518
3,499
[ "javascript", "html", "css" ]
35,704
2
null
35,700
0
null
Try to write as much as you can with POSIX. Mac and Linux support POSIX natively and Windows has a system that can run it (as far as I know - I've never actually used it). If your app is graphical, both Mac and Linux support X11 libraries (Linux natively, Mac through X11.app) and there are numerous ways of getting X11...
null
CC BY-SA 2.5
null
2008-08-30T05:35:53.820
2008-08-30T05:49:31.933
2008-08-30T05:49:31.933
658
658
null
35,710
2
null
35,707
3
null
You should do as much client-side processing as possible. This will enable your application to scale better than doing processing server-side. To solve your temperamental user problem, you could look into making your client processes run at a very low priority so there's no noticeable decrease in performance on the par...
null
CC BY-SA 2.5
null
2008-08-30T05:44:31.273
2008-08-30T05:44:31.273
null
null
658
null
35,707
1
35,710
null
2
786
With a distributed application, where you have lots of clients and one main server, should you: - - Additional info: - -
Decision making in distributed applications
CC BY-SA 3.0
0
2008-08-30T05:41:38.677
2012-06-10T18:21:16.693
2012-06-10T18:21:16.693
69,809
356
[ "distributed" ]
35,709
1
35,735
null
5
1,921
I currently have speakers set up both in my office and in my living room, connected to my PC via two sound cards, and would like to switch the set of speakers I'm outputting to on the fly. Anyone know an application or a windows API call that I can use to change the default sound output device? It is currently a bit o...
How do I change my Active Sound Card on the Fly?
CC BY-SA 4.0
null
2008-08-30T05:43:56.830
2020-05-26T14:46:36.443
2020-05-26T14:46:36.443
23
23
[ "windows", "audio", "hardware" ]
35,702
2
null
35,698
5
null
A multi-agent system is a concept borrowed from AI. It's almost like a virtual world where you have agents that are able to observe, communicate, and react. To give an example, you might have a memory allocation agent that you have to ask for memory and it decides whether or not to give it to you. Or you might have an ...
null
CC BY-SA 2.5
null
2008-08-30T05:32:20.337
2008-08-30T05:32:20.337
null
null
658
null
35,705
2
null
35,120
3
null
Well, you can actually do local image processing in Silverlight 2... But there are no built in classes to help you. But you can load any image into a byte array, and start manipulating it, or implement your own image encoder. Joe Stegman got lots of great information about "editable images" in Silverlight over at [htt...
null
CC BY-SA 2.5
null
2008-08-30T05:38:50.477
2008-08-30T05:38:50.477
null
null
1,199,387
null
35,688
2
null
33,594
9
null
The solution really depends on what your needs are, and can be pretty complex (Thanks fully to Windows Vista). This is probably going to be beyond your need, but this will help others that find this page via search. 1. If you do not need the process to run with a GUI and you do not require elevation 2. If the user y...
null
CC BY-SA 2.5
null
2008-08-30T04:47:10.973
2008-08-30T04:47:10.973
null
null
3,153
null
35,690
2
null
35,646
152
null
I have tried both methods with a large commercial application. The answer to which method is better is highly dependent on your exact situation, but I will write what my overall experience has shown so far. Here are some guidelines and benefits of this method: - - - - - - - - If you try to do the opposite and...
null
CC BY-SA 3.0
null
2008-08-30T05:01:59.847
2012-01-24T12:39:54.070
2012-01-24T12:39:54.070
3,153
3,153
null
35,715
2
null
35,700
10
null
I maintained for a number of years an ANSI C networking library that was ported to close to 30 different OS's and compilers. The library didn't have any GUI components, which made it easier. We ended up abstracting out into dedicated source files any routine that was not consistent across platforms, and used #defines...
null
CC BY-SA 2.5
null
2008-08-30T05:48:56.537
2010-09-16T03:59:39.390
2010-09-16T03:59:39.390
3,429
3,429
null
35,718
2
null
35,699
0
null
@hoyhoy If a designer can make this work in html, then he can have this design. If he is a true master of web design, he will realize that this is a limitation of the media, as video is not possible in magazine ads. If he would like to simulate weight by giving the 2 columns equal importance, than change the borders,...
null
CC BY-SA 2.5
null
2008-08-30T05:52:03.597
2008-08-30T05:52:03.597
null
null
1,220
null
35,713
2
null
35,700
4
null
Further to Kyle's answer, I would strongly recommend trying to use the Posix subsystem in Windows. It's implemented to an absolute bare minimum level such that Microsoft can claim "Posix support" on a feature sheet tick box. Perhaps somebody out there actually uses it, but I've never encountered it in real life. One ...
null
CC BY-SA 2.5
null
2008-08-30T05:47:06.510
2008-08-30T05:47:06.510
null
null
893
null
35,722
1
null
null
3
1,211
I want to write a tool that helps me search pdf/chm/djvu files in linux. Any pointers on how to go about it? The major problem is reading/importing data from all these files. Can this be done with C and shell scripting?
Desktop search utility for pdf,chm and djvu files
CC BY-SA 3.0
0
2008-08-30T05:58:04.690
2017-08-04T14:15:45.190
2017-08-04T14:15:45.190
1,836,618
2,727
[ "desktop-search" ]
35,721
1
35,723
null
10
520
Can anybody recommend a reliable and decently documented code highlighter for WordPress 2.6.1? I have tried Code Snippet by Roman Roan and Developer Formatter by Gilberto Saraiva. But they don't seem to work as described in the documentation and are mangling the code snippets instead of prettifying them.
Seeking code highlighter recommendation for WordPress
CC BY-SA 4.0
0
2008-08-30T05:57:20.167
2019-01-18T11:02:16.840
2019-01-18T11:02:16.840
567,854
1,969
[ "php", "wordpress", "codehighlighter", "geshi" ]
35,711
2
null
35,699
9
null
Your simplest answer lies in the next version of css (3), which currently no browser supports. For now you are relegated to calculating heights in javascript and setting them on the left side. If the navigation is so important to be positioned in such a way, run it along the top. you could also do a visual trick by...
null
CC BY-SA 2.5
null
2008-08-30T05:44:35.300
2008-08-30T06:01:13.747
2008-08-30T06:01:13.747
1,220
1,220
null
35,723
2
null
35,721
6
null
I use [WP-Syntax](http://wordpress.org/extend/plugins/wp-syntax/) and it's worked very well for me. It's supported every language I've thrown at it so far, and the colors can be customized for a particular theme (though the defaults look just fine too)
null
CC BY-SA 2.5
null
2008-08-30T05:58:33.173
2008-08-30T05:58:33.173
null
null
658
null
35,739
2
null
35,721
0
null
You should also checkout [syntaxhighlighter](http://code.google.com/p/syntaxhighlighter/) from Google Code.
null
CC BY-SA 2.5
null
2008-08-30T06:24:16.450
2008-08-30T06:24:16.450
null
null
373
null
35,738
2
null
35,485
5
null
"size" is the traditional tool. "readelf" has a lot of options. ``` $ size /bin/sh text data bss dec hex filename 712739 37524 21832 772095 bc7ff /bin/sh ```
null
CC BY-SA 2.5
null
2008-08-30T06:24:05.780
2008-09-16T03:51:37.547
2008-09-16T03:51:37.547
116
116
null
35,741
2
null
34,611
11
null
I use [pygame](http://www.pygame.org/news.html) myself and it is very good. It has good documentation and tutorials, and is quite well designed. I've also heard wonderful reviews of [pyglet](http://www.pyglet.org/).
null
CC BY-SA 2.5
null
2008-08-30T06:39:35.977
2008-08-30T06:39:35.977
null
null
3,119
null
35,735
2
null
35,709
7
null
That topic is covered in depth here [Easily Change or Switch the Default Audio Sound Output in Vista or XP](http://www.raymond.cc/blog/archives/2008/08/26/easily-change-or-switch-the-default-audio-sound-output-in-windows-vista-and-xp/). Note that sound management was changed in Vista significantly. On a side note, I ...
null
CC BY-SA 2.5
null
2008-08-30T06:21:06.537
2008-08-30T06:21:06.537
null
null
3,479
null
35,734
2
null
35,670
1
null
Another route you could take is not to mess around with your own repository per se, for fear of messing things up, but you could use someone else's repository or set up your own elsewhere. Point being, I learned by using SourceForge, which has both CVS and SVN... but hearing good things about SVN and weighing the diffe...
null
CC BY-SA 2.5
null
2008-08-30T06:20:24.447
2008-08-30T06:20:24.447
null
null
2,091
null
35,724
2
null
16,918
12
null
[The Haskell wikibook](http://en.wikibooks.org/wiki/Haskell) which includes the text from the great tutorial [Yet Another Haskell Tutorial](https://www.umiacs.umd.edu/~hal/docs/daume02yaht.pdf). (The "Generic Haskell User Guide" paper is a fine paper, but I think it is a particularly bad recommendation for a beginning...
null
CC BY-SA 3.0
null
2008-08-30T06:02:47.907
2016-01-02T05:31:48.870
2016-01-02T05:31:48.870
1,529,734
2,543
null
35,745
1
35,756
null
3
682
I have taken over a large code base and would like to get an overview how and where certain classes and their methods are used. Is there any good tool that can somehow visualize the dependencies and draw a nice call tree or something similar? The code is in C++ in Visual Studio if that helps narrow down any selection...
Are there any tools to visualize template/class methods and their usage?
CC BY-SA 2.5
0
2008-08-30T06:51:07.103
2018-12-12T12:18:10.633
2008-09-12T21:14:16.153
-1
1,398
[ "visualization" ]
35,743
1
null
null
19
46,927
According to [Microsoft](http://msdn.microsoft.com/en-us/library/bb386454.aspx) the FileUpload control is not compatible with an AJAX UpdatePanel. I am aware that a PostBackTrigger can be added to the submit button of the form like this: ``` <Triggers> <asp:PostBackTrigger ControlID="Button1" /> </Triggers> ``` ...
FileUpload control inside an UpdatePanel without refreshing the whole page?
CC BY-SA 2.5
0
2008-08-30T06:48:47.873
2014-04-22T07:20:31.547
2008-09-19T22:42:34.313
811
3,677
[ ".net", "asp.net", "asp.net-ajax", "file-upload", "updatepanel" ]
35,752
2
null
35,700
7
null
Try to avoid platform-dependent #ifdefs, as they tend to grow exponentially when you add new platforms. Instead, try to organize your source files as a tree with platform-independent code at the root, and platform-dependent code on the "leaves". There is a nice book on the subject, [Multi-Platform Code Management](http...
null
CC BY-SA 2.5
null
2008-08-30T07:02:03.553
2008-08-30T07:02:03.553
null
null
3,232
null
35,742
2
null
35,698
4
null
There are several key aspects to multi-agent computing, distribution and independence are among them. Multi-agents don't have to be on different machines, they could as @Kyle says, be multiple processes on a single chip or machine, but they act without explicit centralised direction. They might act in concert, so the...
null
CC BY-SA 2.5
null
2008-08-30T06:45:20.050
2008-08-30T06:50:31.927
2008-08-30T06:50:31.927
2,902
2,902
null
35,751
2
null
35,745
0
null
In Java I would start with JDepend. In .NET, with NDepend. Don't know about C++.
null
CC BY-SA 3.0
null
2008-08-30T06:58:31.907
2012-11-18T00:51:35.730
2012-11-18T00:51:35.730
58,792
86
null
35,744
2
null
44,965
15
null
My favorite Monad tutorial: [http://www.haskell.org/haskellwiki/All_About_Monads](http://www.haskell.org/haskellwiki/All_About_Monads) (out of 170,000 hits on a Google search for "monad tutorial"!) @Stu: The point of monads is to allow you to add (usually) sequential semantics to otherwise pure code; you can even co...
null
CC BY-SA 3.0
null
2008-08-30T06:50:43.160
2011-05-05T21:59:50.037
2011-05-05T21:59:50.037
2,543
2,543
null
35,753
1
259,591
null
29
29,608
Right now I'm developing mostly in C/C++, but I wrote some small utilities in Python to automatize some tasks and I really love it as language (especially the productivity). Except for the performances (a problem that could be sometimes solved thanks to the ease of interfacing Python with C modules), do you think it ...
Is Python good for big software projects (not web based)?
CC BY-SA 2.5
0
2008-08-30T07:08:22.587
2011-02-06T00:27:52.850
null
null
3,373
[ "python", "ide" ]
35,717
2
null
34,065
81
null
1. If a registry key exists 2. What the default value is for that registry key 3. What a string value is 4. What a DWORD value is Include the library dependency: Advapi32.lib ``` HKEY hKey; LONG lRes = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Perl", 0, KEY_READ, &hKey); bool bExistsAndSuccess (lRes == ERR...
null
CC BY-SA 3.0
null
2008-08-30T05:51:31.757
2012-10-17T15:01:05.820
2012-10-17T15:01:05.820
3,937
3,153
null
35,762
1
35,770
null
15
8,698
I have a large GUI project that I'd like to port to Linux. What is the most recommended framework to utilize for GUI programming in Linux? Are Frameworks such as KDE / Gnome usable for this objective Or is better to use something more generic other than X? I feel like if I chose one of Gnome or KDE, I'm closing the m...
Linux GUI development
CC BY-SA 3.0
0
2008-08-30T07:51:26.977
2020-12-16T05:07:56.063
2016-10-09T16:41:14.457
5,768,335
3,153
[ "c++", "linux", "user-interface", "gnome", "kde-plasma" ]
35,748
1
35,908
null
1
3,881
I would like to create events for certain resources that are used across various processes and access these events by name. The problem seems to be that the names of the events must be known to all applications referring to them. Is there maybe a way to get a list of names events in the system? I am aware that I migh...
Is it possible to list named events in Windows?
CC BY-SA 3.0
0
2008-08-30T06:56:31.507
2013-03-09T11:34:38.090
2013-03-09T11:34:38.090
419
1,398
[ "windows", "events" ]
35,756
2
null
35,745
1
null
Here are a few options: - [CodeDrawer](http://www.codedrawer.com/index.html)- [CC-RIDER](http://www.westernwares.com/)- [Doxygen](http://www.doxygen.nl/index.html) The last one, doxygen, is more of an automatic documentation tool, but it is capable of generating dependency graphs and inheritance diagrams. It's also l...
null
CC BY-SA 4.0
null
2008-08-30T07:17:17.697
2018-12-12T12:18:10.633
2018-12-12T12:18:10.633
1,657,886
2,783
null
35,759
2
null
35,753
13
null
I really like python, it's usually my language of choice these days for small (non-gui) stuff that I do on my own. However, for some larger Python projects I've tackled, I'm finding that it's not quite the same as programming in say, C++. I was working on a language parser, and needed to represent an AST in Python. Th...
null
CC BY-SA 2.5
null
2008-08-30T07:22:03.677
2008-08-30T07:22:03.677
null
null
893
null
35,754
2
null
35,743
8
null
I know of a third party component that can do that. It's called ["swfupload"](http://swfupload.org/) and is free to use and open source, and uses javascript and flash to do the magic. here is a list of the features they offer: (from their site) > - - - - - - - - - - - They also have a [demo area](http://www.swfuplo...
null
CC BY-SA 2.5
null
2008-08-30T07:16:36.717
2008-08-30T07:16:36.717
null
null
46
null
35,758
2
null
16,770
3
null
@Timbo: You are basically right about it being sort of like an abstract Tree class with three derived classes (Empty, Leaf, and Node), but you would also need to enforce the guarantee that some one using your Tree class can never add any new derived classes, since the strategy for using the Tree datat type is to write...
null
CC BY-SA 2.5
null
2008-08-30T07:21:17.733
2008-08-30T07:21:17.733
null
null
2,543
null
35,757
2
null
35,753
18
null
In my opinion python is more than ready for developing complex applications. I see pythons strength more on the server side than writing graphical clients. But have a look at [http://www.resolversystems.com/](http://www.resolversystems.com/). They develop a whole spreadsheet in python using the .net ironpython port. I...
null
CC BY-SA 2.5
null
2008-08-30T07:19:40.187
2011-02-06T00:27:52.850
2011-02-06T00:27:52.850
242,848
720
null
35,773
2
null
35,772
0
null
If it helps RegexBuddy does this also.
null
CC BY-SA 2.5
null
2008-08-30T08:18:26.427
2008-08-30T08:18:26.427
null
null
115
null
35,768
2
null
35,762
4
null
Gnome apps work on KDE desktops and vice versa; you won't be locking anyone out. As far as toolkits go, it's fairly subjective. All of the toolkits are fairly cross-platform. If you're not open source, then GTK+ would be the cheaper option, as Qt is only free for open source use, whereas GTK+ is LGPL.
null
CC BY-SA 2.5
null
2008-08-30T08:05:50.217
2008-08-30T08:05:50.217
null
null
61
null
35,769
2
null
35,722
0
null
How about a plugin for [Beagle](http://www.beagle-project.org/) ? It already searches PDFs but you can add other file types. Here is the relevant wikipedia page : [http://en.wikipedia.org/wiki/Beagle_(software)](http://en.wikipedia.org/wiki/Beagle_(software))
null
CC BY-SA 2.5
null
2008-08-30T08:11:37.520
2008-08-30T08:11:37.520
null
null
238
null
35,775
2
null
24,515
4
null
+1 on the Clbuttic mistake, I think it is important for "bad word" filters to scan for both leading and trailing spaces (e.g., " ass ") as opposed for just the exact string so that we won't have words like clbuttic, clbuttes, buttert, buttess, etc.
null
CC BY-SA 2.5
null
2008-08-30T08:21:18.230
2008-08-30T08:21:18.230
null
null
372
null
35,770
2
null
35,762
15
null
Your best bet may be to port it to a cross-platform widget library such as [wxWidgets](http://en.wikipedia.org/wiki/WxWidgets), which would give you portability to any platform wxWidgets supports. It's also important to make the distinction between Gnome libraries and GTK, and likewise KDE libraries and Qt. If you wri...
null
CC BY-SA 2.5
null
2008-08-30T08:12:06.957
2008-08-30T08:31:43.680
2008-08-30T08:31:43.680
2,461
2,461
null
35,778
2
null
35,772
0
null
Does the information need to be secure? If not, ClickOnce can use URL-based parameters. [Here's an article about that on MSDN](http://msdn.microsoft.com/en-us/library/ms172242.aspx).
null
CC BY-SA 2.5
null
2008-08-30T08:21:29.307
2008-08-30T08:21:29.307
null
null
615
null
35,780
2
null
35,762
5
null
I recommend [wxWidgets](http://www.wxwidgets.org/) or [Qt](http://www.trolltech.no/). They are both mature, well-structured and cross-platform, with decent documentation and sample source code.
null
CC BY-SA 2.5
null
2008-08-30T08:22:08.430
2008-08-30T08:22:08.430
null
null
1,709
null
35,779
2
null
35,762
0
null
Have you thought of using Mono? Programs like Paint.NET work great under Linux & Windows.
null
CC BY-SA 2.5
null
2008-08-30T08:22:07.073
2008-08-30T08:22:07.073
null
null
2,754
null
35,784
2
null
35,782
3
null
There are [Unicode box drawing characters](http://www.unicode.org/charts/symbols.html) (look for Box Drawing under Geometrical Symbols - the [chart itself](http://www.unicode.org/charts/PDF/U2500.pdf) is a PDF). I don't have any idea how widely supported those characters are, though.
null
CC BY-SA 2.5
null
2008-08-30T08:31:22.933
2008-08-30T08:31:22.933
null
null
893
null
35,785
1
35,821
null
107
147,099
What is the Java analogue of .NET's XML serialization?
XML serialization in Java?
CC BY-SA 3.0
0
2008-08-30T08:33:01.133
2018-07-11T13:10:05.997
2014-06-22T11:32:20.453
545,127
3,583
[ "java", "xml", "serialization" ]
35,772
1
40,188
null
2
224
I'd like to have a link in my ASP.NET web site that authenticated users click to download a windows app that is already pre-configured with their client ID and some site config data. My goal is no typing required for the user during the client app install, both for the user friendliness, and to avoid config errors fro...
How to embed user-specific data in .NET windows setup app at setup download time?
CC BY-SA 3.0
null
2008-08-30T08:16:37.553
2013-12-02T13:10:28.217
2013-12-02T13:10:28.217
2,432,317
3,710
[ ".net", "windows", "installation", "fogbugz" ]
35,786
2
null
32,385
0
null
Most of these kinds of things can be determined programatically in Python, using modules like sys, os, and the special [_file_](http://pyref.infogami.com/__file__) identifier which tells you where you are in the filesystem path. It's important to keep in mind that when a module is first imported it will execute everyt...
null
CC BY-SA 2.5
null
2008-08-30T08:35:08.213
2008-08-30T08:35:08.213
null
null
3,594
null
35,776
2
null
35,753
8
null
Python is considered (among Python programmers :) to be a great language for rapid prototyping. There's not a lot of extraneous syntax getting in the way of your thought processes, so most of the work you do tends to go into the code. (There's far less idioms required to be involved in writing good Python code than in ...
null
CC BY-SA 2.5
null
2008-08-30T08:21:18.837
2008-08-30T08:52:05.347
2008-08-30T08:52:05.347
3,594
3,594
null