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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49,724 | 49,773 | Programmatically extract macro (VBA) code from Word 2007 docs | Is it possible to extract all of the VBA code from a Word 2007 "docm" document using the API? I have found how to insert VBA code at runtime, and how to delete all VBA code, but not pull the actual code out into a stream or string that I can store (and insert into other documents in the future). Any tips or resources w... | You'll have to add a reference to Microsoft Visual Basic for Applications Extensibility 5.3 (or whatever version you have). I have the VBA SDK and such on my box - so this may not be exactly what office ships with. Also you have to enable access to the VBA Object Model specifically - see the "Trust Center" in Word opti... | Programmatically extract macro (VBA) code from Word 2007 docs Is it possible to extract all of the VBA code from a Word 2007 "docm" document using the API? I have found how to insert VBA code at runtime, and how to delete all VBA code, but not pull the actual code out into a stream or string that I can store (and inser... | TITLE:
Programmatically extract macro (VBA) code from Word 2007 docs
QUESTION:
Is it possible to extract all of the VBA code from a Word 2007 "docm" document using the API? I have found how to insert VBA code at runtime, and how to delete all VBA code, but not pull the actual code out into a stream or string that I ca... | [
".net",
"automation",
"ms-office"
] | 16 | 11 | 17,123 | 2 | 0 | 2008-09-08T13:39:24.033000 | 2008-09-08T14:08:09.270000 |
49,732 | 49,746 | Is automatic upgrades a realistic feature to expect from enterprise Web applications? | Most of the work I do is with what could be considered enterprise Web applications. These projects have large budgets, longer timelines (from 3-12 months), and heavy customizations. Because as developers we have been touting the idea of the Web as the next desktop OS, customers are coming to expect the software running... | At my company we have enterprise installations ranging into the thousands of seats. If we implemented an auto-upgrade, our customers would mutiny! Large installations have peculiar issues that don't apply to small ones. For example, with 2000 users (not all of whom are, let us say, the most sophisticated of tool users)... | Is automatic upgrades a realistic feature to expect from enterprise Web applications? Most of the work I do is with what could be considered enterprise Web applications. These projects have large budgets, longer timelines (from 3-12 months), and heavy customizations. Because as developers we have been touting the idea ... | TITLE:
Is automatic upgrades a realistic feature to expect from enterprise Web applications?
QUESTION:
Most of the work I do is with what could be considered enterprise Web applications. These projects have large budgets, longer timelines (from 3-12 months), and heavy customizations. Because as developers we have been... | [
"upgrade",
"enterprise"
] | 4 | 2 | 174 | 4 | 0 | 2008-09-08T13:42:48.770000 | 2008-09-08T13:51:28.827000 |
49,737 | 49,771 | Use-cases for reflection | Recently I was talking to a co-worker about C++ and lamented that there was no way to take a string with the name of a class field and extract the field with that name; in other words, it lacks reflection. He gave me a baffled look and asked when anyone would ever need to do such a thing. Off the top of my head I didn'... | I can list following usage for reflection: Late binding Security (introspect code for security reasons) Code analysis Dynamic typing (duck typing is not possible without reflection) Metaprogramming Some real-world usages of reflection from my personal experience: Developed plugin system based on reflection Used aspect-... | Use-cases for reflection Recently I was talking to a co-worker about C++ and lamented that there was no way to take a string with the name of a class field and extract the field with that name; in other words, it lacks reflection. He gave me a baffled look and asked when anyone would ever need to do such a thing. Off t... | TITLE:
Use-cases for reflection
QUESTION:
Recently I was talking to a co-worker about C++ and lamented that there was no way to take a string with the name of a class field and extract the field with that name; in other words, it lacks reflection. He gave me a baffled look and asked when anyone would ever need to do s... | [
"reflection"
] | 26 | 23 | 11,305 | 9 | 0 | 2008-09-08T13:46:43.330000 | 2008-09-08T14:08:02.733000 |
49,747 | 49,817 | Autoupdating .net applications | I've written 2 reasonably large scale apps in.net so far, and both of them have needed an updating facility to automatically update the application when I roll out new code. I've found the 'Enterprise application block updater' a bit too complex for my needs, and I've found 'click once' frustrating when it comes to pub... | See the answers to this similar question: a few auto-update frameworks were recommended there which are designed for (or work with).net apps: Application Updater Block (which you mention) ClickOnce, ClickThrough | Autoupdating .net applications I've written 2 reasonably large scale apps in.net so far, and both of them have needed an updating facility to automatically update the application when I roll out new code. I've found the 'Enterprise application block updater' a bit too complex for my needs, and I've found 'click once' f... | TITLE:
Autoupdating .net applications
QUESTION:
I've written 2 reasonably large scale apps in.net so far, and both of them have needed an updating facility to automatically update the application when I roll out new code. I've found the 'Enterprise application block updater' a bit too complex for my needs, and I've fo... | [
".net",
"winforms",
"updating"
] | 4 | 3 | 732 | 4 | 0 | 2008-09-08T13:51:44.427000 | 2008-09-08T14:34:04.370000 |
49,755 | 49,758 | Design Pattern for Undo Engine | I'm writing a structural modeling tool for a civil enginering application. I have one huge model class representing the entire building, which include collections of nodes, line elements, loads, etc. which are also custom classes. I have already coded an undo engine which saves a deep-copy after each modification to th... | Most examples I've seen use a variant of the Command-Pattern for this. Every user-action that's undoable gets its own command instance with all the information to execute the action and roll it back. You can then maintain a list of all the commands that have been executed and you can roll them back one by one. | Design Pattern for Undo Engine I'm writing a structural modeling tool for a civil enginering application. I have one huge model class representing the entire building, which include collections of nodes, line elements, loads, etc. which are also custom classes. I have already coded an undo engine which saves a deep-cop... | TITLE:
Design Pattern for Undo Engine
QUESTION:
I'm writing a structural modeling tool for a civil enginering application. I have one huge model class representing the entire building, which include collections of nodes, line elements, loads, etc. which are also custom classes. I have already coded an undo engine whic... | [
"design-patterns",
"undo"
] | 127 | 95 | 39,399 | 22 | 0 | 2008-09-08T13:58:06.687000 | 2008-09-08T14:00:58.273000 |
49,790 | 49,862 | In HTML, what should happen to a selected, disabled option element? | In my specific example, I'm dealing with a drop-down, e.g.: Select an item: an item another item Of course, that's pretty nonsensical, but I'm wondering whether any strict behaviour is defined. Opera effectively rejects the 'selected' attribute and selects the next item in the list. All other browsers appear to allow i... | In reply to the update in the question, I would say that the 'label' option should be selectable but either make it do nothing on submission or via JavaScript, don't allow the form to be submitted without a value being selected (assuming it's a required field). From a usablilty point of view I'd suggest doing both, tha... | In HTML, what should happen to a selected, disabled option element? In my specific example, I'm dealing with a drop-down, e.g.: Select an item: an item another item Of course, that's pretty nonsensical, but I'm wondering whether any strict behaviour is defined. Opera effectively rejects the 'selected' attribute and sel... | TITLE:
In HTML, what should happen to a selected, disabled option element?
QUESTION:
In my specific example, I'm dealing with a drop-down, e.g.: Select an item: an item another item Of course, that's pretty nonsensical, but I'm wondering whether any strict behaviour is defined. Opera effectively rejects the 'selected'... | [
"html",
"forms",
"cross-browser",
"specifications"
] | 10 | 2 | 15,672 | 6 | 0 | 2008-09-08T14:18:29.277000 | 2008-09-08T14:54:17.927000 |
49,799 | 49,836 | How often do you use System.Component.BackgroundWorker in your UIs ? (if ever) | I am sure a responsive UI is something that everyone strives for and the reccomended way to do stuff is to use the BackgroundWorker for this. Do you find it easy to work with? Do you use it often? Or do you have your own frameworks for lengthy tasks and reporting process. I have found that I am using it quite a lot and... | Multithreaded programming is hard to grasp in the beginning (and veterans still fail sometimes) and BackgroundWorker makes it a bit easier to use. I like the fact that BackgroundWorker has functionality which is easy to implement but even easier to wrongly implement in a subtle way, like cancellation. I use it if I hav... | How often do you use System.Component.BackgroundWorker in your UIs ? (if ever) I am sure a responsive UI is something that everyone strives for and the reccomended way to do stuff is to use the BackgroundWorker for this. Do you find it easy to work with? Do you use it often? Or do you have your own frameworks for lengt... | TITLE:
How often do you use System.Component.BackgroundWorker in your UIs ? (if ever)
QUESTION:
I am sure a responsive UI is something that everyone strives for and the reccomended way to do stuff is to use the BackgroundWorker for this. Do you find it easy to work with? Do you use it often? Or do you have your own fr... | [
".net",
"winforms",
"multithreading",
"user-interface"
] | 5 | 3 | 798 | 6 | 0 | 2008-09-08T14:25:29.417000 | 2008-09-08T14:42:21.513000 |
49,806 | 49,843 | How to create a non-interactive window in MFC | In my application I have a window which I popup with small messages on it (think similar to tooltip). This window uses the layered attributes to draw alpha backgrounds etc. If I have several of these windows open at once, and I click one with my mouse, when they disappear they cause my application to lose focus (it swi... | After playing with the WM_NCACTIVATE message with no luck, I overrode the WM_SETFOCUS message: void CMyWindow::OnSetFocus(CWnd* pOldWnd) { if (pOldWnd!= NULL) { pOldWnd->SetFocus(); } } That seems to do the trick. No idea why it works though! Comments welcome on that issue. | How to create a non-interactive window in MFC In my application I have a window which I popup with small messages on it (think similar to tooltip). This window uses the layered attributes to draw alpha backgrounds etc. If I have several of these windows open at once, and I click one with my mouse, when they disappear t... | TITLE:
How to create a non-interactive window in MFC
QUESTION:
In my application I have a window which I popup with small messages on it (think similar to tooltip). This window uses the layered attributes to draw alpha backgrounds etc. If I have several of these windows open at once, and I click one with my mouse, whe... | [
"mfc",
"focus",
"activation"
] | 2 | 1 | 750 | 2 | 0 | 2008-09-08T14:28:36.037000 | 2008-09-08T14:45:24 |
49,824 | 49,953 | Java -> Python? | Besides the dynamic nature of Python (and the syntax), what are some of the major features of the Python language that Java doesn't have, and vice versa? | List comprehensions. I often find myself filtering/mapping lists, and being able to say [line.replace("spam","eggs") for line in open("somefile.txt") if line.startswith("nee")] is really nice. Functions are first class objects. They can be passed as parameters to other functions, defined inside other function, and have... | Java -> Python? Besides the dynamic nature of Python (and the syntax), what are some of the major features of the Python language that Java doesn't have, and vice versa? | TITLE:
Java -> Python?
QUESTION:
Besides the dynamic nature of Python (and the syntax), what are some of the major features of the Python language that Java doesn't have, and vice versa?
ANSWER:
List comprehensions. I often find myself filtering/mapping lists, and being able to say [line.replace("spam","eggs") for li... | [
"java",
"python"
] | 30 | 47 | 11,809 | 5 | 0 | 2008-09-08T14:36:24.083000 | 2008-09-08T15:35:32.867000 |
49,847 | 51,382 | Open source or low cost "log shipping" program | I have written a log shipping program a number of times. It is a simple program that is used to maintain a warm fail over box for SQL Server. It has two pieces. On the live dB server it: Does full and transaction backups and removes old files On the backup server it: Copies the backups from the live box Restores the ba... | MS SQL server 2005 and 2008 already support this. http://technet.microsoft.com/en-us/library/ms188698.aspx http://technet.microsoft.com/en-us/library/ms188698(SQL.90).aspx | Open source or low cost "log shipping" program I have written a log shipping program a number of times. It is a simple program that is used to maintain a warm fail over box for SQL Server. It has two pieces. On the live dB server it: Does full and transaction backups and removes old files On the backup server it: Copie... | TITLE:
Open source or low cost "log shipping" program
QUESTION:
I have written a log shipping program a number of times. It is a simple program that is used to maintain a warm fail over box for SQL Server. It has two pieces. On the live dB server it: Does full and transaction backups and removes old files On the backu... | [
"sql-server",
"backup"
] | 9 | 3 | 518 | 1 | 0 | 2008-09-08T14:46:03.360000 | 2008-09-09T08:21:44.850000 |
49,870 | 49,872 | I understand threading in theory but not in practice in .net | I have a basic cs-major understanding of multi-threading but have never had to do anything beyond simple timers in an application. Does anyone know of a good resource that will give me a tour how to work with multi-threaded applications, explaining the basics and maybe posing some of the more difficult stuff? | This is a great free resource by Joseph Albahari. Threading in C# | I understand threading in theory but not in practice in .net I have a basic cs-major understanding of multi-threading but have never had to do anything beyond simple timers in an application. Does anyone know of a good resource that will give me a tour how to work with multi-threaded applications, explaining the basics... | TITLE:
I understand threading in theory but not in practice in .net
QUESTION:
I have a basic cs-major understanding of multi-threading but have never had to do anything beyond simple timers in an application. Does anyone know of a good resource that will give me a tour how to work with multi-threaded applications, exp... | [
".net",
"multithreading",
"reference"
] | 7 | 23 | 1,260 | 5 | 0 | 2008-09-08T14:58:06.170000 | 2008-09-08T14:59:30.037000 |
49,876 | 70,515 | Simpler interface for SQL Server analysis services cubes for end users | Is there a simpler interface for end users to run "queries" on pre-existing SqlServer Analysis Service cubes? I'm looking for a way to deploy the cubes and allow the users to work with the data through a simpler interface than BIDS. Is this even possible? | I would recommend Excel too. It is an environment that your users are familiar with anyway, and they will be able to perform additional analysis (totals etc) without learning any new interfaces. However, I would advise against pivot tables as a method of getting the data into Excel. I once worked on a project using piv... | Simpler interface for SQL Server analysis services cubes for end users Is there a simpler interface for end users to run "queries" on pre-existing SqlServer Analysis Service cubes? I'm looking for a way to deploy the cubes and allow the users to work with the data through a simpler interface than BIDS. Is this even pos... | TITLE:
Simpler interface for SQL Server analysis services cubes for end users
QUESTION:
Is there a simpler interface for end users to run "queries" on pre-existing SqlServer Analysis Service cubes? I'm looking for a way to deploy the cubes and allow the users to work with the data through a simpler interface than BIDS... | [
"sql-server",
"olap",
"cubes"
] | 2 | 7 | 7,077 | 7 | 0 | 2008-09-08T15:00:25.213000 | 2008-09-16T08:57:04.253000 |
49,890 | 50,460 | Mediawiki custom tag Stops page parsing | I created a few mediawiki custom tags, using the guide found here http://www.mediawiki.org/wiki/Manual:Tag_extensions I will post my code below, but the problem is after it hits the first custom tag in the page, it calls it, and prints the response, but does not get anything that comes after it in the wikitext. It seem... | Never used Mediawiki but that sort of problem in my experience is indicative of a PHP error that occurred but was suppressed either with the @ operator or because PHP error output to screen is turned off. I hate to resort to this debugging method but when absolutely and utterly frustrated in PHP I will just start putti... | Mediawiki custom tag Stops page parsing I created a few mediawiki custom tags, using the guide found here http://www.mediawiki.org/wiki/Manual:Tag_extensions I will post my code below, but the problem is after it hits the first custom tag in the page, it calls it, and prints the response, but does not get anything that... | TITLE:
Mediawiki custom tag Stops page parsing
QUESTION:
I created a few mediawiki custom tags, using the guide found here http://www.mediawiki.org/wiki/Manual:Tag_extensions I will post my code below, but the problem is after it hits the first custom tag in the page, it calls it, and prints the response, but does not... | [
"php",
"mediawiki"
] | 1 | 0 | 588 | 2 | 0 | 2008-09-08T15:06:23.827000 | 2008-09-08T19:16:21.447000 |
49,896 | 74,866 | Which is the best way to bring a file from a remote host to local host over an SSH session? | When connecting to remote hosts via ssh, I frequently want to bring a file on that system to the local system for viewing or processing. Is there a way to copy the file over without (a) opening a new terminal/pausing the ssh session (b) authenticating again to either the local or remote hosts which works (c) even when ... | Here is my preferred solution to this problem. Set up a reverse ssh tunnel upon creating the ssh session. This is made easy by two bash function: grabfrom() needs to be defined on the local host, while grab() should be defined on the remote host. You can add any other ssh variables you use (e.g. -X or -Y) as you see fi... | Which is the best way to bring a file from a remote host to local host over an SSH session? When connecting to remote hosts via ssh, I frequently want to bring a file on that system to the local system for viewing or processing. Is there a way to copy the file over without (a) opening a new terminal/pausing the ssh ses... | TITLE:
Which is the best way to bring a file from a remote host to local host over an SSH session?
QUESTION:
When connecting to remote hosts via ssh, I frequently want to bring a file on that system to the local system for viewing or processing. Is there a way to copy the file over without (a) opening a new terminal/p... | [
"ssh"
] | 15 | 0 | 4,521 | 11 | 0 | 2008-09-08T15:07:30.017000 | 2008-09-16T17:34:50.330000 |
49,900 | 65,947 | Is there a way to generalize an Apache ANT target? | We have an Apache ANT script to build our application, then check in the resulting JAR file into version control (VSS in this case). However, now we have a change that requires us to build 2 JAR files for this project, then check both into VSS. The current target that checks the original JAR file into VSS discovers the... | I would suggest to work with macros over subant/antcall because the main advantage I found with macros is that you're in complete control over the properties that are passed to the macro (especially if you want to add new properties). You simply refactor your Ant script starting with your target: creating a macro (noti... | Is there a way to generalize an Apache ANT target? We have an Apache ANT script to build our application, then check in the resulting JAR file into version control (VSS in this case). However, now we have a change that requires us to build 2 JAR files for this project, then check both into VSS. The current target that ... | TITLE:
Is there a way to generalize an Apache ANT target?
QUESTION:
We have an Apache ANT script to build our application, then check in the resulting JAR file into version control (VSS in this case). However, now we have a change that requires us to build 2 JAR files for this project, then check both into VSS. The cu... | [
"java",
"build-process",
"build-automation",
"ant"
] | 21 | 47 | 13,761 | 5 | 0 | 2008-09-08T15:08:57.533000 | 2008-09-15T19:26:30.460000 |
49,908 | 172,280 | How to create custom pages in dasBlog? | I know I've seen this in the past, but I can't seem to find it now. Basically I want to create a page that I can host on a dasBlog instance that contains the layout from my theme, but the content of the page I control. Ideally the content is a user control or ASPX that I write. Anybody know how I can accomplish this? | The easist way to do this is to "hijack" the FormatPage functionality. First add the following to your web.config in the newtelligence.DasBlog.UrlMapper section: Now you can create a directory in your content directory called static. From there, you can create html files and the file name will map to the url like this:... | How to create custom pages in dasBlog? I know I've seen this in the past, but I can't seem to find it now. Basically I want to create a page that I can host on a dasBlog instance that contains the layout from my theme, but the content of the page I control. Ideally the content is a user control or ASPX that I write. An... | TITLE:
How to create custom pages in dasBlog?
QUESTION:
I know I've seen this in the past, but I can't seem to find it now. Basically I want to create a page that I can host on a dasBlog instance that contains the layout from my theme, but the content of the page I control. Ideally the content is a user control or ASP... | [
"dasblog"
] | 3 | 4 | 260 | 2 | 0 | 2008-09-08T15:12:45.760000 | 2008-10-05T16:59:19.453000 |
49,912 | 49,943 | Best .NET memory and performance profiler? | We are using JetBrains ' dotTrace. What other profiling tools can be recommended that are better for profiling C# Windows Forms applications? | No. I have tried pretty much every.NET profiler on the market (ANTS, vTune, OptimizeIt, DevPartner, YourKit), and in my opinion dotTrace is the best of the lot. It is one of only two profilers I have used (the other being YourKit) that has low enough overhead to handle a highly CPU-intensive application. If and only if... | Best .NET memory and performance profiler? We are using JetBrains ' dotTrace. What other profiling tools can be recommended that are better for profiling C# Windows Forms applications? | TITLE:
Best .NET memory and performance profiler?
QUESTION:
We are using JetBrains ' dotTrace. What other profiling tools can be recommended that are better for profiling C# Windows Forms applications?
ANSWER:
No. I have tried pretty much every.NET profiler on the market (ANTS, vTune, OptimizeIt, DevPartner, YourKit)... | [
"c#",
".net",
"profiling",
"profiler"
] | 56 | 37 | 42,807 | 11 | 0 | 2008-09-08T15:14:00.280000 | 2008-09-08T15:28:22.790000 |
49,919 | 49,938 | Regex to Match first 28 days of the month | I am looking for a Regular expression to match only if a date is in the first 28 days of the month. This is for my validator control in ASP.NET | Don't do this with Regex. Dates are formatted differently in different countries. Use the DateTime.TryParse routine instead: DateTime parsedDate;
if ( DateTime.TryParse( dateString, out parsedDate) && parsedDate.Day <= 28 ) { // logic goes here. } Regex is nearly the golden hammer of input validation, but in this inst... | Regex to Match first 28 days of the month I am looking for a Regular expression to match only if a date is in the first 28 days of the month. This is for my validator control in ASP.NET | TITLE:
Regex to Match first 28 days of the month
QUESTION:
I am looking for a Regular expression to match only if a date is in the first 28 days of the month. This is for my validator control in ASP.NET
ANSWER:
Don't do this with Regex. Dates are formatted differently in different countries. Use the DateTime.TryParse... | [
"asp.net",
"regex"
] | 5 | 18 | 1,250 | 5 | 0 | 2008-09-08T15:17:22.020000 | 2008-09-08T15:26:56.147000 |
49,925 | 49,928 | What is the difference between UNION and UNION ALL? | What is the difference between UNION and UNION ALL? | UNION removes duplicate rows (where all columns in the results are the same), UNION ALL does not. There is a performance hit when using UNION instead of UNION ALL, since the database server must do additional work to remove the duplicate rows, but usually you do not want the duplicates (especially when developing repor... | What is the difference between UNION and UNION ALL? What is the difference between UNION and UNION ALL? | TITLE:
What is the difference between UNION and UNION ALL?
QUESTION:
What is the difference between UNION and UNION ALL?
ANSWER:
UNION removes duplicate rows (where all columns in the results are the same), UNION ALL does not. There is a performance hit when using UNION instead of UNION ALL, since the database server... | [
"sql",
"union",
"union-all"
] | 1,702 | 2,034 | 1,581,198 | 19 | 0 | 2008-09-08T15:19:33.263000 | 2008-09-08T15:21:15.193000 |
49,926 | 196,806 | Open source alternative to MATLAB's fmincon function? | Is there an open-source alternative to MATLAB's fmincon function for constrained linear optimization? I'm rewriting a MATLAB program to use Python / NumPy / SciPy and this is the only function I haven't found an equivalent to. A NumPy-based solution would be ideal, but any language will do. | Is your problem convex? Linear? Non-linear? I agree that SciPy.optimize will probably do the job, but fmincon is a sort of bazooka for solving optimization problems, and you'll be better off if you can confine it to one of the categories below (in increasing level of difficulty to solve efficiently) Linear Program (LP)... | Open source alternative to MATLAB's fmincon function? Is there an open-source alternative to MATLAB's fmincon function for constrained linear optimization? I'm rewriting a MATLAB program to use Python / NumPy / SciPy and this is the only function I haven't found an equivalent to. A NumPy-based solution would be ideal, ... | TITLE:
Open source alternative to MATLAB's fmincon function?
QUESTION:
Is there an open-source alternative to MATLAB's fmincon function for constrained linear optimization? I'm rewriting a MATLAB program to use Python / NumPy / SciPy and this is the only function I haven't found an equivalent to. A NumPy-based solutio... | [
"python",
"numpy",
"matlab",
"numeric",
"scientific-computing"
] | 37 | 33 | 44,991 | 10 | 0 | 2008-09-08T15:19:59.533000 | 2008-10-13T05:51:51.143000 |
49,934 | 49,951 | How come a 32 bit kernel can run a 64 bit binary? | On my OS X box, the kernel is a 32-bit binary and yet it can run a 64-bit binary. How does this work? cristi:~ diciu$ file./a.out./a.out: Mach-O 64-bit executable x86_64 cristi:~ diciu$ file /mach_kernel /mach_kernel: Mach-O universal binary with 2 architectures /mach_kernel (for architecture i386): Mach-O executable i... | The CPU can be switched from 64 bit execution mode to 32 bit when it traps into kernel context, and a 32 bit kernel can still be constructed to understand the structures passed in from 64 bit user-space apps. The MacOS X kernel does not directly dereference pointers from the user app anyway, as it resides its own separ... | How come a 32 bit kernel can run a 64 bit binary? On my OS X box, the kernel is a 32-bit binary and yet it can run a 64-bit binary. How does this work? cristi:~ diciu$ file./a.out./a.out: Mach-O 64-bit executable x86_64 cristi:~ diciu$ file /mach_kernel /mach_kernel: Mach-O universal binary with 2 architectures /mach_k... | TITLE:
How come a 32 bit kernel can run a 64 bit binary?
QUESTION:
On my OS X box, the kernel is a 32-bit binary and yet it can run a 64-bit binary. How does this work? cristi:~ diciu$ file./a.out./a.out: Mach-O 64-bit executable x86_64 cristi:~ diciu$ file /mach_kernel /mach_kernel: Mach-O universal binary with 2 arc... | [
"c",
"macos",
"x86",
"x86-64",
"32-bit"
] | 26 | 45 | 8,580 | 6 | 0 | 2008-09-08T15:23:07.250000 | 2008-09-08T15:34:59.263000 |
49,937 | 49,984 | What is Dynamic Code Analysis? | What is Dynamic Code Analysis? How is it different from Static Code Analysis (ie, what can it catch that can't be caught in static)? I've heard of bounds checking and memory analysis - what are these? What other things are checked using dynamic analysis? -Adam | Simply put, static analysis collect information based on source code and dynamic analysis is based on the system execution, often using instrumentation. Advantages of dynamic analysis Is able to detect dependencies that are not possible to detect in static analysis. Ex.: dynamic dependencies using reflection, dependenc... | What is Dynamic Code Analysis? What is Dynamic Code Analysis? How is it different from Static Code Analysis (ie, what can it catch that can't be caught in static)? I've heard of bounds checking and memory analysis - what are these? What other things are checked using dynamic analysis? -Adam | TITLE:
What is Dynamic Code Analysis?
QUESTION:
What is Dynamic Code Analysis? How is it different from Static Code Analysis (ie, what can it catch that can't be caught in static)? I've heard of bounds checking and memory analysis - what are these? What other things are checked using dynamic analysis? -Adam
ANSWER:
S... | [
"code-analysis",
"dynamic-analysis"
] | 25 | 32 | 38,112 | 4 | 0 | 2008-09-08T15:23:46.280000 | 2008-09-08T15:47:06.193000 |
49,950 | 49,961 | Garbage Collection: Is it necessary to set large objects to null in a Dispose method? | Is it necessary to set large objects to null when implementing a Dispose() method? | Not usually. The garbage collector looks for rooted objects, and circular dependencies don't prevent collection if neither object is rooted. There is a caveat: if object A has a reference to object B, and object B is being disposed, you may want to clean up that relationship or else you could end up with a leak. The mo... | Garbage Collection: Is it necessary to set large objects to null in a Dispose method? Is it necessary to set large objects to null when implementing a Dispose() method? | TITLE:
Garbage Collection: Is it necessary to set large objects to null in a Dispose method?
QUESTION:
Is it necessary to set large objects to null when implementing a Dispose() method?
ANSWER:
Not usually. The garbage collector looks for rooted objects, and circular dependencies don't prevent collection if neither o... | [
".net",
"garbage-collection"
] | 7 | 5 | 1,764 | 6 | 0 | 2008-09-08T15:34:43.257000 | 2008-09-08T15:39:41.967000 |
49,962 | 50,056 | Task Schedulers | Had an interesting discussion with some colleagues about the best scheduling strategies for realtime tasks, but not everyone had a good understanding of the common or useful scheduling strategies. For your answer, please choose one strategy and go over it in some detail, rather than giving a little info on several stra... | As described in a paper titled Real-Time Task Scheduling for Energy-Aware Embedded Systems, Swaminathan and Chakrabarty describe the challenges of real-time task scheduling in low-power (embedded) devices with multiple processor speeds and power consumption profiles available. The scheduling algorithm they outline (and... | Task Schedulers Had an interesting discussion with some colleagues about the best scheduling strategies for realtime tasks, but not everyone had a good understanding of the common or useful scheduling strategies. For your answer, please choose one strategy and go over it in some detail, rather than giving a little info... | TITLE:
Task Schedulers
QUESTION:
Had an interesting discussion with some colleagues about the best scheduling strategies for realtime tasks, but not everyone had a good understanding of the common or useful scheduling strategies. For your answer, please choose one strategy and go over it in some detail, rather than gi... | [
"operating-system",
"kernel",
"scheduling"
] | 4 | 8 | 882 | 2 | 0 | 2008-09-08T15:40:49.453000 | 2008-09-08T16:09:55.887000 |
49,972 | 50,058 | In what order are locations searched to load referenced DLLs? | I know that the.NET framework looks for referenced DLLs in several locations Global assembly cache (GAC) Any private paths added to the AppDomain The current directory of the executing assembly What order are those locations searched? Is the search for a DLL ceased if a match is found or does it continue through all lo... | Assembly loading is a rather elaborate process which depends on lots of different factors like configuration files, publisher policies, appdomain settings, CLR hosts, partial or full assembly names, etc. The simple version is that the GAC is first, then the private paths. %PATH% is never used. It is best to use Assembl... | In what order are locations searched to load referenced DLLs? I know that the.NET framework looks for referenced DLLs in several locations Global assembly cache (GAC) Any private paths added to the AppDomain The current directory of the executing assembly What order are those locations searched? Is the search for a DLL... | TITLE:
In what order are locations searched to load referenced DLLs?
QUESTION:
I know that the.NET framework looks for referenced DLLs in several locations Global assembly cache (GAC) Any private paths added to the AppDomain The current directory of the executing assembly What order are those locations searched? Is th... | [
".net",
"dll"
] | 55 | 57 | 41,022 | 3 | 0 | 2008-09-08T15:45:25.853000 | 2008-09-08T16:10:16.637000 |
49,988 | 50,011 | Really killing a process in Windows | Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus... | "End Process" on the Processes-Tab calls TerminateProcess which is the most ultimate way Windows knows to kill a process. If it doesn't go away, it's currently locked waiting on some kernel resource (probably a buggy driver) and there is nothing (short of a reboot) you could do to make the process go away. Have a look ... | Really killing a process in Windows Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill ... | TITLE:
Really killing a process in Windows
QUESTION:
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be ... | [
"windows"
] | 406 | 334 | 672,058 | 11 | 0 | 2008-09-08T15:48:31.103000 | 2008-09-08T15:52:09.643000 |
50,003 | 50,015 | SQL 2000 database copy to SQL 2005 options | We have a production web and database server with SQL Server 2000. (However, a few clients they have their own servers with SQL 2005.) So we have local installs of SQL 2005 Express for development on Windows XP SP3 boxes (which don't allow SQL 2000 Enterprise installations). We often need to copy SQL 2000 databases to ... | Back it up in SQL Server 2000 and then use the RESTORE WITH MOVE command into 2005 Express. | SQL 2000 database copy to SQL 2005 options We have a production web and database server with SQL Server 2000. (However, a few clients they have their own servers with SQL 2005.) So we have local installs of SQL 2005 Express for development on Windows XP SP3 boxes (which don't allow SQL 2000 Enterprise installations). W... | TITLE:
SQL 2000 database copy to SQL 2005 options
QUESTION:
We have a production web and database server with SQL Server 2000. (However, a few clients they have their own servers with SQL 2005.) So we have local installs of SQL 2005 Express for development on Windows XP SP3 boxes (which don't allow SQL 2000 Enterprise... | [
"sql-server"
] | 1 | 1 | 1,330 | 1 | 0 | 2008-09-08T15:51:00.910000 | 2008-09-08T15:53:11.637000 |
50,033 | 50,063 | Asp.Net Form DefaultButton Error in Firefox | The.Net generated code for a form with the "DefaultButton" attribute set contains poor javascript that allows the functionality to work in IE but not in other browsers (Firefox specifcially). Hitting enter key does submit the form with all browsers but Firefox cannot disregard the key press when it happens inside of a ... | I use this function adapted from codesta. [Edit: the very same one, I see, that scares you! Oops. Can't help you then.] http://blog.codesta.com/codesta_weblog/2007/12/net-gotchas---p.html. You use it by surrounding your code with a div like so. You could subclass the Form to include this automatically. I don't use it t... | Asp.Net Form DefaultButton Error in Firefox The.Net generated code for a form with the "DefaultButton" attribute set contains poor javascript that allows the functionality to work in IE but not in other browsers (Firefox specifcially). Hitting enter key does submit the form with all browsers but Firefox cannot disregar... | TITLE:
Asp.Net Form DefaultButton Error in Firefox
QUESTION:
The.Net generated code for a form with the "DefaultButton" attribute set contains poor javascript that allows the functionality to work in IE but not in other browsers (Firefox specifcially). Hitting enter key does submit the form with all browsers but Firef... | [
"asp.net",
"firefox",
"webforms",
"textarea"
] | 5 | 4 | 8,062 | 3 | 0 | 2008-09-08T15:57:36.527000 | 2008-09-08T16:12:13.543000 |
50,037 | 50,081 | What are some good SharePoint security resources? | I've got a SharePoint application and I'm sad to say that in my SharePoint-induced excitement, I ignored a lot of the security concerns I should have been paying more attention to. Though we didn't before, now we actually need granular security, so I need to get educated. I'm mostly interested in how to best create gro... | To have permissions vary at the "sub site" level which is the SPWeb object in object model terms you need to enable unique permission for the site. A good article outlining the permission hierarchy in SharePoint 2007 can be found on the office web site About controlling access to sites and site content In my experience... | What are some good SharePoint security resources? I've got a SharePoint application and I'm sad to say that in my SharePoint-induced excitement, I ignored a lot of the security concerns I should have been paying more attention to. Though we didn't before, now we actually need granular security, so I need to get educate... | TITLE:
What are some good SharePoint security resources?
QUESTION:
I've got a SharePoint application and I'm sad to say that in my SharePoint-induced excitement, I ignored a lot of the security concerns I should have been paying more attention to. Though we didn't before, now we actually need granular security, so I n... | [
"security",
"sharepoint"
] | 5 | 5 | 559 | 1 | 0 | 2008-09-08T15:58:48.770000 | 2008-09-08T16:22:02.117000 |
50,042 | 50,111 | Graphics card memory usage in linux | What tools are available to monitor graphics card memory usage in linux? | If you just need to know it for 3D graphics development purposes, you may want to look into something like gDEBugger or, if you only care about NVIDIA cards, you can try NVIDIA PerfHUD. I have not used them myself, but I would expect them to track such information. | Graphics card memory usage in linux What tools are available to monitor graphics card memory usage in linux? | TITLE:
Graphics card memory usage in linux
QUESTION:
What tools are available to monitor graphics card memory usage in linux?
ANSWER:
If you just need to know it for 3D graphics development purposes, you may want to look into something like gDEBugger or, if you only care about NVIDIA cards, you can try NVIDIA PerfHUD... | [
"linux",
"graphics"
] | 4 | 0 | 7,346 | 2 | 0 | 2008-09-08T16:03:03.737000 | 2008-09-08T16:41:49.650000 |
50,046 | 50,057 | Is Visual Studio 2003 still available/supported | Pretty much what the title says really. We have some code that is.NET 1.1 based and no real desire to up-convert it. However, we are looking to add developers to the team and they will need copies of Visual Studio. My understanding is that they will need VS 2003 - as this is the only IDE that supports.NET 1.1 but I am ... | Visual Studio 2003 is still available to download for MSDN subscribers. The EULA for Visual Studio includes a 'downgrade' clause, which appears, IMNAL, to allow you to buy Visual Studio 2008 and then install 2003 under the same license. DOWNGRADE. You may install and use this version and an earlier version of the softw... | Is Visual Studio 2003 still available/supported Pretty much what the title says really. We have some code that is.NET 1.1 based and no real desire to up-convert it. However, we are looking to add developers to the team and they will need copies of Visual Studio. My understanding is that they will need VS 2003 - as this... | TITLE:
Is Visual Studio 2003 still available/supported
QUESTION:
Pretty much what the title says really. We have some code that is.NET 1.1 based and no real desire to up-convert it. However, we are looking to add developers to the team and they will need copies of Visual Studio. My understanding is that they will need... | [
".net",
"visual-studio",
"visual-studio-2003"
] | 7 | 8 | 3,168 | 7 | 0 | 2008-09-08T16:05:17.850000 | 2008-09-08T16:10:00.130000 |
50,064 | 50,128 | Setting Colors in SWT | This is pretty simple, I come from a swing/awt background. I'm just wondering what the proper way to set the background color for a SWT widget is? I've been trying: widget.setBackground( ); Except I have no idea how to create the color Object in SWT? | To create a color, try this: Device device = Display.getCurrent (); Color red = new Color (device, 255, 0, 0); | Setting Colors in SWT This is pretty simple, I come from a swing/awt background. I'm just wondering what the proper way to set the background color for a SWT widget is? I've been trying: widget.setBackground( ); Except I have no idea how to create the color Object in SWT? | TITLE:
Setting Colors in SWT
QUESTION:
This is pretty simple, I come from a swing/awt background. I'm just wondering what the proper way to set the background color for a SWT widget is? I've been trying: widget.setBackground( ); Except I have no idea how to create the color Object in SWT?
ANSWER:
To create a color, t... | [
"java",
"swt",
"colors"
] | 65 | 60 | 81,938 | 3 | 0 | 2008-09-08T16:12:57.707000 | 2008-09-08T16:49:54.717000 |
50,074 | 50,127 | Where do the Linux TCP/IP hackers 'live'? | Over the past year or so my production platform has been plagued by an odd TCP/IP issue. I've spent zillions of hours working with competent & knowledgeable sysadmins, scouring the net, reading source code, been jerked around by RH's pathetic support, and crying tears of blood! To no avail. (Google 'unkn-4' and you'll ... | Dave Miller (person in charge of networking in the linux kernel) and their fellow henchmen all inhabit the lkml or Linux Kernel Mailing List. If you can provide a reasonably decent bug report they'll get you a reasonable answer. On the other hand if you tell them it's a very old kernel, they'll tell you to try the newe... | Where do the Linux TCP/IP hackers 'live'? Over the past year or so my production platform has been plagued by an odd TCP/IP issue. I've spent zillions of hours working with competent & knowledgeable sysadmins, scouring the net, reading source code, been jerked around by RH's pathetic support, and crying tears of blood!... | TITLE:
Where do the Linux TCP/IP hackers 'live'?
QUESTION:
Over the past year or so my production platform has been plagued by an odd TCP/IP issue. I've spent zillions of hours working with competent & knowledgeable sysadmins, scouring the net, reading source code, been jerked around by RH's pathetic support, and cryi... | [
"linux",
"networking",
"tcp",
"kernel"
] | 4 | 5 | 1,115 | 2 | 0 | 2008-09-08T16:21:25.847000 | 2008-09-08T16:49:42.330000 |
50,079 | 3,392,463 | C Image Library | Can anyone recommend a decent C image library? I'm after loaders for bmp, gif, jpg, png and tga. I want to use this for programming my Sony Playstation Portable, so opensource would be very handy. After some googleing I've found FreeImage and CImg, but both feel rather heavy, and CImg is C++ not C. | If you control the images you're loading, the lightest loader I know is Sean Barrett's awesome stb_image.c (direct link to single file source code!). There are also other very worthwhile libraries on Sean's site such as a tiny TrueType rasterizer and Vorbis decompressor, btw. If you need OpenGL image loading that uses ... | C Image Library Can anyone recommend a decent C image library? I'm after loaders for bmp, gif, jpg, png and tga. I want to use this for programming my Sony Playstation Portable, so opensource would be very handy. After some googleing I've found FreeImage and CImg, but both feel rather heavy, and CImg is C++ not C. | TITLE:
C Image Library
QUESTION:
Can anyone recommend a decent C image library? I'm after loaders for bmp, gif, jpg, png and tga. I want to use this for programming my Sony Playstation Portable, so opensource would be very handy. After some googleing I've found FreeImage and CImg, but both feel rather heavy, and CImg ... | [
"c",
"image",
"playstation-portable"
] | 18 | 21 | 36,033 | 7 | 0 | 2008-09-08T16:21:54.610000 | 2010-08-02T23:03:36.257000 |
50,089 | 51,365 | How do you backup IIS's metabase in C#? | exact code will be helpful. I assume the DirectoryServices namespace does it but I can't find the method that does it. I need actual C# code. All the samples I found so far are VB or VBScript. The C# examples I found are for reading/setting ADSI properties. A command like backup seems to have a certain.NET syntax which... | I found it: DirectoryEntry de = new DirectoryEntry("IIS://localhost"); de.Invoke("Backup", new object[0] ); new object needs to be set to hold proper arguments like overwriting current backup | How do you backup IIS's metabase in C#? exact code will be helpful. I assume the DirectoryServices namespace does it but I can't find the method that does it. I need actual C# code. All the samples I found so far are VB or VBScript. The C# examples I found are for reading/setting ADSI properties. A command like backup ... | TITLE:
How do you backup IIS's metabase in C#?
QUESTION:
exact code will be helpful. I assume the DirectoryServices namespace does it but I can't find the method that does it. I need actual C# code. All the samples I found so far are VB or VBScript. The C# examples I found are for reading/setting ADSI properties. A co... | [
"iis",
"directoryservices",
"metabase"
] | 0 | 0 | 981 | 2 | 0 | 2008-09-08T16:25:06.397000 | 2008-09-09T07:52:46.043000 |
50,096 | 50,102 | How to pass password to scp? | I know it is not recommended, but is it at all possible to pass the user's password to scp? I'd like to copy a file via scp as part of a batch job and the receiving server does, of course, need a password and, no, I cannot easily change that to key-based authentication. | You can script it with a tool like expect (there are handy bindings too, like Pexpect for Python). | How to pass password to scp? I know it is not recommended, but is it at all possible to pass the user's password to scp? I'd like to copy a file via scp as part of a batch job and the receiving server does, of course, need a password and, no, I cannot easily change that to key-based authentication. | TITLE:
How to pass password to scp?
QUESTION:
I know it is not recommended, but is it at all possible to pass the user's password to scp? I'd like to copy a file via scp as part of a batch job and the receiving server does, of course, need a password and, no, I cannot easily change that to key-based authentication.
A... | [
"linux",
"scp",
"io-redirection"
] | 463 | 42 | 1,170,365 | 22 | 0 | 2008-09-08T16:35:09.230000 | 2008-09-08T16:38:10.297000 |
50,098 | 3,790,621 | Comparing two collections for equality irrespective of the order of items in them | I would like to compare two collections (in C#), but I'm not sure of the best way to implement this efficiently. I've read the other thread about Enumerable.SequenceEqual, but it's not exactly what I'm looking for. In my case, two collections would be equal if they both contain the same items (no matter the order). Exa... | It turns out Microsoft already has this covered in its testing framework: CollectionAssert.AreEquivalent Remarks Two collections are equivalent if they have the same elements in the same quantity, but in any order. Elements are equal if their values are equal, not if they refer to the same object. Using reflector, I mo... | Comparing two collections for equality irrespective of the order of items in them I would like to compare two collections (in C#), but I'm not sure of the best way to implement this efficiently. I've read the other thread about Enumerable.SequenceEqual, but it's not exactly what I'm looking for. In my case, two collect... | TITLE:
Comparing two collections for equality irrespective of the order of items in them
QUESTION:
I would like to compare two collections (in C#), but I'm not sure of the best way to implement this efficiently. I've read the other thread about Enumerable.SequenceEqual, but it's not exactly what I'm looking for. In my... | [
".net",
"collections",
"comparison",
"equality"
] | 186 | 129 | 116,882 | 21 | 0 | 2008-09-08T16:36:15.840000 | 2010-09-24T20:10:30.170000 |
50,106 | 50,116 | Looking for a SQL Transaction Log file viewer | If any of you have worked with a cool tool for viewing/querying the SQL Transaction logs, please let me know. This should show all the transactional sql statements which are committed or rolled back. For Database files, if it has some additional graphical capabilities like showing the internal Binary Tree structure of ... | This is only relevant if you're talking SQL Server 2000 but RedGate produced a free tool called SQL Log Rescue. Otherwise, for SQL Server 2005 ApexSQLLog from ApexSQL is the only other product I'm aware of | Looking for a SQL Transaction Log file viewer If any of you have worked with a cool tool for viewing/querying the SQL Transaction logs, please let me know. This should show all the transactional sql statements which are committed or rolled back. For Database files, if it has some additional graphical capabilities like ... | TITLE:
Looking for a SQL Transaction Log file viewer
QUESTION:
If any of you have worked with a cool tool for viewing/querying the SQL Transaction logs, please let me know. This should show all the transactional sql statements which are committed or rolled back. For Database files, if it has some additional graphical ... | [
"sql",
"sql-server",
"logging",
"transactions"
] | 23 | 14 | 29,374 | 5 | 0 | 2008-09-08T16:38:36.803000 | 2008-09-08T16:43:07.277000 |
50,114 | 877,642 | Does WCF raise the bar or just the complexity level? | I understand the value of the three-part service/host/client model offered by WCF. But is it just me or does it seem like WCF took something pretty direct and straightforward (the ASMX model) and made a mess out of it? Is there an alternative to using SvcUtil's command line step back in time to generate the proxy? With... | Okay, here we go. First, Michele Leroux Bustamante's book has been updated for VS2008. The website for the book is not gone. It's up right now, and it has tons of great WCF info. On that website she provides updated code compatible with VS2008 for all the examples in her book. If you order from Amazon, you will get the... | Does WCF raise the bar or just the complexity level? I understand the value of the three-part service/host/client model offered by WCF. But is it just me or does it seem like WCF took something pretty direct and straightforward (the ASMX model) and made a mess out of it? Is there an alternative to using SvcUtil's comma... | TITLE:
Does WCF raise the bar or just the complexity level?
QUESTION:
I understand the value of the three-part service/host/client model offered by WCF. But is it just me or does it seem like WCF took something pretty direct and straightforward (the ASMX model) and made a mess out of it? Is there an alternative to usi... | [
"wcf",
"web-services"
] | 84 | 61 | 13,181 | 16 | 0 | 2008-09-08T16:42:21.130000 | 2009-05-18T13:04:09.460000 |
50,115 | 58,198 | Using shadowbox disables keyboard shortcuts? | So my site uses shadowbox to do display some dynamic text. Problem is I need the user to be able to copy and paste that text. Right-clicking and selecting copy works but Ctrl + C doesn't (no keyboard shortcuts do) and most people use Ctrl + C? You can see an example of what I'm talking about here. Just go to the "web" ... | The best option is to disable keyboard navigation shortcuts in the shadowbox by setting the "enableKeys" option to false (see this page ). Alternatively you could do what Robby suggests and modify the shadowbox.js file, but only do this if you need to have the shadowbox keyboard navigation. I think that you want to sea... | Using shadowbox disables keyboard shortcuts? So my site uses shadowbox to do display some dynamic text. Problem is I need the user to be able to copy and paste that text. Right-clicking and selecting copy works but Ctrl + C doesn't (no keyboard shortcuts do) and most people use Ctrl + C? You can see an example of what ... | TITLE:
Using shadowbox disables keyboard shortcuts?
QUESTION:
So my site uses shadowbox to do display some dynamic text. Problem is I need the user to be able to copy and paste that text. Right-clicking and selecting copy works but Ctrl + C doesn't (no keyboard shortcuts do) and most people use Ctrl + C? You can see a... | [
"javascript",
"keyboard-shortcuts",
"mootools"
] | 3 | 2 | 1,531 | 3 | 0 | 2008-09-08T16:42:31.787000 | 2008-09-12T02:32:50.233000 |
50,120 | 50,168 | Database abstraction layers for (Visual) C++ | What options exist for accessing different databases from C++? Put differently, what alternatives are there to ADO? What are the pros and cons? | Microsoft ODBC. The MFC ODBC classes such as CDatabase. OleDB (via COM). And you can always go through the per-RDBMS native libraries (for example, the SQL Server native library ) DAO (don't). 3rd party ORM providers. I would recommend going through ODBC or OleDB by default. Native libraries really restrict you, DAO is... | Database abstraction layers for (Visual) C++ What options exist for accessing different databases from C++? Put differently, what alternatives are there to ADO? What are the pros and cons? | TITLE:
Database abstraction layers for (Visual) C++
QUESTION:
What options exist for accessing different databases from C++? Put differently, what alternatives are there to ADO? What are the pros and cons?
ANSWER:
Microsoft ODBC. The MFC ODBC classes such as CDatabase. OleDB (via COM). And you can always go through t... | [
"c++",
"database"
] | 3 | 2 | 790 | 4 | 0 | 2008-09-08T16:45:24.460000 | 2008-09-08T17:05:03.650000 |
50,121 | 50,130 | Ever Heard of a License Transfer Fee upon Acquisition? | My employer was recently acquired by a much larger company. In the process of sorting out all the legal details around our licenses for our development software, we have learned that the vendor of our IDE charges a "nominal" fee of 25% of the cost of a new license to transfer our existing licenses to the new corporate ... | Unfriendly? Yes. Abnormal? No. Its actually very common for tools with a hefty per-seat license fee to charge for a transfer after acquisition. I believe they do it because they can: the cost of transferring license is either overlooked during the M&A due diligence or is considered inconsequential compared to the rest.... | Ever Heard of a License Transfer Fee upon Acquisition? My employer was recently acquired by a much larger company. In the process of sorting out all the legal details around our licenses for our development software, we have learned that the vendor of our IDE charges a "nominal" fee of 25% of the cost of a new license ... | TITLE:
Ever Heard of a License Transfer Fee upon Acquisition?
QUESTION:
My employer was recently acquired by a much larger company. In the process of sorting out all the legal details around our licenses for our development software, we have learned that the vendor of our IDE charges a "nominal" fee of 25% of the cost... | [
"licensing"
] | 3 | 3 | 2,842 | 9 | 0 | 2008-09-08T16:45:40.717000 | 2008-09-08T16:50:07.273000 |
50,140 | 50,212 | Replace huge Case statement in Classic ASP | I have a 200+ case statement in Classic ASP which is getting out of control. It sets 5 variables, based on which case is selected. Address, Phone, Name etc. Just sets the variables and nothing else in each case. Databases or files are not an option for this application. Coming from the Perl world I would use a hash to ... | Brian, the classic ASP equivalent of a Perl hash is the Scripting.Dictionary object. | Replace huge Case statement in Classic ASP I have a 200+ case statement in Classic ASP which is getting out of control. It sets 5 variables, based on which case is selected. Address, Phone, Name etc. Just sets the variables and nothing else in each case. Databases or files are not an option for this application. Coming... | TITLE:
Replace huge Case statement in Classic ASP
QUESTION:
I have a 200+ case statement in Classic ASP which is getting out of control. It sets 5 variables, based on which case is selected. Address, Phone, Name etc. Just sets the variables and nothing else in each case. Databases or files are not an option for this a... | [
"asp-classic"
] | 2 | 3 | 1,757 | 7 | 0 | 2008-09-08T16:53:51.897000 | 2008-09-08T17:18:34.133000 |
50,142 | 70,641 | Symmetric key storage | My company is going to be storing sensitive data for our customers, and will be encrypting data using one of the managed.NET encryption algorithm classes. Most of the work is done, but we haven't figured out how/where to store the key. I've done some light searching and reading, and it seems like a hardware solution mi... | There only two real solutions for (the technical aspect of) this problem. Assuming it's only the application itself that needs access the key... Hardware Security Module (HSM) - usually pretty expensive, and not simple to implement. Can be dedicated appliance (e.g. nCipher) or specific token (e.g. Alladin eToken). And ... | Symmetric key storage My company is going to be storing sensitive data for our customers, and will be encrypting data using one of the managed.NET encryption algorithm classes. Most of the work is done, but we haven't figured out how/where to store the key. I've done some light searching and reading, and it seems like ... | TITLE:
Symmetric key storage
QUESTION:
My company is going to be storing sensitive data for our customers, and will be encrypting data using one of the managed.NET encryption algorithm classes. Most of the work is done, but we haven't figured out how/where to store the key. I've done some light searching and reading, ... | [
"security",
"symmetric-key",
"key-storage"
] | 23 | 9 | 8,887 | 9 | 0 | 2008-09-08T16:54:39.370000 | 2008-09-16T09:15:49.717000 |
50,144 | 50,198 | A good algorithm similar to Levenshtein but weighted for Qwerty keyboards? | I noticed some posts here on string matching, which reminded me of an old problem I'd like to solve. Does anyone have a good Levenshtein -like algorithm that is weighted toward Qwerty keyboards? I want to compare two strings, and and allow for typos. Levenshtein is okay, but I'd prefer to also accept spelling errors ba... | In bioinformatics when you align two sequences of DNA you might have a model that has a different cost based on if the substitution is a transition or a transversion. This is exactly what you want but instead of a 4x4 matrix, you want a 40x40 matrix or some, dare I say distance function? So the cost of a replacement is... | A good algorithm similar to Levenshtein but weighted for Qwerty keyboards? I noticed some posts here on string matching, which reminded me of an old problem I'd like to solve. Does anyone have a good Levenshtein -like algorithm that is weighted toward Qwerty keyboards? I want to compare two strings, and and allow for t... | TITLE:
A good algorithm similar to Levenshtein but weighted for Qwerty keyboards?
QUESTION:
I noticed some posts here on string matching, which reminded me of an old problem I'd like to solve. Does anyone have a good Levenshtein -like algorithm that is weighted toward Qwerty keyboards? I want to compare two strings, a... | [
"algorithm",
"string",
"text",
"comparison"
] | 25 | 20 | 4,088 | 1 | 0 | 2008-09-08T16:55:41.287000 | 2008-09-08T17:14:07.967000 |
50,145 | 50,637 | How to promote WCF to a non-techie? | How would you describe and promote WCF as a technology to a non-technical client/manager/CEO/etc? What are competing solutions or ideas that they might bring up(such as those they read about in their magazines touting new technology)? What is WCF not good for that you've seen people try to shoehorn it into? -Adam | Comparing with.asmx: WCF is the next generation of Microsoft's Web service development platform, which addresses many of the issues with older versions, specifically: better interoperation, so you can interoperate with Web services that aren't from Microsoft or that are published on the Internet much more flexible, so ... | How to promote WCF to a non-techie? How would you describe and promote WCF as a technology to a non-technical client/manager/CEO/etc? What are competing solutions or ideas that they might bring up(such as those they read about in their magazines touting new technology)? What is WCF not good for that you've seen people ... | TITLE:
How to promote WCF to a non-techie?
QUESTION:
How would you describe and promote WCF as a technology to a non-technical client/manager/CEO/etc? What are competing solutions or ideas that they might bring up(such as those they read about in their magazines touting new technology)? What is WCF not good for that y... | [
"c#",
".net",
"wcf",
"web-services",
"soa"
] | 5 | 6 | 434 | 4 | 0 | 2008-09-08T16:55:41.333000 | 2008-09-08T20:45:39.250000 |
50,148 | 50,152 | Why does a "file exists" method in many languages return true for a directory? | I know that it does in PHP, and I'm pretty sure it does in Java. I haven't used the latest versions of.NET, so I won't speak for them. It seems very awkward, but I was wondering if there was an underlying reason for this. | One reason is compatibility - anyone who has done 'check for existence' knows to exclude directories; changing that behaviour may confuse those who rely on that behaviour. Secondly, the underlying code often does a check on the operating system for existence in a catlog of filesystem entries - to the OS, a directory is... | Why does a "file exists" method in many languages return true for a directory? I know that it does in PHP, and I'm pretty sure it does in Java. I haven't used the latest versions of.NET, so I won't speak for them. It seems very awkward, but I was wondering if there was an underlying reason for this. | TITLE:
Why does a "file exists" method in many languages return true for a directory?
QUESTION:
I know that it does in PHP, and I'm pretty sure it does in Java. I haven't used the latest versions of.NET, so I won't speak for them. It seems very awkward, but I was wondering if there was an underlying reason for this.
... | [
"file-io",
"methods",
"language-design"
] | 1 | 3 | 310 | 4 | 0 | 2008-09-08T16:57:22.560000 | 2008-09-08T16:59:51.947000 |
50,149 | 50,193 | Best way to convert DateTime to "n Hours Ago" in SQL | I wrote a SQL function to convert a datetime value in SQL to a friendlier "n Hours Ago" or "n Days Ago" etc type of message. And I was wondering if there was a better way to do it. (Yes I know "don't do it in SQL" but for design reasons I have to do it this way). Here is the function I've written: CREATE FUNCTION dbo.G... | As you say, I probably wouldn't do it in SQL, but as a thought exercise have a MySQL implementation: CASE WHEN compare_date between date_sub(now(), INTERVAL 60 minute) and now() THEN concat(minute(TIMEDIFF(now(), compare_date)), ' minutes ago')
WHEN datediff(now(), compare_date) = 1 THEN 'Yesterday'
WHEN compare_date... | Best way to convert DateTime to "n Hours Ago" in SQL I wrote a SQL function to convert a datetime value in SQL to a friendlier "n Hours Ago" or "n Days Ago" etc type of message. And I was wondering if there was a better way to do it. (Yes I know "don't do it in SQL" but for design reasons I have to do it this way). Her... | TITLE:
Best way to convert DateTime to "n Hours Ago" in SQL
QUESTION:
I wrote a SQL function to convert a datetime value in SQL to a friendlier "n Hours Ago" or "n Days Ago" etc type of message. And I was wondering if there was a better way to do it. (Yes I know "don't do it in SQL" but for design reasons I have to do... | [
"sql",
"datetime",
"function"
] | 8 | 7 | 13,696 | 8 | 0 | 2008-09-08T16:58:26.053000 | 2008-09-08T17:12:53.070000 |
50,151 | 50,199 | What is the best way to display a status message in WPF? | I have several wpf pages with update/delete/add buttons. I want to display to the user messages like "successful delete", etc. How can I best implement this so the message is defined in a single place (similar to an asp.net master page) and I can update this message from anywhere? | You may want to consider doing a publish/subscribe ("Observer" pattern) -- define a "status changed" event on a base page, and create a custom control that sets up a delegate and event handler to listen for status updates. Then you could drop the custom control on any page that inherits from the base, and it would auto... | What is the best way to display a status message in WPF? I have several wpf pages with update/delete/add buttons. I want to display to the user messages like "successful delete", etc. How can I best implement this so the message is defined in a single place (similar to an asp.net master page) and I can update this mess... | TITLE:
What is the best way to display a status message in WPF?
QUESTION:
I have several wpf pages with update/delete/add buttons. I want to display to the user messages like "successful delete", etc. How can I best implement this so the message is defined in a single place (similar to an asp.net master page) and I ca... | [
"wpf"
] | 4 | 4 | 2,690 | 2 | 0 | 2008-09-08T16:59:31.853000 | 2008-09-08T17:14:33.563000 |
50,153 | 50,180 | Interprocess communication for Windows in C# (.NET 2.0) | I've never had to do IPC on Windows before. I'm developing a pair of programs, a standard GUI/CLI app, and a windows service. The app has to tell the service what to do. So, assuming the communication is local only, what would be the best communication method for these two processes? By best I mean more robust and less... | IPC in.Net can be achieved using: WCF using named pipes requires.Net 3.0 and above. Code example The WCF class NetNamedPipeBinding can be used for interprocess communication on the same machine. The MSDN documentaion for this class includes a code sample covering this scenario http://msdn.microsoft.com/en-us/library/sy... | Interprocess communication for Windows in C# (.NET 2.0) I've never had to do IPC on Windows before. I'm developing a pair of programs, a standard GUI/CLI app, and a windows service. The app has to tell the service what to do. So, assuming the communication is local only, what would be the best communication method for ... | TITLE:
Interprocess communication for Windows in C# (.NET 2.0)
QUESTION:
I've never had to do IPC on Windows before. I'm developing a pair of programs, a standard GUI/CLI app, and a windows service. The app has to tell the service what to do. So, assuming the communication is local only, what would be the best communi... | [
"c#",
".net",
"ipc"
] | 53 | 73 | 54,349 | 6 | 0 | 2008-09-08T17:00:00.400000 | 2008-09-08T17:08:16.387000 |
50,159 | 50,218 | How to show all shared libraries used by executables in Linux? | I'd like to know which libraries are used by executables on my system. More specifically, I'd like to rank which libraries are used the most, along with the binaries that use them. How can I do this? | Use ldd to list shared libraries for each executable. Cleanup the output Sort, compute counts, sort by count To find the answer for all executables in the "/bin" directory: find /bin -type f -perm /a+x -exec ldd {} \; \ | grep so \ | sed -e '/^[^\t]/ d' \ | sed -e 's/\t//' \ | sed -e 's/.*=..//' \ | sed -e 's/ (0.*)//'... | How to show all shared libraries used by executables in Linux? I'd like to know which libraries are used by executables on my system. More specifically, I'd like to rank which libraries are used the most, along with the binaries that use them. How can I do this? | TITLE:
How to show all shared libraries used by executables in Linux?
QUESTION:
I'd like to know which libraries are used by executables on my system. More specifically, I'd like to rank which libraries are used the most, along with the binaries that use them. How can I do this?
ANSWER:
Use ldd to list shared librari... | [
"linux",
"shared-libraries"
] | 291 | 327 | 457,595 | 14 | 0 | 2008-09-08T17:02:25.623000 | 2008-09-08T17:21:54.407000 |
50,164 | 50,215 | How can I lock down my MS-SQL DB from my users and yet still access it through ODBC? | I've got an ms-access application that's accessing and ms-sql db through an ODBC connection. I'm trying to force my users to update the data only through the application portion, but I don't care if they read the data directly or through their own custom ms-access db (they use it for creating ad hoc reports). What I'm ... | There is a way to do this that is effective with internal users, but can be hacked. You create two IDs for each user. One is a reporting ID that has read-only access. This is they ID that the user knows about: Fred / mypassword The second is an ID that can do updates. That id is Fred_app / mypassword_mangled. They log ... | How can I lock down my MS-SQL DB from my users and yet still access it through ODBC? I've got an ms-access application that's accessing and ms-sql db through an ODBC connection. I'm trying to force my users to update the data only through the application portion, but I don't care if they read the data directly or throu... | TITLE:
How can I lock down my MS-SQL DB from my users and yet still access it through ODBC?
QUESTION:
I've got an ms-access application that's accessing and ms-sql db through an ODBC connection. I'm trying to force my users to update the data only through the application portion, but I don't care if they read the data... | [
"sql-server",
"ms-access",
"odbc"
] | 2 | 2 | 2,921 | 2 | 0 | 2008-09-08T17:04:17.910000 | 2008-09-08T17:21:04.610000 |
50,169 | 50,240 | Optimizing a LINQ to SQL query | I have a query that looks like this: public IList FetchLatestOrders(int pageIndex, int recordCount) { DatabaseDataContext db = new DatabaseDataContext(); return (from o in db.Orders orderby o.CreatedDate descending select o).Skip(pageIndex * recordCount).Take(recordCount).ToList(); } I need to print the information of ... | Something else you can do is EagerLoading. In Linq2SQL you can use LoadOptions: More on LoadOptions One VERY weird thing about L2S is that you can set LoadOptions only before the first query is sent to the Database. | Optimizing a LINQ to SQL query I have a query that looks like this: public IList FetchLatestOrders(int pageIndex, int recordCount) { DatabaseDataContext db = new DatabaseDataContext(); return (from o in db.Orders orderby o.CreatedDate descending select o).Skip(pageIndex * recordCount).Take(recordCount).ToList(); } I ne... | TITLE:
Optimizing a LINQ to SQL query
QUESTION:
I have a query that looks like this: public IList FetchLatestOrders(int pageIndex, int recordCount) { DatabaseDataContext db = new DatabaseDataContext(); return (from o in db.Orders orderby o.CreatedDate descending select o).Skip(pageIndex * recordCount).Take(recordCount... | [
"linq",
"linq-to-sql",
"optimization"
] | 7 | 4 | 2,038 | 3 | 0 | 2008-09-08T17:05:22.480000 | 2008-09-08T17:33:54.407000 |
50,170 | 50,201 | Does "display: marker" work in any current browsers, and if so, how? | I can't be sure if my code is sucking, or if it's just that the browsers haven't caught up with the spec yet. My goal is to simulate list markers using generated content, so as to get e.g. continuation of the counters from list to list in pure CSS. So the code below, which I think is correct according to the spec, is l... | Apparently marker was introduced as a value in CSS 2 but did not make it to CSS 2.1 because of lacking browser support. I suppose that didn’t help its popularity … Source: http://de.selfhtml.org/css/eigenschaften/positionierung.htm#display (German) | Does "display: marker" work in any current browsers, and if so, how? I can't be sure if my code is sucking, or if it's just that the browsers haven't caught up with the spec yet. My goal is to simulate list markers using generated content, so as to get e.g. continuation of the counters from list to list in pure CSS. So... | TITLE:
Does "display: marker" work in any current browsers, and if so, how?
QUESTION:
I can't be sure if my code is sucking, or if it's just that the browsers haven't caught up with the spec yet. My goal is to simulate list markers using generated content, so as to get e.g. continuation of the counters from list to li... | [
"css",
"cross-browser"
] | 2 | 3 | 3,621 | 2 | 0 | 2008-09-08T17:05:30.950000 | 2008-09-08T17:15:04.373000 |
50,182 | 52,266 | Linux/X11 input library without creating a window | Is there a good library to use for gathering user input in Linux from the mouse/keyboard/joystick that doesn't force you to create a visible window to do so? SDL lets you get user input in a reasonable way, but seems to force you to create a window, which is troublesome if you have abstracted control so the control mac... | OK, if you're under X11 and you want to get the kbd, you need to do a grab. If you're not, my only good answer is ncurses from a terminal. Here's how you grab everything from the keyboard and release again: /* Demo code, needs more error checking, compile * with "gcc nameofthisfile.c -lX11".
/* weird formatting for ma... | Linux/X11 input library without creating a window Is there a good library to use for gathering user input in Linux from the mouse/keyboard/joystick that doesn't force you to create a visible window to do so? SDL lets you get user input in a reasonable way, but seems to force you to create a window, which is troublesome... | TITLE:
Linux/X11 input library without creating a window
QUESTION:
Is there a good library to use for gathering user input in Linux from the mouse/keyboard/joystick that doesn't force you to create a visible window to do so? SDL lets you get user input in a reasonable way, but seems to force you to create a window, wh... | [
"linux",
"user-input",
"sdl"
] | 7 | 7 | 5,878 | 2 | 0 | 2008-09-08T17:09:40.143000 | 2008-09-09T16:14:01.033000 |
50,194 | 50,225 | Source Control for Everyone? | I've got a number of non-technical users that all share a set of project files. It would be ideal to have them using version control, but I think that both subversion and git are too technical for non-technical office staff. Is there any distributed source control software that would work well for normal people? | If source control is too technical they can use Subversion with WebDav. The less technical people will just save files normally from whatever application they use, without worrying/thinking about source control. They get the benefit of auto-versioning without doing anything. When ever they need more functionality they ... | Source Control for Everyone? I've got a number of non-technical users that all share a set of project files. It would be ideal to have them using version control, but I think that both subversion and git are too technical for non-technical office staff. Is there any distributed source control software that would work w... | TITLE:
Source Control for Everyone?
QUESTION:
I've got a number of non-technical users that all share a set of project files. It would be ideal to have them using version control, but I think that both subversion and git are too technical for non-technical office staff. Is there any distributed source control software... | [
"svn",
"git",
"version-control"
] | 18 | 17 | 1,086 | 11 | 0 | 2008-09-08T17:13:16.533000 | 2008-09-08T17:28:08.930000 |
50,213 | 50,326 | Are there any issues with using log4net in a multi-threaded environment? | I'm wondering if anyone has any experience using log4net in a multi-threaded environment like asp.net. We are currently using log4net and I want to make sure we won't run into any issues. | We run log4net (and log4cxx) in highly multi-threaded environments without issue. You will want to be careful how you configure them though. The issue with log4net that Jeff describes pertains to the use of a certain appender. We stick with simple log file appenders on the whole to reduce the impact of logging on the o... | Are there any issues with using log4net in a multi-threaded environment? I'm wondering if anyone has any experience using log4net in a multi-threaded environment like asp.net. We are currently using log4net and I want to make sure we won't run into any issues. | TITLE:
Are there any issues with using log4net in a multi-threaded environment?
QUESTION:
I'm wondering if anyone has any experience using log4net in a multi-threaded environment like asp.net. We are currently using log4net and I want to make sure we won't run into any issues.
ANSWER:
We run log4net (and log4cxx) in ... | [
"log4net"
] | 3 | 1 | 5,180 | 1 | 0 | 2008-09-08T17:20:03.473000 | 2008-09-08T18:15:08.677000 |
50,217 | 50,229 | Does a language-specific IDE have any advantages over a plugin for a multi-language IDE? | I do mostly Java and C/C++ development, but I'm starting to do more web development (PHP, Rails) and Eiffel (learning a new language is always good). Currently, I use Eclipse for Java, C/C++, and Ruby (not Rails). Since I know the environment, I'm thinking that it would be easier for me to find a plugin and use Eclipse... | I have used many many IDE's and in most cases to me it breaks down to personal preferences. Sometimes the language specific ones have some addins/addons/features that are nice but unless they are things you can not live without you should go with what is most comfortable for you. I would think that if you are comfortab... | Does a language-specific IDE have any advantages over a plugin for a multi-language IDE? I do mostly Java and C/C++ development, but I'm starting to do more web development (PHP, Rails) and Eiffel (learning a new language is always good). Currently, I use Eclipse for Java, C/C++, and Ruby (not Rails). Since I know the ... | TITLE:
Does a language-specific IDE have any advantages over a plugin for a multi-language IDE?
QUESTION:
I do mostly Java and C/C++ development, but I'm starting to do more web development (PHP, Rails) and Eiffel (learning a new language is always good). Currently, I use Eclipse for Java, C/C++, and Ruby (not Rails).... | [
"ide"
] | 5 | 7 | 472 | 3 | 0 | 2008-09-08T17:21:38.010000 | 2008-09-08T17:29:15.870000 |
50,223 | 50,475 | How to repeatedly merge branches in Mercurial | We're using Mercurial where I work and I want to have a setup similar to how I used SVN: Trunk Tags Production Branches Since Mercurial supports branches natively, I know how to create a named branch, but I can't find any documentation on how to repeatedly merge 'Trunk' with 'Production'. Quite simply, I want to have a... | As the previous poster mentioned, the transplant extension can be used for cherry-picking individual changes from one branch to another. If, however, you always want to pull all the latest changes, the hg merge command will get you there. The simplest case is when you're using clones to implement branching (since that'... | How to repeatedly merge branches in Mercurial We're using Mercurial where I work and I want to have a setup similar to how I used SVN: Trunk Tags Production Branches Since Mercurial supports branches natively, I know how to create a named branch, but I can't find any documentation on how to repeatedly merge 'Trunk' wit... | TITLE:
How to repeatedly merge branches in Mercurial
QUESTION:
We're using Mercurial where I work and I want to have a setup similar to how I used SVN: Trunk Tags Production Branches Since Mercurial supports branches natively, I know how to create a named branch, but I can't find any documentation on how to repeatedly... | [
"mercurial",
"version-control"
] | 14 | 20 | 5,450 | 2 | 0 | 2008-09-08T17:27:16.140000 | 2008-09-08T19:26:01.690000 |
50,236 | 50,241 | How do you programmatically change the tab order in a Win32 dialog? | Often time I need to add a control to a dialog after the dialog has been generated via dialog template and CreateDialogIndirect. In these cases the tab order is set by the dialog template and there is no obvious way to change the tab order by including a newly created control. | I recently discovered that you can use SetWindowPos to accomplish this. Determine which control after which you want to insert the new control in the tab order then use SetWindowPos like this: SetWindowPos(hNewControl, hOldControl, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE); This changes the z-order of controls which, in turn,... | How do you programmatically change the tab order in a Win32 dialog? Often time I need to add a control to a dialog after the dialog has been generated via dialog template and CreateDialogIndirect. In these cases the tab order is set by the dialog template and there is no obvious way to change the tab order by including... | TITLE:
How do you programmatically change the tab order in a Win32 dialog?
QUESTION:
Often time I need to add a control to a dialog after the dialog has been generated via dialog template and CreateDialogIndirect. In these cases the tab order is set by the dialog template and there is no obvious way to change the tab ... | [
"winapi",
"dialog"
] | 14 | 20 | 9,286 | 2 | 0 | 2008-09-08T17:31:55.753000 | 2008-09-08T17:34:11.130000 |
50,237 | 50,314 | View of allocated memory | I'm looking for a tool ($, free, open source; I don't care) that will allow me to view not just the memory statistics for a.NET program, but also the object hierarchy. I'd really like to be able to drill down each thourgh each object and view it's foot print, as well as all the object's it references. I've looked at th... | I have used JetBrains DotTrace and Redgate Ants, both of which I would recommend. A lesser known profiler I have also used is.Net Memory Profiler ( http://memprofiler.com/ ), which at the time I used it provided a different perspective on memory usage than the former two profilers mentioned. I find DotTrace and Ants to... | View of allocated memory I'm looking for a tool ($, free, open source; I don't care) that will allow me to view not just the memory statistics for a.NET program, but also the object hierarchy. I'd really like to be able to drill down each thourgh each object and view it's foot print, as well as all the object's it refe... | TITLE:
View of allocated memory
QUESTION:
I'm looking for a tool ($, free, open source; I don't care) that will allow me to view not just the memory statistics for a.NET program, but also the object hierarchy. I'd really like to be able to drill down each thourgh each object and view it's foot print, as well as all th... | [
".net",
"memory"
] | 6 | 5 | 778 | 3 | 0 | 2008-09-08T17:32:55.237000 | 2008-09-08T18:06:27.933000 |
50,251 | 55,511 | Dynamic linq:Creating an extension method that produces JSON result | I'm stuck trying to create a dynamic linq extension method that returns a string in JSON format - I'm using System.Linq.Dynamic and Newtonsoft.Json and I can't get the Linq.Dynamic to parse the "cell=new object[]" part. Perhaps too complex? Any ideas?: My Main method: static void Main(string[] args) { NorthwindDataCont... | This is really ugly and there may be some issues with the string replacement, but it produces the expected results: public static class JSonify { public static string GetJsonTable ( this IQueryable query, int pageNumber, int pageSize, string IDColumnName, string[] columnNames) { string select = string.Format("new ({0} ... | Dynamic linq:Creating an extension method that produces JSON result I'm stuck trying to create a dynamic linq extension method that returns a string in JSON format - I'm using System.Linq.Dynamic and Newtonsoft.Json and I can't get the Linq.Dynamic to parse the "cell=new object[]" part. Perhaps too complex? Any ideas?:... | TITLE:
Dynamic linq:Creating an extension method that produces JSON result
QUESTION:
I'm stuck trying to create a dynamic linq extension method that returns a string in JSON format - I'm using System.Linq.Dynamic and Newtonsoft.Json and I can't get the Linq.Dynamic to parse the "cell=new object[]" part. Perhaps too co... | [
"c#",
"linq",
"json"
] | 3 | 2 | 2,031 | 3 | 0 | 2008-09-08T17:36:16.040000 | 2008-09-10T23:50:24.377000 |
50,252 | 50,269 | Modeling Geographic Locations in an Relational Database | I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ... | You might want to have a look at Freebase.com as a site that's had some open discussion about what a "location" means and what it means when a location is included in another. These sorts of questions can generate a lot of discussion. For example, there is the obvious "geographic nesting", but there are less obvious lo... | Modeling Geographic Locations in an Relational Database I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school,... | TITLE:
Modeling Geographic Locations in an Relational Database
QUESTION:
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es)... | [
"sql",
"database-design"
] | 6 | 5 | 3,363 | 8 | 0 | 2008-09-08T17:36:36.210000 | 2008-09-08T17:47:05.063000 |
50,268 | 50,333 | .MSI Not Always Uninstalling Previous Versions | In a number of applications we create an MSI Installer with the Visual Studio Setup Project. In most cases, the install works fine, but every now and then the previous version was not uninstalled correctly. The user ends up with two icons on the desktop, and in the Add/Remove program list, the application appears twice... | What happens when the uninstall of the previous version fails depends on the sequencing of the RemoveExistingProducts action. I have written a summary about the various options in the past: http://jpassing.wordpress.com/2007/06/16/where-to-place-removeexistingproducts-in-a-major-msi-upgrade/. Unfortunately, you do not ... | .MSI Not Always Uninstalling Previous Versions In a number of applications we create an MSI Installer with the Visual Studio Setup Project. In most cases, the install works fine, but every now and then the previous version was not uninstalled correctly. The user ends up with two icons on the desktop, and in the Add/Rem... | TITLE:
.MSI Not Always Uninstalling Previous Versions
QUESTION:
In a number of applications we create an MSI Installer with the Visual Studio Setup Project. In most cases, the install works fine, but every now and then the previous version was not uninstalled correctly. The user ends up with two icons on the desktop, ... | [
".net",
"windows-installer"
] | 4 | 1 | 1,736 | 1 | 0 | 2008-09-08T17:44:56.800000 | 2008-09-08T18:18:55.297000 |
50,280 | 50,336 | Floats messing up in Safari browsers | I have a site I made really fast that uses floats to display different sections of content. The floated content and the content that has an additional margin both appear fine in FF/IE, but on safari one of the divs is completely hidden. I've tried switching to padding and position:relative, but nothing has worked for m... | I believe the error lies in the mark up that the color picker is generating. I saved the page and removed that code for the color picker and it renders fine in IE/FF/SF. | Floats messing up in Safari browsers I have a site I made really fast that uses floats to display different sections of content. The floated content and the content that has an additional margin both appear fine in FF/IE, but on safari one of the divs is completely hidden. I've tried switching to padding and position:r... | TITLE:
Floats messing up in Safari browsers
QUESTION:
I have a site I made really fast that uses floats to display different sections of content. The floated content and the content that has an additional margin both appear fine in FF/IE, but on safari one of the divs is completely hidden. I've tried switching to padd... | [
"css",
"safari",
"css-float"
] | 3 | 1 | 4,811 | 4 | 0 | 2008-09-08T17:50:07.130000 | 2008-09-08T18:21:39.473000 |
50,303 | 51,583 | Persistent DB Connections - Yea or Nay? | I'm using PHP's PDO layer for data access in a project, and I've been reading up on it and seeing that it has good innate support for persistent DB connections. I'm wondering when/if I should use them. Would I see performance benefits in a CRUD-heavy app? Are there downsides to consider, perhaps related to security? If... | You could use this as a rough "ruleset": YES, use persistent connections, if: There are only few applications/users accessing the database, i.e. you will not result in 200 open (but probably idle) connections, because there are 200 different users shared on the same host. The database is running on another server that ... | Persistent DB Connections - Yea or Nay? I'm using PHP's PDO layer for data access in a project, and I've been reading up on it and seeing that it has good innate support for persistent DB connections. I'm wondering when/if I should use them. Would I see performance benefits in a CRUD-heavy app? Are there downsides to c... | TITLE:
Persistent DB Connections - Yea or Nay?
QUESTION:
I'm using PHP's PDO layer for data access in a project, and I've been reading up on it and seeing that it has good innate support for persistent DB connections. I'm wondering when/if I should use them. Would I see performance benefits in a CRUD-heavy app? Are th... | [
"pdo",
"persistence",
"database-connection"
] | 58 | 76 | 42,930 | 7 | 0 | 2008-09-08T18:01:11.423000 | 2008-09-09T10:54:49.413000 |
50,306 | 1,686,356 | Is it possible to do the Navision 5.0 export to Word/Excel to OpenOffice.org? | Navision 5.0 includes a feature to export to Word or Excel. Is it possible to make this work with OpenOffice.org Writer or Calc instead? If so, what has to be done to set it up? I have been told by my Navision reseller that the feature works best with Office 2007, and export to Excel 2003 works. No mention of Office 20... | I know this is an old question, but I'll add the answer just in case anyone comes here: You can export directly to OpenOffice without customizations. The only thing you need is to go into Tools > Manage Style Sheets... and modify the existing StyleSheets so that they open OpenCalc and OpenWrite instead of Excel and Wor... | Is it possible to do the Navision 5.0 export to Word/Excel to OpenOffice.org? Navision 5.0 includes a feature to export to Word or Excel. Is it possible to make this work with OpenOffice.org Writer or Calc instead? If so, what has to be done to set it up? I have been told by my Navision reseller that the feature works ... | TITLE:
Is it possible to do the Navision 5.0 export to Word/Excel to OpenOffice.org?
QUESTION:
Navision 5.0 includes a feature to export to Word or Excel. Is it possible to make this work with OpenOffice.org Writer or Calc instead? If so, what has to be done to set it up? I have been told by my Navision reseller that ... | [
"export",
"openoffice.org",
"navision"
] | 2 | 3 | 5,036 | 3 | 0 | 2008-09-08T18:03:18.080000 | 2009-11-06T09:07:00.257000 |
50,310 | 51,034 | Why the option to use attributes in new ATL projects was removed from Visual Studio 2008? | This is the text from MSDN comment: "According to the book ATL Internals (2ed) the use of attributes is deprecated and should not be used in new ATL projects." But WHY?!! | In ATL these attributes were a compiler trick. They were not a core part of the platform like attributes in C#. They were also more confusing to debug than macros's and the method of dumping generated attribute code was a hassle. I suspect another issue is likely to have been C++ compiler compatibility and standards-ad... | Why the option to use attributes in new ATL projects was removed from Visual Studio 2008? This is the text from MSDN comment: "According to the book ATL Internals (2ed) the use of attributes is deprecated and should not be used in new ATL projects." But WHY?!! | TITLE:
Why the option to use attributes in new ATL projects was removed from Visual Studio 2008?
QUESTION:
This is the text from MSDN comment: "According to the book ATL Internals (2ed) the use of attributes is deprecated and should not be used in new ATL projects." But WHY?!!
ANSWER:
In ATL these attributes were a c... | [
"visual-studio",
"visual-studio-2008",
"visual-c++",
"atl"
] | 3 | 4 | 1,768 | 2 | 0 | 2008-09-08T18:04:11.650000 | 2008-09-09T00:49:19.900000 |
50,311 | 56,899 | create and stream large XML document in C++ | I have some code that creates a fairly large xml DOM and writes it off to a file (up to 50-100MB). It basically creates the DOM and then calls a toString on it and writes it out with ofstream. Is there a way to get streaming output of the generated dom so that it doesn't create the whole structure in memory all at once... | Ok, turns out libxml2 has a streaming API: http://xmlsoft.org/examples/testWriter.c It's a little old style (very C-ish) but you can write your wrapper around it. | create and stream large XML document in C++ I have some code that creates a fairly large xml DOM and writes it off to a file (up to 50-100MB). It basically creates the DOM and then calls a toString on it and writes it out with ofstream. Is there a way to get streaming output of the generated dom so that it doesn't crea... | TITLE:
create and stream large XML document in C++
QUESTION:
I have some code that creates a fairly large xml DOM and writes it off to a file (up to 50-100MB). It basically creates the DOM and then calls a toString on it and writes it out with ofstream. Is there a way to get streaming output of the generated dom so th... | [
"c++",
"xml"
] | 1 | 3 | 2,981 | 4 | 0 | 2008-09-08T18:05:14.193000 | 2008-09-11T15:33:23.813000 |
50,312 | 50,334 | Get CPU usage in shell script? | I'm running some JMeter tests against a Java process to determine how responsive a web application is under load (500+ users). JMeter will give the response time for each web request, and I've written a script to ping the Tomcat Manager every X seconds which will get me the current size of the JVM heap. I'd like to col... | Use top -b (and other switches if you want different outputs). It will just dump to stdout instead of jumping into a curses window. | Get CPU usage in shell script? I'm running some JMeter tests against a Java process to determine how responsive a web application is under load (500+ users). JMeter will give the response time for each web request, and I've written a script to ping the Tomcat Manager every X seconds which will get me the current size o... | TITLE:
Get CPU usage in shell script?
QUESTION:
I'm running some JMeter tests against a Java process to determine how responsive a web application is under load (500+ users). JMeter will give the response time for each web request, and I've written a script to ping the Tomcat Manager every X seconds which will get me ... | [
"linux",
"shell",
"scripting"
] | 8 | 13 | 29,548 | 6 | 0 | 2008-09-08T18:05:34.300000 | 2008-09-08T18:21:06.027000 |
50,315 | 240,321 | How do you allow multiple file uploads on an internal windows-authentication intranet? | I have a couple of solutions, but none of them work perfectly. Platform ASP.NET / VB.NET /.NET 2.0 IIS 6 IE6 (primarily), with some IE7; Firefox not necessary, but useful Allowed 3rd Party Options Flash ActiveX (would like to avoid) Java (would like to avoid) Current Attempts Gmail Style: You can use javascript to add ... | @davidinbcn.myopenid.co: That's basically how I solved this issue. But, in an effort to provide a more detailed answer, I'm posting my solution here. The Solution! Create two web applications, or websites, or whatever. Application A is a simple web application. The purpose of this application is to receive file uploads... | How do you allow multiple file uploads on an internal windows-authentication intranet? I have a couple of solutions, but none of them work perfectly. Platform ASP.NET / VB.NET /.NET 2.0 IIS 6 IE6 (primarily), with some IE7; Firefox not necessary, but useful Allowed 3rd Party Options Flash ActiveX (would like to avoid) ... | TITLE:
How do you allow multiple file uploads on an internal windows-authentication intranet?
QUESTION:
I have a couple of solutions, but none of them work perfectly. Platform ASP.NET / VB.NET /.NET 2.0 IIS 6 IE6 (primarily), with some IE7; Firefox not necessary, but useful Allowed 3rd Party Options Flash ActiveX (wou... | [
"javascript",
"flash",
"authentication",
"activex",
"file-upload"
] | 3 | 0 | 1,961 | 5 | 0 | 2008-09-08T18:06:45.717000 | 2008-10-27T15:35:07.910000 |
50,316 | 50,320 | How do I suppress firefox password field completion? | I'm developing a website. I'm using a single-page web-app style, so all of the different parts of the site are AJAX'd into index.php. When a user logs in and tells Firefox to remember his username and password, all input boxes on the site get auto-filled with that username and password. This is a problem on the form to... | From Mozilla's documentation [...] http://developer.mozilla.org/en/How_to_Turn_Off_Form_Autocompletion | How do I suppress firefox password field completion? I'm developing a website. I'm using a single-page web-app style, so all of the different parts of the site are AJAX'd into index.php. When a user logs in and tells Firefox to remember his username and password, all input boxes on the site get auto-filled with that us... | TITLE:
How do I suppress firefox password field completion?
QUESTION:
I'm developing a website. I'm using a single-page web-app style, so all of the different parts of the site are AJAX'd into index.php. When a user logs in and tells Firefox to remember his username and password, all input boxes on the site get auto-f... | [
"html",
"firefox"
] | 16 | 27 | 11,290 | 5 | 0 | 2008-09-08T18:07:50.193000 | 2008-09-08T18:10:28.533000 |
50,318 | 50,329 | How do I stop Visual Studio's 'Publish Web Site' from publishing my _ReSharper folder? | It's really quite annoying as they are not part of the project. | The Visual Studio Web Deployment addin lets you exclude folders and more. VS2005 VS2008 Also a decent writeup on the Web Deployment addin | How do I stop Visual Studio's 'Publish Web Site' from publishing my _ReSharper folder? It's really quite annoying as they are not part of the project. | TITLE:
How do I stop Visual Studio's 'Publish Web Site' from publishing my _ReSharper folder?
QUESTION:
It's really quite annoying as they are not part of the project.
ANSWER:
The Visual Studio Web Deployment addin lets you exclude folders and more. VS2005 VS2008 Also a decent writeup on the Web Deployment addin | [
"asp.net",
"visual-studio",
"deployment"
] | 2 | 1 | 7,013 | 2 | 0 | 2008-09-08T18:09:32.123000 | 2008-09-08T18:16:52.947000 |
50,327 | 387,588 | WPF DatePicker: What is the best? | I need a Datepicker for a WPF application. What is considered to be the best one? | There is also the WPF Tool Kit which has a DatePicker/Calendar control (i added emphasis because this is the answer) | WPF DatePicker: What is the best? I need a Datepicker for a WPF application. What is considered to be the best one? | TITLE:
WPF DatePicker: What is the best?
QUESTION:
I need a Datepicker for a WPF application. What is considered to be the best one?
ANSWER:
There is also the WPF Tool Kit which has a DatePicker/Calendar control (i added emphasis because this is the answer) | [
"wpf"
] | 5 | 20 | 14,133 | 5 | 0 | 2008-09-08T18:16:38.890000 | 2008-12-22T22:31:35.583000 |
50,330 | 50,517 | Override ScriptControl or BaseValidator for an async ASP.NET validator control? | I'm planning to develop an ASP.NET server control to provide asynchronous username availability validation for new user registrations. The control will allow a developer to point it at a "username" TextBox and it will provide an indication of whether or not the username is available. Like this example, but without the ... | You should be able to do both if you implement the IScriptControl interface while also deriving from BaseValidator: public class YourControl: IScriptControl, BaseValidator To implement the IScriptControl interface means your control will also have to have the GetScriptReferences and GetScriptDescriptors methods. | Override ScriptControl or BaseValidator for an async ASP.NET validator control? I'm planning to develop an ASP.NET server control to provide asynchronous username availability validation for new user registrations. The control will allow a developer to point it at a "username" TextBox and it will provide an indication ... | TITLE:
Override ScriptControl or BaseValidator for an async ASP.NET validator control?
QUESTION:
I'm planning to develop an ASP.NET server control to provide asynchronous username availability validation for new user registrations. The control will allow a developer to point it at a "username" TextBox and it will prov... | [
"asp.net",
"validation",
"asp.net-ajax"
] | 5 | 4 | 880 | 1 | 0 | 2008-09-08T18:17:11.823000 | 2008-09-08T19:52:08.053000 |
50,345 | 50,461 | Why is AppDomain.CurrentDomain.BaseDirectory different between Windows Forms and Library | In my winforms application, AppDomain.CurrentDomain.BaseDirectory is set to "C:\Projects\TestProject\bin\Debug\" In my unit tests it is "C:\Projects\TestProject\bin\Debug" (no final slash). Why is this? [Edit] @Will: I am asking why the test project's directory doesn't have a trailing slash? | You may be asking one of two possible questions: Why are they different, or why the test project's directory doesn't have a trailing slash. Assuming its the first: That's where the code is executing from. When you debug the program, its compiled and the binaries are placed under the project's \bin\debug directory. When... | Why is AppDomain.CurrentDomain.BaseDirectory different between Windows Forms and Library In my winforms application, AppDomain.CurrentDomain.BaseDirectory is set to "C:\Projects\TestProject\bin\Debug\" In my unit tests it is "C:\Projects\TestProject\bin\Debug" (no final slash). Why is this? [Edit] @Will: I am asking wh... | TITLE:
Why is AppDomain.CurrentDomain.BaseDirectory different between Windows Forms and Library
QUESTION:
In my winforms application, AppDomain.CurrentDomain.BaseDirectory is set to "C:\Projects\TestProject\bin\Debug\" In my unit tests it is "C:\Projects\TestProject\bin\Debug" (no final slash). Why is this? [Edit] @Wi... | [
".net"
] | 5 | 9 | 4,131 | 1 | 0 | 2008-09-08T18:24:48.450000 | 2008-09-08T19:16:51.460000 |
50,346 | 50,352 | Why is parameterized SQL generated by NHibernate just as fast as a stored procedure? | One of my co-workers claims that even though the execution path is cached, there is no way parameterized SQL generated from an ORM is as quick as a stored procedure. Any help with this stubborn developer? | I would start by reading this article: http://decipherinfosys.wordpress.com/2007/03/27/using-stored-procedures-vs-dynamic-sql-generated-by-orm/ Here is a speed test between the two: http://www.blackwasp.co.uk/SpeedTestSqlSproc.aspx | Why is parameterized SQL generated by NHibernate just as fast as a stored procedure? One of my co-workers claims that even though the execution path is cached, there is no way parameterized SQL generated from an ORM is as quick as a stored procedure. Any help with this stubborn developer? | TITLE:
Why is parameterized SQL generated by NHibernate just as fast as a stored procedure?
QUESTION:
One of my co-workers claims that even though the execution path is cached, there is no way parameterized SQL generated from an ORM is as quick as a stored procedure. Any help with this stubborn developer?
ANSWER:
I w... | [
"sql",
"stored-procedures",
"orm"
] | 16 | 13 | 3,711 | 13 | 0 | 2008-09-08T18:25:01.197000 | 2008-09-08T18:26:36.777000 |
50,364 | 97,547 | Image library that will auto-crop | I'm looking for a.Net library that will accept an image or filename and an aspect ratio, and crop the image to that aspect ratio. That's the easy part: I could do it myself. But I also want it to show a little intelligence in choosing exactly what content gets cropped, even if it's just picking which edge to slice. Thi... | Disclaimer: I work for a.NET Imaging vendor ( Atalasoft ) It depends on what kind of image you are talking about. If you are talking about 1-bit document images (like faxes or scans) we can do this. If you are talking about photographs, our product doesn't do this, but you might be looking for Seam carving. I wrote thi... | Image library that will auto-crop I'm looking for a.Net library that will accept an image or filename and an aspect ratio, and crop the image to that aspect ratio. That's the easy part: I could do it myself. But I also want it to show a little intelligence in choosing exactly what content gets cropped, even if it's jus... | TITLE:
Image library that will auto-crop
QUESTION:
I'm looking for a.Net library that will accept an image or filename and an aspect ratio, and crop the image to that aspect ratio. That's the easy part: I could do it myself. But I also want it to show a little intelligence in choosing exactly what content gets cropped... | [
".net",
"image-manipulation"
] | 3 | 2 | 2,353 | 1 | 0 | 2008-09-08T18:29:38.330000 | 2008-09-18T22:13:16.150000 |
50,371 | 50,407 | Better Merge Tool for Subversion | Is there a good external merge tool for tortoisesvn (I don't particularly like the built in Merge tool). I use WinMerge for diffs, but it doesn't work with the three way merge (maybe a better question would be is there a way to force tortoisesvn to merge like tortoisecvs?) [Edit] After trying all of them, for me, the S... | Take a look at Sourcegear DiffMerge. DiffMerge is the compare and merge tool from their Vault and Fortress products, but they make it available for free as a standalone tool. One noteworthy feature is that it allows diffing of entire directory trees. Edit: While DiffMerge remains a free tool, it nags for registration w... | Better Merge Tool for Subversion Is there a good external merge tool for tortoisesvn (I don't particularly like the built in Merge tool). I use WinMerge for diffs, but it doesn't work with the three way merge (maybe a better question would be is there a way to force tortoisesvn to merge like tortoisecvs?) [Edit] After ... | TITLE:
Better Merge Tool for Subversion
QUESTION:
Is there a good external merge tool for tortoisesvn (I don't particularly like the built in Merge tool). I use WinMerge for diffs, but it doesn't work with the three way merge (maybe a better question would be is there a way to force tortoisesvn to merge like tortoisec... | [
"svn",
"tortoisesvn"
] | 58 | 32 | 35,613 | 7 | 0 | 2008-09-08T18:32:13.503000 | 2008-09-08T18:50:25.550000 |
50,373 | 50,420 | MultiMap in Scala | I'm trying to mixin the MultiMap trait with a HashMap like so: val children:MultiMap[Integer, TreeNode] = new HashMap[Integer, Set[TreeNode]] with MultiMap[Integer, TreeNode] The definition for the MultiMap trait is: trait MultiMap[A, B] extends Map[A, Set[B]] Meaning that a MultiMap of types A & B is a Map of types A ... | I had to import scala.collection.mutable.Set. It seems the compiler thought the Set in HashMap[Integer, Set[TreeNode]] was scala.collection.Set. The Set in the MultiMap def is scala.collection. mutable.Set. | MultiMap in Scala I'm trying to mixin the MultiMap trait with a HashMap like so: val children:MultiMap[Integer, TreeNode] = new HashMap[Integer, Set[TreeNode]] with MultiMap[Integer, TreeNode] The definition for the MultiMap trait is: trait MultiMap[A, B] extends Map[A, Set[B]] Meaning that a MultiMap of types A & B is... | TITLE:
MultiMap in Scala
QUESTION:
I'm trying to mixin the MultiMap trait with a HashMap like so: val children:MultiMap[Integer, TreeNode] = new HashMap[Integer, Set[TreeNode]] with MultiMap[Integer, TreeNode] The definition for the MultiMap trait is: trait MultiMap[A, B] extends Map[A, Set[B]] Meaning that a MultiMap... | [
"generics",
"scala"
] | 18 | 26 | 4,864 | 2 | 0 | 2008-09-08T18:32:58.790000 | 2008-09-08T18:59:25.310000 |
50,389 | 50,396 | Does having a registry full of old stuff slow down Windows? | I know this isn't strictly speaking a programming question but something I always hear from pseudo-techies is that having a lot of entries in your registry slows down your Windows-based PC. I think this notion comes from people who are trying to troubleshoot their PC and why it's running so slow and they open up the re... | In short, not really. In the old days when machines were slower the answer was yes; but having a modern processor rip through even a 60MB registry is not a problem. Typically, the real reason a modern machine starts running slow is due to everything from malware to virus scanners: Mcafee, Norton's, etc are prime target... | Does having a registry full of old stuff slow down Windows? I know this isn't strictly speaking a programming question but something I always hear from pseudo-techies is that having a lot of entries in your registry slows down your Windows-based PC. I think this notion comes from people who are trying to troubleshoot t... | TITLE:
Does having a registry full of old stuff slow down Windows?
QUESTION:
I know this isn't strictly speaking a programming question but something I always hear from pseudo-techies is that having a lot of entries in your registry slows down your Windows-based PC. I think this notion comes from people who are trying... | [
"windows",
"registry"
] | 7 | 4 | 4,631 | 4 | 0 | 2008-09-08T18:39:35.280000 | 2008-09-08T18:44:36.110000 |
50,391 | 50,419 | Is it possible to track allocation/deallocation? | As far as I can tell, this is isn't possible, so I'm really just hoping for a left field undocumented allocation hook function. I want a way to track allocations like in _CrtSetAllocHook, but for C#/.NET. The only visibility to the garbage collector/allocation appears to be GC.CollectionCount. Anyone have any other.NET... | The CLR has a 'profiling API' that hooks into pretty much everything - it is what the commercial.NET memory profiling products use, I believe. Here is an MSDN link to the top level of the documentation:.NET Framework General Reference: About the Profiling API See this MSDN magazine article for an introduction to the me... | Is it possible to track allocation/deallocation? As far as I can tell, this is isn't possible, so I'm really just hoping for a left field undocumented allocation hook function. I want a way to track allocations like in _CrtSetAllocHook, but for C#/.NET. The only visibility to the garbage collector/allocation appears to... | TITLE:
Is it possible to track allocation/deallocation?
QUESTION:
As far as I can tell, this is isn't possible, so I'm really just hoping for a left field undocumented allocation hook function. I want a way to track allocations like in _CrtSetAllocHook, but for C#/.NET. The only visibility to the garbage collector/all... | [
"c#",
"memory",
"hook",
"allocation"
] | 5 | 8 | 2,523 | 2 | 0 | 2008-09-08T18:41:16.897000 | 2008-09-08T18:57:13.380000 |
50,394 | 55,385 | What Python way would you suggest to check whois database records? | I'm trying to get a webservice up and running that actually requires to check whois databases. What I'm doing right now is ugly and I'd like to avoid it as much as I can: I call gwhois command and parse its output. Ugly. I did some search to try to find a pythonic way to do this task. Generally I got quite much nothing... | There's nothing wrong with using a command line utility to do what you want. If you put a nice wrapper around the service, you can implement the internals however you want! For example: class Whois(object): _whois_by_query_cache = {}
def __init__(self, query): """Initializes the instance variables to defaults. See:met... | What Python way would you suggest to check whois database records? I'm trying to get a webservice up and running that actually requires to check whois databases. What I'm doing right now is ugly and I'd like to avoid it as much as I can: I call gwhois command and parse its output. Ugly. I did some search to try to find... | TITLE:
What Python way would you suggest to check whois database records?
QUESTION:
I'm trying to get a webservice up and running that actually requires to check whois databases. What I'm doing right now is ugly and I'd like to avoid it as much as I can: I call gwhois command and parse its output. Ugly. I did some sea... | [
"python",
"system-administration",
"whois"
] | 11 | 7 | 24,217 | 9 | 0 | 2008-09-08T18:43:52.790000 | 2008-09-10T21:44:53.197000 |
50,398 | 50,440 | Calling C# code from Java? | Does anyone have a good solution for integrating some C# code into a java application? The code is small, so I could re-write in java, but I would rather reuse the code if possible. Don't repeat yourself, etc. Also, I know I can expose the C# as a web service or whatever, but it has some security/encryption stuff in th... | There is an IL to Java Bytecode compiler GrassHopper which may be of use to you. I've never tried it though. I'd look at rewriting your code in Java though EDIT: Note that Grasshopper seems to be no longer available. | Calling C# code from Java? Does anyone have a good solution for integrating some C# code into a java application? The code is small, so I could re-write in java, but I would rather reuse the code if possible. Don't repeat yourself, etc. Also, I know I can expose the C# as a web service or whatever, but it has some secu... | TITLE:
Calling C# code from Java?
QUESTION:
Does anyone have a good solution for integrating some C# code into a java application? The code is small, so I could re-write in java, but I would rather reuse the code if possible. Don't repeat yourself, etc. Also, I know I can expose the C# as a web service or whatever, bu... | [
"c#",
"java",
"java-native-interface"
] | 37 | 5 | 57,745 | 10 | 0 | 2008-09-08T18:46:09.537000 | 2008-09-08T19:06:52.267000 |
50,417 | 50,422 | How do I get list of recent files in GNU Emacs? | When I use Emacs I want to be able to easily display and navigate through a list of files I worked on from not just the current session but from previous sessions. (BTW, running Emacs 22.2 on Windows) | From Joe Grossberg 's blog (no longer available): But if you're using GNU Emacs 21.2 (the latest version, which includes this as part of the standard distro), you can just put the following lines into your.emacs file;; recentf stuff (require 'recentf) (recentf-mode 1) (setq recentf-max-menu-items 25) (global-set-key "\... | How do I get list of recent files in GNU Emacs? When I use Emacs I want to be able to easily display and navigate through a list of files I worked on from not just the current session but from previous sessions. (BTW, running Emacs 22.2 on Windows) | TITLE:
How do I get list of recent files in GNU Emacs?
QUESTION:
When I use Emacs I want to be able to easily display and navigate through a list of files I worked on from not just the current session but from previous sessions. (BTW, running Emacs 22.2 on Windows)
ANSWER:
From Joe Grossberg 's blog (no longer availa... | [
"emacs",
"ide"
] | 32 | 30 | 8,094 | 2 | 0 | 2008-09-08T18:56:14.677000 | 2008-09-08T19:00:55.960000 |
50,421 | 50,427 | Does silverlight work on chrome? | Does anyone know if silverlight plugs into chrome, or when they plan to support it? | This guy have had partial success with silverlight in chrome, but it does not seem to be supported: http://wildermuth.com/2008/09/02/Silverlight_2_and_Google_Chrome From The Microsoft Silverlight Team in the silverlight forum: Hello, currently we don't have plans to support Chrome. We will support it in the future if i... | Does silverlight work on chrome? Does anyone know if silverlight plugs into chrome, or when they plan to support it? | TITLE:
Does silverlight work on chrome?
QUESTION:
Does anyone know if silverlight plugs into chrome, or when they plan to support it?
ANSWER:
This guy have had partial success with silverlight in chrome, but it does not seem to be supported: http://wildermuth.com/2008/09/02/Silverlight_2_and_Google_Chrome From The Mi... | [
"silverlight",
"google-chrome"
] | 4 | 3 | 7,647 | 4 | 0 | 2008-09-08T19:00:01.720000 | 2008-09-08T19:01:53.697000 |
50,426 | 50,439 | Preventing accidental double clicking on a button | I have a few controls that inherit from ASP.NET buttons and use onserverclick. If the user clicks twice, the button fires two server side events. How can I prevent this? I tried setting this.disabled='true' after the click (in the onclick attribute) via javascript, but that blocks the first postback as well. | See this example for disabling control on postback. It should help you do what you're trying to achieve. http://encosia.com/2007/04/17/disable-a-button-control-during-postback/ | Preventing accidental double clicking on a button I have a few controls that inherit from ASP.NET buttons and use onserverclick. If the user clicks twice, the button fires two server side events. How can I prevent this? I tried setting this.disabled='true' after the click (in the onclick attribute) via javascript, but ... | TITLE:
Preventing accidental double clicking on a button
QUESTION:
I have a few controls that inherit from ASP.NET buttons and use onserverclick. If the user clicks twice, the button fires two server side events. How can I prevent this? I tried setting this.disabled='true' after the click (in the onclick attribute) vi... | [
"asp.net",
"javascript",
"button"
] | 8 | 14 | 11,819 | 7 | 0 | 2008-09-08T19:01:38.767000 | 2008-09-08T19:06:11.300000 |
50,430 | 50,442 | CSS - Placement of a div in the lower left-hand corner | I wish I were a CSS smarty.... How can you place a div container in the lower left-hand corner of the web page; taking into account the users scroll-position? | To position an element relative to the "viewport" (the window or frame it's in), and have it ignore how that viewport is scrolled, you can use the position: fixed; property value ( MDN documentation ). This has been supported by every browser since Internet Explorer 7. To position the element at the bottom-left of the ... | CSS - Placement of a div in the lower left-hand corner I wish I were a CSS smarty.... How can you place a div container in the lower left-hand corner of the web page; taking into account the users scroll-position? | TITLE:
CSS - Placement of a div in the lower left-hand corner
QUESTION:
I wish I were a CSS smarty.... How can you place a div container in the lower left-hand corner of the web page; taking into account the users scroll-position?
ANSWER:
To position an element relative to the "viewport" (the window or frame it's in)... | [
"css",
"html",
"positioning"
] | 28 | 42 | 40,298 | 1 | 0 | 2008-09-08T19:03:27.093000 | 2008-09-08T19:07:55.180000 |
50,450 | 50,633 | How to iterate a jagged array? | This has been driving me crazy for a few days. Why doesn't the following work? Dim arr(3, 3) As Integer
For y As Integer = 0 To arr.GetLength(0) - 1 For x As Integer = 0 To arr.GetLength(y) - 1 arr(y, x) = y + x Next Next Also, what if the array looked like this instead? { {1, 2, 3}, {4, 5, 6, 7, 8, 9, 9, 9}, {5, 4, 3... | Ok, so what you really need is a "jagged array". This will allow you to have an "array that contains other arrays of varying lengths". Dim arr As Integer()() = {New Integer() {1, 2, 3}, New Integer() {4, 5, 6, 7, 8, 9, 9, 9}, New Integer() {5, 4, 3, 2}}
For x = 0 To arr.GetUpperBound(0) Console.WriteLine("Row " & x & ... | How to iterate a jagged array? This has been driving me crazy for a few days. Why doesn't the following work? Dim arr(3, 3) As Integer
For y As Integer = 0 To arr.GetLength(0) - 1 For x As Integer = 0 To arr.GetLength(y) - 1 arr(y, x) = y + x Next Next Also, what if the array looked like this instead? { {1, 2, 3}, {4,... | TITLE:
How to iterate a jagged array?
QUESTION:
This has been driving me crazy for a few days. Why doesn't the following work? Dim arr(3, 3) As Integer
For y As Integer = 0 To arr.GetLength(0) - 1 For x As Integer = 0 To arr.GetLength(y) - 1 arr(y, x) = y + x Next Next Also, what if the array looked like this instead... | [
"vb.net",
"arrays",
"jagged-arrays"
] | 2 | 5 | 8,904 | 7 | 0 | 2008-09-08T19:12:28.587000 | 2008-09-08T20:45:17.957000 |
50,470 | 50,481 | Can I prevent user pasting Javascript into Design Mode IFrame? | I'm building a webapp that contains an IFrame in design mode so my user's can "tart" their content up and paste in content to be displayed on their page. Like the WYSIWYG editor on most blog engines or forums. I'm trying to think of all potential security holes I need to plug, one of which is a user pasting in Javascri... | ...I'm worried about the possibility of someone being able to paste some script in and run it there and then, without even sending it back to the server for processing. Am I worrying over nothing? Firefox has a plug-in called Greasemonkey that allows users to arbitrarily run JavaScript against any page that loads into ... | Can I prevent user pasting Javascript into Design Mode IFrame? I'm building a webapp that contains an IFrame in design mode so my user's can "tart" their content up and paste in content to be displayed on their page. Like the WYSIWYG editor on most blog engines or forums. I'm trying to think of all potential security h... | TITLE:
Can I prevent user pasting Javascript into Design Mode IFrame?
QUESTION:
I'm building a webapp that contains an IFrame in design mode so my user's can "tart" their content up and paste in content to be displayed on their page. Like the WYSIWYG editor on most blog engines or forums. I'm trying to think of all po... | [
"javascript",
"iframe"
] | 0 | 3 | 835 | 2 | 0 | 2008-09-08T19:23:00.573000 | 2008-09-08T19:28:02.357000 |
50,488 | 50,512 | WebDev.WebServer.EXE Crashes After VS 2008 SP1 Install | Since, for various reasons, I can't use IIS for an ASP.NET website I'm developing, I run Cassini from the command line to test the site. However, after installing Visual Studio 2008 SP1, I get a System.Net.Sockets.SocketException when I try to start up the web server. Is anyone else having this problem, and if so, how ... | Is there anything in the Application section of the event log? Have you tried using a different port? Per this thread, try: Unbind from Visual Source safe, delete the web project from the solution, rename the folder where the website is stored and then re add to the solution as an existing web site and then bind to sou... | WebDev.WebServer.EXE Crashes After VS 2008 SP1 Install Since, for various reasons, I can't use IIS for an ASP.NET website I'm developing, I run Cassini from the command line to test the site. However, after installing Visual Studio 2008 SP1, I get a System.Net.Sockets.SocketException when I try to start up the web serv... | TITLE:
WebDev.WebServer.EXE Crashes After VS 2008 SP1 Install
QUESTION:
Since, for various reasons, I can't use IIS for an ASP.NET website I'm developing, I run Cassini from the command line to test the site. However, after installing Visual Studio 2008 SP1, I get a System.Net.Sockets.SocketException when I try to sta... | [
"asp.net",
"webserver"
] | 6 | 5 | 2,334 | 1 | 0 | 2008-09-08T19:32:22.063000 | 2008-09-08T19:48:29.187000 |
50,499 | 50,905 | How do I get the path and name of the python file that is currently executing? | I have scripts calling other script files but I need to get the filepath of the file that is currently running within the process. For example, let's say I have three files. Using execfile: script_1.py calls script_2.py. In turn, script_2.py calls script_3.py. How can I get the file name and path of script_3.py, from c... | p1.py: execfile("p2.py") p2.py: import inspect, os print (inspect.getfile(inspect.currentframe())) # script filename (usually with path) print (os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))) # script directory | How do I get the path and name of the python file that is currently executing? I have scripts calling other script files but I need to get the filepath of the file that is currently running within the process. For example, let's say I have three files. Using execfile: script_1.py calls script_2.py. In turn, script_2.py... | TITLE:
How do I get the path and name of the python file that is currently executing?
QUESTION:
I have scripts calling other script files but I need to get the filepath of the file that is currently running within the process. For example, let's say I have three files. Using execfile: script_1.py calls script_2.py. In... | [
"python",
"file",
"reflection",
"scripting",
"filesystems"
] | 575 | 286 | 618,163 | 26 | 0 | 2008-09-08T19:41:10.497000 | 2008-09-08T23:02:42.043000 |
50,524 | 50,567 | What is a regex "independent non-capturing group"? | From the Java 6 Pattern documentation: Special constructs (non-capturing) (?: X ) X, as a non-capturing group … (?> X ) X, as an independent, non-capturing group Between (?:X) and (?>X) what is the difference? What does the independent mean in this context? | It means that the grouping is atomic, and it throws away backtracking information for a matched group. So, this expression is possessive; it won't back off even if doing so is the only way for the regex as a whole to succeed. It's "independent" in the sense that it doesn't cooperate, via backtracking, with other elemen... | What is a regex "independent non-capturing group"? From the Java 6 Pattern documentation: Special constructs (non-capturing) (?: X ) X, as a non-capturing group … (?> X ) X, as an independent, non-capturing group Between (?:X) and (?>X) what is the difference? What does the independent mean in this context? | TITLE:
What is a regex "independent non-capturing group"?
QUESTION:
From the Java 6 Pattern documentation: Special constructs (non-capturing) (?: X ) X, as a non-capturing group … (?> X ) X, as an independent, non-capturing group Between (?:X) and (?>X) what is the difference? What does the independent mean in this co... | [
"java",
"regex"
] | 73 | 53 | 8,003 | 4 | 0 | 2008-09-08T19:57:03.767000 | 2008-09-08T20:16:09.667000 |
50,525 | 50,530 | C: Implicit casting and integer overflowing in the evaluation of expressions | Let's take the code int a, b, c;... if ((a + b) > C) If we add the values of a and b and the sum exceeds the maximum value of an int, will the integrity of the comparison be compromised? I was thinking that there might be an implicit up cast or overflow bit check and that will be factored into the evaluation of this ex... | C will do no such thing. It will silently overflow and lead to a possibly incorrect comparison. You can up-cast yourself, but it will not be done automatically. | C: Implicit casting and integer overflowing in the evaluation of expressions Let's take the code int a, b, c;... if ((a + b) > C) If we add the values of a and b and the sum exceeds the maximum value of an int, will the integrity of the comparison be compromised? I was thinking that there might be an implicit up cast o... | TITLE:
C: Implicit casting and integer overflowing in the evaluation of expressions
QUESTION:
Let's take the code int a, b, c;... if ((a + b) > C) If we add the values of a and b and the sum exceeds the maximum value of an int, will the integrity of the comparison be compromised? I was thinking that there might be an ... | [
"c"
] | 2 | 7 | 1,701 | 5 | 0 | 2008-09-08T19:57:12.613000 | 2008-09-08T19:58:23.063000 |
50,528 | 50,729 | Font-size independent UI: everything broke when I switched to 120 DPI? | So I was reading those Windows Vista UI guidelines someone linked to in another question, and they mentioned that you should be able to survive a switch to 120 DPI. Well, I fire up my handy VM with my app installed, and what do we get... AAAAGH!!! MASSIVE UI FAIL! Everything's all jumbled: some containers aren't big en... | Learn how the Anchor and Dock properties work on your controls, leave anything that can AutoSize itself alone, and use a TableLayoutPanel when you can. If you do these three things, you'll get a lot of the WPF design experience in Windows Forms. A well-designed TableLayoutPanel will do its best to size the controls so ... | Font-size independent UI: everything broke when I switched to 120 DPI? So I was reading those Windows Vista UI guidelines someone linked to in another question, and they mentioned that you should be able to survive a switch to 120 DPI. Well, I fire up my handy VM with my app installed, and what do we get... AAAAGH!!! M... | TITLE:
Font-size independent UI: everything broke when I switched to 120 DPI?
QUESTION:
So I was reading those Windows Vista UI guidelines someone linked to in another question, and they mentioned that you should be able to survive a switch to 120 DPI. Well, I fire up my handy VM with my app installed, and what do we ... | [
".net",
"wpf",
"winforms",
"user-interface",
"fonts"
] | 11 | 11 | 4,782 | 3 | 0 | 2008-09-08T19:58:22.533000 | 2008-09-08T21:25:57.610000 |
50,532 | 50,543 | How do I format a number in Java? | How do I format a number in Java? What are the "Best Practices"? Will I need to round a number before I format it? 32.302342342342343 => 32.30.7323 => 0.73 etc. | From this thread, there are different ways to do this: double r = 5.1234; System.out.println(r); // r is 5.1234
int decimalPlaces = 2; BigDecimal bd = new BigDecimal(r);
// setScale is immutable bd = bd.setScale(decimalPlaces, BigDecimal.ROUND_HALF_UP); r = bd.doubleValue();
System.out.println(r); // r is 5.12 f = (... | How do I format a number in Java? How do I format a number in Java? What are the "Best Practices"? Will I need to round a number before I format it? 32.302342342342343 => 32.30.7323 => 0.73 etc. | TITLE:
How do I format a number in Java?
QUESTION:
How do I format a number in Java? What are the "Best Practices"? Will I need to round a number before I format it? 32.302342342342343 => 32.30.7323 => 0.73 etc.
ANSWER:
From this thread, there are different ways to do this: double r = 5.1234; System.out.println(r); /... | [
"java",
"number-formatting"
] | 121 | 127 | 324,365 | 9 | 0 | 2008-09-08T19:59:45.180000 | 2008-09-08T20:04:03.673000 |
50,539 | 51,249 | Multiline ddl Custom Control | One of the guys I work with needs a custom control that would work like a multiline ddl since such a thing does not exist as far as we have been able to discover does anyone have any ideas or have created such a thing before we have a couple ideas but they involve to much database usage We prefer that it be FREE!!! | We use a custom modified version of suckerfish at work. DB performance isn't an issue for us because we cache the control. The control renders out nested UL / LI s either for all nodes in the web.sitemap or for a certain set of pages pulled from the DB. We then use jQuery to do all the cool javascript stuff. Because it... | Multiline ddl Custom Control One of the guys I work with needs a custom control that would work like a multiline ddl since such a thing does not exist as far as we have been able to discover does anyone have any ideas or have created such a thing before we have a couple ideas but they involve to much database usage We ... | TITLE:
Multiline ddl Custom Control
QUESTION:
One of the guys I work with needs a custom control that would work like a multiline ddl since such a thing does not exist as far as we have been able to discover does anyone have any ideas or have created such a thing before we have a couple ideas but they involve to much ... | [
"c#",
"asp.net",
"custom-controls"
] | 0 | 0 | 570 | 3 | 0 | 2008-09-08T20:02:26.093000 | 2008-09-09T05:15:08.933000 |
50,558 | 50,581 | How do you initialize a 2 dimensional array when you do not know the size | I have a two dimensional array that I need to load data into. I know the width of the data (22 values) but I do not know the height (estimated around 4000 records, but variable). I have it declared as follows: float[,] _calibrationSet;.... int calibrationRow = 0; While (recordsToRead) { for (int i = 0; i < SensorCount;... | You can't use an array. Or rather, you would need to pick a size, and if you ended up needing more then you would have to allocate a new, larger, array, copy the data from the old one into the new one, and continue on as before (until you exceed the size of the new one...) Generally, you would go with one of the collec... | How do you initialize a 2 dimensional array when you do not know the size I have a two dimensional array that I need to load data into. I know the width of the data (22 values) but I do not know the height (estimated around 4000 records, but variable). I have it declared as follows: float[,] _calibrationSet;.... int ca... | TITLE:
How do you initialize a 2 dimensional array when you do not know the size
QUESTION:
I have a two dimensional array that I need to load data into. I know the width of the data (22 values) but I do not know the height (estimated around 4000 records, but variable). I have it declared as follows: float[,] _calibrat... | [
"c#",
"array-initialize"
] | 8 | 8 | 15,955 | 6 | 0 | 2008-09-08T20:09:45.623000 | 2008-09-08T20:23:58.133000 |
50,561 | 50,573 | Programmatically determine which Java thread holds a lock | Is it possible at runtime to programmatically check the name of the Thread that is holding the lock of a given object? | You can only tell whether the current thread holds a normal lock ( Thread.holdsLock(Object) ). You can't get a reference to the thread that has the lock without native code. However, if you're doing anything complicated with threading, you probably want to familiarize yourself with the java.util.concurrent packages. Th... | Programmatically determine which Java thread holds a lock Is it possible at runtime to programmatically check the name of the Thread that is holding the lock of a given object? | TITLE:
Programmatically determine which Java thread holds a lock
QUESTION:
Is it possible at runtime to programmatically check the name of the Thread that is holding the lock of a given object?
ANSWER:
You can only tell whether the current thread holds a normal lock ( Thread.holdsLock(Object) ). You can't get a refer... | [
"java",
"multithreading",
"concurrency"
] | 46 | 31 | 27,166 | 9 | 0 | 2008-09-08T20:10:55.670000 | 2008-09-08T20:21:07.780000 |
50,565 | 50,590 | Context Menu Resets ComboBox's SelectedIndex | I have a ContextMenu that is displayed after a user right clicks on a ComboBox. When the user selects an item in the context menu, a form is brought up using the ShowDialog() method. If frmOptions.ShowDialog() = Windows.Forms.DialogResult.Cancel Then LoadComboBoxes() End If When that form is closed, I refresh all the d... | One way to handle this would be to use the context menu's Popup event to grab the selected index of the combobox launching the menu. When the dialog form closes reset the selected index. | Context Menu Resets ComboBox's SelectedIndex I have a ContextMenu that is displayed after a user right clicks on a ComboBox. When the user selects an item in the context menu, a form is brought up using the ShowDialog() method. If frmOptions.ShowDialog() = Windows.Forms.DialogResult.Cancel Then LoadComboBoxes() End If ... | TITLE:
Context Menu Resets ComboBox's SelectedIndex
QUESTION:
I have a ContextMenu that is displayed after a user right clicks on a ComboBox. When the user selects an item in the context menu, a form is brought up using the ShowDialog() method. If frmOptions.ShowDialog() = Windows.Forms.DialogResult.Cancel Then LoadCo... | [
".net",
"winforms",
"combobox",
"contextmenu",
"selectedindex"
] | 1 | 1 | 1,218 | 2 | 0 | 2008-09-08T20:15:09.840000 | 2008-09-08T20:27:30.137000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.