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
30,493
2
null
30,485
10
null
I usually go with varchar(255) (255 being the maximum length of a varchar type in MySQL).
null
CC BY-SA 2.5
null
2008-08-27T15:43:15.397
2008-08-27T15:43:15.397
null
null
72
null
30,491
2
null
30,485
7
null
If it's full name in one field, I usually go with 128 - 64/64 for first and last in separate fields - you just never know.
null
CC BY-SA 2.5
null
2008-08-27T15:43:04.943
2008-08-27T15:43:04.943
null
null
35
null
30,490
2
null
30,465
5
null
The site GetSatisfaction has been an increasingly popular way to get customer feedback. [http://getsatisfaction.com/](http://getsatisfaction.com/) GetSatisfaction is a community based site that builds a community around your application. Users can post questions, comments, and feedback about and application and get ...
null
CC BY-SA 3.0
null
2008-08-27T15:42:57.940
2011-05-02T14:52:01.817
2011-05-02T14:52:01.817
55,408
2,813
null
30,497
2
null
30,485
0
null
The average first name is about 6 letters. That leaves 43 for a last name. :) Seems like you could probably shorten it if you like. The main question is how many rows do you think you will have? I don't think varchar(50) is going to kill you until you get several million rows.
null
CC BY-SA 2.5
null
2008-08-27T15:44:16.847
2008-08-27T15:44:16.847
null
null
2,894
null
30,503
2
null
27,983
242
null
In all versions of MySQL, simply alias the aggregate in the SELECT list, and order by the alias: ``` SELECT COUNT(id) AS theCount, `Tag` from `images-tags` GROUP BY `Tag` ORDER BY theCount DESC LIMIT 20 ```
null
CC BY-SA 2.5
null
2008-08-27T15:46:41.113
2008-08-27T15:46:41.113
null
null
3,254
null
30,504
1
30,512
null
25
28,710
I know there is a registry key indicating the install directory, but I don't remember what it is off-hand. I am currently interested in Visual Studio 2008 install directory, though it wouldn't hurt to list others for future reference.
Programmatically retrieve Visual Studio install directory
CC BY-SA 4.0
0
2008-08-27T15:47:17.027
2023-01-04T19:43:24.500
2019-11-01T13:36:04.053
63,550
2,495
[ "visual-studio" ]
30,508
2
null
30,494
1
null
Well, since you only have a four element array you may just want ot unroll the recursion to save time. Passing arrays as arguments will eat up memory and leave a mess for the GC to clean up later.
null
CC BY-SA 2.5
null
2008-08-27T15:48:44.433
2008-08-27T15:48:44.433
null
null
2,894
null
30,509
2
null
30,485
160
null
[UK Government Data Standards Catalogue](http://webarchive.nationalarchives.gov.uk/20100407120701/http://cabinetoffice.gov.uk/govtalk/schemasstandards/e-gif/datastandards.aspx) suggests 35 characters for each of Given Name and Family Name, or 70 characters for a single field to hold the Full Name.
null
CC BY-SA 3.0
null
2008-08-27T15:49:46.410
2013-05-07T23:34:02.687
2013-05-07T23:34:02.687
1,586,312
2,084
null
30,485
1
30,509
null
162
147,641
I have a simple webform that will allow unauthenticated users to input their information, including name. I gave the name field a limit of 50 characters to coincide with my database table where the field is `varchar(50)`, but then I started to wonder. Is it more appropriate to use something like the `Text` column type ...
What is a reasonable length limit on person "Name" fields?
CC BY-SA 4.0
0
2008-08-27T15:40:54.840
2022-03-24T09:29:35.773
2021-07-16T17:02:48.247
11,455,105
106
[ "html", "sql", "sql-server", "textbox", "limit" ]
30,510
2
null
30,494
40
null
Use the [Version](http://msdn.microsoft.com/en-us/library/system.version.aspx) class. ``` Version a = new Version("1.0.0.0"); Version b = new Version("2.0.0.0"); Console.WriteLine(string.Format("Newer: {0}", (a > b) ? "a" : "b")); // prints b ```
null
CC BY-SA 2.5
null
2008-08-27T15:50:17.330
2008-08-27T15:50:17.330
null
null
77
null
30,514
2
null
30,494
0
null
If you can assume that each place in the version string will only be one number (or at least the last 3, you can just remove the commas or periods and compare...which would be a lot faster...not as robust, but you don't always need that. ``` public static int CompareVersions(string strA, string strB) { char[] spli...
null
CC BY-SA 2.5
null
2008-08-27T15:52:02.990
2008-08-27T15:52:02.990
null
null
194
null
30,494
1
30,629
null
26
20,266
Here is my code, which takes two version identifiers in the form "1, 5, 0, 4" or "1.5.0.4" and determines which is the newer version. Suggestions or improvements, please! ``` /// <summary> /// Compares two specified version strings and returns an integer that /// indicates their relationship to one another i...
Compare Version Identifiers
CC BY-SA 3.0
0
2008-08-27T15:43:27.190
2014-09-17T03:51:03.263
2017-05-23T11:47:02.487
-1
1,490
[ "c#", ".net", "compare", "versions" ]
30,496
2
null
30,067
5
null
@Jonathan Holland I saw that you were voted down, but that is a VERY VALID point. I have been reading some posts around the intertubes where people seem to be confusing ASP.NET MVC [the framework](http://www.asp.net/mvc/) and MVC [the pattern](http://en.wikipedia.org/wiki/Model-view-controller). MVC in of itself is a ...
null
CC BY-SA 2.5
null
2008-08-27T15:44:02.417
2008-08-27T15:44:02.417
null
null
2,213
null
30,515
2
null
29,145
0
null
I kept digging around some of the "major" frameworks and it seems that Django does exactly what I was talking about. Or so it seems from this [screencast](http://www2.lamptraining.com/screencast/1/). Does anyone have any remark to make about this? Does it work well?
null
CC BY-SA 2.5
null
2008-08-27T15:52:08.387
2008-08-27T15:52:08.387
null
null
2,841
null
30,518
2
null
30,428
3
null
[Jboss clustering](http://docs.jboss.org/jbossas/jboss4guide/r4/html/cluster.chapt.html) was very easy to get up and running. It seems to work well for us.
null
CC BY-SA 2.5
null
2008-08-27T15:53:33.717
2008-08-27T15:53:33.717
null
null
1,310
null
30,512
2
null
30,504
10
null
I'm sure there's a registry entry as well but I couldn't easily locate it. There is the VS90COMNTOOLS environment variable that you could use as well.
null
CC BY-SA 2.5
null
2008-08-27T15:51:08.450
2008-08-27T15:51:08.450
null
null
2,587,612
null
30,470
2
null
30,373
6
null
I've already mentioned it a few times, but Scott Meyers' books [Effective C++](https://rads.stackoverflow.com/amzn/click/com/0321334876) and [Effective STL](https://rads.stackoverflow.com/amzn/click/com/0201749629) are really worth their weight in gold for helping with C++. Come to think of it, Steven Dewhurst's [C++ ...
null
CC BY-SA 3.0
null
2008-08-27T15:37:14.037
2014-01-22T21:29:13.713
2014-01-22T21:29:13.713
63,550
2,974
null
30,523
2
null
30,485
6
null
@Ian Nelson: I'm wondering if others see the problem there. Let's say you have split fields. That's 70 characters total, 35 for first name and 35 for last name. However, if you have one field, you neglect the space that separates first and last names, short changing you by 1 character. Sure, it's "only" one character,...
null
CC BY-SA 2.5
null
2008-08-27T15:55:05.650
2008-08-27T15:55:05.650
null
null
572
null
30,525
2
null
30,485
1
null
Note that many have 'second surnames' often called family names. For example, if you are dealing with Spanish people, they will appreciate having a family name separated from their 'surname'. Best bet is to define a data type for the name components, use those for a data type for the surname and tweak depending on lo...
null
CC BY-SA 2.5
null
2008-08-27T15:55:23.603
2008-08-27T15:55:23.603
null
null
1,223
null
30,521
1
30,597
null
2
4,488
Is there a way to specify a child's initial window position in Qt? I have an application that runs on Linux and Windows and it looks like the default behavior of Qt lets the Window Manager determine the placement of the child windows. On Windows, this is in the center of the screen the parent is on which seems rea...
Qt Child Window Placement
CC BY-SA 2.5
null
2008-08-27T15:54:07.943
2015-04-20T08:02:04.360
2015-04-20T08:02:04.360
1,536,843
2,897
[ "c++", "qt", "user-interface", "qtgui" ]
30,505
1
30,532
null
84
47,379
I frequently work with multiple instances of Visual Studio, often working on different branches of the same solution. [Visual C++ 6.0](https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Strictly_32-bit_versions) used to display the full path of the current source file in its title bar, but Visual Studio 2005 doesn...
Display solution/file path in the Visual Studio IDE
CC BY-SA 4.0
0
2008-08-27T15:47:35.840
2022-11-18T12:33:32.933
2019-12-18T15:54:09.617
63,550
1,739
[ "visual-studio", "projects-and-solutions" ]
30,528
2
null
30,504
0
null
Aren't there environment settings? I have `VCToolkitInstallDir` and `VS71COMNTOOLS` although I'm using Visual Studio 2003, I don't know if that changed for later versions. Type "set V" at the command line and see if you have them.
null
CC BY-SA 4.0
null
2008-08-27T15:56:38.033
2019-11-01T13:37:34.847
2019-11-01T13:37:34.847
63,550
2,541
null
30,529
1
40,650
null
2
2,046
How could i implement Type-Safe Enumerations in Delphi in a COM scenario ? Basically, i'd like to replace a set of primitive constants of a enumeration with a set of static final object references encapsulated in a class ? . In Java, we can do something like: ``` public final class Enum { public static final Enum...
How to implement Type-safe COM enumerations?
CC BY-SA 3.0
null
2008-08-27T15:57:50.090
2012-03-10T10:43:39.190
2012-03-10T10:43:39.190
744,588
2,015
[ "delphi", "com", "delphi-5" ]
30,524
2
null
30,504
5
null
Thanks to Zeb and Sam for the `VS*COMNTOOLS` environment variable suggestion. To get to the IDE in PowerShell: ``` $vs = Join-Path $env:VS90COMNTOOLS '..\IDE\devenv.exe' ``` --- Looks like the registry location is `HKLM\Software\Microsoft\VisualStudio`, with version-specific subkeys for each install. In PowerS...
null
CC BY-SA 2.5
null
2008-08-27T15:55:05.867
2008-08-31T13:50:57.057
2008-08-31T13:50:57.057
2,495
2,495
null
30,535
2
null
20,958
0
null
If you need to consider localisation (for those of us outside the US!) and it's possible in your environment, I'd suggest: Define data types for each component of the name - NOTE: some cultures have more than two names! Then have a type for the full name, Then localisation becomes simple (as far as names are concerne...
null
CC BY-SA 2.5
null
2008-08-27T15:59:50.333
2008-08-27T15:59:50.333
null
null
1,223
null
30,532
2
null
30,505
25
null
There is not a native way to do it, but you can achieve it with a macro. The details are described here in full: [How To Show Full File Path (or Anything Else) in VS 2005 Title Bar](https://www.helixoft.com/blog/how-to-show-full-file-path-or-anything-else-in-vs-2005-title-bar.html) You just have to add a little Visual...
null
CC BY-SA 4.0
null
2008-08-27T15:58:47.090
2019-12-18T12:14:55.753
2019-12-18T12:14:55.753
63,550
194
null
30,522
2
null
30,121
0
null
Both JavaScript's regex and PHP's preg_match are based on Perl, so there shouldn't be any porting problems. Do note, however, that Javascript only supports a subset of modifiers that Perl supports. For more info for comparing the two: - [Javascript Regular Expressions](http://www.regular-expressions.info/javascript.htm...
null
CC BY-SA 2.5
null
2008-08-27T15:54:43.717
2008-08-27T15:54:43.717
2020-06-20T09:12:55.060
-1
1,993
null
30,538
2
null
26,842
3
null
As usually happens when I post questions like this, I found the problem. It turns out the [Crypt::SSLeay](http://search.cpan.org/dist/Crypt-SSLeay) module was not installed or at least not up to date. Of course the error messages didn't give me any clues. Updating it and all the problems go away and things are worki...
null
CC BY-SA 2.5
null
2008-08-27T16:01:30.737
2010-01-07T13:33:51.900
2010-01-07T13:33:51.900
2,766,176
171
null
30,536
2
null
29,976
2
null
I have worked extensively with templated control and I have not found a better solution. Why are you referencing the contentLable in the event handler? The sender is the label you can cast it to the label and have the reference to the label. Like below. ``` //add a custom data binding contentLabel.DataBindi...
null
CC BY-SA 2.5
null
2008-08-27T16:00:03.640
2008-08-27T16:00:03.640
null
null
2,469
null
30,539
1
30,596
null
5
6,414
I'm looking for a good way to enumerate all the Video codecs on a Windows XP/Vista machine. I need present the user with a set of video codecs, including the compressors and decompressors. The output would look something like The problem that I am running into is that there is no reliable way to to capture all of ...
Best way to enumerate all available video codecs on Windows?
CC BY-SA 3.0
0
2008-08-27T16:01:57.613
2013-12-02T12:53:16.960
2013-12-02T12:53:16.960
2,432,317
2,813
[ "video", "directshow", "media", "codec" ]
30,473
2
null
30,211
33
null
There are VBA methods to [zip](http://www.rondebruin.nl/win/s7/win001.htm) and [unzip](http://www.rondebruin.nl/win/s7/win002.htm) using the windows built in compression as well, which should give some insight as to how the system operates. You may be able to build these methods into a scripting language of your choic...
null
CC BY-SA 3.0
null
2008-08-27T15:38:14.677
2013-06-12T17:01:34.520
2013-06-12T17:01:34.520
2,915
2,915
null
30,540
1
30,561
null
9
6,711
This error just started popping up all over our site. I'm seeing google posts that suggest that this is related to flash and our crossdomain.xml. What caused this to occur and how do you fix?
What does this javascript error mean? Permission denied to call method to Location.toString
CC BY-SA 2.5
0
2008-08-27T16:02:00.873
2015-04-16T05:19:17.920
null
null
1,940
[ "javascript", "flash" ]
30,552
2
null
30,543
4
null
As long as you compile your executables as 32 bit, they will run on both 32 bit and 64 Windows machines (guaranteed). Using 64 dev machines has the advantage that you can start testing your code with 64 bit compilation (to check for things like pointers casted to 32 bit integers), this way making the transition to 64 b...
null
CC BY-SA 2.5
null
2008-08-27T16:08:06.990
2008-08-27T16:08:06.990
null
null
1,265
null
30,547
2
null
30,543
1
null
Compiling for a 64bit OS is an option in the compiler. You can absolutely compile to a 32bit exe from within Vista 64 bit. When you run the app, you can then see in the TaskManager that there is a "*32" next to the process...this means it's 32bit ;) I believe your managers need some more education on what 64bit OS r...
null
CC BY-SA 2.5
null
2008-08-27T16:06:54.670
2008-08-27T16:06:54.670
null
null
194
null
30,541
1
30,556
null
0
496
I've just started using the MVP pattern in the large ASP.NET application that I'm building (re-building actually) and I am having a hard time figuring out how I should be using Events applied to the view. Say I have 2 drop down lists in a User Control, where one is dependent on the other's value: ``` <%@ Control Lang...
Using MVP - How to use Events Properly for Testing
CC BY-SA 3.0
0
2008-08-27T16:02:23.260
2016-06-17T10:16:57.327
2016-06-17T09:49:47.060
2,577,734
3,256
[ "asp.net", "design-patterns", "mvp" ]
30,556
2
null
30,541
2
null
I don't know if there's a universally preferred pattern. I tend to prefer adding the event to the view interface and having the presenter respond to the view. I described this pattern in [more detail here](http://haacked.com/archive/2006/08/09/asp.netsupervisingcontrollermodelviewpresenterfromschematictounitteststocode...
null
CC BY-SA 3.0
null
2008-08-27T16:10:37.127
2016-06-17T10:16:57.327
2016-06-17T10:16:57.327
68,972
598
null
30,559
2
null
30,310
1
null
You could write a custom route that derives from the Route class GetRouteData to strip dashes, but when you call the APIs to generate a URL, you'll have to remember to include the dashes for action name and controller name. That shouldn't be too hard.
null
CC BY-SA 2.5
null
2008-08-27T16:13:54.077
2008-08-27T16:13:54.077
null
null
598
null
30,551
2
null
30,302
15
null
There are two possible solutions here. 1. Add a constraint to the ignore route to make sure that only requests that should be ignored would match that route. Kinda kludgy, but it should work. RouteTable.Routes.IgnoreRoute("{folder}/{*pathInfo}", new {folder="content"}); 2. What is in your content directory? By defaul...
null
CC BY-SA 3.0
null
2008-08-27T16:07:54.293
2014-10-27T19:16:26.540
2014-10-27T19:16:26.540
41,956
598
null
30,564
2
null
30,543
0
null
yeah, like adam was saying. There's 3 options: MSIL (default), x64, and x86. You can target x64 and it will generate dll's specifically for 64-bit systems, or you can do x86 which will run on 32-bit and 64-bit, but will have the same restrictions as 32-bit on a 64-bit system. MSIL will basically let the JITer issue th...
null
CC BY-SA 2.5
null
2008-08-27T16:14:44.977
2008-08-27T16:20:21.703
2008-08-27T16:20:21.703
77
77
null
30,562
2
null
3,682
0
null
Do you really care about the individual data points? Or will using the statistical aggregate functions on the day number instead suffice to tell you what you wish to know? - [AVG](http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_avg)- [STDDEV_POP](http://dev.mysql.com/doc/refman/5.0/en/group-by-...
null
CC BY-SA 2.5
null
2008-08-27T16:14:36.443
2008-08-27T16:14:36.443
null
null
3,254
null
30,561
2
null
30,540
9
null
Are you using javascript to communicate between frames/iframes which point to different domains? This is not permitted by the JS "same origin/domain" security policy. Ie, if you have ``` <iframe name="foo" src="foo.com/script.js"> <iframe name="bar" src="bar.com/script.js"> ``` And the script on bar.com tries to acc...
null
CC BY-SA 3.0
null
2008-08-27T16:14:34.293
2015-04-16T05:19:17.920
2015-04-16T05:19:17.920
707,364
1,265
null
30,568
2
null
29,145
1
null
When we built the first version of our own framework ([Inon Datamanager](http://www.inon.com/page.jsp?page=datamanager)) I had it read pre-existing SQL tables and autogenerate Java objects from them. When my colleagues who came from a Smalltalkish background built the second version, they started from the objects and ...
null
CC BY-SA 2.5
null
2008-08-27T16:16:22.773
2008-08-27T16:16:22.773
null
null
3,267
null
30,566
1
null
null
2
2,957
I am trying to solve a persistent IO problem when we try to read or write to a Windows 2003 Clustered Fileshare. It is happening regularly and seem to be triggered by traffic. We are writing via .NET's FileStream object. Basically we are writing from a Windows 2003 Server running IIS to a Windows 2003 file share clu...
Delayed Write Failed on Windows 2003 Clustered Fileshare
CC BY-SA 2.5
null
2008-08-27T16:15:48.813
2010-11-05T21:03:12.667
2008-09-16T18:02:54.193
2,470
111
[ "c#", "iis", "windows-server-2003" ]
30,573
2
null
5,628
6
null
We're looking at including support for this in our next release.
null
CC BY-SA 2.5
null
2008-08-27T16:18:45.187
2008-08-27T16:18:45.187
null
null
598
null
30,569
1
30,593
null
26
25,983
Does anyone have the secret formula to resizing transparent images (mainly GIFs) ANY quality loss - what so ever? I've tried a bunch of stuff, the closest I get is not good enough. Take a look at my main image: [http://www.thewallcompany.dk/test/main.gif](http://www.thewallcompany.dk/test/main.gif) And then the sc...
Resize transparent images using C#
CC BY-SA 2.5
0
2008-08-27T16:16:47.267
2015-08-17T17:14:49.043
2010-05-08T10:24:39.083
1,431
2,972
[ "c#", ".net", "image", "resize", "image-scaling" ]
30,574
2
null
30,540
2
null
You may have come across [this posting](http://willperone.net/Code/as3error.php), but it appears that a flash security update changed the behaviour of the crossdomain.xml, requiring you to specify a security policy to allow arbitrary headers to be sent from a remote domain. The Adobe knowledge base article (also refere...
null
CC BY-SA 2.5
null
2008-08-27T16:19:07.697
2008-08-27T16:19:07.697
null
null
3,217
null
30,567
2
null
28,949
4
null
As far as finalizers go: 1. They are virtually useless. They aren't guaranteed to be called in a timely fashion, or indeed, at all (if the GC never runs, neither will any finalizers). This means you generally shouldn't rely on them. 2. Finalizers are not guaranteed to be idempotent. The garbage collector takes great ...
null
CC BY-SA 2.5
null
2008-08-27T16:16:20.043
2008-08-27T16:16:20.043
null
null
872
null
30,579
2
null
30,563
0
null
You want something like ``` SELECT column,SUM( column ) FROM table GROUP BY column ```
null
CC BY-SA 2.5
null
2008-08-27T16:21:36.740
2008-08-27T16:21:36.740
null
null
2,132
null
30,578
2
null
30,563
4
null
Maybe I'm not understanding the complexity of what you're asking but... shouldn't this do? ``` SELECT groupname, SUM(value) FROM items WHERE groupname IN ('a', 'b') GROUP BY groupname ``` And if you don't care which of a or b the item belongs to then this will do: ``` SELECT SUM(value) FROM items WHERE groupname IN...
null
CC BY-SA 2.5
null
2008-08-27T16:21:25.587
2008-08-27T16:21:25.587
null
null
2,443
null
30,575
2
null
22,873
3
null
- [Thinking in C++](http://mindview.net/Books/TICPP/ThinkingInCPP2e.html)- [C++ Coding Standards](https://rads.stackoverflow.com/amzn/click/com/0321113586) The first one is good for beginners and the second one requires more advanced level in C++.
null
CC BY-SA 2.5
null
2008-08-27T16:19:11.863
2008-08-27T16:19:11.863
null
null
1,007
null
30,555
2
null
30,543
1
null
Not an answer to your question, but possibly a solution to your problem: VirtualBox (and probably others) supports "seamless integration" mode, which just gives you a second start bar and lets you drag windows around freely. Also, and this is an answer to your question, it depends on your compile settings. You can com...
null
CC BY-SA 2.5
null
2008-08-27T16:09:40.763
2008-08-27T16:09:40.763
null
null
2,018
null
30,571
1
1,172,371
null
888
695,096
In Maven, dependencies are usually set up like this: ``` <dependency> <groupId>wonderful-inc</groupId> <artifactId>dream-library</artifactId> <version>1.2.3</version> </dependency> ``` Now, if you are working with libraries that have frequent releases, constantly updating the <version> tag can be somewhat anno...
How do I tell Maven to use the latest version of a dependency?
CC BY-SA 3.0
0
2008-08-27T16:17:02.633
2020-10-08T11:09:40.470
2017-02-23T11:35:59.527
774,183
1,709
[ "java", "maven", "dependencies", "maven-2", "maven-metadata" ]
30,563
1
30,578
null
3
6,684
I have one field that I need to sum lets say named items However that field can be part of group a or b In the end I need to have all of the items summed for group a and group b when I say grouped I mean there is a LEFT OUTER JOIN to another table the previous table has a type for the items and the one being joined ha...
Returning the sum of items depending on which type it is
CC BY-SA 3.0
null
2008-08-27T16:14:42.997
2019-11-23T14:12:22.460
2014-12-05T06:51:36.383
3,540,786
2,486
[ "sql", "sql-server" ]
30,543
1
30,643
null
6
3,326
We are getting new dev machines and moving up to Vista 64 Ultimate to take advantage of our 8gb ram. Our manager wants us to do all dev in 32bit virtual machines to make sure there will be no problems with our code moving into production. Is there any way to guarantee the resultant programs will work on 32bit os's?...
Is code written in Vista 64 compatible on 32 bit os?
CC BY-SA 2.5
0
2008-08-27T16:04:29.637
2012-07-03T15:02:37.053
2017-05-23T12:08:38.563
-1
1,048
[ "64-bit", "development-environment", "compatibility" ]
30,586
2
null
30,454
6
null
`$item` is a hashref that looks like this: ``` $item = { 'RunningTime' => {'content' => '90', 'Units' => 'minutes'}, 'ProductGroup' => 'DVD' }; ``` Therefore you can get the running time like this: ``` $RunningTime = $item->{RunningTime}->{content} ```
null
CC BY-SA 2.5
null
2008-08-27T16:26:57.617
2008-08-27T16:26:57.617
null
null
3,101
null
30,584
2
null
30,563
0
null
Is that (Tyler's answer) what the question meant, or is it simply this; ``` SELECT sum(item), groupingField FROM someTable GROUP BY groupingField ``` or even: ``` SELECT count(*), item FROM someTable GROUP BY item ``` which will produce results like this: ``` sum(item) | groupingField -------------+------...
null
CC BY-SA 2.5
null
2008-08-27T16:25:09.367
2008-08-27T16:25:09.367
null
null
3,267
null
30,587
2
null
30,318
4
null
[fish](http://fishshell.org/) is a Unix shell that focuses on user-friendliness, such as by providing colored highlighting and extensive tab completion. For a different kind of blend of textual and graphical interface, there's [Quicksilver](http://www.43folders.com/topics/quicksilver), as well as similar/inspired tool...
null
CC BY-SA 2.5
null
2008-08-27T16:29:06.550
2008-08-27T16:29:06.550
null
null
1,600
null
30,582
2
null
30,569
5
null
This is a basic resize function I've used for a few of my applications that leverages GDI+ ``` /// <summary> /// Resize image with GDI+ so that image is nice and clear with required size. /// </summary> /// <param name="SourceImage">Image to resize</param> /// <param name="NewHeight">New height to resize to.</param...
null
CC BY-SA 2.5
null
2008-08-27T16:24:52.053
2008-08-27T16:24:52.053
null
null
71
null
30,591
2
null
29,856
1
null
Not sure I entirely understand your question, but can't you simply build and install a 64 bit version and then create symbolic links so that /Library/Python/2.5 and below point to your freshly built version of python?
null
CC BY-SA 2.5
null
2008-08-27T16:30:06.393
2008-08-27T16:30:06.393
null
null
2,438
null
30,545
2
null
30,183
16
null
You could try: > In Visual Basic 2008 Express Edition: Build menu > Configuration Manager...Change Active solution platform: to "...", choose "x86", save the new platform.Now the "x86" option is available in the Compile settings. You may need to enable "Show advanced build configurations" first, in Tools > ...
null
CC BY-SA 2.5
null
2008-08-27T16:06:06.857
2008-08-28T12:39:50.773
2008-08-28T12:39:50.773
1,367
1,367
null
30,594
1
30,648
null
6
1,039
I am trying to be a "good" programmer and have unit tests for my ColdFusion application but haven't been able to find a code coverage tool that can tie into the test that I'm using. For those of you who do unit tests on your ColdFusion code, how have you approached this problem?
Is it possible to find code coverage in ColdFusion?
CC BY-SA 2.5
null
2008-08-27T16:34:09.300
2014-04-04T09:26:30.353
null
null
3,274
[ "unit-testing", "coldfusion" ]
30,590
2
null
30,571
16
null
Are you possibly depending on development versions that obviously change a lot during development? Instead of incrementing the version of development releases, you could just use a snapshot version that you overwrite when necessary, which means you wouldn't have to change the version tag on every minor change. Someth...
null
CC BY-SA 2.5
null
2008-08-27T16:30:04.833
2008-08-27T16:30:04.833
null
null
1,793
null
30,597
2
null
30,521
3
null
[Qt Widget Geometry](http://doc.qt.io/qt-4.8/qwidget.html#geometry-prop) Call the move(x, y) method on the child window before show(). The default values for x and y are 0 so that's why it appears in the upper left-hand corner. You can also use the position of the parent window to compute a relative position for the c...
null
CC BY-SA 3.0
null
2008-08-27T16:34:56.693
2015-04-18T18:14:41.050
2015-04-18T18:14:41.050
1,536,843
1,065
null
30,595
2
null
30,251
3
null
If your data can be laid out in a two-dimensional grid, use `<table>`. If it can't, don't. Using `<table>` for anything else is a hack (though frequently not one with proper alternatives, especially when it comes to compatibility with older browsers). using `<table>` something that clearly should be one is equally ba...
null
CC BY-SA 2.5
null
2008-08-27T16:34:36.787
2008-08-27T16:34:36.787
null
null
1,600
null
30,593
2
null
30,569
51
null
If there's no requirement on preserving file type after scaling I'd recommend the following approach. ``` using (Image src = Image.FromFile("main.gif")) using (Bitmap dst = new Bitmap(100, 129)) using (Graphics g = Graphics.FromImage(dst)) { g.SmoothingMode = SmoothingMode.AntiAlias; g.InterpolationMode = Interp...
null
CC BY-SA 3.0
null
2008-08-27T16:33:43.293
2015-08-17T17:14:49.043
2015-08-17T17:14:49.043
59,303
2,114
null
30,600
2
null
3,682
0
null
``` select timefield from entries where rand() = .01 --will return 1% of rows adjust as needed. ``` Not a mysql expert so I'm not sure how rand() operates in this environment.
null
CC BY-SA 3.0
null
2008-08-27T16:37:10.760
2018-02-22T17:05:53.083
2018-02-22T17:05:53.083
305,953
1,293
null
30,604
2
null
28,160
4
null
The best practice, as others have said, is to place each class in its own translation unit from a code maintenance and understandability perspective. However on large scale systems this is sometimes not advisable - see the section entitled "Make Those Source Files Bigger" in [this article](http://www.cygnus-software.co...
null
CC BY-SA 2.5
null
2008-08-27T16:41:01.733
2008-08-27T16:41:01.733
null
null
3,114
null
30,607
2
null
30,566
1
null
I've heard of [AutoDisconnect](http://support.microsoft.com/default.aspx?scid=kb;EN-US;q138365) causing similar issues (even if the device isn't idle). You may want to try disabling that on the server.
null
CC BY-SA 2.5
null
2008-08-27T16:42:19.030
2008-08-27T16:42:19.030
null
null
2,199
null
30,598
2
null
20,463
26
null
The difference between using an interface and an abstract class has more to do with code organization for me, than enforcement by the language itself. I use them a lot when preparing code for other developers to work with so that they stay within the intended design patterns. Interfaces are a kind of "design by contrac...
null
CC BY-SA 2.5
null
2008-08-27T16:36:48.217
2008-08-27T16:36:48.217
null
null
577
null
30,609
2
null
28,243
1
null
A reinstall of Ruby sorted this issue out. It's not what I wanted; I wanted to know why I was getting the issue, but it's all sorted out.
null
CC BY-SA 2.5
null
2008-08-27T16:42:52.540
2008-08-27T16:42:52.540
null
null
1,726
null
30,581
2
null
30,569
3
null
I think the problem is that you're doing a scan line-based resize, which is going to lead to jaggies no matter how hard you tweak it. Good image resize quality requires you to do some more work to figure out the average color of the pre-resized pixels that your resized pixel covers. The guy who runs this website has ...
null
CC BY-SA 2.5
null
2008-08-27T16:24:48.073
2008-08-27T16:24:48.073
null
null
3,251
null
30,585
1
30,705
null
9
918
Has anyone ever set up Cruise Control to build an OS X Cocoa/Objective-C project? If so, is there a preferred flavor of CruiseControl (CruiseControl.rb or just regular CruiseControl) that would be easier to do this with. I currently have a Ruby rake file that has steps for doing building and running tests, and wante...
Can you use CruiseControl to build Cocoa/Objective-C projects?
CC BY-SA 2.5
0
2008-08-27T16:26:25.043
2008-11-10T20:31:58.987
2008-08-30T07:11:23.467
714
2,813
[ "cocoa", "testing", "build-process", "cruisecontrol", "cruisecontrol.rb" ]
30,606
2
null
25,977
27
null
Use a normalised colour histogram. (Read the section on applications [here](http://en.wikipedia.org/wiki/Color_histogram)), they are commonly used in image retrieval/matching systems and are a standard way of matching images that is very reliable, relatively fast and very easy to implement. Essentially a colour histog...
null
CC BY-SA 2.5
null
2008-08-27T16:41:32.277
2008-08-27T16:53:00.580
2008-08-27T16:53:00.580
142
142
null
30,623
2
null
29,174
6
null
All standard ASP.NET postbacks work by calling a __doPostBack javascript method on the page. That function submits the form (ASP.NET only really likes one form per page) which includes some hidden input field in which all the viewstate and other goodness lives. On the face of it I can't see anything in SimpalModal tha...
null
CC BY-SA 2.5
null
2008-08-27T16:52:12.500
2008-08-27T16:52:12.500
null
null
1,039
null
30,596
2
null
30,539
7
null
This is best handled by DirectShow. DirectShow is currently a part of the platform SDK. ``` HRESULT extractFriendlyName( IMoniker* pMk, std::wstring& str ) { assert( pMk != 0 ); IPropertyBag* pBag = 0; HRESULT hr = pMk->BindToStorage(0, 0, IID_IPropertyBag, (void **)&pBag ); if( FAILED( hr ) || pBag == 0 ) ...
null
CC BY-SA 2.5
null
2008-08-27T16:34:45.290
2008-08-27T16:34:45.290
null
null
3,186
null
30,632
1
30,645
null
681
599,818
What is the difference in terms of functionality between the Apache HTTP Server and Apache Tomcat? I know that Tomcat is written in Java and the HTTP Server is in C, but other than that I do not really know how they are distinguished. Do they have different functionality?
Difference between the Apache HTTP Server and Apache Tomcat?
CC BY-SA 2.5
0
2008-08-27T16:57:16.497
2019-06-21T09:03:04.657
2008-08-27T17:25:44.900
116
277
[ "apache", "tomcat", "webserver" ]
30,635
2
null
29,980
0
null
Kokos, Couple of things wrong there. First, doing it that way means I have to construct the Foos first, then feed their values to the mock reader which does nothing to the amount of code I'm writing. Second, if the values pass through the reader, the Foos won't be the Foos (reference equality). They might be , but e...
null
CC BY-SA 2.5
null
2008-08-27T17:00:00.517
2008-08-27T17:00:00.517
null
null
266
null
30,614
2
null
5,628
3
null
@Dominic, I'm almost positive that putting that in the route will cause routing issues. @Ricky, Until MVC has support for this, you can be a little more "old school" about how you make your routes. For example, you can convert: ``` <%= Html.ActionLink("Home", "Index") %> ``` into: ``` <a href='<%= Url.Action("In...
null
CC BY-SA 2.5
null
2008-08-27T16:47:21.717
2008-08-27T16:47:21.717
null
null
1,554
null
30,629
2
null
30,494
31
null
The [System.Version](http://msdn.microsoft.com/en-us/library/system.version.aspx) class does not support versions with commas in it, so the solution presented by [Darren Kopp](https://stackoverflow.com/questions/30494#30510) is not sufficient. Here is a version that is as simple as possible (but no simpler). It uses ...
null
CC BY-SA 2.5
null
2008-08-27T16:56:31.320
2008-08-27T17:02:05.800
2017-05-23T11:47:02.487
-1
2,948
null
30,620
2
null
30,318
2
null
> GUI-based command shell seems like an oxymoron to me. Not really? A command shell is just an encapsulated environment in which to execute commands. Why can't they have GUI extensions? We are in the 21st century! :) > Check out [http://hotwire-shell.org/](http://hotwire-shell.org/) This is along the lines of what I...
null
CC BY-SA 2.5
null
2008-08-27T16:50:49.603
2008-08-27T16:50:49.603
null
null
3,233
null
30,642
2
null
30,632
31
null
Tomcat is primarily an application server, which serves requests to custom-built Java servlets or JSP files on your server. It is usually used in conjunction with the Apache HTTP server (at least in my experience). Use it to manually process incoming requests. The HTTP server, by itself, is best for serving up static ...
null
CC BY-SA 2.5
null
2008-08-27T17:02:32.460
2008-08-27T17:02:32.460
null
null
3,044
null
30,645
2
null
30,632
503
null
Apache Tomcat is used to deploy your Java Servlets and JSPs. So in your Java project you can build your WAR (short for Web ARchive) file, and just drop it in the deploy directory in Tomcat. So basically Apache is an HTTP Server, serving HTTP. Tomcat is a Servlet and JSP Server serving Java technologies. Tomcat includ...
null
CC BY-SA 4.0
null
2008-08-27T17:03:29.290
2019-06-21T09:03:04.657
2019-06-21T09:03:04.657
1,341,535
1,992
null
30,643
2
null
30,543
9
null
I do development on 64 bit machines for 32 bit Windows. It's not a problem. You should make sure that your projects are set to compile in x86 mode in order to be conservative. You'll want to go through each project in the solution and double check this. You could also use the AnyCPU setting but that's a little riski...
null
CC BY-SA 2.5
null
2008-08-27T17:02:45.580
2008-08-27T17:02:45.580
null
null
855
null
30,649
2
null
6,155
5
null
We use [FogBugz](http://www.fogcreek.com/FogBugz/) for bug tracking, it provides subversion commit scripts that allow you to include a case number in your check in comments and then associates the bug with the check in that fixed it. It does require a [WebSVN](http://websvn.tigris.org/) instance to be set up so that yo...
null
CC BY-SA 2.5
null
2008-08-27T17:05:01.083
2008-10-10T14:36:29.103
2008-10-10T14:36:29.103
3,265
3,265
null
30,651
1
30,666
null
22
43,214
I would like to know if I can open 2 different diagrams using MS Visio and each diagram have its own window. I've tried in several ways, but I always end up with 1 Visio window ... I'm using a triple monitor setup and I'd like to put one diagram to each side of my main monitor. []'s André Casteliano PS: I'm using V...
Open 2 Visio diagrams in different windows
CC BY-SA 2.5
0
2008-08-27T17:06:51.607
2021-07-23T08:55:01.263
2008-08-31T07:39:53.157
305
1,213
[ "diagram", "visio" ]
30,638
2
null
29,142
26
null
If you don't/can't keep the connection open you could use [screen](http://www.gnu.org/software/screen/), if you have the rights to install it. ``` user@localhost $ screen -t remote-command user@localhost $ ssh user@target # now inside of a screen session user@remotehost $ cd /some/directory; program-to-execute & ``` ...
null
CC BY-SA 3.0
null
2008-08-27T17:00:48.940
2015-09-06T20:19:51.540
2015-09-06T20:19:51.540
2,002,471
2,009
null
30,652
2
null
30,295
2
null
Divide your services by resource requirements at the very least. For example, if you are running a photo album site, separate your image download server from your image upload server. The download server will have many more requests, and because most people have a lower upload speed the upload server will have longer l...
null
CC BY-SA 2.5
null
2008-08-27T17:08:35.287
2008-08-27T17:08:35.287
null
null
3,275
null
30,653
1
39,106
null
11
6,015
I am trying to implement an "out of proc" COM server written in C#. How do I do this? I need the C# code to be "out of proc" from my main C++ application, because I cannot load the .NET runtime into my main process space My C++ code is in a DLL that is loaded into many different customer EXE's, some of which use d...
What do I need to do to implement an "out of proc" COM server in C#?
CC BY-SA 4.0
0
2008-08-27T17:08:47.220
2018-05-18T09:02:04.610
2018-05-18T09:02:04.610
886,001
814
[ "c#", "com", "interop" ]
30,648
2
null
30,594
0
null
[Many](http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:53046) [have](http://www.pbell.com/index.cfm/2006/10/20/What-is-Code-Coverage-Analysis--and-why-should-you-care) [asked](http://coolskool.blog-city.com/what_coldfusion_tools_do_you_want.htm), but to date there remains no ColdFusion code coverage too...
null
CC BY-SA 3.0
null
2008-08-27T17:04:50.647
2012-01-11T19:18:55.530
2012-01-11T19:18:55.530
850,882
2,915
null
30,654
2
null
30,529
3
null
What is wrong with native Delphi enums? They are type safe. ``` type TMyEnum = (Item1, Item2, Item3); if MyEnum <> Item1 then... ``` Since Delphi 2005 you can have consts in a class, but Delphi 5 can not. ``` type TMyEnum = sealed class public const Item1 = 0; const Item2 = 1; const Item3 = 2; ...
null
CC BY-SA 2.5
null
2008-08-27T17:08:56.253
2008-08-27T17:08:56.253
null
null
1,242
null
30,656
2
null
30,067
30
null
It's important to keep in mind that MVC and WebForms are not competing, and one is not better than the other. They are simply different tools. Most people seem to approach MVC vs WebForms as "one must be a better hammer than the other". That is wrong. One is a hammer, the other is a screwdriver. Both are used in the pr...
null
CC BY-SA 2.5
null
2008-08-27T17:09:31.010
2008-08-27T17:09:31.010
null
null
67
null
30,666
2
null
30,651
8
null
Visio 2005 allows you to open visio multiple times - does this not work in 2007? Try opening a visio document, and then starting another instance of visio from the Start-->Programs menu. If not, read on... Visio is an MDI interface - you'll need to stretch the whole visio window across the two monitors in question, ...
null
CC BY-SA 2.5
null
2008-08-27T17:15:20.463
2008-08-27T17:15:20.463
null
null
2,915
null
30,657
2
null
26,845
2
null
My group at work is using Git, and it has been all the difference in the world. We were using SCCS and a steaming pile of csh scripts to manage quite large and complicated projects that shared code between them (attempted to, anyway). With Git, submodule support makes a lot of this stuff easy, and only a minimum of s...
null
CC BY-SA 2.5
null
2008-08-27T17:10:16.047
2008-08-27T17:10:16.047
null
null
3,279
null
30,670
2
null
30,653
0
null
I cannot recommend this as , but you could create a COM-callable wrapper for your C# library, then create a VB6 ActiveX exe project that delegates calls to your C# library.
null
CC BY-SA 2.5
null
2008-08-27T17:19:04.853
2008-08-27T17:19:04.853
null
null
404
null
30,669
2
null
30,539
2
null
> The answer above doesn't account for decompressors. There is no CLSID_VideoDecompressorCategory. Is the are a way to ask a filter if it is a video decompressor? Most filters in this list are codecs, so contain both a encoder and decoder. The filters in the ``` CLSID_ActiveMovieCategories ``` are wrappers arou...
null
CC BY-SA 2.5
null
2008-08-27T17:18:28.397
2008-08-27T17:18:28.397
null
null
3,186
null
30,673
2
null
30,627
1
null
[JAXB](http://java.sun.com/developer/technicalArticles/WebServices/jaxb/). The Java Architecture for XML Binding. Basically you create an xsd defining your XML layout (I believe you could also use a DTD). Then you pass the XSD to the JAXB compiler and the compiler creates Java classes to marshal and unmarshal your XM...
null
CC BY-SA 2.5
null
2008-08-27T17:20:14.523
2008-08-27T17:20:14.523
null
null
2,890
null
30,660
1
30,889
null
12
19,065
I'm running a master-slave MySQL binary log replication system (phew!) that, for some data, is not in sync (meaning, the master holds more data than the slave). But the slave stops very frequently on the slightest MySQL error, can this be disabled? (perhaps a my.cnf setting for the replicating slave ignore-replicating-...
MySQL Binary Log Replication: Can it be set to ignore errors?
CC BY-SA 2.5
0
2008-08-27T17:11:09.117
2011-04-26T03:31:41.553
2011-04-26T03:31:41.553
135,152
547
[ "mysql", "replication", "mysql-error-1062", "binlog" ]
30,676
2
null
30,539
1
null
Another point I forgot. The Windows Media Foundation is a toolkit for using WMV/WMA. It does not provide all things that DirectShow supports. It is really only a SDK for Windows Media. There are bindings in WMV/WMA to DirectShow, so that you can use WM* files/streams in DirectShow applications.
null
CC BY-SA 2.5
null
2008-08-27T17:21:55.970
2008-08-27T17:21:55.970
null
null
3,186
null
30,672
2
null
30,540
0
null
This [post](http://willperone.net/Code/as3error.php) suggests that there is one line that needs to be added to the crossdomain.xml file. ``` <allow-http-request-headers-from domain="*" headers="*"/> ```
null
CC BY-SA 2.5
null
2008-08-27T17:19:45.087
2008-08-27T17:19:45.087
null
null
1,940
null
30,675
2
null
30,651
-1
null
Seems like my installation of Visio is the problem. I've tried on another computer here and it allow me to open 2 instances of the software.
null
CC BY-SA 2.5
null
2008-08-27T17:21:49.623
2008-08-27T17:21:49.623
null
null
1,213
null