text stringlengths 8 267k | meta dict |
|---|---|
Q: What's the best library for reading Outlook .msg files in Java? I would like to read the text and binary attachments in a saved Outlook message (.msg file) from a Java application, without resorting to native code (JNI, Java Native Interface).
Apache POI-HSMF seems to be in the right direction, but it's in very ear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Importing Access data into SQL Server using ColdFusion This should be simple. I'm trying to import data from Access into SQL Server. I don't have direct access to the SQL Server database - it's on GoDaddy and they only allow web access. So I can't use the Management Studio tools, or other third-party Access upsizing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When would I use Server.Transfer over PostBackURL? Or vice versa.
Update:
Hmm, let's assume I have a shopping cart app, the user clicks on the Checkout button.
The next thing I want to do is send the user to a Invoice.aspx page (or similar). When the user hits checkout, I could Button.PostBackURL = "Invoice.aspx"
or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the C# documentation tags? In C# documentation tags allow you to produce output similar to MSDN. What are a list of allowable tags for use inside the /// (triple slash) comment area above classes, methods, and properties?
A: Check out Great documentation on the various C# XML documentation tags. (Go to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: What is the best way to randomize an array's order in PHP without using the shuffle() function? I was asked this question in a job interview. The interviewer and I disagreed on what the correct answer was. I'm wondering if anyone has any data on this.
Update: I should have mentioned that the use of shuffle() was str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: report generation on php? one of the most frequent requests I get is to create XY report for YZ App. These apps are normally built on PHP, so far I have manually created most of this reports, and while I enjoy the freedom of building it as I want, it usually becomes pretty tedious to calculate subtotals, averages, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Anyone know of a list of delegates already built into the framework? I find myself writing delegates occasionally for really simple functions (take no arguments and return void for example) and am wondering if anyone knows someplace that has compiled a list of all the predefined delegates already available in the .N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best way to extract a version string from a file? I want to use a file to store the current version number for a piece of customer software which can be used by a start-up script to run the binary in the correct directory.
For Example, if the run directory looks like this:
.
..
1.2.1
1.2.2
1.3.0
run.sh
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Apps that support both DirectX 9 and 10 I have a noobish question for any graphics programmer.
I am confused how some games (like Crysis) can support both DirectX 9 (in XP) and 10 (in Vista)?
What I understand so far is that if you write a DX10 app, then it can only runs in Vista.
Maybe they have 2 code bases -- one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JavaScript in client-side XSL processing? Is it possible to have XML-embedded JavaScript executed to assist in client-side (browser-based) XSL transformations? How is it done and how official is it?
Microsoft's XML DOM objects allow this on the server-side (i.e. in ASP/ASP.NET).
Clarification: I do not mean HTML DO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Auto-updating in Corporate Environments (C#) I have a three-tier application which is installed in corporate environments. With every server version update, all clients have to be updated, too. Currently, I provide an MSI package which is automatically deployed via Active Directory, however my customers (mostly with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How would you implement a breadcrumb helper in asp.net mvc? I know you could make a helper pretty easily given the data. So, if possible, please only submit answers that also include getting the data.
A: @Chris: something like this:
<%
foreach (var item in ViewData.Get<Breadcrumb[]>())
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How do I best localize an entire app to many different languages? I'm using Visual Studio (2005 and up). I am looking into trying out making an application where the user can change language for all menues, input formats and such. How would I go on doing this, as I suppose that there is some complete feature within ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best implementation of an exception mechanism? Most program languages have some kind of exception handling; some languages have return codes, others have try/catch, or rescue/retry, etc., each with its own pecularities in readability, robustness, and practical effectiveness in a large group development e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Order of DOM NodeList returned by getChildNodes() The DOM method getChildNodes() returns a NodeList of the children of the current Node. Whilst a NodeList is ordered, is the list guaranteed to be in document order?
For example, given <a><b/><c/><d/></a> is a.getChildNodes() guaranteed to return a NodeList with b, c ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Application Level Replication Technologies I am building out a solution that will be deployed in multiple data centers in multiple regions around the world, with each data center having a replicated copy of data actively updated in each region. I will have a combination of multiple databases and file systems in each... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to sort by Lucene.Net field and ignore common stop words such as 'a' and 'the'? I've found how to sort query results by a given field in a Lucene.Net index instead of by score; all it takes is a field that is indexed but not tokenized. However, what I haven't been able to figure out is how to sort that field whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to implement constants in Java? I've seen examples like this:
public class MaxSeconds {
public static final int MAX_SECONDS = 25;
}
and supposed that I could have a Constants class to wrap constants in, declaring them static final. I know practically no Java at all and am wondering if this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "370"
} |
Q: .NET 3.5 Linq Datasource and Joins Have been trying out the new Dynamic Data site create tool that shipped with .NET 3.5. The tool uses LINQ Datasources to get the data from the database using a .dmbl context file for a reference. I am interseted in customizing a data grid but I need to show data from more than one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does Tomcat 5.5 (with Java 1.4, running on Windows XP 32-bit) suddenly hang? I've been running Tomcat 5.5 with Java 1.4 for a while now with a huge webapp. Most of the time it runs fine, but sometimes it will just hang, with no exception generated, and no apparant way of getting it to run again other than re-st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to identify specific digits of an integer input in C? I need to get the number of digits containing the number 1. I know in java I can take the input as a String and use charAt, but I understand there is no implicit String function in C. How can I accomplish this?
A: Division and modulus are your friends.
#incl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XWindow ignores multiple ClentMessage's sent during same second I've encountered an interesting problem while developing for our legacy XWindows application.
For reasons that don't bear explaining, I am sending ClientMessage from a comand-line utility to a GUI app.Most of the messages end up having the same contents... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET - Common Gotchas When I am working with ASP.NET, I find that there are always unexpected things I run into that take forever to debug. I figure that having a consolidated list of these would be great for those "weird error" circumstances, plus to expand our knowledge of oddness in the platform.
So: answer wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is there a user friendly XML editor out there? I can't find anything good, preferably open source Something to take an XML schema and let you add/edit data but not change the XML structure, preferably installed on a server. basically a UI to edit xml documents as a web app. Someone has got to have done this already ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to write an SQL query to find out which logins have been granted which rights in Sql Server 2005? I'm responsible for some test database servers. Historically, too many other poeple have access to them. They run on SQL Server 2005.
I've been writing queries and wrapping them in scripts so I can run a regular... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's happening with Perl 6? Is there any visible progress? Is it now just an academic exercise? Do you believe Perl will continue to evolve with or without Perl 6 or will soon be forgotten?
A: Please see the Official Perl 6 Wiki to find the latest information:
http://www.perlfoundation.org/perl6/index.cgi?perl_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: C++ web service framework We are looking for a C++ Soap web services framework that support RPC, preferably open source.
Any recommendations?
A: http://code.google.com/p/staff/
Staff is Web Service Framework for C++ (service/component and client-side)/JavaScript(client-side) based on Apache Axis2/C.
Open-source, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Krypton Controls anyone? I found the ad on this site to Krypton controls (and here's another one!) and was wondering if any of you using vs.net 05 or 08 are using them and how that's working out. If you're answering, please specify which parts you're using (free, ribbons, tabs) and which vs.net you're on, which lang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Lightweight REST library for Java I'm looking for a light version of REST for a Java web application I'm developing.
I've looked at RESTlet (www.restlet.org) and the REST plugin for Struts 2, but I haven't made up my mind. I'm leaning towards RESTlet, as it seems to be lighter.
Has anyone implemented a RESTful laye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Image Misalignment in Visual Studio application I have a Visual Studio application with a splash screen image cut into "slices". The positions are specified in the Form Designer so they line up properly on the screen. However, the images are out of place when the application is run on the Chinese version of Windows ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perl aids for regression testing Is there a Perl module that allows me to view diffs between actual and reference output of programs (or functions)? The test fails if there are differences.
Also, in case there are differences but the output is OK (because the functionality has changed) I want to be able to commit th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What are the first tasks for implementing Unit Testing in Brownfield Applications? Do you refactor your SQL first? Your architecture? or your code base?
Do you change languages? Do you throw everything away and start from scratch? [Not refactoring]
A: I'm adding unit testing to a large, legacy spaghetti codebase.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Get external IP address over remoting in C# I need to find out the external IP of the computer a C# application is running on.
In the application I have a connection (via .NET remoting) to a server. Is there a good way to get the address of the client on the server side?
(I have edited the question, to be a little ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Is it possible to cache a value evaluated in a lambda expression? In the ContainsIngredients method in the following code, is it possible to cache the p.Ingredients value instead of explicitly referencing it several times? This is a fairly trivial example that I just cooked up for illustrative purposes, but the cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dynamic Database Schema What is a recommended architecture for providing storage for a dynamic logical database schema?
To clarify: Where a system is required to provide storage for a model whose schema may be extended or altered by its users once in production, what are some good technologies, database models or st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: faster Math.exp() via JNI? I need to calculate Math.exp() from java very frequently, is it possible to get a native version to run faster than java's Math.exp()??
I tried just jni + C, but it's slower than just plain java.
A: Use Java's.
Also, cache results of the exp and then you can look up the answer faster th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do you launch the JavaScript debugger in Google Chrome? When using Google Chrome, I want to debug some JavaScript code. How can I do that?
A: In Chrome 8.0.552 on a Mac, you can find this under menu View/Developer/JavaScript Console ... or you can use Alt+CMD+J.
A: Here, you can find the shortcuts to access th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "440"
} |
Q: Bluetooth Signal Strength Does anyone have any idea how to track the signal strength of a bluetooth connection perferably in C#?
I was thinking using a WMI query but couldn't track down the WMI class encapsulating the connection.
The idea is when I leave my machine with my cellphone in pocket the bluetooth signal we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I rotate an image at 12 midnight every day? I need to rotate an image at 12 midnight every day from a group of 5-10 images. How can I go about doing this with JavaScript or jQuery or even PHP?
A: At a basic level what you want to do is define an array of image names then take the number of days from a given ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can a servlet determine if the posted data is multipart/form-data? I have a servlet that is used for many different actions, used in the Front Controller pattern. Does anyone know if it is possible to tell if the data posted back to it is enctype="multipart/form-data"? I can't read the request parameters until I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: j2me screen flicker when switching between canvases I'm writing a mobile phone game using j2me. In this game, I am using multiple Canvas objects.
For example, the game menu is a Canvas object, and the actual game is a Canvas object too.
I've noticed that, on some devices, when I switch from one Canvas to another, e.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best OpenGL java binding? I am trying to achieve better performance for my Java SWT application, and I just found out it is possible to use OpenGL in SWT. It seems there are more than one Java binding for OpenGL. Which one do you prefer?
Note that I have never used OpenGL before, and that the application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Is there an easy way to change the behavior of a Java/Swing control when it gets focus? For most GUI's I've used, when a control that contains text gets the focus, the entire contents of the control are selected. This means if you just start typing, you completely replace the former contents.
Example: You have spi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I convert GMT to LocalTime in Win32 C? I want to convert various location/date/times in history from GMT to local time. It seems that SystemTimeToTzSpecificLocalTime is better than FileTimeToLocalFileTime. When the date/time pairs also include various locations, the conversion gets hairy. I've found a data s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I get Column number of the cursor in a TextBox in C#? I've got a multiline textBox that I would like to have a label on the form displaying the current line and column position of, as Visual Studio does.
I know I can get the line # with GetLineFromCharIndex, but how can I get the column # on that line?
(I re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Unescaping angle-brackets through System.Xml.XmlWriter I'm writing a string containing some XML via System.Xml.XmlWriter. I'm stuck using WriteString(), and from the documentation:
WriteString does the following:
The characters &, <, and > are replaced with &, <, and >, respectively.
I'd like this to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I stub data for designers when using Expression Blend and Visual Studio? We are trying out Visual Studio 2008 and Expression Blend on a new project. The goal is to clearly define the role of the developer and designer as separate, but reap the benefit of the developer being able to directly consume the XAML p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Checking online status from an iPhone web app Is there a way to check to see if an iPhone is online from a web app. That is, in mobile Safari, can I check the online status of the device to see if I should try an AJAX call or not.
In Firefox/regular WebKit, this would be:
if(navigator.onLine)
{
onlineCode()
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Java VNC Libraries Are there any VNC Libraries for Java, I need to build a JSP/Servlet based VNC server, to allow user to share their desktops with helpdesk. I've seen jVNC, but i'd like to build it myself, for a University project.
In particular, I'm looking for Java Libraries that I can use inside another servlet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to handle static fields that vary by implementing class I hit this problem all the time. Suppose I am making a command line interface (Java or C#, the problem is the same I think, I will show C# here).
*
*I define an interface ICommand
*I create an abstract base class CommandBase which implements ICommand, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Flip an Image horizontally I need to flip an image so that a character faces in the right direction. This needs to be done "on the fly' as they say.
The issue I am having is that with Gif images, I seem to lose the transparency. (The background goes white)
Below is the code: (Alternatively someone could send me to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does anybody know how to correctly install ANTLR to work with .Net? Can ANTLR output C# using StringTemplate or any text I want it to like Yacc/Bison or does it only output to java? From the examples I've looked at it appears to be a very java centric tool.
A: I just started a small series of post about how exactl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java EE SqlResultSetMapping Syntax I have the following Java 6 code:
Query q = em.createNativeQuery(
"select T.* " +
"from Trip T join Itinerary I on (T.itinerary_id=I.id) " +
"where I.launchDate between :start and :end " +
"or ADDDATE(I.launchDate, I.equipmentPullDayOfTrip) betw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When does System.gc() do something? I know that garbage collection is automated in Java. But I understood that if you call System.gc() in your code that the JVM may or may not decide to perform garbage collection at that point. How does this work precisely? On what basis/parameters exactly does the JVM decide to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: How do I run Oracle plsql procedure from Lisp? How do I get started?
A: I have found the easiest way to achieve this by using Clojure.
Here is the example code:
(ns example
(:require [clojure.contrib.sql :as sql])
(:import [java.sql Types]))
(def devdb {:classname "oracle.jdbc.driver.OracleDriver"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: what is the easiest way to lookup function names of a c binary in a cross-platform manner? I want to write a small utility to call arbitrary functions from a C shared library. User should be able to list all the exported functions similar to what objdump or nm does. I checked these utilities' source but they are int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Installation of demo project - best practices Using Windows Installer (targeting XP and Vista), is there a best practice for installing demo projects and files with your application?
A: From experience installing on Vista/XP I would recommend...
1, Install the source code/project/solution files into the 'Users' dir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What package includes AB the Apache Server Benchmarking Tool in Ubuntu I'm trying to find ab - Apache HTTP server benchmarking tool for Ubuntu, I'm hoping there's a package I can install for it. I decided I need to do some simple load testing on my applications.
A: % sudo apt-get install apache2-utils
The command-n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: How can I create a site in php and have it generate a static version? For a particular project I have, no server side code is allowed. How can I create the web site in php (with includes, conditionals, etc) and then have that converted into a static html site that I can give to the client?
Update: Thanks to everyone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Threadsafe foreach enumeration of lists I need to enumerate though generic IList<> of objects. The contents of the list may change, as in being added or removed by other threads, and this will kill my enumeration with a "Collection was modified; enumeration operation may not execute."
What is a good way of doing thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: subversion tags and branches Has anybody come up with a better technique for managing tags and branches in subversion than what is generally recommended (the parallel directories called 'tags' and 'branches')?
A: Using the repository namespace to convey information like branches / tags / etc is fundamentally the SV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Namespaces in C# I am using an ASP.NET MVC project and everytime I add a class to a folder it makes really long namespaces.
Example:
Project = Tully.Saps.Data
Folder = DataAccess/Interfaces
Namespace = Tully.Saps.Data.DataAccess.Interfaces
Folder = DataAccess/MbNetRepositories
Namespace = Tully.Saps.Data.D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Decorating a parent class method I would like to make a child class that has a method of the parent class where the method is a 'classmethod' in the child class but not in the parent class.
Essentially, I am trying to accomplish the following:
class foo(Object):
def meth1(self, val):
self.value = val
cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fail fast finally clause in Java Is there a way to detect, from within the finally clause, that an exception is in the process of being thrown?
See the example below:
try {
// code that may or may not throw an exception
} finally {
SomeCleanupFunctionThatThrows();
// if currently executing an exception,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Google Maps style scrolling anyone? I am looking for some JavaScript plugin (preferably jQuery) to be able to scroll through an image, in the same way that Google Maps works.
I can make the image draggable but then I see the whole image while dragging even if the parent div is overflow:hidden.
Any help would be grea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Setting movie metadata with QTKit I'm trying to convert old QuickTime framework code to the 64-bit Cocoa-based QTKit on OS X, which means that I can't drop down to the straight C function calls at any time. Specifically, I'm trying to find a way to write QuickTime VR movies with QTKit, as they require some special ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problem with unicode String literal in unit test I have a JUnit test that tests adding Strings to a Dictionary custom type. Everything works fine for everyone else on a Linux/Windows machine, however, being the first dev in my shop on a mac, this unit test fails for me. The offending lines are where unicode string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any recommendations for deployment from SVN, with version numbers written into my code automagically? I've gotten comfy with SVN, and now I need a way to deploy my code to staging or live servers more easily. I'd also like some method for putting build info in the footer of this site to aid in testing. Site is PHP/M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Simple/lightweight alternative to GNU Mailman? I'm looking for a dead simple mailing list (unix friendly). Robustness, fine-grained configurability, "enterprise-readiness" (whatever that means) are not requirements. I just need to set up a tiny mailing list for a few friends. Rather than hack something up myself, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Any successful profibus communications from .NET? Has anyone successfully talked profibus from a .NET application?
If you did, what device/card did you use to accomplish this, what was the application, and did you use any kind of preexisting or available code?
A: We've not used Profibus, but have used DeviceNET (an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: EDI Converter Tool 850 to 940 I need to convert an x12 850 v4010 to a x12 940 v4010. Most of the tools convert from x12 to xml then I would need to map the xml to a 940. I am hoping there is a tool that could convert from one edi document to another.
EDIT FOR INFORMATION:
Quick Background
Electronic Data Interchang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are there any tools to visualize a RDF graph? (please include a screenshot) I'm looking for a tool that will render a RDF graph in a reasonably useful graphic format. The primary purpose of the graphic format being inclusion into a PowerPoint slide or printing on a large plotter for management review.
I am currentl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Error Tolerant HTML/XML/SGML parsing in PHP I have a bunch of legacy documents that are HTML-like. As in, they look like HTML, but have additional made up tags that aren't a part of HTML
<strong>This is an example of a <pseud-template>fake tag</pseud-template></strong>
I need to parse these files. PHP is the only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Installing Svn 1.5.x on Debian Etch - Best approach? How do you install svn 1.5 on debian etch? The svn 1.5 packages available for etch are 1.4 and I really need the cool new merge tracking feature in svn1.5 (according to CollabNet its as good as ClearCase...an interesting statement in oh so many ways). So, what'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create a new signal in pygtk I've created a python object, but I want to send signals on it. I made it inherit from gobject.GObject, but there doesn't seem to be any way to create a new signal on my object.
A: Here is how:
import gobject
class MyGObjectClass(gobject.GObject):
...
gobject.signal_new(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Unhandled exception logging for Windows Forms Is there anything like ELMAH for Windows Forms?
I'm looking for a standard way to process unhandled exceptions and grab a screenshot and other environment information before packaging that up for support.
A: The very same Jeff Atwood coded a nice solution (albeit in VB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: IMAP4 server for .NET Are there any free (non-GPL) libraries for .NET that provide IMAP4 server side functionality?
E.g. handles the socket level and message handshaking so that an IMAP4 client (such as outlook) can retrieve, read, edit and/or delete messages.
I am not trying to connect to an IMAP4 server, I'd lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to control the capitalization of month and day names returned by DateFormat? Here is a quick test program:
public static void main( String[] args )
{
Date date = Calendar.getInstance().getTime();
System.out.println("Months:");
printDate( "MMMM", "en", date );
printDate( "MMMM", "es", date );... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Are there any advantages compiling for .NET Framework 3.5 instead of 2.0? Are there any advantages compiling for .NET Framework 3.5 instead of 2.0?
For example less memory consumption, faster startup, better performance...
Personally I don't think so however, I may have missed something.
Edits
*
*Of course there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Java Servlet 404 errors What culprits are the most likely to cause a 404 resource not found error when a page in a given .WAR, autocreated by Sun's J2EE deploytool, is trying to load a Servlet in the same .WAR file?
Eg:
HTTP Status 404 - /MyServlet/MyServlettype Status reportmessage /MyServlet/MyServletdescriptio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is RSpec so slow under Rails? Whenever I run rspec tests for my Rails application it takes forever and a day of overhead before it actually starts running tests. Why is rspec so slow? Is there a way to speed up Rails' initial load or single out the part of my Rails app I need (e.g. ActiveRecord stuff only) so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Add a linebreak in an HTML text area How can i add a line break to the text area in a html page?
i use VB.net for server side coding.
A: If it's not vb you can use 
 (ascii codes for cr,lf)
A: You could use \r\n, or System.Environment.NewLine.
A: If you're inserting text from a database or such (which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Where is a good place to start with making an application in .NET that communicates through OPC? Where is a good place to start with making an application in .NET that communicates through OPC?
A: You can find a good article and a library to start with here: http://www.codeproject.com/KB/COM/opcdotnet.aspx
A: The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Trying to understand web services performance I bought an ASP.NET script about a year ago to retrieve FedEx shipping values. It builds an XML string that passes to the FedEx server using an HttpWebRequest, then parses the raw XML. The average response time for the script is about 900 milliseconds.
So the other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Promising alternatives to make? I've been using make and makefiles for many many years, and although the concept
is sound, the implementation has something to be desired.
Has anyone found any good alternatives to make that don't overcomplicate
the problem?
A: Be aware of the ninja build tool (v1.8.2 Sept 2017) whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: Custom style with Qt Has anybody experience in building a custom style in Qt? What I have in my mind is a complete new style that affects all kind of widgets. I have seen some examples in the web for a custom combo box. But I have no idea how much time and code it takes to build a "complete" new custom style ... may... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best way to represent a parameterized enum in C#? Are there any good solutions to represent a parameterized enum in C# 3.0? I am looking for something like OCaml or Haxe has. I can only think of class hierarchy with a simple enum field for easy switching for now, maybe there are better ideas?
See Ocaml example below... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When is a CDATA section necessary within a script tag? Are CDATA tags ever necessary in script tags and if so when?
In other words, when and where is this:
<script type="text/javascript">
//<![CDATA[
...code...
//]]>
</script>
preferable to this:
<script type="text/javascript">
...code...
</script>
A: When you ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "961"
} |
Q: Integration of JavaScript and JMS Where can I find a guide for integrating JavaScript and JMS (Java Messaging Service)?
I would like a best practice or established technology that allows me to directly or indirectly receive messages from a topic and update a site based on the message. I was thinking of creating two ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I run a program as nobody? I want a user-privileged (not root) process to launch new processes as user nobody. I've tried a straight call to setuid that fails with -1 EPERM on Ubuntu 8.04:
#include <sys/types.h>
#include <unistd.h>
int main() {
setuid(65534);
while (1);
return 0;
}
How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Java applet cached forever, not downloading new version? We have a case where clients seem to be eternally caching versions of applets. We're making use of the <param name="cache_version"> tag correctly within our <object> tag, or so we think. We went from a version string of 7.1.0.40 to 7.1.0.42 and this triggere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to test credit card interactions? After reading this answer, I wonder if there's a way to get a "testing" credit card number. One that you can experiment with but that doesn't actually charge anything.
A: MasterCard: 5431111111111111
Amex: 341111111111111
Discover: 6011601160116611
American Express (15 digits)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Simplest way to check if two integers have same sign? Which is the simplest way to check if two integers have same sign? Is there any short bitwise trick to do this?
A: Assuming 32 bit ints:
bool same = ((x ^ y) >> 31) != 1;
Slightly more terse:
bool same = !((x ^ y) >> 31);
A: Here is a version that works in C/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: OpenID support for Ruby on Rails application What is current state of the art for enabling OpenID login in Ruby on Rails applications? This is a community wiki with up-to-date answers to this question.
Authlogic
The most advanced authentication solution seems to be Authlogic. It supports OpenID with Authlogic Open... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Tree data structure in C# I was looking for a tree or graph data structure in C#, but I guess there isn't one provided. An Extensive Examination of Data Structures Using C# 2.0 a bit about why. Is there a convenient library which is commonly used to provide this functionality? Perhaps through a strategy pattern to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "286"
} |
Q: Virtualizing treelistview? Does anyone know of a good way to display hierarchical data with columns?
It has to be virtualizing, as it must be able to handle several million records.
It should also be multi-select, most treeview controls are not.
Winforms preferred, but will ElementHost WPF if necessary.
A: I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: The doesn't display properly when using inside In a JSP page, I created a <h:form enctype="multipart/form-data"> with some elements: <t:inputText>, <t:inputDate>, etc. Also, I added some <t:message for="someElement"> And I wanted to allow the user upload several files (one at a time) within the form (using <t:inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to increment in vim under windows (where CTRL-A does not work...) While CtrlX works fine in vim under windows, CtrlA selects all (duh).
Is there a way to increment a number with a keystroke under windows?
A: You can make CtrlA to increment in windows by opening up the 'mswin.vim' file in your vim directory and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Load a form without showing it Short version: I want to trigger the Form_Load() event without making the form visible. This doesn't work because Show() ignores the current value of the Visible property:
tasksForm.Visible = false;
tasksForm.Show();
Long version: I have a WinForms application with two forms: main and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What are some Search Servers out there? I'm looking to find alternatives to Solr from the Apache Software Foundation.
For those that don't know, Solr is an enterprise search server. A client application uses a web-services like interface to submit documents for indexing and also to perform search queries. Solr has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.