text
stringlengths
8
267k
meta
dict
Q: Why do I get an error after closing my Windows Forms application? When I run my Visual Studio Windows Forms application by clicking F5 (debug mode), after I click on the close button (which calls Application.Exit()), after a few seconds I get an error that says: cannot acess a disposed object: Object name 'SampleFo...
{ "language": "en", "url": "https://stackoverflow.com/questions/162962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SWT Link flickers with gradient background I'm developing a an eclipse plugin that uses an SWT interface. I need to display text, and within that text there needs to be links. The only two widgets that I've found that will allow me to include clickable links in text are Link and Browser. Browser, however, is over...
{ "language": "en", "url": "https://stackoverflow.com/questions/162969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Eclipse RCP Splash Screen I'm involved in a project that is attempting to use the Eclipse RCP splash screen to gather user credentials, language, etc. If this screen loses focus, it is not available (under Windows at least) through the ALt-Tab functionality, and can only be found by minimizing all other windows and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/162985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Including arrary index in XML Serialization I have a class that looks like this public class SomeClass { public SomeChildClass[] childArray; } which will output XML from the XMLSerializer like this: <SomeClass> <SomeChildClass> ... </SomeChildClass> <SomeChildClass> ... </SomeChildClass>...
{ "language": "en", "url": "https://stackoverflow.com/questions/162986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamically Load Embedded Resource Report Using Microsoft.Reporting.WinForms How does one dynamically load a new report from an embedded resource? I have created a reporting project that contains a report as an embedded resource. I added a second report file and use the following code to switch reports: this.reportV...
{ "language": "en", "url": "https://stackoverflow.com/questions/162989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Selecting proper toolkit for a 2D simulation project in Java I am looking for a toolkit that will allow me to design widgets containing 2D graphics for an elevator simulation in Java. Once created, those widgets will be integrated with SWT, Swing, or QtJambi framework. Background information: I am developing an Ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/162991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The RunInstaller attribute in a WMI provider assembly I am creating a decoupled WMI provider in a class library. Everything I have read points towards including something along these lines: [System.ComponentModel.RunInstaller(true)] public class MyApplicationManagementInstaller : DefaultManagementInstaller { } I ga...
{ "language": "en", "url": "https://stackoverflow.com/questions/162993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL Query: LIMITing a JOIN Say I have two tables I want to join. Categories: id name ---------- 1 Cars 2 Games 3 Pencils And items: id categoryid itemname --------------------------- 1 1 Ford 2 1 BMW 3 1 VW 4 2 Tetris 5 2 Pong 6 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: urllib2 file name If I open a file using urllib2, like so: remotefile = urllib2.urlopen('http://example.com/somefile.zip') Is there an easy way to get the file name other then parsing the original URL? EDIT: changed openfile to urlopen... not sure how that happened. EDIT2: I ended up using: filename = url.split('/'...
{ "language": "en", "url": "https://stackoverflow.com/questions/163009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Where can I find free content hosting? Is there any free hosting for Javascript? Recently google has been hosting jQuery,etc... and Yahoo hosts it's YUI, which is great, but it'd be even better if there was a service that could host user scripts and things like that. Any ideas? A: You can turn Google AppEngine in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/163021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: High resolution timer in .NET I'd like to do some basic profiling of my code, but found that the DateTime.Now in C# only have a resolution of about 16 ms. There must be better time keeping constructs that I haven't yet found. A: For highest resolution performance counters you can use the underlying win32 performanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/163022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How can I detect if I'm compiling for a 64bits architecture in C++ In a C++ function I need the compiler to choose a different block if it is compiling for a 64 bit architecture. I know a way to do it for MSVC++ and g++, so I'll post it as an answer. However I would like to know if there is a better way (more elegan...
{ "language": "en", "url": "https://stackoverflow.com/questions/163058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Coupling, Cohesion and the Law of Demeter The Law of Demeter indicates that you should only speak to objects that you know about directly. That is, do not perform method chaining to talk to other objects. When you do so, you are establishing improper linkages with the intermediary objects, inappropriately coupling...
{ "language": "en", "url": "https://stackoverflow.com/questions/163071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Exporting from SQLite to SQL Server Is there a tool to migrate an SQLite database to SQL Server (both the structure and data)? A: The SQLite .dump command will output the entire contents of the database as an ASCII text file. This file is in standard SQL format, so it can be imported into any SQL database. More det...
{ "language": "en", "url": "https://stackoverflow.com/questions/163079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Setting default values (conditional assignment) In Ruby you can easily set a default value for a variable x ||= "default" The above statement will set the value of x to "default" if x is nil or false Is there a similar shortcut in PHP or do I have to use the longer form: $x = (isset($x))? $x : "default"; Are ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/163092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: How do I shrink the transaction log on MS SQL 2000 databases? I have several databases where the transaction log (.LDF) is many times larger than the database file (.MDF). What can I do to automatically shrink these or keep them from getting so large? A: That should do the job use master go dump transaction <YourDB...
{ "language": "en", "url": "https://stackoverflow.com/questions/163098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I grab events from sub-controls on a user-control in a WinForms App? Is there any way for the main form to be able to intercept events firing on a subcontrol on a user control? I've got a custom user-control embedded in the main Form of my application. The control contains various subcontrols that manipulate...
{ "language": "en", "url": "https://stackoverflow.com/questions/163104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Can CLIENT-CERT auth-method be used with a JDBC realm within tomcat? The JDBC realm specifies a table structure for authentication which contains the columns defined by the attributes userNameCol and userCredCol. These correspond to user and password which makes sense for FORM or BASIC auth-methods. They are inter...
{ "language": "en", "url": "https://stackoverflow.com/questions/163113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Breakpoint not hooked up when debugging in VS.Net 2005 Been running into this problem lately... When debugging an app in VS.Net 2005, breakpoints are not connected. Error indicates that the compiled code is not the same as the running version and therefore there's a mismatch that causes the breakpoint to be discon...
{ "language": "en", "url": "https://stackoverflow.com/questions/163133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Where is the best place to re-learn graphics programming Thinking in regards to Sliverlight, I would like to know where would be good places to go to get a refresher on 3d space, transforms, matrix manipulation, and all that good stuff. A: There's always The Bible It is expensive and very heavy on the theory, so t...
{ "language": "en", "url": "https://stackoverflow.com/questions/163146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can you call Directory.GetFiles() with multiple filters? I am trying to use the Directory.GetFiles() method to retrieve a list of files of multiple types, such as mp3's and jpg's. I have tried both of the following with no luck: Directory.GetFiles("C:\\path", "*.mp3|*.jpg", SearchOption.AllDirectories); Directory.G...
{ "language": "en", "url": "https://stackoverflow.com/questions/163162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "411" }
Q: IIS Connection Pool interrogation/leak tracking Per this helpful article I have confirmed I have a connection pool leak in some application on my IIS 6 server running W2k3. The tough part is that I'm serving 300 websites written by 700 developers from this server in 6 application pools, 50% of which are .NET 1.1 wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/163164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: LINQ to SQL Peculiarities I'm encountering some peculiarities with LINQ to SQL. With a relatively simple query, I want to select some fields, but have the date fields formatted as strings, which I first achieved like this: var list = dataContext.MyLists.Single(x => x.ID == myId); var items = from i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: VERY slow running regular expression when using large documents I need to convert inline css style attributes to their HTML tag equivelants. The solution I have works but runs VERY slowly using the Microsoft .Net Regex namespace and long documents (~40 pages of html). I've tried several variations but with no usef...
{ "language": "en", "url": "https://stackoverflow.com/questions/163184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IIS6: 503 errors and CPU spikes So, there is a horribly written site that I occasionally help out with that was originally written in classic ASP. It was then "ported" to ASP.NET by moving the global variables to the code behind and leaving the rest of the code in the aspx...Its a huge mess. On some pages, an occasi...
{ "language": "en", "url": "https://stackoverflow.com/questions/163192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I use a String as a Stream in .Net? I need to call a method that accepts a stream argument. The method loads text into the stream, which would normally be a file. I'd like to simply populate a string with the contents of the stream, instead of writing it to a file. How do I do this? A: Use a MemoryStream wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/163207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I test if a given BSP tree is optimal? I have a polygon soup of triangles that I would like to construct a BSP tree for. My current program simply constructs a BSP tree by inserting a random triangle from the model one at a time until all the triangles are consumed, then it checks the depth and breadth of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/163225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Where can I find a List of Standard HTTP Header Values? I'm looking for all the current standard header values a web server would generally receive. An example would be things like "what will the header look like when coming from a Mac running OS X Leopard and Camino installed?" or "what will the header look like w...
{ "language": "en", "url": "https://stackoverflow.com/questions/163236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SQL Server equivalent to Oracle's CREATE OR REPLACE VIEW In Oracle, I can re-create a view with a single statement, as shown here: CREATE OR REPLACE VIEW MY_VIEW AS SELECT SOME_FIELD FROM SOME_TABLE WHERE SOME_CONDITIONS As the syntax implies, this will drop the old view and re-create it with whatever definition I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/163246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "120" }
Q: On 32-bit CPUs, is an 'integer' type more efficient than a 'short' type? On a 32-bit CPU, an integer is 4 bytes and a short integer is 2 bytes. If I am writing a C/C++ application that uses many numeric values that will always fit within the provided range of a short integer, is it more efficient to use 4 byte inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/163254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What do you need to take into consideration when deciding between MySQL and Amazon's SimpleDB for a RoR app? I am just beginning to do research into the feasibility of using Amazon's SimpleDB service as the datastore for RoR application I am planning to build. We will be using EC2 for the web server, and had planned...
{ "language": "en", "url": "https://stackoverflow.com/questions/163275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Textarea overflow-x when a user copy-pastes into it? I have a textarea with overflow-x: auto; attributed to it. It works great when a user is typing text into the box by hand. When a user copy pastes a line from a file, however, that is bigger than my textarea, the overflow-x property does not work, instead the text...
{ "language": "en", "url": "https://stackoverflow.com/questions/163294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I ignore a directory in mod_rewrite? I'm trying to have the modrewrite rules skip the directory vip. I've tried a number of things as you can see below, but to no avail. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / #RewriteRule ^vip$ - [PT] RewriteRule ^vip/.$ - [PT] #RewriteCond ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: Best Way To Get All Dates Between DateA and DateB I am using an asp:Calander and I have an object that has a beginning date and an ending date. I need to get all the dates between these two dates and place them in an array so i can then render corresponding dates on the calander with different CSS A: DateTime start...
{ "language": "en", "url": "https://stackoverflow.com/questions/163311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Weird results using P4COM I'm using P4COM to communicate with our perforce server. I have written an little utility to simplify our QA of what files have changed from one release to another. I have been using the P4COM interface from Delphi. So far so good. I though it might be nice to allow users to view the dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/163313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Isolate a single column in a multi-dimensional array Say for example you just queried a database and you recieved this 2D array. $results = array( array('id' => 1, 'name' => 'red' , 'spin' => 1), array('id' => 2, 'name' => 'green', 'spin' => -1), array('id' => 3, 'name' => 'blue' , 'spin' => .5) ); I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do I read all feed items? I want to read all items of a feed in C#. The solutions I've found are only for the latest items like just the last 10 days. Anybody has a good solution for this? A: Libraries for reading feeds typically read all the data in the feed, but feeds typically only contain recent data - you...
{ "language": "en", "url": "https://stackoverflow.com/questions/163342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Subquery in an IN() clause causing error I'm on SQL Server 2005 and I am getting an error which I am pretty sure should not be getting. Msg 512, Level 16, State 1, Procedure spGetSavedSearchesByAdminUser, Line 8 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >=...
{ "language": "en", "url": "https://stackoverflow.com/questions/163355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regular expression to match URLs in Java I use RegexBuddy while working with regular expressions. From its library I copied the regular expression to match URLs. I tested successfully within RegexBuddy. However, when I copied it as Java String flavor and pasted it into Java code, it does not work. The following clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/163360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: How do I create an Excel chart that pulls data from multiple sheets? I have monthly sales figures stored in separate sheets. I would like to create a plot of sales for multiple products per month. Each product would be represented in a different colored line on the same chart with each month running along the x ax...
{ "language": "en", "url": "https://stackoverflow.com/questions/163363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to setup VS2008 for efficient C++ development Normally I program in C# but have been forced to do some work in C++. It seems that the integration with Visual Studio (2008) is really poor compared to C# but I was wondering if there are any good tools, plugins or configurations that can improve the situation. Anot...
{ "language": "en", "url": "https://stackoverflow.com/questions/163364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make a C++ macro behave like a function? Let's say that for some reason you need to write a macro: MACRO(X,Y). (Let's assume there's a good reason you can't use an inline function.) You want this macro to emulate a call to a function with no return value. Example 1: This should work as expected. if (x > ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Error Updating a record I get a mysql error: #update (ActiveRecord::StatementInvalid) "Mysql::Error: #HY000Got error 139 from storage engine: When trying to update a text field on a record with a string of length 1429 characters, any ideas on how to track down the problem? Below is the stacktrace. from /var/www/rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/163367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Type mismatch for Class Generics I have the following code that won't compile and although there is a way to make it compile I want to understand why it isn't compiling. Can someone enlighten me as to specifically why I get the error message I will post at the end please? public class Test { public static void m...
{ "language": "en", "url": "https://stackoverflow.com/questions/163382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Logging conventions What conventions do you use for log categories in log4j or similar libraries ? Usually you see class names as categories, but have you used other systems ? What about log levels ? What levels do you use and in which case ? Update: as some of you replied, there is no 'right' answer. I'm just looki...
{ "language": "en", "url": "https://stackoverflow.com/questions/163385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a way to get types/names of an unknown db query without executing it? I have a web application where users enter arbitrary sql queries for later batch processing. We want to validate the syntax of the query without actually executing it. Some of the queries will take a long time, which is why we don't want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Microsoft Access - SQL - Internal Foreign Key Does MS Access 2007 support internal foreign keys within the same table? A: Yes. Create the table with the hierarchy. id - autonumber - primary key parent_id - number value Go to the relationships screen. Add the hierarchy table twice. Connect the id and the parent_i...
{ "language": "en", "url": "https://stackoverflow.com/questions/163392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Database Design Issues with relationships I'm working on an upgrade for an existing database that was designed without any of the code to implement the design being considered. Now I've hit a brick wall in terms of implementing the database design in code. I'm certain whether its a problem with the design of the dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/163400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Enum inside a JSP Is there a way to use Enum values inside a JSP without using scriptlets. e.g. package com.example; public enum Direction { ASC, DESC } so in the JSP I want to do something like this <c:if test="${foo.direction ==<% com.example.Direction.ASC %>}">... A: It can be done like this I guess ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: ASPX Page Compilation Fails We’re developing a web-based application that allows administrators to upload plug-ins. All plug-ins are stored in a special folder outside the app root (say, C:\Plugins) and are dynamically loaded via Assembly.LoadFrom(). This works just fine for the most part: WebControls in the plug-in...
{ "language": "en", "url": "https://stackoverflow.com/questions/163412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Printing to a pdf printer programmatically I am trying to print an existing file to PDF programmatically in Visual Basic 2008. Our current relevant assets are: Visual Studio 2008 Professional Adobe Acrobat Professional 8.0 I thought about getting a sdk like ITextSharp, but it seem like overkill for what I am trying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Garbage with pointers in a class, C++ I am using Borland Builder C++. I have a memory leak and I know it must be because of this class I created, but I am not sure how to fix it. Please look at my code-- any ideas would be greatly appreciated! Here's the .h file: #ifndef HeaderH #define HeaderH #include <vcl.h> #inc...
{ "language": "en", "url": "https://stackoverflow.com/questions/163432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Are nulls in a relational database okay? There's a school of thought that null values should not be allowed in a relational database. That is, a table's attribute (column) should not allow null values. Coming from a software development background, I really don't understand this. It seems that if null is valid withi...
{ "language": "en", "url": "https://stackoverflow.com/questions/163434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: Can I pass parameter from different page in JavaScript? In PHP it is easy to pass parameter using $_GET[] and $_POST[]. Is there something like that in JavaScript? I hope I can pass parameters from addresses or forms. A: window.location.href contains the current page's URL. You can append your parameters to a page'...
{ "language": "en", "url": "https://stackoverflow.com/questions/163444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should Model make service calls to get data We are build a website using MVC pattern. So far all the pages we built used models which had to operate on Reference data(which is cached when the website loads for the first time). But now we have reached that stage of the flow where we have to deal with Transactional da...
{ "language": "en", "url": "https://stackoverflow.com/questions/163451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why doesn't my ListView display List or Details items? Using C# .NET 2.0, I have an owner-drawn ListView where I'm overriding the OnDrawColumnHeader, OnDrawItem and OnDrawSubitem events. If I set the View property to Details at design-time, everything works beautifully and I can switch the View property and all vie...
{ "language": "en", "url": "https://stackoverflow.com/questions/163472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Stop MSVC++ debug errors from blocking the current process? Any failed ASSERT statements on Windows cause the below debug message to appear and freeze the applications execution. I realise this is expected behaviour but it is running periodically on a headless machine so prevent the unit tests from failing, instead ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generate a WSDL without a webserver I would like to generate a WSDL file from a c++ atl webservice without using a web server. I would like to generate it as part of the visual studio build or as a post build event. I found a program (CmdHelper) that does this for .NET assemblies but it doesn't seem to work for wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/163487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: State and time transending logic and program flow? Wondering if it would ever be useful to index every possible state of an application using some reference keys... Meaning, say we have a program that starts, has only so many possible outcomes, say 8. but if each outcome is attained through stepping through many mor...
{ "language": "en", "url": "https://stackoverflow.com/questions/163492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Running a Ruby Program as a Windows Service? Is it possible to run a ruby application as a Windows Service? I see that there is a related question which discusses running a Java Application as a Windows Service, how can you do this with a Ruby application? A: Here is a code template to do firedeamon :) ###########...
{ "language": "en", "url": "https://stackoverflow.com/questions/163497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: C#, ASP.NET - NullReferenceException - Object reference not set to an instance of an object Definition of variables in use: Guid fldProId = (Guid)ffdPro.GetProperty("FieldId"); string fldProValue = (string)ffdPro.GetProperty("FieldValue"); FormFieldDef fmProFldDef = new FormFieldDef(); fmProFldDef.Key = fldProId; fm...
{ "language": "en", "url": "https://stackoverflow.com/questions/163507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accounting Software Design Patterns Are there any good resources (books, authoritative guides, etc.) for design patterns or other best practices for software that includes financial accounting features? Specifically, where is good information about handling issues like the following: * *Internal representations o...
{ "language": "en", "url": "https://stackoverflow.com/questions/163517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Set ASP.Net version using WiX I am creating an installer for an ASP.Net website using WiX. How do you set the ASP.Net version in IIS using WiX? A: Don't forget to enable ASP 2.0 on the server <iis:WebServiceExtension Id="ExtensionASP2" Group="ASP.NET v2.0.50727" Allow="yes" File="[NETFRAMEWORK20INSTALLROOTDIR]aspn...
{ "language": "en", "url": "https://stackoverflow.com/questions/163531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Restoring a SQL Server Express Edition Database Is there a way to take a backup file from SQL Server Express Edition and restore it into a standard SQL Server database? I tried to do it from Management Studio but it didn't recognize the file format. A: If you have a databse .bak file you can move from SQL Server 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/163534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is best method to find a ASP.Net control using jQuery? In implementing my first significant script using jquery I needed to find a specific web-control on the page. Since I work with DotNetNuke, there is no guaranteeing the controls ClientID since the container control may change from site to site. I ended up...
{ "language": "en", "url": "https://stackoverflow.com/questions/163535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How do I write output to the console from a custom MSBuild task? I'm trying to debug an MSBuild task, and I know there is some way to write to the MSBuild log from within a custom task but I forget how. A: The base Task class has a Log property you can use: Log.LogMessage("My message"); A: For unit testing purpos...
{ "language": "en", "url": "https://stackoverflow.com/questions/163537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C# - What does the Assert() method do? Is it still useful? I am debugging with breakpoints and I realize the assert call? I thought it was only for unit tests. What does it do more than breakpoint? Since I can breakpoint, why should I use Assert? A: Assertions feature heavily in Design by Contract (DbC) which as I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "184" }
Q: How do I pass a string into subprocess.Popen (using the stdin argument)? If I do the following: import subprocess from cStringIO import StringIO subprocess.Popen(['grep','f'],stdout=subprocess.PIPE,stdin=StringIO('one\ntwo\nthree\nfour\nfive\nsix\n')).communicate()[0] I get: Traceback (most recent call last): Fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/163542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "337" }
Q: Is there a maximum number of characters that can be written using a StreamWriter? Is there a maximum number of characters that can be written to a file using a StreamWriter? Or is there a maximum number of characters that WriteLine() can output? I am trying to write some data to a file but all of the data does not s...
{ "language": "en", "url": "https://stackoverflow.com/questions/163550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: JDK/JRE source code with matching JSSE (SSL) source code and matching runnable JDK / JRE? I have seen Where to find Java 6 JSSE/JCE Source Code? and asked the question myself How to get JRE/JDK with matching source? but I don't either of these was specific enough to get the answer I was really after, so I'm going ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Wiki style text formatting I'm looking for some kind of text-parser for ASP.NET that can make HTML from some style of text that uses a special format. Like in Wiki's there is some special syntax for headings and such. I have tried to look on google, but I did not found anything for .NET. Do someone know about a libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/163562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Javascript Date() constructor doesn't work I have an issue - The javascript Date("mm-dd-yyyy") constructor doesn't work for FF. It works fine for IE. * *IE : new Date("04-02-2008") => "Wed Apr 2 00:00:00 EDT 2008" *FF2 : new Date("04-02-2008") => Invalid Date So lets try another constructor. Trying this constr...
{ "language": "en", "url": "https://stackoverflow.com/questions/163563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Is it possible to stop a ColdFusion Request? I have a Flex application that calls a function which searches a large document collection. Depending on the search term, the user may want to stop the request from flex. I’d like to not only stop the flex application from expecting the request, but also stop the CFC req...
{ "language": "en", "url": "https://stackoverflow.com/questions/163569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Asp.net formatting lists of grouped data I have a asp.net page where i query a list of url and the groups in the urls. In the code behind i loop through each group and create a group header and then list all of the links. something like this: Group 1 * Link 1 * Link 2 * Link 3 Group 2 * Link 1 * Link 2 * Li...
{ "language": "en", "url": "https://stackoverflow.com/questions/163581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to deploy minified Javascript files to a web server without changing the file's Timestamp? We have several hundred javascript files in our app that are currently being served uncompressed. One piece of our solution to gain a little more client performance is to minify our javascript files. I've created an automa...
{ "language": "en", "url": "https://stackoverflow.com/questions/163583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash autocompletion in Emacs shell-mode In the GNOME Terminal, Bash does smart auto-completion. For example apt-get in<TAB> becomes apt-get install In Emacs shell-mode, this auto-completion doesn't work, even after I explicitly source /etc/bash_completion. The above example sticks as in or auto-completes with a fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/163591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "99" }
Q: Apache sockets not closing? I have a web application written using CherryPy, which is run locally on 127.0.0.1:4321. We use mod-rewrite and mod-proxy to have Apache act as a reverse proxy; Apache also handles our SSL encryption and may eventually be used to transfer all of our static content. This all works just fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/163603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What am I doing wrong when using RAND() in MS SQL Server 2005? I'm trying to select a random 10% sampling from a small table. I thought I'd just use the RAND() function and select those rows where the random number is less than 0.10: SELECT * FROM SomeTable WHERE SomeColumn='SomeCondition' AND RAND() < 0.10 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: AJAX and the Browser Back Button I run a browser based game at www.darknovagames.com. Recently, I've been working on reformatting the site with CSS, trying to get all of its pages to verify according to the HTML standard. I've been toying with this idea of having the navigation menu on the left AJAX the pages in (ra...
{ "language": "en", "url": "https://stackoverflow.com/questions/163610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Changing the DefaultValue of a property on an inherited .net control In .net, I have an inherited control: public CustomComboBox : ComboBox I simply want to change the default value of DropDownStyle property, to another value (ComboBoxStyle.DropDownList) besides the default one specified in the base class (ComboBox...
{ "language": "en", "url": "https://stackoverflow.com/questions/163611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Making email addresses safe from bots on a webpage? When placing email addresses on a webpage do you place them as text like this: joe.somebody@company.com or use a clever trick to try and fool the email address harvester bots? For example: HTML Escape Characters: &#106;&#111;&#101;&#46;&#115;&#111;&#109;&#101;&#98...
{ "language": "en", "url": "https://stackoverflow.com/questions/163628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Which SVG toolkit would you recommend to use in Java? As a follow-up to another question, I was wondering what would be the best way to use SVG in a Java project. A: The Apache Batik project is an open source SVG renderer written in Java. You can pass it an SVG file, or create a document programatically via a DOM-s...
{ "language": "en", "url": "https://stackoverflow.com/questions/163632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get access to the Websphere 6.1 ant tasks from vanilla ant (not ws_ant) I guess I need to know what I need in the classpath (what jar) in order to execute WebSphere 6.1 ant tasks. If someone can provide an example that would be perfect. A: The Actual Websphere Ant tasks are defined in wsanttasks.jar. A poss...
{ "language": "en", "url": "https://stackoverflow.com/questions/163646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Lightweight .NET debugger? I frequently need to debug .NET binaries on test machines (by test-machine, I mean that the machine doesn't have Visual Studio installed on it, it's frequently re-imaged, It's not the same machine that I do my development on, etc). I love the Visual Studio debugger, but it's not practical...
{ "language": "en", "url": "https://stackoverflow.com/questions/163647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: What are the best options for NAT port forwarding? I'd like to make it easy for users to forward a port on their NAT to their local machine for my C++ app. I'd like to make this work on OSX & Windows. Linux would be a great bonus, but Linux users are probably more comfortable forwarding ports manually, so it is le...
{ "language": "en", "url": "https://stackoverflow.com/questions/163654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Reading Comma Delimited File and Putting Data in ListView - C# Alright, I'm trying to read a comma delimited file and then put that into a ListView (or any grid, really). I have the delimiting part of the job taken care of, with the fields of the file being put into a multidimensional string array. The problem is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I change the default *.elog log file name for an interpreted Specman session? I want to be able to specify the file name stem for the log file in a Specman test. I need to hard-code the main *.elog filename so that I don't get variance between tests and confuse the post-processing scripts. Is there a constr...
{ "language": "en", "url": "https://stackoverflow.com/questions/163678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ajax versus Frames In light of how ajax is actually used by most sites today; why is ajax embraced while frames are still regarded as a bad idea? A: AJAX, from where I'm sitting, is a sort of grand tradeoff. You are breaking things in the "document" model of the interwebs so that your site can behave more like an "...
{ "language": "en", "url": "https://stackoverflow.com/questions/163704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where is the Attic in Subversion (Tortoise)? Whoops, I need some info from a file I deleted, a while ago. In CVS I would just go to the ATTIC to find it, how do I find a file in SVN without having to go back to a revision where it existed (especially annoying since I have no idea really when I deleted -- one week a...
{ "language": "en", "url": "https://stackoverflow.com/questions/163707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Taking thrift files from an API, and building the .NET dll file I can't figure out how to compile thrift files for C#. I've read, "thrift files which can then be compiled down to language-specific interfaces for a wide variety of different programming platforms (Java, PHP, C/C++, Cocoa, Perl, C#, Ruby, etc.)." I was...
{ "language": "en", "url": "https://stackoverflow.com/questions/163711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which Java profiler is better: JProfiler or YourKit? Which profiler is better for general purpose profiling and heap analysis? 90% of our apps are standalone command line programs with substantial database and numeric processing. The other 10% are webapps/servlet container apps (with very little JSP and NO SCRIPLETS...
{ "language": "en", "url": "https://stackoverflow.com/questions/163722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: maven-buildnumber-plugin i use the maven-buildnumber-plugin to generate my version number for JAR/WAR/EAR packages. So when doing a compile i'll get for example ${project.version}-${buildNumber}, because is set to this value. But when using mvn deploy just ${project.version} is the filename, samen when i set in po...
{ "language": "en", "url": "https://stackoverflow.com/questions/163727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Recommended .NET Class for a collection of unique integers? What would you recommend for class that needs to keep a list of unique integers? I'm going to want to Add() integers to the collection and also check for existence e.g. Contains(). Would be nice to also get them in a list as a string for display, ie. "1, 5,...
{ "language": "en", "url": "https://stackoverflow.com/questions/163732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: ASP.NET project size Are there any known issues around how many "pages" are in an ASP.NET project? Does the size of the DLL created by the project matter at all? My existing project is about 150 pages and the DLL is only around 3MB but it has increased from about 50 pages and 0.5 MB recently A: Scott Hanselman got ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Autoconf test for JNI include dir I'm working on a configuration script for a JNI wrapper. One of the configuration parameters is the path to jni.h. What's a good quick-and-dirty Autoconf test for whether this parameter is set correctly for C++ compilation? You can assume you're running on Linux and g++ is available...
{ "language": "en", "url": "https://stackoverflow.com/questions/163747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: COM Registration and the GAC I have a web project, a C# library project, and a web setup project in Visual Studio 2005. The web project needs the C# library needs to be registered in the GAC. This is simple, just add the GAC folder to the setup project and drop the primary output of the C# library in there. The C# l...
{ "language": "en", "url": "https://stackoverflow.com/questions/163748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use boost::bind in C++/CLI to bind a member of a managed class I am using boost::signal in a native C++ class, and I now I am writing a .NET wrapper in C++/CLI, so that I can expose the native C++ callbacks as .NET events. When I try to use boost::bind to take the address of a member function of my managed cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/163757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Generic GDI+ Error I have a Form being launched from another form on a different thread. Most of the time it works perfectly, but I get the below error from time to time. Can anyone help? at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) at System.Drawing.Bitmap..ctor(Int32 width, Int32 h...
{ "language": "en", "url": "https://stackoverflow.com/questions/163760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SetURL method of QuickTime object undefined? I have a hidden embedded QuickTime object on my page that I'm trying to control via JavaScript, but it's not working. The object looks like this: <object id="myPlayer" data="" type="audio/mpeg" pluginspage="http://www.apple.com/quicktime/download" width="0" height="0"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/163761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a good iTunes coverflow-type control for WPF? I am currently using Telerik's carousel control, but it is lacking many features and is buggy. Is there a good control out there that looks the the coverflow control in itunes? A: ElementFlow control is inside the codeplex project called FluidKit - can be down...
{ "language": "en", "url": "https://stackoverflow.com/questions/163775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }