question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13,599 | 13,613 | Convert enums to human readable values | Does anyone know how to transform a enum value to a human readable value? For example: ThisIsValueA should be "This is Value A". | Converting this from a vb code snippet that a certain Ian Horwill left at a blog post long ago... i've since used this in production successfully. /// /// Add spaces to separate the capitalized words in the string, /// i.e. insert a space before each uppercase letter that is /// either preceded by a lowercase letter or... | Convert enums to human readable values Does anyone know how to transform a enum value to a human readable value? For example: ThisIsValueA should be "This is Value A". | TITLE:
Convert enums to human readable values
QUESTION:
Does anyone know how to transform a enum value to a human readable value? For example: ThisIsValueA should be "This is Value A".
ANSWER:
Converting this from a vb code snippet that a certain Ian Horwill left at a blog post long ago... i've since used this in pro... | [
"c#",
"enums",
"human-readable"
] | 27 | 19 | 8,381 | 8 | 0 | 2008-08-17T12:24:21.840000 | 2008-08-17T13:10:20.513000 |
13,607 | 13,618 | GUI system development resources? | Could someone recommend any good resources for creating Graphics User Interfaces, preferably in C/C++? Currently my biggest influence is 3DBuzz.com 's C++/OpenGL VTMs (Video Training Modules). While they are very good, they cover a large area of graphics programming, so only skim the surface of GUI programming. This qu... | I wouldn't use OpenGL for the GUI unless you are planning for hardware accelerated and/or 3D effects that you don't think you would get with a more traditional GUI toolkit (e.g Qt, wxWidgets, GTK, etc). If you just need a quick simple GUI for hosting your OpenGL graphics then FLTK is a nice choice. Otherwise, for rende... | GUI system development resources? Could someone recommend any good resources for creating Graphics User Interfaces, preferably in C/C++? Currently my biggest influence is 3DBuzz.com 's C++/OpenGL VTMs (Video Training Modules). While they are very good, they cover a large area of graphics programming, so only skim the s... | TITLE:
GUI system development resources?
QUESTION:
Could someone recommend any good resources for creating Graphics User Interfaces, preferably in C/C++? Currently my biggest influence is 3DBuzz.com 's C++/OpenGL VTMs (Video Training Modules). While they are very good, they cover a large area of graphics programming, ... | [
"c++",
"user-interface",
"playstation-portable"
] | 1 | 2 | 1,829 | 9 | 0 | 2008-08-17T12:50:15 | 2008-08-17T13:18:18.673000 |
13,615 | 4,807,469 | Validate Enum Values | I need to validate an integer to know if is a valid enum value. What is the best way to do this in C#? | You got to love these folk who assume that data not only always comes from a UI, but a UI within your control! IsDefined is fine for most scenarios, you could start with: public static bool TryParseEnum (this int enumValue, out TEnum retVal) { retVal = default(TEnum); bool success = Enum.IsDefined(typeof(TEnum), enumVa... | Validate Enum Values I need to validate an integer to know if is a valid enum value. What is the best way to do this in C#? | TITLE:
Validate Enum Values
QUESTION:
I need to validate an integer to know if is a valid enum value. What is the best way to do this in C#?
ANSWER:
You got to love these folk who assume that data not only always comes from a UI, but a UI within your control! IsDefined is fine for most scenarios, you could start with... | [
"c#",
"validation",
"enums"
] | 101 | 108 | 90,158 | 13 | 0 | 2008-08-17T13:14:42.720000 | 2011-01-26T17:02:44.867000 |
13,620 | 13,665 | Speed difference in using inline strings vs concatenation in php5? | (assume php5) consider Is there much of a difference between 1 and 2? If not, what about between 1/2 and 3? | Well, as with all "What might be faster in real life" questions, you can't beat a real life test. function timeFunc($function, $runs) { $times = array();
for ($i = 0; $i < $runs; $i++) { $time = microtime(); call_user_func($function); $times[$i] = microtime() - $time; }
return array_sum($times) / $runs; }
function M... | Speed difference in using inline strings vs concatenation in php5? (assume php5) consider Is there much of a difference between 1 and 2? If not, what about between 1/2 and 3? | TITLE:
Speed difference in using inline strings vs concatenation in php5?
QUESTION:
(assume php5) consider Is there much of a difference between 1 and 2? If not, what about between 1/2 and 3?
ANSWER:
Well, as with all "What might be faster in real life" questions, you can't beat a real life test. function timeFunc($f... | [
"php",
"optimization",
"performance"
] | 57 | 45 | 25,197 | 15 | 0 | 2008-08-17T13:19:32.587000 | 2008-08-17T15:10:24.843000 |
13,647 | 13,663 | Is there an easy way to convert C# classes to PHP? | I am used to writing C# Windows applications. However, I have some free hosted PHP webspace that I would like to make use of. I have a basic understanding of PHP but have never used its object-oriented capabilities. Is there an easy way to convert C# classes to PHP classes or is it just not possible to write a fully ob... | It is entirely possible to write a PHP application almost entirely in an object-oriented methodology. You will have to write some procedural code to create and launch your first object but beyond that there are plenty of MVC frameworks for PHP that are all object-oriented. One that I would look at as an example is Code... | Is there an easy way to convert C# classes to PHP? I am used to writing C# Windows applications. However, I have some free hosted PHP webspace that I would like to make use of. I have a basic understanding of PHP but have never used its object-oriented capabilities. Is there an easy way to convert C# classes to PHP cla... | TITLE:
Is there an easy way to convert C# classes to PHP?
QUESTION:
I am used to writing C# Windows applications. However, I have some free hosted PHP webspace that I would like to make use of. I have a basic understanding of PHP but have never used its object-oriented capabilities. Is there an easy way to convert C# ... | [
"c#",
"php"
] | 7 | 2 | 3,758 | 5 | 0 | 2008-08-17T14:16:50.833000 | 2008-08-17T15:05:51.170000 |
13,655 | 13,657 | C# .NET listing contents of remote files | Is it possible in.NET to list files on a remote location like an URL? Much in the same way the System.IO classes work. All I need is the URLs to images that are on a remote server. | Short answer: No, unless you have more control over that web-server Long answer: Here are possible solutions... You will need server-side script that will do it locally and output this list in your preferred format. Most of the web-servers implement default file-browsing pages, so you could theoretically parse those bu... | C# .NET listing contents of remote files Is it possible in.NET to list files on a remote location like an URL? Much in the same way the System.IO classes work. All I need is the URLs to images that are on a remote server. | TITLE:
C# .NET listing contents of remote files
QUESTION:
Is it possible in.NET to list files on a remote location like an URL? Much in the same way the System.IO classes work. All I need is the URLs to images that are on a remote server.
ANSWER:
Short answer: No, unless you have more control over that web-server Lon... | [
".net"
] | 4 | 3 | 2,220 | 2 | 0 | 2008-08-17T14:48:00.350000 | 2008-08-17T14:52:09.513000 |
13,678 | 13,746 | Textual versus Graphical Programming Languages | I am part of a high school robotics team, and there is some debate about which language to use to program our robot. We are choosing between C (or maybe C++) and LabVIEW. There are pros for each language. C(++): Widely used Good preparation for the future (most programming positions require text-based programmers.) We ... | Before I arrived, our group (PhD scientists, with little programming background) had been trying to implement a LabVIEW application on-and-off for nearly a year. The code was untidy, too complex (front and back-end) and most importantly, did not work. I am a keen programmer but had never used LabVIEW. With a little hel... | Textual versus Graphical Programming Languages I am part of a high school robotics team, and there is some debate about which language to use to program our robot. We are choosing between C (or maybe C++) and LabVIEW. There are pros for each language. C(++): Widely used Good preparation for the future (most programming... | TITLE:
Textual versus Graphical Programming Languages
QUESTION:
I am part of a high school robotics team, and there is some debate about which language to use to program our robot. We are choosing between C (or maybe C++) and LabVIEW. There are pros for each language. C(++): Widely used Good preparation for the future... | [
"robotics",
"labview",
"graphical-language"
] | 35 | 35 | 9,859 | 25 | 0 | 2008-08-17T15:39:57.560000 | 2008-08-17T17:23:27.023000 |
13,698 | 13,777 | php Zend / MVC without mod_rewrite | I've seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod_rewrite? Are there any "short-cuts"? Can we transfer control in any way (so that a mapping may occur between page... | Zend framework should work without mod_rewrite. If you can live with your URL:s looking more like "/path/to/app/index.php/controller/action". If you had mod_rewrite you could do away with the "index.php" bit, but it should work with too. It's all a matter of setting up the routes to accept the index.php part. | php Zend / MVC without mod_rewrite I've seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod_rewrite? Are there any "short-cuts"? Can we transfer control in any way (so th... | TITLE:
php Zend / MVC without mod_rewrite
QUESTION:
I've seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod_rewrite? Are there any "short-cuts"? Can we transfer control... | [
"php",
"model-view-controller",
"zend-framework"
] | 2 | 4 | 4,177 | 5 | 0 | 2008-08-17T16:06:03.827000 | 2008-08-17T18:00:47.387000 |
13,704 | 13,726 | Suggestions for Migrating from ASP.NET WebForms to ASP.NET MVC? | ASP.NET MVC has been discussed on this forum a few times. I'm about to do a large migration of several websites from classic ASP/ASP.NET WebForms to ASP.NET MVC and was wondering what kind of advice those of you with experience in both technologies have. What I have: a typical ASP.NET app with heavily coupled presentat... | Any pointers, tips, tricks, or gotchas to be aware of? Well, I think you're probably a little ways away from thinking about tricks & gotchas:) As I'm sure you're aware, ASP.NET MVC is not some new version of ASP.NET, but a totally different paradigm from ASP.NET, you won't be migrating, you'll be initiating a brand new... | Suggestions for Migrating from ASP.NET WebForms to ASP.NET MVC? ASP.NET MVC has been discussed on this forum a few times. I'm about to do a large migration of several websites from classic ASP/ASP.NET WebForms to ASP.NET MVC and was wondering what kind of advice those of you with experience in both technologies have. W... | TITLE:
Suggestions for Migrating from ASP.NET WebForms to ASP.NET MVC?
QUESTION:
ASP.NET MVC has been discussed on this forum a few times. I'm about to do a large migration of several websites from classic ASP/ASP.NET WebForms to ASP.NET MVC and was wondering what kind of advice those of you with experience in both te... | [
".net",
"asp.net",
"asp.net-mvc",
"webforms"
] | 5 | 2 | 744 | 4 | 0 | 2008-08-17T16:18:54.097000 | 2008-08-17T17:01:50.593000 |
13,708 | 13,719 | Resources on wordpress theme-development | What are the best resources for Wordpress theme-development? I am currently in the phase of starting my own blog, and don't want to use one of the many free themes. I already have a theme for my website, so I want to read about best-practices. Any advice on how to get started would be very welcome:) I have now created ... | I think that the best way to learn is to look at how other people construct their themes. The first one to start one is the Default Kubrick theme that is included in the standard WordPress install. It has all of the basics and will show you some advanced techniques like including sidebar widgets. Next, in conjunction w... | Resources on wordpress theme-development What are the best resources for Wordpress theme-development? I am currently in the phase of starting my own blog, and don't want to use one of the many free themes. I already have a theme for my website, so I want to read about best-practices. Any advice on how to get started wo... | TITLE:
Resources on wordpress theme-development
QUESTION:
What are the best resources for Wordpress theme-development? I am currently in the phase of starting my own blog, and don't want to use one of the many free themes. I already have a theme for my website, so I want to read about best-practices. Any advice on how... | [
"wordpress",
"themes"
] | 13 | 8 | 2,738 | 11 | 0 | 2008-08-17T16:35:15.920000 | 2008-08-17T16:55:33.820000 |
13,718 | 13,735 | How to schedule a batch process in asp.net | I want to run a weekly batch process in an asp.net page. How can that be done? Thanks | Is there any known drawbacks with the solution? Here is the blog post in which Jeff Atwood discusses this approach. As with most of Jeff's post, the meat is in the comments where the pros and cons have been discussed in extreme detail by a large number of opinionated folks, so that is an ideal place to have that partic... | How to schedule a batch process in asp.net I want to run a weekly batch process in an asp.net page. How can that be done? Thanks | TITLE:
How to schedule a batch process in asp.net
QUESTION:
I want to run a weekly batch process in an asp.net page. How can that be done? Thanks
ANSWER:
Is there any known drawbacks with the solution? Here is the blog post in which Jeff Atwood discusses this approach. As with most of Jeff's post, the meat is in the ... | [
"asp.net"
] | 2 | 3 | 4,851 | 3 | 0 | 2008-08-17T16:54:57.190000 | 2008-08-17T17:15:30.537000 |
13,725 | 13,742 | In Cocoa do you prefer NSInteger or int, and why? | NSInteger / NSUInteger are Cocoa-defined replacements for the regular built-in types. Is there any benefit to using the NS* types over the built-ins? Which do you prefer and why? Are NSInteger and int the same width on 32-bit / 64-bit platforms? | The way I understand it is that NSInteger et al. are architecture safe versions of the corresponding C types. Basically their size vary depending on the architecture, but NSInteger, for example, is guaranteed to hold any valid pointer for the current architecture. Apple recommends that you use these to work with OS X 1... | In Cocoa do you prefer NSInteger or int, and why? NSInteger / NSUInteger are Cocoa-defined replacements for the regular built-in types. Is there any benefit to using the NS* types over the built-ins? Which do you prefer and why? Are NSInteger and int the same width on 32-bit / 64-bit platforms? | TITLE:
In Cocoa do you prefer NSInteger or int, and why?
QUESTION:
NSInteger / NSUInteger are Cocoa-defined replacements for the regular built-in types. Is there any benefit to using the NS* types over the built-ins? Which do you prefer and why? Are NSInteger and int the same width on 32-bit / 64-bit platforms?
ANSWE... | [
"objective-c",
"cocoa",
"types"
] | 48 | 58 | 24,040 | 5 | 0 | 2008-08-17T17:01:45.150000 | 2008-08-17T17:20:31.803000 |
13,745 | 13,756 | Resharper and TortoiseSVN | Is there any good way to deal with the class renaming refactor from Resharper when the file is under source control and TortoiseSVN is the client. I have am trying VisualSVN right now but I haven't had the need to rename anything recently. I don't want to change our repository just to try this out. Also not sure if thi... | TortoiseSVN 1.5 has a neat hidden feature on the check in window: Select a missing file and a new file and right-click. One of the options will be "fix move". I tend to refactor away, and then use this to fix any files where the name has changed. | Resharper and TortoiseSVN Is there any good way to deal with the class renaming refactor from Resharper when the file is under source control and TortoiseSVN is the client. I have am trying VisualSVN right now but I haven't had the need to rename anything recently. I don't want to change our repository just to try this... | TITLE:
Resharper and TortoiseSVN
QUESTION:
Is there any good way to deal with the class renaming refactor from Resharper when the file is under source control and TortoiseSVN is the client. I have am trying VisualSVN right now but I haven't had the need to rename anything recently. I don't want to change our repositor... | [
"svn",
"tortoisesvn",
"resharper",
"visualsvn",
"ankhsvn"
] | 13 | 12 | 1,872 | 4 | 0 | 2008-08-17T17:22:26.590000 | 2008-08-17T17:35:59.167000 |
13,753 | 13,972 | quoting System.DirectoryServices.ResultPropertyCollection | I'm missing something here: $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry $objSearcher.Filter = ("(objectclass=computer)") $computers = $objSearcher.findall() So the question is why do the two following outputs differ? $... | When you included $_.properties.name in the string, it was returning the type name of the property. When a variable is included in a string and the string is evaluated, it calls the ToString method on that object referenced by the variable (not including the members specified after). In this case, the ToString method i... | quoting System.DirectoryServices.ResultPropertyCollection I'm missing something here: $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry $objSearcher.Filter = ("(objectclass=computer)") $computers = $objSearcher.findall() So ... | TITLE:
quoting System.DirectoryServices.ResultPropertyCollection
QUESTION:
I'm missing something here: $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry $objSearcher.Filter = ("(objectclass=computer)") $computers = $objSear... | [
".net",
"powershell",
"scripting",
"active-directory"
] | 1 | 1 | 2,365 | 3 | 0 | 2008-08-17T17:33:54.727000 | 2008-08-17T22:10:02.907000 |
13,763 | 14,782 | How can I remove a child node in HTML using JavaScript? | Is there a function like document.getElementById("FirstDiv").clear()? | To answer the original question - there are various ways to do this, but the following would be the simplest. If you already have a handle to the child node that you want to remove, i.e. you have a JavaScript variable that holds a reference to it: myChildNode.parentNode.removeChild(myChildNode); Obviously, if you are n... | How can I remove a child node in HTML using JavaScript? Is there a function like document.getElementById("FirstDiv").clear()? | TITLE:
How can I remove a child node in HTML using JavaScript?
QUESTION:
Is there a function like document.getElementById("FirstDiv").clear()?
ANSWER:
To answer the original question - there are various ways to do this, but the following would be the simplest. If you already have a handle to the child node that you w... | [
"javascript",
"html",
"dom"
] | 84 | 109 | 136,123 | 9 | 0 | 2008-08-17T17:48:04.057000 | 2008-08-18T15:16:16.437000 |
13,768 | 13,923 | Open ID - What happens when you decide you don't like your existing provider? | So I'm not quite convinced about OpenID yet, and here is why: I already have an OpenID because I have a Blogger account. But I discovered that Blogger seems to be a poor provider when I tried to identify myself on the altdotnet page and recieved the following message: You must use an OpenID persona that specifies a val... | Ideally Stack Overflow would allow you to change your OpenID. OTOH, ideally you would have set up OpenID delegation on your own site, and used that to identify yourself. With delegation, you would need only change which service you delegate to. You'd still be identified by your own URL that you control. But that doesn'... | Open ID - What happens when you decide you don't like your existing provider? So I'm not quite convinced about OpenID yet, and here is why: I already have an OpenID because I have a Blogger account. But I discovered that Blogger seems to be a poor provider when I tried to identify myself on the altdotnet page and recie... | TITLE:
Open ID - What happens when you decide you don't like your existing provider?
QUESTION:
So I'm not quite convinced about OpenID yet, and here is why: I already have an OpenID because I have a Blogger account. But I discovered that Blogger seems to be a poor provider when I tried to identify myself on the altdot... | [
"openid"
] | 17 | 16 | 1,045 | 3 | 0 | 2008-08-17T17:55:57.723000 | 2008-08-17T20:59:10.850000 |
13,786 | 13,930 | Should we support IE6 anymore? | Are we supposed to find workarounds in our web applications so that they will work in every situation? Is it time to do away with IE6 programming? | This depends so much on the context of the application, and of its users. There are two key aspects: what browsers are your users using; and how important is it that they can access/interact with your site. The first part is generally easily establish, if you have an existing version with stats (Google Analytics or sim... | Should we support IE6 anymore? Are we supposed to find workarounds in our web applications so that they will work in every situation? Is it time to do away with IE6 programming? | TITLE:
Should we support IE6 anymore?
QUESTION:
Are we supposed to find workarounds in our web applications so that they will work in every situation? Is it time to do away with IE6 programming?
ANSWER:
This depends so much on the context of the application, and of its users. There are two key aspects: what browsers ... | [
"internet-explorer",
"internet-explorer-6"
] | 15 | 15 | 5,783 | 35 | 0 | 2008-08-17T18:15:14.097000 | 2008-08-17T21:08:32.343000 |
13,791 | 13,943 | Python Regular Expressions to implement string unescaping | I am trying to implement string unescaping with Python regex and backreferences, and it doesn't seem to want to work very well. I'm sure it's something I'm doing wrong but I can't figure out what... >>> import re >>> mystring = r"This is \n a test \r" >>> p = re.compile( "\\\\(\\S)" ) >>> p.sub( "\\1", mystring ) 'This... | Isn't that what Anders' second example does? In 2.5 there's also a string-escape encoding you can apply: >>> mystring = r"This is \n a test \r" >>> mystring.decode('string-escape') 'This is \n a test \r' >>> print mystring.decode('string-escape') This is a test >>> | Python Regular Expressions to implement string unescaping I am trying to implement string unescaping with Python regex and backreferences, and it doesn't seem to want to work very well. I'm sure it's something I'm doing wrong but I can't figure out what... >>> import re >>> mystring = r"This is \n a test \r" >>> p = re... | TITLE:
Python Regular Expressions to implement string unescaping
QUESTION:
I am trying to implement string unescaping with Python regex and backreferences, and it doesn't seem to want to work very well. I'm sure it's something I'm doing wrong but I can't figure out what... >>> import re >>> mystring = r"This is \n a t... | [
"python",
"regex",
"backreference"
] | 17 | 10 | 2,325 | 5 | 0 | 2008-08-17T18:20:21.060000 | 2008-08-17T21:36:32.693000 |
13,806 | 13,870 | Any Windows APIs to get file handles besides createfile and openfile? | I am trying to snoop on a log file that an application is writing to. I have successfully hooked createfile with the detours library from MSR, but createfile never seems to be called with file I am interested in snooping on. I have also tried hooking openfile with the same results. I am not an experienced Windows/C++ p... | You can use Sysinternal's FileMon. It is an excellent monitor that can tell you exactly which file-related system calls are being made and what are the parameters. I think that this approach is much easier than hooking API calls and much less intrusive. | Any Windows APIs to get file handles besides createfile and openfile? I am trying to snoop on a log file that an application is writing to. I have successfully hooked createfile with the detours library from MSR, but createfile never seems to be called with file I am interested in snooping on. I have also tried hooking... | TITLE:
Any Windows APIs to get file handles besides createfile and openfile?
QUESTION:
I am trying to snoop on a log file that an application is writing to. I have successfully hooked createfile with the detours library from MSR, but createfile never seems to be called with file I am interested in snooping on. I have ... | [
"c++",
"windows",
"api",
"logfile"
] | 5 | 8 | 3,766 | 3 | 0 | 2008-08-17T18:27:08.473000 | 2008-08-17T19:26:56.637000 |
13,848 | 13,861 | VisualSVN undelete with TortoiseSVN | Using TortoiseSVN against VisualSVN I delete a source file that I should not have deleted. Now this isn't a train smash because I can get the file back from the daily backup. However I would like to undelete it from SVN (VisualSVN) so that I can get the history back. However I can't work out how to do that. Anybody kno... | What you have to do is the following: Right click on the folder where you think it is. Choose Show Log under TortioseSVN Find the checkin that the file was deleted in Go down the list and find the file Select Revert changes for this version to undelete. | VisualSVN undelete with TortoiseSVN Using TortoiseSVN against VisualSVN I delete a source file that I should not have deleted. Now this isn't a train smash because I can get the file back from the daily backup. However I would like to undelete it from SVN (VisualSVN) so that I can get the history back. However I can't ... | TITLE:
VisualSVN undelete with TortoiseSVN
QUESTION:
Using TortoiseSVN against VisualSVN I delete a source file that I should not have deleted. Now this isn't a train smash because I can get the file back from the daily backup. However I would like to undelete it from SVN (VisualSVN) so that I can get the history back... | [
"svn",
"tortoisesvn",
"visualsvn-server"
] | 6 | 12 | 2,819 | 2 | 0 | 2008-08-17T19:03:33.500000 | 2008-08-17T19:17:43.783000 |
13,851 | 13,854 | IE7: header above menu | I am having trouble with IE7. I have a header, which is an IMG. Under it I have a div that represents a menu, they have to be attached to each other without space in between. Both are 1000px width. In Opera and FireFox the header and the menu are neatly attached to each other. However, in IE7, there is a small space be... | Try the IE Developer Toolbar, which will let you inspect what is going on with the elements and give you outlines of the areas covered. It might give you a better understanding of the problem. | IE7: header above menu I am having trouble with IE7. I have a header, which is an IMG. Under it I have a div that represents a menu, they have to be attached to each other without space in between. Both are 1000px width. In Opera and FireFox the header and the menu are neatly attached to each other. However, in IE7, th... | TITLE:
IE7: header above menu
QUESTION:
I am having trouble with IE7. I have a header, which is an IMG. Under it I have a div that represents a menu, they have to be attached to each other without space in between. Both are 1000px width. In Opera and FireFox the header and the menu are neatly attached to each other. H... | [
"html",
"css",
"internet-explorer-7"
] | 1 | 3 | 524 | 7 | 0 | 2008-08-17T19:10:28.510000 | 2008-08-17T19:12:09.193000 |
13,857 | 141,426 | Can you explain closures (as they relate to Python)? | I've been reading a lot about closures and I think I understand them, but without clouding the picture for myself and others, I am hoping someone can explain closures as succinctly and clearly as possible. I'm looking for a simple explanation that might help me understand where and why I would want to use them. | Closure on closures Objects are data with methods attached, closures are functions with data attached. def make_counter(): i = 0 def counter(): # counter() is a closure nonlocal i i += 1 return i return counter
c1 = make_counter() c2 = make_counter()
print (c1(), c1(), c2(), c2()) # -> 1 2 1 2 | Can you explain closures (as they relate to Python)? I've been reading a lot about closures and I think I understand them, but without clouding the picture for myself and others, I am hoping someone can explain closures as succinctly and clearly as possible. I'm looking for a simple explanation that might help me under... | TITLE:
Can you explain closures (as they relate to Python)?
QUESTION:
I've been reading a lot about closures and I think I understand them, but without clouding the picture for myself and others, I am hoping someone can explain closures as succinctly and clearly as possible. I'm looking for a simple explanation that m... | [
"python",
"functional-programming",
"closures"
] | 102 | 114 | 19,133 | 13 | 0 | 2008-08-17T19:14:30.747000 | 2008-09-26T19:28:32.573000 |
13,893 | 526,939 | How do I make a custom .net client profile installer? | For.net 3.5 SP1, Microsoft have the new client profile which installs only a subset of.net 3.5 SP1 on to Windows XP user's machines. I'm aware of how to make my assemblies client-profile ready. And I've read the articles on how to implement an installer for ClickOnce or MSI. But I've been using Inno Setup for my projec... | Microsoft has now shipped the Client Profile Configuration Designer (Beta). This designer lets you edit the XML files with some limitations, this isn't a 'Google beta' by any means. Information and download | How do I make a custom .net client profile installer? For.net 3.5 SP1, Microsoft have the new client profile which installs only a subset of.net 3.5 SP1 on to Windows XP user's machines. I'm aware of how to make my assemblies client-profile ready. And I've read the articles on how to implement an installer for ClickOnc... | TITLE:
How do I make a custom .net client profile installer?
QUESTION:
For.net 3.5 SP1, Microsoft have the new client profile which installs only a subset of.net 3.5 SP1 on to Windows XP user's machines. I'm aware of how to make my assemblies client-profile ready. And I've read the articles on how to implement an inst... | [
"deployment",
".net-3.5",
"installation",
".net-client-profile"
] | 4 | 1 | 1,078 | 3 | 0 | 2008-08-17T20:03:22.600000 | 2009-02-09T02:02:19.423000 |
13,927 | 14,054 | In Cocoa do I need to remove an Object from receiving KVO notifications when deallocating it? | When I've registered an object foo to receive KVO notifications from another object bar (using addObserver:...), if I then deallocate foo do I need to send a removeObserver:forKeyPath: message to bar in -dealloc? | You need to use -removeObserver:forKeyPath: to remove the observer before -[NSObject dealloc] runs, so yes, doing it in the -dealloc method of your class would work. Better than that though would be to have a deterministic point where whatever owns the object that's doing the observing could tell it it's done and will ... | In Cocoa do I need to remove an Object from receiving KVO notifications when deallocating it? When I've registered an object foo to receive KVO notifications from another object bar (using addObserver:...), if I then deallocate foo do I need to send a removeObserver:forKeyPath: message to bar in -dealloc? | TITLE:
In Cocoa do I need to remove an Object from receiving KVO notifications when deallocating it?
QUESTION:
When I've registered an object foo to receive KVO notifications from another object bar (using addObserver:...), if I then deallocate foo do I need to send a removeObserver:forKeyPath: message to bar in -deal... | [
"cocoa",
"macos"
] | 23 | 39 | 7,318 | 3 | 0 | 2008-08-17T21:05:13.083000 | 2008-08-18T00:33:13.943000 |
13,938 | 13,969 | How do I run (unit) tests in different folders/projects separately in Visual Studio? | I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for unit tests and integration tests. The unit tests is run very frequently while the integration tests natur... | I actually found kind of a solution for this on my own by using keyboard command bound to a macro. The macro was recorded from the menu Tools>Macros>Record TemporaryMacro. While recording I selected my [Tests] folder and ran ReSharpers UnitTest.ContextRun. This resulted in the following macro, Sub TemporaryMacro() DTE.... | How do I run (unit) tests in different folders/projects separately in Visual Studio? I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for unit tests and integ... | TITLE:
How do I run (unit) tests in different folders/projects separately in Visual Studio?
QUESTION:
I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for un... | [
"visual-studio",
"unit-testing",
"configuration",
"vsx",
"extensibility"
] | 4 | 2 | 1,700 | 4 | 0 | 2008-08-17T21:21:07.670000 | 2008-08-17T22:08:13.627000 |
13,941 | 13,949 | Python Sound ("Bell") | I'd like to have a python program alert me when it has completed its task by making a beep noise. Currently, I use import os and then use a command line speech program to say "Process complete". I much rather it be a simple "bell." I know that there's a function that can be used in Cocoa apps, NSBeep, but I don't think... | Have you tried: import sys sys.stdout.write('\a') sys.stdout.flush() That works for me here on Mac OS 10.5 Actually, I think your original attempt works also with a little modification: print('\a') (You just need the single quotes around the character sequence). | Python Sound ("Bell") I'd like to have a python program alert me when it has completed its task by making a beep noise. Currently, I use import os and then use a command line speech program to say "Process complete". I much rather it be a simple "bell." I know that there's a function that can be used in Cocoa apps, NSB... | TITLE:
Python Sound ("Bell")
QUESTION:
I'd like to have a python program alert me when it has completed its task by making a beep noise. Currently, I use import os and then use a command line speech program to say "Process complete". I much rather it be a simple "bell." I know that there's a function that can be used ... | [
"python",
"macos",
"audio",
"terminal"
] | 75 | 94 | 86,453 | 7 | 0 | 2008-08-17T21:33:39.780000 | 2008-08-17T21:46:02.533000 |
13,963 | 13,990 | Best method of Textfile Parsing in C#? | I want to parse a config file sorta thing, like so: [KEY:Value] [SUBKEY:SubValue] Now I started with a StreamReader, converting lines into character arrays, when I figured there's gotta be a better way. So I ask you, humble reader, to help me. One restriction is that it has to work in a Linux/Mono environment (1.2.6 to... | I considered it, but I'm not going to use XML. I am going to be writing this stuff by hand, and hand editing XML makes my brain hurt.:') Have you looked at YAML? You get the benefits of XML without all the pain and suffering. It's used extensively in the ruby community for things like config files, pre-prepared databas... | Best method of Textfile Parsing in C#? I want to parse a config file sorta thing, like so: [KEY:Value] [SUBKEY:SubValue] Now I started with a StreamReader, converting lines into character arrays, when I figured there's gotta be a better way. So I ask you, humble reader, to help me. One restriction is that it has to wor... | TITLE:
Best method of Textfile Parsing in C#?
QUESTION:
I want to parse a config file sorta thing, like so: [KEY:Value] [SUBKEY:SubValue] Now I started with a StreamReader, converting lines into character arrays, when I figured there's gotta be a better way. So I ask you, humble reader, to help me. One restriction is ... | [
"c#",
"fileparse"
] | 10 | 13 | 3,100 | 8 | 0 | 2008-08-17T22:02:31.097000 | 2008-08-17T22:39:50.833000 |
14,008 | 1,030,053 | Genetic Programming in C# | I've been looking for some good genetic programming examples for C#. Anyone knows of good online/book resources? Wonder if there is a C# library out there for Evolutionary/Genetic programming? | After developing my own Genetic Programming didactic application, I found a complete Genetic Programming Framework called AForge.NET Genetics. It's a part of the Aforge.NET library. It's licensed under LGPL. | Genetic Programming in C# I've been looking for some good genetic programming examples for C#. Anyone knows of good online/book resources? Wonder if there is a C# library out there for Evolutionary/Genetic programming? | TITLE:
Genetic Programming in C#
QUESTION:
I've been looking for some good genetic programming examples for C#. Anyone knows of good online/book resources? Wonder if there is a C# library out there for Evolutionary/Genetic programming?
ANSWER:
After developing my own Genetic Programming didactic application, I found ... | [
"c#",
"genetic-algorithm",
"genetic-programming",
"evolutionary-algorithm"
] | 60 | 29 | 33,770 | 12 | 0 | 2008-08-17T23:25:45.733000 | 2009-06-23T00:22:44.647000 |
14,029 | 40,687 | Disabling a ListView in C#, but still showing the current selection | I have a ListView control, and I'm trying to figure out the easiest/best way to disallow changing the selected row(s), without hiding the selected row(s). I know there's a HideSelection property, but that only works when the ListView is still enabled (but not focused). I need the selection to be viewable even when the ... | You could also make the ListView ownerdraw. You then have complete control over how the items look whether they are selected or not or whether the ListView itself is enabled or not. The DrawListViewItemEventArgs provides a way to ask the ListView to draw individual parts of the item so you only have to draw the bits yo... | Disabling a ListView in C#, but still showing the current selection I have a ListView control, and I'm trying to figure out the easiest/best way to disallow changing the selected row(s), without hiding the selected row(s). I know there's a HideSelection property, but that only works when the ListView is still enabled (... | TITLE:
Disabling a ListView in C#, but still showing the current selection
QUESTION:
I have a ListView control, and I'm trying to figure out the easiest/best way to disallow changing the selected row(s), without hiding the selected row(s). I know there's a HideSelection property, but that only works when the ListView ... | [
"c#",
".net",
"winforms",
"listview"
] | 7 | 2 | 5,423 | 3 | 0 | 2008-08-17T23:59:38.940000 | 2008-09-02T21:12:48.600000 |
14,031 | 14,129 | Database triggers | In the past I've never been a fan of using triggers on database tables. To me they always represented some "magic" that was going to happen on the database side, far far away from the control of my application code. I also wanted to limit the amount of work the DB had to do, as it's generally a shared resource and I al... | Triggers are generally used incorrectly, introduce bugs and therefore should be avoided. Never design a trigger to do integrity constraint checking that crosses rows in a table (e.g "the average salary by dept cannot exceed X). Tom Kyte, VP of Oracle has indicated that he would prefer to remove triggers as a feature of... | Database triggers In the past I've never been a fan of using triggers on database tables. To me they always represented some "magic" that was going to happen on the database side, far far away from the control of my application code. I also wanted to limit the amount of work the DB had to do, as it's generally a shared... | TITLE:
Database triggers
QUESTION:
In the past I've never been a fan of using triggers on database tables. To me they always represented some "magic" that was going to happen on the database side, far far away from the control of my application code. I also wanted to limit the amount of work the DB had to do, as it's ... | [
"sql-server",
"database-design",
"triggers"
] | 18 | 12 | 5,965 | 12 | 0 | 2008-08-18T00:01:19.203000 | 2008-08-18T03:23:39.497000 |
14,032 | 14,598 | What's a Good Database ERD Tool for Linux? | I've recently switched to Linux on my work machine and, new to the Linux desktop environment, I'd like to find a decent ERD tool for database design. Booting back into my Windows partition every time I need to create a diagram is going to get unpleasant quickly. I looked at Dia, but didn't see any DB tools - only UML, ... | As a stop gap, I've installed DBDesigner via Wine (I should have just done that first) since that's what my Windows developers are using, but will look at both of these as well. The Eclipse plugin would be ideal if it's decent. Thanks. | What's a Good Database ERD Tool for Linux? I've recently switched to Linux on my work machine and, new to the Linux desktop environment, I'd like to find a decent ERD tool for database design. Booting back into my Windows partition every time I need to create a diagram is going to get unpleasant quickly. I looked at Di... | TITLE:
What's a Good Database ERD Tool for Linux?
QUESTION:
I've recently switched to Linux on my work machine and, new to the Linux desktop environment, I'd like to find a decent ERD tool for database design. Booting back into my Windows partition every time I need to create a diagram is going to get unpleasant quick... | [
"linux",
"ubuntu",
"erd"
] | 28 | 0 | 76,572 | 12 | 0 | 2008-08-18T00:01:42.230000 | 2008-08-18T13:33:56.973000 |
14,061 | 14,337 | Preventing Memory Leaks with Attached Behaviours | I've created an "attached behaviour" in my WPF application which lets me handle the Enter keypress and move to the next control. I call it EnterKeyTraversal.IsEnabled, and you can see the code on my blog here. My main concern now is that I may have a memory leak, since I'm handling the PreviewKeyDown event on UIElement... | I do not agree DannySmurf Some WPF layout objects can clog up your memory and make your application really slow when they are not garbage collected. So I find the choice of words to be correct, you are leaking memory to objects you no longer use. You expect the items to be garbage collected, but they aren't, because th... | Preventing Memory Leaks with Attached Behaviours I've created an "attached behaviour" in my WPF application which lets me handle the Enter keypress and move to the next control. I call it EnterKeyTraversal.IsEnabled, and you can see the code on my blog here. My main concern now is that I may have a memory leak, since I... | TITLE:
Preventing Memory Leaks with Attached Behaviours
QUESTION:
I've created an "attached behaviour" in my WPF application which lets me handle the Enter keypress and move to the next control. I call it EnterKeyTraversal.IsEnabled, and you can see the code on my blog here. My main concern now is that I may have a me... | [
".net",
"wpf",
"memory"
] | 12 | 5 | 6,871 | 11 | 0 | 2008-08-18T00:49:33.957000 | 2008-08-18T08:39:35.507000 |
14,106 | 14,137 | How would you go about evaluating a programmer? | A few weeks ago, I was assigned to evaluate all our programmers. I'm very uncomfortable with this since I was the one who taught everyone the shop's programming language (they all got out of college not knowing the language and as luck would have it, I'm very proficient with it.). On the evaluation, I was very biased o... | Gets things done is really all you need to evaluate a developer. After that you look at the quality that the developer generates. Do they write unit tests and believe in testing and being responsible for the code they generate? Do they take initiative to fix bugs without being assigned them? Are they passionate about c... | How would you go about evaluating a programmer? A few weeks ago, I was assigned to evaluate all our programmers. I'm very uncomfortable with this since I was the one who taught everyone the shop's programming language (they all got out of college not knowing the language and as luck would have it, I'm very proficient w... | TITLE:
How would you go about evaluating a programmer?
QUESTION:
A few weeks ago, I was assigned to evaluate all our programmers. I'm very uncomfortable with this since I was the one who taught everyone the shop's programming language (they all got out of college not knowing the language and as luck would have it, I'm... | [
"evaluation"
] | 10 | 11 | 3,738 | 4 | 0 | 2008-08-18T02:29:34.177000 | 2008-08-18T03:34:29.817000 |
14,118 | 14,124 | How can I test STDIN without blocking in Perl? | I'm writing my first Perl app -- an AOL Instant Messenger bot that talks to an Arduino microcontroller, which in turn controls a servo that will push the power button on our sysadmin's server, which freezes randomly every 28 hours or so. I've gotten all the hard stuff done, I'm just trying to add one last bit of code t... | The Perl built-in is select(), which is a pass-through to the select() system call, but for sane people I recommend IO::Select. Code sample: #!/usr/bin/perl
use IO::Select;
$s = IO::Select->new(); $s->add(\*STDIN);
while (++$i) { print "Hiya $i!\n"; sleep(5); if ($s->can_read(.5)) { chomp($foo = ); print "Got '$foo'... | How can I test STDIN without blocking in Perl? I'm writing my first Perl app -- an AOL Instant Messenger bot that talks to an Arduino microcontroller, which in turn controls a servo that will push the power button on our sysadmin's server, which freezes randomly every 28 hours or so. I've gotten all the hard stuff done... | TITLE:
How can I test STDIN without blocking in Perl?
QUESTION:
I'm writing my first Perl app -- an AOL Instant Messenger bot that talks to an Arduino microcontroller, which in turn controls a servo that will push the power button on our sysadmin's server, which freezes randomly every 28 hours or so. I've gotten all t... | [
"perl",
"stdin"
] | 14 | 21 | 13,735 | 2 | 0 | 2008-08-18T03:02:10.663000 | 2008-08-18T03:12:06.150000 |
14,126 | 14,127 | How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order? | How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order? | // Boost DFS example on an undirected graph. // Create a sample graph, traverse its nodes // in DFS order and print out their values.
#include #include #include using namespace std;
typedef boost::adjacency_list MyGraph; typedef boost::graph_traits::vertex_descriptor MyVertex;
class MyVisitor: public boost::default_... | How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order? How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order? | TITLE:
How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order?
QUESTION:
How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order?
ANSWER:
// Boost DFS example on an undirected graph. // Create a sample graph, traverse its nodes // in DFS order... | [
"c++",
"boost-graph"
] | 32 | 36 | 13,790 | 2 | 0 | 2008-08-18T03:15:35.987000 | 2008-08-18T03:17:39.603000 |
14,135 | 14,154 | Subversion and web development | I'm introducing Subversion into our web shop. I want to want the checked in files to be uploaded into the server via FTP (and as they get use to Subversion, via SFTP). The files are sent to a release candidate page for testing purposes. A script can be called to move the files into production. My question is this: How ... | If you have shell access to your sever, and SVN installed on it (or the ability to install SVN), then your best bet may be just to bypass FTP entirely. How we deploy our apps is (simplified) Developers write code and check it into trunk Periodically, when trunk is stable, we will take a snapshot of it as a tag On the s... | Subversion and web development I'm introducing Subversion into our web shop. I want to want the checked in files to be uploaded into the server via FTP (and as they get use to Subversion, via SFTP). The files are sent to a release candidate page for testing purposes. A script can be called to move the files into produc... | TITLE:
Subversion and web development
QUESTION:
I'm introducing Subversion into our web shop. I want to want the checked in files to be uploaded into the server via FTP (and as they get use to Subversion, via SFTP). The files are sent to a release candidate page for testing purposes. A script can be called to move the... | [
"svn",
"ftp"
] | 9 | 3 | 1,034 | 8 | 0 | 2008-08-18T03:33:13.987000 | 2008-08-18T03:57:18.930000 |
14,138 | 72,787 | Enabling OpenGL in wxWidgets | I installed the wxWidgets source code, compiled it and am linking the libraries thus obtained with my application code. Now I need to use OpenGL in my wxWidgets application. How do I enable this? | For building on Windows with project files: Assume $(WXWIDGETSROOT) is the root directory of your wxWidgets installation. Open the file $(WXWIDGETSROOT)\include\wx\msw\setup.h Search for the #define for wxUSE_GLCANVAS. Change its value from 0 to 1. Recompile the library. For building on Linux and other./configure based... | Enabling OpenGL in wxWidgets I installed the wxWidgets source code, compiled it and am linking the libraries thus obtained with my application code. Now I need to use OpenGL in my wxWidgets application. How do I enable this? | TITLE:
Enabling OpenGL in wxWidgets
QUESTION:
I installed the wxWidgets source code, compiled it and am linking the libraries thus obtained with my application code. Now I need to use OpenGL in my wxWidgets application. How do I enable this?
ANSWER:
For building on Windows with project files: Assume $(WXWIDGETSROOT) ... | [
"opengl",
"wxwidgets"
] | 2 | 7 | 9,759 | 4 | 0 | 2008-08-18T03:34:30.723000 | 2008-09-16T14:17:45.560000 |
14,165 | 14,169 | Strange C++ errors with code that has min()/max() calls | I'm seeing strange errors when my C++ code has min() or max() calls. I'm using Visual C++ compilers. | Check if your code is including the windows.h header file and either your code or other third-party headers have their own min() / max() definitions. If yes, then prepend your windows.h inclusion with a definition of NOMINMAX like this: #define NOMINMAX #include | Strange C++ errors with code that has min()/max() calls I'm seeing strange errors when my C++ code has min() or max() calls. I'm using Visual C++ compilers. | TITLE:
Strange C++ errors with code that has min()/max() calls
QUESTION:
I'm seeing strange errors when my C++ code has min() or max() calls. I'm using Visual C++ compilers.
ANSWER:
Check if your code is including the windows.h header file and either your code or other third-party headers have their own min() / max()... | [
"c++",
"c"
] | 8 | 18 | 2,581 | 6 | 0 | 2008-08-18T04:13:34.920000 | 2008-08-18T04:15:34.510000 |
14,241 | 14,369 | What's the deal with |Pipe-delimited| variables in connection strings? | I know that |DataDirectory| will resolve to App_Data in an ASP.NET application but is that hard-coded or is there a generalized mechanism at work along the lines of %environment variables%? | From the MSDN Smart Client Data Blog: In this version, the.NET runtime added support for what we call the DataDirectory macro. This allows Visual Studio to put a special variable in the connection string that will be expanded at run-time... By default, the |DataDirectory| variable will be expanded as follow: For applic... | What's the deal with |Pipe-delimited| variables in connection strings? I know that |DataDirectory| will resolve to App_Data in an ASP.NET application but is that hard-coded or is there a generalized mechanism at work along the lines of %environment variables%? | TITLE:
What's the deal with |Pipe-delimited| variables in connection strings?
QUESTION:
I know that |DataDirectory| will resolve to App_Data in an ASP.NET application but is that hard-coded or is there a generalized mechanism at work along the lines of %environment variables%?
ANSWER:
From the MSDN Smart Client Data ... | [
".net",
"ado.net",
"syntax",
"macros",
"connection-string"
] | 3 | 5 | 819 | 1 | 0 | 2008-08-18T06:06:38.420000 | 2008-08-18T09:22:47.383000 |
14,247 | 14,261 | Flex: does painless programmatic data binding exist? | I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and please, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to say, have the class functionality in a separate ActionScript class file bu... | Don't be afraid of MXML. It's great for laying out views. If you write your own reusable components then writing them in ActionScript may sometimes give you a little more control, but for non-reusable views MXML is much better. It's more terse, bindings are extemely easy to set up, etc. However, bindings in pure Action... | Flex: does painless programmatic data binding exist? I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and please, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to say, have the class f... | TITLE:
Flex: does painless programmatic data binding exist?
QUESTION:
I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and please, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to say... | [
"apache-flex",
"actionscript-3",
"data-binding",
"mxml"
] | 13 | 29 | 8,786 | 4 | 0 | 2008-08-18T06:15:08.840000 | 2008-08-18T06:56:22.250000 |
14,263 | 14,795 | Best way to let users download a file from my website: http or ftp | We have some files on our website that users of our software can download. Some of the files are in virtual folders on the website while others are on our ftp. The files on the ftp are generally accessed by clicking on an ftp:// link in a browser - most of our customers do not have an ftp client. The other files are ac... | HTTP has many advantages over FTP: it is available in more places (think workplaces which block anything other than HTTP/S) it works nicely with proxies (FTP requires extra settings for the proxy - like making sure that it allows the CONNECT method) it provides built-in compression (with GZIP) which almost all browsers... | Best way to let users download a file from my website: http or ftp We have some files on our website that users of our software can download. Some of the files are in virtual folders on the website while others are on our ftp. The files on the ftp are generally accessed by clicking on an ftp:// link in a browser - most... | TITLE:
Best way to let users download a file from my website: http or ftp
QUESTION:
We have some files on our website that users of our software can download. Some of the files are in virtual folders on the website while others are on our ftp. The files on the ftp are generally accessed by clicking on an ftp:// link i... | [
"http",
"ftp",
"download"
] | 5 | 6 | 4,581 | 5 | 0 | 2008-08-18T07:00:15.067000 | 2008-08-18T15:26:21.287000 |
14,264 | 14,265 | Using GLUT with Visual C++ Express Edition | What are the basic steps to compile an OpenGL application using GLUT (OpenGL Utility Toolkit) under Visual C++ Express Edition? | If you don't have Visual C++ Express Edition (VCEE), download and install VCEE. The default install of Visual C++ Express Edition builds for the.Net platform. We'll need to build for the Windows platform since OpenGL and GLUT are not yet fully supported under.Net. For this we need the Microsoft Platform SDK. (If you're... | Using GLUT with Visual C++ Express Edition What are the basic steps to compile an OpenGL application using GLUT (OpenGL Utility Toolkit) under Visual C++ Express Edition? | TITLE:
Using GLUT with Visual C++ Express Edition
QUESTION:
What are the basic steps to compile an OpenGL application using GLUT (OpenGL Utility Toolkit) under Visual C++ Express Edition?
ANSWER:
If you don't have Visual C++ Express Edition (VCEE), download and install VCEE. The default install of Visual C++ Express ... | [
"visual-studio",
"visual-c++",
"opengl",
"glut"
] | 11 | 9 | 16,710 | 2 | 0 | 2008-08-18T07:00:21.057000 | 2008-08-18T07:00:32.600000 |
14,271 | 14,272 | Boost warnings with VC++ 9 | When the Boost library/headers is used with VC++ 9 compilers (Visual C++ 2008 Express Edition or Visual Studio 2008), a lot of benign warnings are generated. They are of 2 kinds: Warning about the Wp64 setting. Warning about the compiler version. How can I turn off these warnings? | Warning about the Wp64 setting. Turn off the /Wp64 setting which is set by default. You can find it in Project Properties -> C/C++ -> General. Warning about the compiler version. Go to the Boost trunk (online) and get the latest boost\boost\config\compiler\visualc.hpp header file. Diff it with the current file and merg... | Boost warnings with VC++ 9 When the Boost library/headers is used with VC++ 9 compilers (Visual C++ 2008 Express Edition or Visual Studio 2008), a lot of benign warnings are generated. They are of 2 kinds: Warning about the Wp64 setting. Warning about the compiler version. How can I turn off these warnings? | TITLE:
Boost warnings with VC++ 9
QUESTION:
When the Boost library/headers is used with VC++ 9 compilers (Visual C++ 2008 Express Edition or Visual Studio 2008), a lot of benign warnings are generated. They are of 2 kinds: Warning about the Wp64 setting. Warning about the compiler version. How can I turn off these war... | [
"c++",
"visual-studio",
"boost",
"warnings"
] | 1 | 1 | 1,059 | 1 | 0 | 2008-08-18T07:20:19.940000 | 2008-08-18T07:20:33.373000 |
14,278 | 14,282 | How to load plugins in .NET? | I'd like to provide some way of creating dynamically loadable plugins in my software. Typical way to do this is using the LoadLibrary WinAPI function to load a dll and calling GetProcAddress to get an pointer to a function inside that dll. My question is how do I dynamically load a plugin in C#/.Net application? | The following code snippet (C#) constructs an instance of any concrete classes derived from Base found in class libraries (*.dll) in the application path and stores them in a list. using System.IO; using System.Reflection;
List objects = new List (); DirectoryInfo dir = new DirectoryInfo(Application.StartupPath);
for... | How to load plugins in .NET? I'd like to provide some way of creating dynamically loadable plugins in my software. Typical way to do this is using the LoadLibrary WinAPI function to load a dll and calling GetProcAddress to get an pointer to a function inside that dll. My question is how do I dynamically load a plugin i... | TITLE:
How to load plugins in .NET?
QUESTION:
I'd like to provide some way of creating dynamically loadable plugins in my software. Typical way to do this is using the LoadLibrary WinAPI function to load a dll and calling GetProcAddress to get an pointer to a function inside that dll. My question is how do I dynamical... | [
".net",
"windows",
"plugins",
"add-in",
"extensibility"
] | 27 | 20 | 15,732 | 8 | 0 | 2008-08-18T07:34:56.917000 | 2008-08-18T07:41:24.390000 |
14,281 | 14,320 | Is there a python module for regex matching in zip files | I have over a million text files compressed into 40 zip files. I also have a list of about 500 model names of phones. I want to find out the number of times a particular model was mentioned in the text files. Is there any python module which can do a regex match on the files without unzipping it. Is there a simple way ... | There's nothing that will automatically do what you want. However, there is a python zipfile module that will make this easy to do. Here's how to iterate over the lines in the file. #!/usr/bin/python
import zipfile f = zipfile.ZipFile('myfile.zip')
for subfile in f.namelist(): print subfile data = f.read(subfile) for... | Is there a python module for regex matching in zip files I have over a million text files compressed into 40 zip files. I also have a list of about 500 model names of phones. I want to find out the number of times a particular model was mentioned in the text files. Is there any python module which can do a regex match ... | TITLE:
Is there a python module for regex matching in zip files
QUESTION:
I have over a million text files compressed into 40 zip files. I also have a list of about 500 model names of phones. I want to find out the number of times a particular model was mentioned in the text files. Is there any python module which can... | [
"python",
"regex",
"zip",
"text-processing"
] | 7 | 10 | 3,426 | 4 | 0 | 2008-08-18T07:41:09.010000 | 2008-08-18T08:19:06.390000 |
14,287 | 14,290 | Increasing camera capture resolution in OpenCV | In my C/C++ program, I'm using OpenCV to capture images from my webcam. The camera ( Logitech QuickCam IM ) can capture at resolutions 320x240, 640x480 and 1280x960. But, for some strange reason, OpenCV gives me images of resolution 320x240 only. Calls to change the resolution using cvSetCaptureProperty() with other re... | There doesn't seem to be a solution. The resolution can be increased to 640x480 using this hack shared by lifebelt77. Here are the details reproduced: Add to highgui.h: #define CV_CAP_PROP_DIALOG_DISPLAY 8 #define CV_CAP_PROP_DIALOG_FORMAT 9 #define CV_CAP_PROP_DIALOG_SOURCE 10 #define CV_CAP_PROP_DIALOG_COMPRESSION 11... | Increasing camera capture resolution in OpenCV In my C/C++ program, I'm using OpenCV to capture images from my webcam. The camera ( Logitech QuickCam IM ) can capture at resolutions 320x240, 640x480 and 1280x960. But, for some strange reason, OpenCV gives me images of resolution 320x240 only. Calls to change the resolu... | TITLE:
Increasing camera capture resolution in OpenCV
QUESTION:
In my C/C++ program, I'm using OpenCV to capture images from my webcam. The camera ( Logitech QuickCam IM ) can capture at resolutions 320x240, 640x480 and 1280x960. But, for some strange reason, OpenCV gives me images of resolution 320x240 only. Calls to... | [
"c",
"image",
"opencv",
"webcam",
"resolutions"
] | 52 | 17 | 79,494 | 15 | 0 | 2008-08-18T07:45:33.057000 | 2008-08-18T07:46:15.300000 |
14,297 | 14,298 | GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errors | I'm using FBO s in my OpenGL code and I'm seeing compilation errors on GL\_FRAMEBUFFER\_INCOMPLETE\_DUPLICATE\_ATTACHMENT\_EXT. What's the cause of this and how do I fix it? | The cause of this error is an older version of NVIDIA's glext.h, which still has this definition. Whereas the most recent versions of GLEW don't. This leads to compilation errors in code that you had written previously or got from the web. The GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT definition for FBO used t... | GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errors I'm using FBO s in my OpenGL code and I'm seeing compilation errors on GL\_FRAMEBUFFER\_INCOMPLETE\_DUPLICATE\_ATTACHMENT\_EXT. What's the cause of this and how do I fix it? | TITLE:
GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errors
QUESTION:
I'm using FBO s in my OpenGL code and I'm seeing compilation errors on GL\_FRAMEBUFFER\_INCOMPLETE\_DUPLICATE\_ATTACHMENT\_EXT. What's the cause of this and how do I fix it?
ANSWER:
The cause of this error is an older version of NVIDIA's glext... | [
"opengl",
"fbo"
] | 4 | 4 | 577 | 1 | 0 | 2008-08-18T07:59:07.617000 | 2008-08-18T07:59:23.763000 |
14,300 | 14,313 | How do I make Powershell run a batch file and then stay open? | For example; with the old command prompt it would be: cmd.exe /k mybatchfile.bat | Drop into a cmd instance (or indeed PowerShell itself) and type this: powershell -? You'll see that powershell.exe has a "-noexit" parameter which tells it not to exit after executing a "startup command". | How do I make Powershell run a batch file and then stay open? For example; with the old command prompt it would be: cmd.exe /k mybatchfile.bat | TITLE:
How do I make Powershell run a batch file and then stay open?
QUESTION:
For example; with the old command prompt it would be: cmd.exe /k mybatchfile.bat
ANSWER:
Drop into a cmd instance (or indeed PowerShell itself) and type this: powershell -? You'll see that powershell.exe has a "-noexit" parameter which tel... | [
"powershell",
"batch-file"
] | 24 | 35 | 56,597 | 3 | 0 | 2008-08-18T08:00:15.820000 | 2008-08-18T08:10:30.633000 |
14,308 | 14,327 | What is the best way to handle files for a small office? | I'm currently working at a small web development company, we mostly do campaign sites and other promotional stuff. For our first year we've been using a "server" for sharing project files, a plain windows machine with a network share. But this isn't exactly future proof. SVN is great for code (it's what we use now), bu... | SVN is great for binaries, too. If you're afraid you can't compare revisions, I can tell you that it is possible for Word docs, using Tortoise. But I do not know, what you mean with "expanding the versioning". SVN is no document management system. Edit: but I feel it might be a bit overkill for our purposes If you are ... | What is the best way to handle files for a small office? I'm currently working at a small web development company, we mostly do campaign sites and other promotional stuff. For our first year we've been using a "server" for sharing project files, a plain windows machine with a network share. But this isn't exactly futur... | TITLE:
What is the best way to handle files for a small office?
QUESTION:
I'm currently working at a small web development company, we mostly do campaign sites and other promotional stuff. For our first year we've been using a "server" for sharing project files, a plain windows machine with a network share. But this i... | [
"version-control",
"versioning",
"file-management"
] | 4 | 7 | 717 | 8 | 0 | 2008-08-18T08:08:39.983000 | 2008-08-18T08:24:48.157000 |
14,310 | 14,311 | Using OpenGL textures larger than window/display size | I'm having problems using textures that are larger than the OpenGL window or the display size as non-display render targets. What's the solution for this problem? | There's a simple solution. Assuming your (non-display) textures are 1024x1024 and you are restricted to a 256x256 window/display. unsigned int WIN_WIDTH = 256; unsigned int WIN_HEIGHT = WIN_WIDTH; unsigned int TEX_WIDTH = 1024; unsigned int TEX_HEIGHT = TEX_WIDTH; Use the window size to create your OpenGL window: glutI... | Using OpenGL textures larger than window/display size I'm having problems using textures that are larger than the OpenGL window or the display size as non-display render targets. What's the solution for this problem? | TITLE:
Using OpenGL textures larger than window/display size
QUESTION:
I'm having problems using textures that are larger than the OpenGL window or the display size as non-display render targets. What's the solution for this problem?
ANSWER:
There's a simple solution. Assuming your (non-display) textures are 1024x102... | [
"opengl",
"textures"
] | 10 | 4 | 1,573 | 1 | 0 | 2008-08-18T08:09:10.840000 | 2008-08-18T08:09:23.990000 |
14,318 | 14,319 | Using GLUT bitmap fonts | I'm writing a simple OpenGL application that uses GLUT. I don't want to roll my own font rendering code, instead I want to use the simple bitmap fonts that ship with GLUT. What are the steps to get them working? | Simple text display is easy to do in OpenGL using GLUT bitmap fonts. These are simple 2D fonts and are not suitable for display inside your 3D environment. However, they're perfect for text that needs to be overlayed on the display window. Here are the sample steps to display Eric Cartman's favorite quote colored in gr... | Using GLUT bitmap fonts I'm writing a simple OpenGL application that uses GLUT. I don't want to roll my own font rendering code, instead I want to use the simple bitmap fonts that ship with GLUT. What are the steps to get them working? | TITLE:
Using GLUT bitmap fonts
QUESTION:
I'm writing a simple OpenGL application that uses GLUT. I don't want to roll my own font rendering code, instead I want to use the simple bitmap fonts that ship with GLUT. What are the steps to get them working?
ANSWER:
Simple text display is easy to do in OpenGL using GLUT bi... | [
"opengl",
"fonts",
"bitmap",
"glut"
] | 19 | 29 | 30,034 | 1 | 0 | 2008-08-18T08:18:27.827000 | 2008-08-18T08:18:38.433000 |
14,330 | 14,331 | RGB to monochrome conversion | How do I convert the RGB values of a pixel to a single monochrome value? | I found one possible solution in the Color FAQ. The luminance component Y (from the CIE XYZ system ) captures what is most perceived by humans as color in one channel. So, use those coefficients: mono = (0.2125 * color.r) + (0.7154 * color.g) + (0.0721 * color.b); | RGB to monochrome conversion How do I convert the RGB values of a pixel to a single monochrome value? | TITLE:
RGB to monochrome conversion
QUESTION:
How do I convert the RGB values of a pixel to a single monochrome value?
ANSWER:
I found one possible solution in the Color FAQ. The luminance component Y (from the CIE XYZ system ) captures what is most perceived by humans as color in one channel. So, use those coefficie... | [
"colors",
"rgb",
"monochrome"
] | 22 | 27 | 28,291 | 6 | 0 | 2008-08-18T08:27:32.910000 | 2008-08-18T08:27:43.830000 |
14,344 | 14,346 | Starting off with OpenGL under Cygwin | Is it possible to compile and run OpenGL programs from under Cygwin? If yes, how? | It is possible to compile and run OpenGL programs under Cygwin. I illustrate the basic steps here: I assume you know OpenGL programming. If not, get the Red Book ( The OpenGL Programming Guide ). It is mandatory reading for OpenGL anyway. I assume you have Cygwin installed. If not, visit cygwin.com and install it. To c... | Starting off with OpenGL under Cygwin Is it possible to compile and run OpenGL programs from under Cygwin? If yes, how? | TITLE:
Starting off with OpenGL under Cygwin
QUESTION:
Is it possible to compile and run OpenGL programs from under Cygwin? If yes, how?
ANSWER:
It is possible to compile and run OpenGL programs under Cygwin. I illustrate the basic steps here: I assume you know OpenGL programming. If not, get the Red Book ( The OpenG... | [
"opengl",
"cygwin"
] | 15 | 13 | 21,903 | 4 | 0 | 2008-08-18T08:48:34.037000 | 2008-08-18T08:50:35.327000 |
14,350 | 14,404 | How do I call a Flex SWF from a remote domain using Flash (AS3)? | I have a Flex swf hosted at http://www.a.com/a.swf. I have a flash code on another doamin that tries loading the SWF: _loader = new Loader(); var req:URLRequest = new URLRequest("http://services.nuconomy.com/n.swf"); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoaderFinish); _loader.load(req); On the on... | This is all described in The Adobe Flex 3 Programming ActionScript 3 PDF on page 550 (Chapter 27: Flash Player Security / Cross-scripting): If two SWF files written with ActionScript 3.0 are served from different domains—for example, http://siteA.com/swfA.swf and http://siteB.com/swfB.swf —then, by default, Flash Playe... | How do I call a Flex SWF from a remote domain using Flash (AS3)? I have a Flex swf hosted at http://www.a.com/a.swf. I have a flash code on another doamin that tries loading the SWF: _loader = new Loader(); var req:URLRequest = new URLRequest("http://services.nuconomy.com/n.swf"); _loader.contentLoaderInfo.addEventList... | TITLE:
How do I call a Flex SWF from a remote domain using Flash (AS3)?
QUESTION:
I have a Flex swf hosted at http://www.a.com/a.swf. I have a flash code on another doamin that tries loading the SWF: _loader = new Loader(); var req:URLRequest = new URLRequest("http://services.nuconomy.com/n.swf"); _loader.contentLoade... | [
"apache-flex",
"flash",
"actionscript-3",
"security"
] | 2 | 6 | 4,299 | 3 | 0 | 2008-08-18T08:53:39.423000 | 2008-08-18T09:59:50.697000 |
14,358 | 14,360 | Accessing OpenGL state variables in Cg | I need to access the OpenGL state variables (such as the MVP matrices) in my Cg shader program. I'm passing these values to my Cg shader program manually using calls such as cgGLSetStateMatrixParameter() in my C/C++ code. Is there an easier way to do this? | If you are on any fairly recent Cg profile ( arbvp1 and later), your Cg shader programs can in fact access the OpenGL state (MVP matrices, material and light settings) directly. This makes writing those programs less painful. Here are some of the state variables which can be accessed: MVP matrices of all types: state.m... | Accessing OpenGL state variables in Cg I need to access the OpenGL state variables (such as the MVP matrices) in my Cg shader program. I'm passing these values to my Cg shader program manually using calls such as cgGLSetStateMatrixParameter() in my C/C++ code. Is there an easier way to do this? | TITLE:
Accessing OpenGL state variables in Cg
QUESTION:
I need to access the OpenGL state variables (such as the MVP matrices) in my Cg shader program. I'm passing these values to my Cg shader program manually using calls such as cgGLSetStateMatrixParameter() in my C/C++ code. Is there an easier way to do this?
ANSWE... | [
"opengl",
"variables",
"state",
"cg"
] | 3 | 4 | 2,205 | 1 | 0 | 2008-08-18T09:10:54.290000 | 2008-08-18T09:11:13.117000 |
14,359 | 14,362 | .Net Dynamic Plugin Loading with Authority | What recommendations can you give for a system which must do the following: Load Plugins (and eventually execute them) but have 2 methods of loading these plugins: Load only authorized plugins (developed by the owner of the software) Load all plugins And we need to be reasonably secure that the authorized plugins are t... | Basically, if you're putting your code on someone else's machine, there's no absolute guarantee of security. You can look at all kinds of security tricks, but in the end, the code is on their machine so it's out of your control. How much do you stand to lose if the end user loads an unauthorised plugin? | .Net Dynamic Plugin Loading with Authority What recommendations can you give for a system which must do the following: Load Plugins (and eventually execute them) but have 2 methods of loading these plugins: Load only authorized plugins (developed by the owner of the software) Load all plugins And we need to be reasonab... | TITLE:
.Net Dynamic Plugin Loading with Authority
QUESTION:
What recommendations can you give for a system which must do the following: Load Plugins (and eventually execute them) but have 2 methods of loading these plugins: Load only authorized plugins (developed by the owner of the software) Load all plugins And we n... | [
"c#",
".net",
"plugins",
"assemblies",
"dynamics-crm"
] | 1 | 0 | 657 | 4 | 0 | 2008-08-18T09:10:56.427000 | 2008-08-18T09:14:30.973000 |
14,364 | 14,365 | Valid OpenGL context | How and at what stage is a valid OpenGL context created in my code? I'm getting errors on even simple OpenGL code. | From the posts on comp.graphics.api.opengl, it seems like most newbies burn their hands on their first OpenGL program. In most cases, the error is caused due to OpenGL functions being called even before a valid OpenGL context is created. OpenGL is a state machine. Only after the machine has been started and humming in ... | Valid OpenGL context How and at what stage is a valid OpenGL context created in my code? I'm getting errors on even simple OpenGL code. | TITLE:
Valid OpenGL context
QUESTION:
How and at what stage is a valid OpenGL context created in my code? I'm getting errors on even simple OpenGL code.
ANSWER:
From the posts on comp.graphics.api.opengl, it seems like most newbies burn their hands on their first OpenGL program. In most cases, the error is caused due... | [
"opengl",
"glut"
] | 4 | 4 | 5,862 | 1 | 0 | 2008-08-18T09:17:17.693000 | 2008-08-18T09:17:46.193000 |
14,370 | 14,371 | GLUT pop-up menus | Is it easy to create GLUT pop-up menus for my OpenGL application? If yes, how? | Creating and using pop-up menus with GLUT is very simple. Here is a code sample that creates a pop-up menu with 4 options: // Menu items enum MENU_TYPE { MENU_FRONT, MENU_SPOT, MENU_BACK, MENU_BACK_FRONT, };
// Assign a default value MENU_TYPE show = MENU_BACK_FRONT;
// Menu handling function declaration void menu(in... | GLUT pop-up menus Is it easy to create GLUT pop-up menus for my OpenGL application? If yes, how? | TITLE:
GLUT pop-up menus
QUESTION:
Is it easy to create GLUT pop-up menus for my OpenGL application? If yes, how?
ANSWER:
Creating and using pop-up menus with GLUT is very simple. Here is a code sample that creates a pop-up menu with 4 options: // Menu items enum MENU_TYPE { MENU_FRONT, MENU_SPOT, MENU_BACK, MENU_BAC... | [
"opengl",
"glut",
"menu"
] | 7 | 13 | 18,739 | 1 | 0 | 2008-08-18T09:22:49.833000 | 2008-08-18T09:23:11.627000 |
14,373 | 14,411 | CVS to SVN conversion and reorganizing branches | I am converting from existing CVS repository to SVN repository. CVS repository has few brances and I'd like to rename branches while converting. Wanted conversion is like this: CVS branch SVN branch HEAD -> branches/branchX branchA -> trunk branchB -> branches/branchB branchC -> branches/branchC That is, CVS HEAD becom... | I am especially interested in preserving commit history. If I rename and move branches around in SVN after the conversion, will the history be preserved? Yes. Subversion also keeps track of changes to the directory structure, and all version history is preserved even if a file is moved in the tree. I recommend converti... | CVS to SVN conversion and reorganizing branches I am converting from existing CVS repository to SVN repository. CVS repository has few brances and I'd like to rename branches while converting. Wanted conversion is like this: CVS branch SVN branch HEAD -> branches/branchX branchA -> trunk branchB -> branches/branchB bra... | TITLE:
CVS to SVN conversion and reorganizing branches
QUESTION:
I am converting from existing CVS repository to SVN repository. CVS repository has few brances and I'd like to rename branches while converting. Wanted conversion is like this: CVS branch SVN branch HEAD -> branches/branchX branchA -> trunk branchB -> br... | [
"svn",
"cvs"
] | 6 | 9 | 2,366 | 7 | 0 | 2008-08-18T09:26:17.487000 | 2008-08-18T10:08:26.090000 |
14,378 | 14,379 | Using the mouse scrollwheel in GLUT | I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom in and out of a scene? How do I do that? | Note that venerable Nate Robin's GLUT library doesn't support the scrollwheel. But, later implementations of GLUT like FreeGLUT do. Using the scroll wheel in FreeGLUT is dead simple. Here is how: Declare a callback function that shall be called whenever the scroll wheel is scrolled. This is the prototype: void mouseWhe... | Using the mouse scrollwheel in GLUT I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom in and out of a scene? How do I do that? | TITLE:
Using the mouse scrollwheel in GLUT
QUESTION:
I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom in and out of a scene? How do I do that?
ANSWER:
Note that venerable Nate Robin's GLUT library doesn't support the scrollwheel. But, later implementations of GLUT like FreeGLUT do. Using the scro... | [
"opengl",
"glut",
"scrollwheel"
] | 34 | 26 | 57,458 | 3 | 0 | 2008-08-18T09:29:34.593000 | 2008-08-18T09:29:49.010000 |
14,386 | 14,387 | fopen deprecated warning | With the Visual Studio 2005 C++ compiler, I get the following warning when my code uses the fopen() and such calls: 1>foo.cpp(5): warning C4996: 'fopen' was declared deprecated 1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(234): see declaration of 'fopen' 1> Message: 'This function or variable may be... | It looks like Microsoft has deprecated lots of calls which use buffers to improve code security. However, the solutions they're providing aren't portable. Anyway, if you aren't interested in using the secure version of their calls (like fopen_s ), you need to place a definition of _CRT_SECURE_NO_DEPRECATE before your i... | fopen deprecated warning With the Visual Studio 2005 C++ compiler, I get the following warning when my code uses the fopen() and such calls: 1>foo.cpp(5): warning C4996: 'fopen' was declared deprecated 1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(234): see declaration of 'fopen' 1> Message: 'This fu... | TITLE:
fopen deprecated warning
QUESTION:
With the Visual Studio 2005 C++ compiler, I get the following warning when my code uses the fopen() and such calls: 1>foo.cpp(5): warning C4996: 'fopen' was declared deprecated 1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(234): see declaration of 'fopen' 1>... | [
"visual-c++",
"fopen",
"deprecated"
] | 75 | 139 | 200,908 | 11 | 0 | 2008-08-18T09:38:58.913000 | 2008-08-18T09:39:16.510000 |
14,389 | 14,391 | Regex and unicode | I have a script that parses the filenames of TV episodes (show.name.s01e02.avi for example), grabs the episode name (from the www.thetvdb.com API) and automatically renames them into something nicer (Show Name - [01x02].avi) The script works fine, that is until you try and use it on files that have Unicode show-names (... | Use a subrange of [\u0000-\uFFFF] for what you want. You can also use the re.UNICODE compile flag. The docs say that if UNICODE is set, \w will match the characters [0-9_] plus whatever is classified as alphanumeric in the Unicode character properties database. See also http://coding.derkeiler.com/Archive/Python/comp.l... | Regex and unicode I have a script that parses the filenames of TV episodes (show.name.s01e02.avi for example), grabs the episode name (from the www.thetvdb.com API) and automatically renames them into something nicer (Show Name - [01x02].avi) The script works fine, that is until you try and use it on files that have Un... | TITLE:
Regex and unicode
QUESTION:
I have a script that parses the filenames of TV episodes (show.name.s01e02.avi for example), grabs the episode name (from the www.thetvdb.com API) and automatically renames them into something nicer (Show Name - [01x02].avi) The script works fine, that is until you try and use it on ... | [
"python",
"regex",
"unicode",
"character-properties"
] | 31 | 21 | 17,881 | 4 | 0 | 2008-08-18T09:41:14.273000 | 2008-08-18T09:43:10.493000 |
14,397 | 14,441 | When should a multi-module project to split into separate repository trees? | Currently we have a project with a standard subversion repository layout of:./trunk./branches./tags However, as we're moving down the road of OSGi and a modular project, we've ended up with:./trunk/bundle/main./trunk/bundle/modulea./trunk/bundle/moduleb./tags/bundle/main-1.0.0./tags/bundle/main-1.0.1./tags/bundle/modul... | The Subversion book contains two sections on this: Repository Layout Planning Your Repository Organization A blog entry on the subject: "Subversion Repository Layout" The short answer, though: while your mileage will vary (every situation is individual), your /bundle/ /(trunk|tags|branches) scheme is rather common and ... | When should a multi-module project to split into separate repository trees? Currently we have a project with a standard subversion repository layout of:./trunk./branches./tags However, as we're moving down the road of OSGi and a modular project, we've ended up with:./trunk/bundle/main./trunk/bundle/modulea./trunk/bundl... | TITLE:
When should a multi-module project to split into separate repository trees?
QUESTION:
Currently we have a project with a standard subversion repository layout of:./trunk./branches./tags However, as we're moving down the road of OSGi and a modular project, we've ended up with:./trunk/bundle/main./trunk/bundle/mo... | [
"java",
"svn",
"osgi"
] | 7 | 7 | 2,821 | 4 | 0 | 2008-08-18T09:51:18.153000 | 2008-08-18T10:45:46.640000 |
14,398 | 15,428 | Class Designer in Visual Studio - is it worth it? | Does anybody use the Class Designer much in Visual Studio? I have downloaded the Modeling Power Toys for 2005 and have been impressed with what I've seen so far. The MSDN Class Designer Blog doesn't seem to have been updated for a while but it still looks quite useful. Is the Class Designer a quick way to build the bas... | As a visualization tool, or for exploratory purposes (drawing up multiple options to see what they look like) it's not bad, but generally I find the object browser does fine for most stuff I care about. As a code generation tool, it's a terrible idea. The whole idea that we will design all our code structure first, the... | Class Designer in Visual Studio - is it worth it? Does anybody use the Class Designer much in Visual Studio? I have downloaded the Modeling Power Toys for 2005 and have been impressed with what I've seen so far. The MSDN Class Designer Blog doesn't seem to have been updated for a while but it still looks quite useful. ... | TITLE:
Class Designer in Visual Studio - is it worth it?
QUESTION:
Does anybody use the Class Designer much in Visual Studio? I have downloaded the Modeling Power Toys for 2005 and have been impressed with what I've seen so far. The MSDN Class Designer Blog doesn't seem to have been updated for a while but it still lo... | [
"visual-studio",
"class-design",
"class-designer"
] | 15 | 18 | 10,997 | 8 | 0 | 2008-08-18T09:51:36.763000 | 2008-08-19T00:24:39.280000 |
14,402 | 14,403 | GLUT exit redefinition error | In my simple OpenGL program I get the following error about exit redefinition: 1>c:\program files\microsoft visual studio 8\vc\include\stdlib.h(406): error C2381: 'exit': redefinition; __declspec(noreturn) differs 1> c:\program files\microsoft visual studio 8\vc\platformsdk\include\gl\glut.h(146): see declaration of 'e... | Cause: The stdlib.h which ships with the recent versions of Visual Studio has a different (and conflicting) definition of the exit() function. It clashes with the definition in glut.h. Solution: Override the definition in glut.h with that in stdlib.h. Place the stdlib.h line above the glut.h line in your code. #include... | GLUT exit redefinition error In my simple OpenGL program I get the following error about exit redefinition: 1>c:\program files\microsoft visual studio 8\vc\include\stdlib.h(406): error C2381: 'exit': redefinition; __declspec(noreturn) differs 1> c:\program files\microsoft visual studio 8\vc\platformsdk\include\gl\glut.... | TITLE:
GLUT exit redefinition error
QUESTION:
In my simple OpenGL program I get the following error about exit redefinition: 1>c:\program files\microsoft visual studio 8\vc\include\stdlib.h(406): error C2381: 'exit': redefinition; __declspec(noreturn) differs 1> c:\program files\microsoft visual studio 8\vc\platformsd... | [
"opengl",
"glut"
] | 34 | 75 | 41,203 | 2 | 0 | 2008-08-18T09:55:29.457000 | 2008-08-18T09:55:45.883000 |
14,410 | 14,489 | Why are there so few modal-editors that aren't vi*? | Pretty much every other editor that isn't a vi descendant (vim, cream, vi-emu) seems to use the emacs shortcuts ( ctrl + w to delete back a word and so on) | Early software was often modal, but usability took a turn at some point, away from this style. VI-based editors are total enigmas -- they're the only real surviving members of that order of software. Modes are a no-no in usability and interaction design because we humans are fickle mammals who cannot be trusted to reme... | Why are there so few modal-editors that aren't vi*? Pretty much every other editor that isn't a vi descendant (vim, cream, vi-emu) seems to use the emacs shortcuts ( ctrl + w to delete back a word and so on) | TITLE:
Why are there so few modal-editors that aren't vi*?
QUESTION:
Pretty much every other editor that isn't a vi descendant (vim, cream, vi-emu) seems to use the emacs shortcuts ( ctrl + w to delete back a word and so on)
ANSWER:
Early software was often modal, but usability took a turn at some point, away from th... | [
"vim",
"editor",
"vi"
] | 32 | 50 | 12,658 | 14 | 0 | 2008-08-18T10:08:09.447000 | 2008-08-18T12:03:03.380000 |
14,413 | 14,414 | Using OpenGL extensions On Windows | I want to use the functions exposed under the OpenGL extensions. I'm on Windows, how do I do this? | Easy solution: Use GLEW. See how here. Hard solution: If you have a really strong reason not to use GLEW, here's how to achieve the same without it: Identify the OpenGL extension and the extension APIs you wish to use. OpenGL extensions are listed in the OpenGL Extension Registry. Example: I wish to use the capabilitie... | Using OpenGL extensions On Windows I want to use the functions exposed under the OpenGL extensions. I'm on Windows, how do I do this? | TITLE:
Using OpenGL extensions On Windows
QUESTION:
I want to use the functions exposed under the OpenGL extensions. I'm on Windows, how do I do this?
ANSWER:
Easy solution: Use GLEW. See how here. Hard solution: If you have a really strong reason not to use GLEW, here's how to achieve the same without it: Identify t... | [
"opengl",
"glew"
] | 16 | 21 | 17,375 | 4 | 0 | 2008-08-18T10:11:45.600000 | 2008-08-18T10:12:00.577000 |
14,422 | 14,507 | Why is the PyObjC documentation so bad? | For example, http://developer.apple.com/cocoa/pyobjc.html is still for OS X 10.4 Tiger, not 10.5 Leopard.. And that's the official Apple documentation for it.. The official PyObjC page is equally bad, http://pyobjc.sourceforge.net/ It's so bad it's baffling.. I'm considering learning Ruby primarily because the RubyCoco... | I agree that that tutorial is flawed, throwing random, unexplained code right in front of your eyes. It introduces concepts such as the autorelease pool and user defaults without explaining why you would want them ("Autorelease pool for memory management" is hardly an explanation). That said… basically all I want to do... | Why is the PyObjC documentation so bad? For example, http://developer.apple.com/cocoa/pyobjc.html is still for OS X 10.4 Tiger, not 10.5 Leopard.. And that's the official Apple documentation for it.. The official PyObjC page is equally bad, http://pyobjc.sourceforge.net/ It's so bad it's baffling.. I'm considering lear... | TITLE:
Why is the PyObjC documentation so bad?
QUESTION:
For example, http://developer.apple.com/cocoa/pyobjc.html is still for OS X 10.4 Tiger, not 10.5 Leopard.. And that's the official Apple documentation for it.. The official PyObjC page is equally bad, http://pyobjc.sourceforge.net/ It's so bad it's baffling.. I'... | [
"python",
"macos",
"cocoa",
"pyobjc"
] | 17 | 21 | 4,377 | 9 | 0 | 2008-08-18T10:23:22.113000 | 2008-08-18T12:18:52.600000 |
14,432 | 14,462 | 64bit .NET Performance tuning | I know that.NET is JIT compiled to the architecture you are running on just before the app runs, but does the JIT compiler optimize for 64bit architecture at all? Is there anything that needs to be done or considered when programming an app that will run on a 64bit system? (i.e. Will using Int64 improve performance and... | The 64bit JIT is different from the one for 32bit, so I would expect some differences in the output - but I wouldn't switch to 64bit just for that, and I wouldn't expect to gain much speed (if any) in CPU time by switching to 64bit. You will notice a big performance improvement if your app uses a lot of memory and the ... | 64bit .NET Performance tuning I know that.NET is JIT compiled to the architecture you are running on just before the app runs, but does the JIT compiler optimize for 64bit architecture at all? Is there anything that needs to be done or considered when programming an app that will run on a 64bit system? (i.e. Will using... | TITLE:
64bit .NET Performance tuning
QUESTION:
I know that.NET is JIT compiled to the architecture you are running on just before the app runs, but does the JIT compiler optimize for 64bit architecture at all? Is there anything that needs to be done or considered when programming an app that will run on a 64bit system... | [
".net",
"performance",
"optimization",
"64-bit",
"jit"
] | 10 | 14 | 3,895 | 5 | 0 | 2008-08-18T10:35:14.913000 | 2008-08-18T11:11:31.767000 |
14,451 | 14,472 | What is the best way to make a Delphi Application completely full screen? | What is the best way to make a Delphi application (Delphi 2007 for Win32) go completely full screen, removing the application border and covering the Windows Taskbar? I am looking for something similar to what Internet Explorer (IE) does when you hit F11. I wish this to be a run time option for the user not a design ti... | Well, this has always worked for me. Seems a bit simpler... procedure TForm52.Button1Click(Sender: TObject); begin BorderStyle:= bsNone; WindowState:= wsMaximized; end; | What is the best way to make a Delphi Application completely full screen? What is the best way to make a Delphi application (Delphi 2007 for Win32) go completely full screen, removing the application border and covering the Windows Taskbar? I am looking for something similar to what Internet Explorer (IE) does when you... | TITLE:
What is the best way to make a Delphi Application completely full screen?
QUESTION:
What is the best way to make a Delphi application (Delphi 2007 for Win32) go completely full screen, removing the application border and covering the Windows Taskbar? I am looking for something similar to what Internet Explorer ... | [
"delphi",
"fullscreen",
"vcl",
"delphi-2007"
] | 21 | 31 | 35,284 | 10 | 0 | 2008-08-18T10:56:42.623000 | 2008-08-18T11:30:00.310000 |
14,453 | 19,672 | Does anyone have .Net Excel IO component benchmarks? | I'm needing to access Excel workbooks from.Net. I know all about the different ways of doing it (I've written them up in a blog post ), and I know that using a native.Net component is going to be the fastest. But the question is, which of the components wins? Has anybody benchmarked them? I've been using Syncfusion Xls... | I haven't done any proper benchmarks, but I tried out several other components,and found that SpreadsheetGear was considerably faster than XlsIO which I was using before. I've written up some of my findings in this post | Does anyone have .Net Excel IO component benchmarks? I'm needing to access Excel workbooks from.Net. I know all about the different ways of doing it (I've written them up in a blog post ), and I know that using a native.Net component is going to be the fastest. But the question is, which of the components wins? Has any... | TITLE:
Does anyone have .Net Excel IO component benchmarks?
QUESTION:
I'm needing to access Excel workbooks from.Net. I know all about the different ways of doing it (I've written them up in a blog post ), and I know that using a native.Net component is going to be the fastest. But the question is, which of the compon... | [
"c#",
"excel",
"components"
] | 5 | 5 | 631 | 3 | 0 | 2008-08-18T10:58:45.007000 | 2008-08-21T11:57:50.200000 |
14,464 | 14,591 | Bit fields in C# | I have a structure which I need to populate and write to disk (several actually). An example is: byte-6 bit0 - original_or_copy bit1 - copyright bit2 - data_alignment_indicator bit3 - PES_priority bit4-bit5 - PES_scrambling control. bit6-bit7 - reserved In C I might do something like the following: struct PESHeader { u... | I'd probably knock together something using attributes, then a conversion class to convert suitably attributed structures to the bitfield primitives. Something like... using System;
namespace BitfieldTest { [global::System.AttributeUsage(AttributeTargets.Field, AllowMultiple = false)] sealed class BitfieldLengthAttrib... | Bit fields in C# I have a structure which I need to populate and write to disk (several actually). An example is: byte-6 bit0 - original_or_copy bit1 - copyright bit2 - data_alignment_indicator bit3 - PES_priority bit4-bit5 - PES_scrambling control. bit6-bit7 - reserved In C I might do something like the following: str... | TITLE:
Bit fields in C#
QUESTION:
I have a structure which I need to populate and write to disk (several actually). An example is: byte-6 bit0 - original_or_copy bit1 - copyright bit2 - data_alignment_indicator bit3 - PES_priority bit4-bit5 - PES_scrambling control. bit6-bit7 - reserved In C I might do something like ... | [
"c#",
"bit-fields"
] | 86 | 59 | 122,737 | 12 | 0 | 2008-08-18T11:19:28.367000 | 2008-08-18T13:31:30.533000 |
14,495 | 14,773 | How can I stop MATLAB from returning until after a command-line script completes? | I see in the MATLAB help ( matlab -h ) that I can use the -r flag to specify an m -file to run. I notice when I do this, MATLAB seems to start the script, but immediately return. The script processes fine, but the main app has already returned. Is there any way to get MATLAB to only return once the command is finished?... | Quick answer: matlab -wait -nosplash -nodesktop -r waitHello In Matlab 7.1 (the version I have) there is an undocumented command line option -wait in matlab.bat. If it doesn't work for your version, you could probably add it in. Here's what I found. The command at the bottom that finally launches matlab is (line 153): ... | How can I stop MATLAB from returning until after a command-line script completes? I see in the MATLAB help ( matlab -h ) that I can use the -r flag to specify an m -file to run. I notice when I do this, MATLAB seems to start the script, but immediately return. The script processes fine, but the main app has already ret... | TITLE:
How can I stop MATLAB from returning until after a command-line script completes?
QUESTION:
I see in the MATLAB help ( matlab -h ) that I can use the -r flag to specify an m -file to run. I notice when I do this, MATLAB seems to start the script, but immediately return. The script processes fine, but the main a... | [
"command-line",
"matlab"
] | 23 | 25 | 13,300 | 1 | 0 | 2008-08-18T12:10:38.450000 | 2008-08-18T15:10:43.033000 |
14,497 | 49,653 | Has anyone used NUnitLite with any success? | I've recently started work on the Compact Framework and I was wondering if anyone had some recommendations for unit testing beyond what's in VS 2008. MSTest is ok, but debugging the tests is a nightmare and the test runner is so slow. I see that NUnitLite on codeplex is an option, but it doesn't look very active; it's ... | What we've done that really improves our efficiency and quality is to multi target our mobile application. That is to say with a very little bit of creativity and a few conditional compile tags and custom project configurations it is possible to build a version of your mobile application that also runs on the desktop. ... | Has anyone used NUnitLite with any success? I've recently started work on the Compact Framework and I was wondering if anyone had some recommendations for unit testing beyond what's in VS 2008. MSTest is ok, but debugging the tests is a nightmare and the test runner is so slow. I see that NUnitLite on codeplex is an op... | TITLE:
Has anyone used NUnitLite with any success?
QUESTION:
I've recently started work on the Compact Framework and I was wondering if anyone had some recommendations for unit testing beyond what's in VS 2008. MSTest is ok, but debugging the tests is a nightmare and the test runner is so slow. I see that NUnitLite on... | [
"unit-testing",
"windows-mobile",
"compact-framework",
"nunit"
] | 2 | 3 | 957 | 2 | 0 | 2008-08-18T12:10:52.897000 | 2008-09-08T13:02:35.573000 |
14,504 | 14,513 | Proportional font IDE | I would really like to see a proportional font IDE, even if I have to build it myself (perhaps as an extension to Visual Studio). What I basically mean is MS Word style editing of code that sort of looks like the typographical style in The C++ Programming Language book. I want to set tab stops for my indents and lining... | I'd still like to see a popular editor or IDE implement elastic tabstops. | Proportional font IDE I would really like to see a proportional font IDE, even if I have to build it myself (perhaps as an extension to Visual Studio). What I basically mean is MS Word style editing of code that sort of looks like the typographical style in The C++ Programming Language book. I want to set tab stops for... | TITLE:
Proportional font IDE
QUESTION:
I would really like to see a proportional font IDE, even if I have to build it myself (perhaps as an extension to Visual Studio). What I basically mean is MS Word style editing of code that sort of looks like the typographical style in The C++ Programming Language book. I want to... | [
"ide",
"fonts",
"tabs",
"text-editor"
] | 12 | 17 | 2,498 | 13 | 0 | 2008-08-18T12:17:12.337000 | 2008-08-18T12:24:55.987000 |
14,505 | 14,525 | Alpha blending colors in .NET Compact Framework 2.0 | In the Full.NET framework you can use the Color.FromArgb() method to create a new color with alpha blending, like this: Color blended = Color.FromArgb(alpha, color); or Color blended = Color.FromArgb(alpha, red, green, blue); However in the Compact Framework (2.0 specifically), neither of those methods are available, y... | Apparently, it's not quite that simple, but still possible, if you have Windows Mobile 5.0 or newer. | Alpha blending colors in .NET Compact Framework 2.0 In the Full.NET framework you can use the Color.FromArgb() method to create a new color with alpha blending, like this: Color blended = Color.FromArgb(alpha, color); or Color blended = Color.FromArgb(alpha, red, green, blue); However in the Compact Framework (2.0 spec... | TITLE:
Alpha blending colors in .NET Compact Framework 2.0
QUESTION:
In the Full.NET framework you can use the Color.FromArgb() method to create a new color with alpha blending, like this: Color blended = Color.FromArgb(alpha, color); or Color blended = Color.FromArgb(alpha, red, green, blue); However in the Compact F... | [
"c#",
".net",
"graphics",
"compact-framework"
] | 2 | 1 | 4,722 | 5 | 0 | 2008-08-18T12:17:16.113000 | 2008-08-18T12:33:02.273000 |
14,527 | 16,414 | Reverse Find in a string | I need to be able to find the last occurrence of a character within an element. For example: http://www.blah.com/path/to/file/media.jpg If I try to locate it through using substring-before(mediaurl, '.') and substring-after(mediaurl, '.') then it will, of course, match on the first dot. How would I get the file extensi... | The following is an example of a template that would produce the required output in XSLT 1.0: | Reverse Find in a string I need to be able to find the last occurrence of a character within an element. For example: http://www.blah.com/path/to/file/media.jpg If I try to locate it through using substring-before(mediaurl, '.') and substring-after(mediaurl, '.') then it will, of course, match on the first dot. How wou... | TITLE:
Reverse Find in a string
QUESTION:
I need to be able to find the last occurrence of a character within an element. For example: http://www.blah.com/path/to/file/media.jpg If I try to locate it through using substring-before(mediaurl, '.') and substring-after(mediaurl, '.') then it will, of course, match on the ... | [
"xml",
"xslt"
] | 7 | 14 | 11,422 | 4 | 0 | 2008-08-18T12:35:42.050000 | 2008-08-19T15:34:44.903000 |
14,530 | 28,992 | LINQ-to-SQL vs stored procedures? | I took a look at the "Beginner's Guide to LINQ" post here on StackOverflow ( Beginners Guide to LINQ ), but had a follow-up question: We're about to ramp up a new project where nearly all of our database op's will be fairly simple data retrievals (there's another segment of the project which already writes the data). M... | Some advantages of LINQ over sprocs: Type safety: I think we all understand this. Abstraction: This is especially true with LINQ-to-Entities. This abstraction also allows the framework to add additional improvements that you can easily take advantage of. PLINQ is an example of adding multi-threading support to LINQ. Co... | LINQ-to-SQL vs stored procedures? I took a look at the "Beginner's Guide to LINQ" post here on StackOverflow ( Beginners Guide to LINQ ), but had a follow-up question: We're about to ramp up a new project where nearly all of our database op's will be fairly simple data retrievals (there's another segment of the project... | TITLE:
LINQ-to-SQL vs stored procedures?
QUESTION:
I took a look at the "Beginner's Guide to LINQ" post here on StackOverflow ( Beginners Guide to LINQ ), but had a follow-up question: We're about to ramp up a new project where nearly all of our database op's will be fairly simple data retrievals (there's another segm... | [
"linq",
"linq-to-sql",
"stored-procedures"
] | 190 | 194 | 114,110 | 22 | 0 | 2008-08-18T12:37:57.553000 | 2008-08-26T20:04:51.347000 |
14,552 | 14,703 | SSRS scheduled reports not working | My scheduled reports in SQL server won't run. I checked the logs and found the job that was failing. The error message in the log was: 'EXECUTE AS LOGIN' failed for the requested login 'NT AUTHORITY\NETWORK SERVICE'. The step failed. I'm using SQL authentication for the report so it shouldn't be issues with the permiss... | I found the answer here: http://www.themssforum.com/SVCS/Unable-execute/ Apperently there was something wrong with the login for 'NT AUTHORITY\NETWORK SERVICE' and it wouldn't run the jobs it owned properly. Anyone understand why this might have happened? | SSRS scheduled reports not working My scheduled reports in SQL server won't run. I checked the logs and found the job that was failing. The error message in the log was: 'EXECUTE AS LOGIN' failed for the requested login 'NT AUTHORITY\NETWORK SERVICE'. The step failed. I'm using SQL authentication for the report so it s... | TITLE:
SSRS scheduled reports not working
QUESTION:
My scheduled reports in SQL server won't run. I checked the logs and found the job that was failing. The error message in the log was: 'EXECUTE AS LOGIN' failed for the requested login 'NT AUTHORITY\NETWORK SERVICE'. The step failed. I'm using SQL authentication for ... | [
"sql-server",
"reporting-services",
"ssrs-2008"
] | 0 | 2 | 6,191 | 6 | 0 | 2008-08-18T13:02:27.037000 | 2008-08-18T14:34:31.373000 |
14,570 | 14,595 | How to organize dataset queries to improve performance | I don't know when to add to a dataset a tableadapter or a query from toolbox. Does it make any difference? I also dont know where to create instances of the adapters. Should I do it in the Page_Load? Should I just do it when I'm going to use it? Am I opening a new connection when I create a new instance? This doesn't s... | Should I just do it when I'm going to use it? I would recommend that you only retrieve the data when you are going to use it. If you are not going to need it, there is no reason to waste resources by retrieving it in Page_Load. If you are going to need it multiple times throughout the page load, consider saving the que... | How to organize dataset queries to improve performance I don't know when to add to a dataset a tableadapter or a query from toolbox. Does it make any difference? I also dont know where to create instances of the adapters. Should I do it in the Page_Load? Should I just do it when I'm going to use it? Am I opening a new ... | TITLE:
How to organize dataset queries to improve performance
QUESTION:
I don't know when to add to a dataset a tableadapter or a query from toolbox. Does it make any difference? I also dont know where to create instances of the adapters. Should I do it in the Page_Load? Should I just do it when I'm going to use it? A... | [
"asp.net",
"database",
"performance"
] | 0 | 2 | 485 | 1 | 0 | 2008-08-18T13:21:45.670000 | 2008-08-18T13:32:51.937000 |
14,577 | 14,699 | How do I avoid using cursors in Sybase (T-SQL)? | Imagine the scene, you're updating some legacy Sybase code and come across a cursor. The stored procedure builds up a result set in a #temporary table which is all ready to be returned except that one of columns isn't terribly human readable, it's an alphanumeric code. What we need to do, is figure out the possible dis... | You have to have a XRef table if you want to take out the cursor. Assuming you know the 100 distinct lookup values (and that they're static) it's simple to generate one by calling proc_code_xref 100 times and inserting the results into a table | How do I avoid using cursors in Sybase (T-SQL)? Imagine the scene, you're updating some legacy Sybase code and come across a cursor. The stored procedure builds up a result set in a #temporary table which is all ready to be returned except that one of columns isn't terribly human readable, it's an alphanumeric code. Wh... | TITLE:
How do I avoid using cursors in Sybase (T-SQL)?
QUESTION:
Imagine the scene, you're updating some legacy Sybase code and come across a cursor. The stored procedure builds up a result set in a #temporary table which is all ready to be returned except that one of columns isn't terribly human readable, it's an alp... | [
"t-sql",
"sybase",
"cursors"
] | 2 | 1 | 5,856 | 3 | 0 | 2008-08-18T13:24:55.710000 | 2008-08-18T14:33:03.343000 |
14,582 | 14,630 | Can I make Subversion + TortoiseSVN case-insensitive for Windows? | I've been using Subversion for code control with TortoiseSVN to interface with the server for the past few months, and in general it's been going great! However, occasionally my FoxPro IDE will change the case of a file extension without warning where " program.prg " becomes " program. PRG ") TortoiseSVN apparently tak... | Unfortunately, Subversion is case-sensitive. This is due to the fact that files from Subversion can be checked out on both case-sensitive file systems (e.g., *nix) and case-insensitive file systems (e.g., Windows, Mac). This pre-commit hook script may help you avoid problems when you check in files. If it doesn't solve... | Can I make Subversion + TortoiseSVN case-insensitive for Windows? I've been using Subversion for code control with TortoiseSVN to interface with the server for the past few months, and in general it's been going great! However, occasionally my FoxPro IDE will change the case of a file extension without warning where " ... | TITLE:
Can I make Subversion + TortoiseSVN case-insensitive for Windows?
QUESTION:
I've been using Subversion for code control with TortoiseSVN to interface with the server for the past few months, and in general it's been going great! However, occasionally my FoxPro IDE will change the case of a file extension withou... | [
"windows",
"svn",
"tortoisesvn"
] | 25 | 20 | 13,794 | 8 | 0 | 2008-08-18T13:27:00.653000 | 2008-08-18T13:49:43.507000 |
14,588 | 14,621 | Do you use version control other than for source code? | I've found SVN to be extremely useful for documentation, personal files, among other non-source code uses. What other practical uses have you found to version control systems in general? | I've seen version control being used for other non-source code purposes, like, Schema files - a set of XML schema files that represent a real world schema Content files - content represented in a specific format, this is tied to a designer in VStudio, using source control, allows history, rollbacks everything, with no ... | Do you use version control other than for source code? I've found SVN to be extremely useful for documentation, personal files, among other non-source code uses. What other practical uses have you found to version control systems in general? | TITLE:
Do you use version control other than for source code?
QUESTION:
I've found SVN to be extremely useful for documentation, personal files, among other non-source code uses. What other practical uses have you found to version control systems in general?
ANSWER:
I've seen version control being used for other non-... | [
"svn",
"version-control",
"cvs"
] | 14 | 6 | 1,054 | 14 | 0 | 2008-08-18T13:30:21.283000 | 2008-08-18T13:46:29.600000 |
14,611 | 14,676 | Editing User Profile w/ Forms Authentication | We're using Forms Authentication in SharePoint. When the account is created, the administrator can add some information, like name and address. But the required fields are username and email address. When a user goes to their profile page, all the fields are blank and they are unable to edit them. I have read a number ... | If you log in to the "Shared Services administration" through the "Central Admin Tool" there is an option "Profile services policies". You can define in here what fields are user-overridable. | Editing User Profile w/ Forms Authentication We're using Forms Authentication in SharePoint. When the account is created, the administrator can add some information, like name and address. But the required fields are username and email address. When a user goes to their profile page, all the fields are blank and they a... | TITLE:
Editing User Profile w/ Forms Authentication
QUESTION:
We're using Forms Authentication in SharePoint. When the account is created, the administrator can add some information, like name and address. But the required fields are username and email address. When a user goes to their profile page, all the fields ar... | [
"sharepoint",
"moss",
"wss"
] | 6 | 4 | 938 | 1 | 0 | 2008-08-18T13:40:33.387000 | 2008-08-18T14:21:43.460000 |
14,614 | 14,683 | Static Methods in an Interface/Abstract Class | First off, I understand the reasons why an interface or abstract class (in the.NET/C# terminology) cannot have abstract static methods. My question is then more focused on the best design solution. What I want is a set of "helper" classes that all have their own static methods such that if I get objects A, B, and C fro... | Looking at your response I am thinking along the following lines: You could just have a static method that takes a type parameter and performs the expected logic based on the type. You could create a virtual method in your abstract base, where you specify the SQL in the concrete class. So that contains all the common c... | Static Methods in an Interface/Abstract Class First off, I understand the reasons why an interface or abstract class (in the.NET/C# terminology) cannot have abstract static methods. My question is then more focused on the best design solution. What I want is a set of "helper" classes that all have their own static meth... | TITLE:
Static Methods in an Interface/Abstract Class
QUESTION:
First off, I understand the reasons why an interface or abstract class (in the.NET/C# terminology) cannot have abstract static methods. My question is then more focused on the best design solution. What I want is a set of "helper" classes that all have the... | [
".net",
"abstract-class",
"static-methods",
"interface-design"
] | 10 | 3 | 9,108 | 10 | 0 | 2008-08-18T13:42:08.530000 | 2008-08-18T14:25:33.733000 |
14,617 | 15,937 | How to retrieve a file from a server via SFTP? | I'm trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this? | Another option is to consider looking at the JSch library. JSch seems to be the preferred library for a few large open source projects, including Eclipse, Ant and Apache Commons HttpClient, amongst others. It supports both user/pass and certificate-based logins nicely, as well as all a whole host of other yummy SSH2 fe... | How to retrieve a file from a server via SFTP? I'm trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this? | TITLE:
How to retrieve a file from a server via SFTP?
QUESTION:
I'm trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this?
ANSWER:
Another option is to consider looking at the JSch library. JSch seems to be the preferred library for a few large open source projects, inc... | [
"java",
"ftp",
"sftp",
"security"
] | 242 | 210 | 440,934 | 16 | 0 | 2008-08-18T13:43:48.730000 | 2008-08-19T09:44:41.723000 |
14,618 | 14,640 | Multiple choice on WinForms | What's the best way of implementing a multiple choice option in Windows Forms? I want to enforce a single selection from a list, starting with a default value. It seems like a ComboBox would be a good choice, but is there a way to specify a non-blank default value? I could just set it in the code at some appropriate in... | If you only want one answer from the group, then a RadioButton control would be your best fit or you could use the ComboBox if you will have a lot of options. To set a default value, just add the item to the ComboBox's collection and set the SelectedIndex or SelectedItem to that item. Depending on how many options you ... | Multiple choice on WinForms What's the best way of implementing a multiple choice option in Windows Forms? I want to enforce a single selection from a list, starting with a default value. It seems like a ComboBox would be a good choice, but is there a way to specify a non-blank default value? I could just set it in the... | TITLE:
Multiple choice on WinForms
QUESTION:
What's the best way of implementing a multiple choice option in Windows Forms? I want to enforce a single selection from a list, starting with a default value. It seems like a ComboBox would be a good choice, but is there a way to specify a non-blank default value? I could ... | [
"winforms",
"combobox"
] | 6 | 8 | 4,908 | 5 | 0 | 2008-08-18T13:44:23.300000 | 2008-08-18T13:56:40.797000 |
14,634 | 14,648 | Is it possible to automatically make check-outs from any VCS? | Let's take a web development environment, where developers checkout a project onto their local machines, work on it, and check in changes to development. These changes are further tested on development and moved live on a regular schedule (eg weekly, monthly, etc.). Is it possible to have an auto-moveup of the latest t... | Certainly, but the exact product may be dependent upon the VCS you are using. What you might want to do, is have a a few different branches, and migrate up as you progress. E.g., Development -> Stable-Dev -> Beta -> Production. You can then simply auto-update to the latest version of Stable-Dev and Beta for your tester... | Is it possible to automatically make check-outs from any VCS? Let's take a web development environment, where developers checkout a project onto their local machines, work on it, and check in changes to development. These changes are further tested on development and moved live on a regular schedule (eg weekly, monthly... | TITLE:
Is it possible to automatically make check-outs from any VCS?
QUESTION:
Let's take a web development environment, where developers checkout a project onto their local machines, work on it, and check in changes to development. These changes are further tested on development and moved live on a regular schedule (... | [
"svn",
"version-control",
"cvs",
"versions"
] | 2 | 1 | 170 | 6 | 0 | 2008-08-18T13:53:54.093000 | 2008-08-18T14:00:29.603000 |
14,646 | 24,826 | How to add "Project Description" in FogBugz? | When I create a new project (or even when I edit the Sample Project) there is no way to add Description to the project. Or am I blind to the obvious? | There's no such thing as a project description, really. There's a column in the Projects page which is used so you can see which project is the default, built-in inbox, and we couldn't think of anything better to put as the column header for that column. | How to add "Project Description" in FogBugz? When I create a new project (or even when I edit the Sample Project) there is no way to add Description to the project. Or am I blind to the obvious? | TITLE:
How to add "Project Description" in FogBugz?
QUESTION:
When I create a new project (or even when I edit the Sample Project) there is no way to add Description to the project. Or am I blind to the obvious?
ANSWER:
There's no such thing as a project description, really. There's a column in the Projects page whic... | [
"fogbugz"
] | 6 | 20 | 1,385 | 3 | 0 | 2008-08-18T14:00:11.303000 | 2008-08-24T03:22:54.313000 |
14,656 | 14,681 | Can a proxy server cache SSL GETs? If not, would response body encryption suffice? | Can a (||any) proxy server cache content that is requested by a client over https? As the proxy server can't see the querystring, or the http headers, I reckon they can't. I'm considering a desktop application, run by a number of people behind their companies proxy. This application may access services across the inter... | No, it's not possible to cache https directly. The whole communication between the client and the server is encrypted. A proxy sits between the server and the client, in order to cache it, you need to be able to read it, ie decrypt the encryption. You can do something to cache it. You basically do the SSL on your proxy... | Can a proxy server cache SSL GETs? If not, would response body encryption suffice? Can a (||any) proxy server cache content that is requested by a client over https? As the proxy server can't see the querystring, or the http headers, I reckon they can't. I'm considering a desktop application, run by a number of people ... | TITLE:
Can a proxy server cache SSL GETs? If not, would response body encryption suffice?
QUESTION:
Can a (||any) proxy server cache content that is requested by a client over https? As the proxy server can't see the querystring, or the http headers, I reckon they can't. I'm considering a desktop application, run by a... | [
"security",
"encryption",
"caching",
"ssl",
"proxy"
] | 32 | 24 | 24,939 | 4 | 0 | 2008-08-18T14:06:13.973000 | 2008-08-18T14:24:39.477000 |
14,697 | 17,637 | What Url rewriter do you use for ASP.Net? | I've looked at several URL rewriters for ASP.Net and IIS and was wondering what everyone else uses, and why. Here are the ones that I have used or looked at: ThunderMain URLRewriter: used in a previous project, didn't quite have the flexibility/performance we were looking for Ewal UrlMapper: used in a current project, ... | +1 UrlRewritingNET.URLRewrite -- used in several hundred services/portals/sites on a single box without issue for years! (@Jason -- that is the one you're talking about, right?) and I've also used the URLRewriter.NET on a personal site, and found it, ah, interesting. @travis, you're right about the changed syntax, but ... | What Url rewriter do you use for ASP.Net? I've looked at several URL rewriters for ASP.Net and IIS and was wondering what everyone else uses, and why. Here are the ones that I have used or looked at: ThunderMain URLRewriter: used in a previous project, didn't quite have the flexibility/performance we were looking for E... | TITLE:
What Url rewriter do you use for ASP.Net?
QUESTION:
I've looked at several URL rewriters for ASP.Net and IIS and was wondering what everyone else uses, and why. Here are the ones that I have used or looked at: ThunderMain URLRewriter: used in a previous project, didn't quite have the flexibility/performance we ... | [
"asp.net",
"iis",
"url-rewriting",
"urlrewriter"
] | 14 | 3 | 1,629 | 11 | 0 | 2008-08-18T14:32:12.237000 | 2008-08-20T09:09:50.953000 |
14,698 | 23,585 | How to make Pro*C cope with #warning directives? | When I try to precompile a *.pc file that contains a #warning directive I recieve the following error: PCC-S-02014, Encountered the symbol "warning" when expecting one of the following: (bla bla bla). Can I somehow convince Pro*C to ignore the thing if it doesn't know what to do with it? I can't remove the #warning dir... | According to the Pro*C/C++ Programmer's Guide (chapter 5 "Advanced Topics"), Pro*C silently ignores a number of preprocessor directives including #error and #pragma, but sadly not #warning. Since your warning directives are included in a header file, you might be able to use the ORA_PROC macro: #ifndef ORA_PROC #includ... | How to make Pro*C cope with #warning directives? When I try to precompile a *.pc file that contains a #warning directive I recieve the following error: PCC-S-02014, Encountered the symbol "warning" when expecting one of the following: (bla bla bla). Can I somehow convince Pro*C to ignore the thing if it doesn't know wh... | TITLE:
How to make Pro*C cope with #warning directives?
QUESTION:
When I try to precompile a *.pc file that contains a #warning directive I recieve the following error: PCC-S-02014, Encountered the symbol "warning" when expecting one of the following: (bla bla bla). Can I somehow convince Pro*C to ignore the thing if ... | [
"c",
"oracle",
"oracle-pro-c"
] | 3 | 5 | 6,978 | 7 | 0 | 2008-08-18T14:32:41.830000 | 2008-08-22T21:44:00.983000 |
14,717 | 14,766 | Identifying SQL Server Performance Problems | We're having sporadic, random query timeouts on our SQL Server 2005 cluster. I own a few apps that use it, so I'm helping out in the investigation. When watching the % CPU time in regular ol' Perfmon, you can certainly see it pegging out. However, SQL activity monitor only gives cumulative CPU and IO time used by a pro... | This will give you the top 50 statements by average CPU time, check here for other scripts: http://www.microsoft.com/technet/scriptcenter/scripts/sql/sql2005/default.mspx?mfr=true SELECT TOP 50 qs.total_worker_time/qs.execution_count as [Avg CPU Time], SUBSTRING(qt.text,qs.statement_start_offset/2, (case when qs.statem... | Identifying SQL Server Performance Problems We're having sporadic, random query timeouts on our SQL Server 2005 cluster. I own a few apps that use it, so I'm helping out in the investigation. When watching the % CPU time in regular ol' Perfmon, you can certainly see it pegging out. However, SQL activity monitor only gi... | TITLE:
Identifying SQL Server Performance Problems
QUESTION:
We're having sporadic, random query timeouts on our SQL Server 2005 cluster. I own a few apps that use it, so I'm helping out in the investigation. When watching the % CPU time in regular ol' Perfmon, you can certainly see it pegging out. However, SQL activi... | [
"sql-server",
"performance",
"sql-server-2005"
] | 9 | 12 | 3,908 | 7 | 0 | 2008-08-18T14:39:51.333000 | 2008-08-18T15:09:27.683000 |
14,760 | 15,335 | Is it possible to disable command input in the toolbar search box? | In the Visual Studio toolbar, you can enter commands into the search box by prefixing them with a > symbol. Is there any way to disable this? I've never used the feature, and it's slightly annoying when trying to actually search for something that you know is prefixed by greater-than in the code. It's particularly anno... | This is a really cool feature. I've poked through the feature documentation, and the accompanying command list, and not a heck of a lot is showing up in terms of turning it off. If you want to search for >exit, you could always type >Edit.Find >exit in the search box; that seems to do the trick. A bit verbose, though, ... | Is it possible to disable command input in the toolbar search box? In the Visual Studio toolbar, you can enter commands into the search box by prefixing them with a > symbol. Is there any way to disable this? I've never used the feature, and it's slightly annoying when trying to actually search for something that you k... | TITLE:
Is it possible to disable command input in the toolbar search box?
QUESTION:
In the Visual Studio toolbar, you can enter commands into the search box by prefixing them with a > symbol. Is there any way to disable this? I've never used the feature, and it's slightly annoying when trying to actually search for so... | [
"visual-studio"
] | 4 | 2 | 238 | 3 | 0 | 2008-08-18T15:04:25.603000 | 2008-08-18T22:42:12.513000 |
14,770 | 14,787 | How best to use File Version and Assembly Version? | In.NET there are two version numbers available when building a project, File Version and Assembly Version. How are you using these numbers? Keeping them the same? Auto-incrementing one, but manually changing the other? Also what about the AssemblyInformationalVersion attribute? I'd found this support Microsoft Knowledg... | In a scenario where I have multiple file assemblies (i.e. 1 exe and 5 dlls) I will use a different file version for each, but the same assembly version for all of them, allowing you to know which exe each of the dlls go with. | How best to use File Version and Assembly Version? In.NET there are two version numbers available when building a project, File Version and Assembly Version. How are you using these numbers? Keeping them the same? Auto-incrementing one, but manually changing the other? Also what about the AssemblyInformationalVersion a... | TITLE:
How best to use File Version and Assembly Version?
QUESTION:
In.NET there are two version numbers available when building a project, File Version and Assembly Version. How are you using these numbers? Keeping them the same? Auto-incrementing one, but manually changing the other? Also what about the AssemblyInfo... | [
".net",
"attributes",
"versions"
] | 55 | 15 | 28,799 | 7 | 0 | 2008-08-18T15:10:12.660000 | 2008-08-18T15:20:59.377000 |
14,775 | 14,856 | Interview question on C# and VB.net similarities/differences | I have been a VB.net developer for a few years now but I am currently applying to a few companies that use C#. I have even been told that at least one of the companies doesn't want VB.net developers. I have been looking online trying to find real differences between the two and have asked on crackoverflow. The only maj... | I've had to interview people for a few C# positions and this is my general advice for VB.Net developers interviewing for a C# position: Make sure you are clear that you have been working VB.Net. This seems obvious but is something that apparently isn't (in my experience). Try to give a code sample, if possible. I've se... | Interview question on C# and VB.net similarities/differences I have been a VB.net developer for a few years now but I am currently applying to a few companies that use C#. I have even been told that at least one of the companies doesn't want VB.net developers. I have been looking online trying to find real differences ... | TITLE:
Interview question on C# and VB.net similarities/differences
QUESTION:
I have been a VB.net developer for a few years now but I am currently applying to a few companies that use C#. I have even been told that at least one of the companies doesn't want VB.net developers. I have been looking online trying to find... | [
"c#",
"vb.net"
] | 7 | 9 | 4,945 | 8 | 0 | 2008-08-18T15:11:40.783000 | 2008-08-18T16:18:29.823000 |
14,791 | 14,815 | Is "include file" in shtml the best method to keep non-database changing data | We have a website that uses #include file command to roll info into some web pages. The authors can access the text files to update things like the occasional class or contact information for the department. My question is this, I don't see anyone using this method and wonder if it is a good idea to keep using it. If n... | I don't think there is anything wrong with it, and I've done some similar things with PHP. If the people that make the changes are comfortable with how they do it and they can do what they need to, I think you should stick with it. There could be some retraining involved and/or a fair amount of work involved for changi... | Is "include file" in shtml the best method to keep non-database changing data We have a website that uses #include file command to roll info into some web pages. The authors can access the text files to update things like the occasional class or contact information for the department. My question is this, I don't see a... | TITLE:
Is "include file" in shtml the best method to keep non-database changing data
QUESTION:
We have a website that uses #include file command to roll info into some web pages. The authors can access the text files to update things like the occasional class or contact information for the department. My question is t... | [
"html",
"include",
"shtml"
] | 2 | 1 | 398 | 2 | 0 | 2008-08-18T15:23:33.693000 | 2008-08-18T15:50:00.800000 |
14,801 | 15,279 | How can I override an EJB 3 session bean method with a generic argument - if possible at all? | Suppose you have the following EJB 3 interfaces/classes: public interface Repository { public void delete(E entity); }
public abstract class AbstractRepository implements Repository { public void delete(E entity){ //... } }
public interface FooRepository { //other methods }
@Local(FooRepository.class) @Stateless pub... | I tried it with a pojo and it seems to work. I had to modify your code a bit. I think your interfaces were a bit off, but I'm not sure. I assumed "Foo" was a concrete type, but if not I can do some more testing for you. I just wrote a main method to test this. I hope this helps! public static void main(String[] args){ ... | How can I override an EJB 3 session bean method with a generic argument - if possible at all? Suppose you have the following EJB 3 interfaces/classes: public interface Repository { public void delete(E entity); }
public abstract class AbstractRepository implements Repository { public void delete(E entity){ //... } }
... | TITLE:
How can I override an EJB 3 session bean method with a generic argument - if possible at all?
QUESTION:
Suppose you have the following EJB 3 interfaces/classes: public interface Repository { public void delete(E entity); }
public abstract class AbstractRepository implements Repository { public void delete(E en... | [
"java",
"generics",
"inheritance",
"jakarta-ee",
"ejb-3.0"
] | 6 | 2 | 4,191 | 2 | 0 | 2008-08-18T15:34:34.920000 | 2008-08-18T21:51:55.140000 |
14,837 | 14,908 | How to get started with speech-to-text? | I'm really interested in speech-to-text algorithms, but I'm not sure where to start studying up on them. A bunch of searching around led me to this, but it's from 1996 and I'm fairly certain that there have been improvements since then. Does anyone who has any experience with this sort of stuff have any recommendations... | This is a HUGE questions, I wouldn't know how to begin... So let me just try giving you the right "terms" so you can refine your quest: First, understand that Speech Recognition is a diverse and complicated subject, and it has many different applications. People tend to map this domain to the first thing that comes to ... | How to get started with speech-to-text? I'm really interested in speech-to-text algorithms, but I'm not sure where to start studying up on them. A bunch of searching around led me to this, but it's from 1996 and I'm fairly certain that there have been improvements since then. Does anyone who has any experience with thi... | TITLE:
How to get started with speech-to-text?
QUESTION:
I'm really interested in speech-to-text algorithms, but I'm not sure where to start studying up on them. A bunch of searching around led me to this, but it's from 1996 and I'm fairly certain that there have been improvements since then. Does anyone who has any e... | [
"language-agnostic",
"speech-recognition"
] | 10 | 8 | 3,972 | 6 | 0 | 2008-08-18T16:05:43.280000 | 2008-08-18T16:56:43.850000 |
14,843 | 14,859 | Mixed C++/CLI TypeLoadException Internal limitation: too many fields | On a quest to migrate some new UI into Managed/C# land, I have recently turned on Common Language Runtime Support (/clr) on a large legacy project, which uses MFC in a Shared DLL and relies on about a dozen other projects within our overall solution. This project is the core of our application, and would drive any mana... | Make sure the Enable String Pooling option under C/C++ Code Generation is turned on. That usually fixes this issue, which is one of those "huh?" MS limitations like the 64k limit on Excel spreadsheets. Only this one affects the number of symbols that may appear in an assembly. | Mixed C++/CLI TypeLoadException Internal limitation: too many fields On a quest to migrate some new UI into Managed/C# land, I have recently turned on Common Language Runtime Support (/clr) on a large legacy project, which uses MFC in a Shared DLL and relies on about a dozen other projects within our overall solution. ... | TITLE:
Mixed C++/CLI TypeLoadException Internal limitation: too many fields
QUESTION:
On a quest to migrate some new UI into Managed/C# land, I have recently turned on Common Language Runtime Support (/clr) on a large legacy project, which uses MFC in a Shared DLL and relies on about a dozen other projects within our ... | [
"compiler-construction",
"c++-cli",
"clr"
] | 10 | 16 | 3,798 | 3 | 0 | 2008-08-18T16:11:14.860000 | 2008-08-18T16:21:39.380000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.