text string | meta dict |
|---|---|
Q: How to keep automated tests fast? Automated tests MUST be fast to reflect real time project state. The idea is that:
*
*after any commit to repository automated build is performed (as fast as it can be done).
*if build succeeded automated tests are started. MUST be fast.
This is the best way i know to find out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Should I change my utilities.pl to a utilities.pm module? In our product we have a big utilities file that we require (with do) at the beginning of a lot of our files. Is there a reason not to turn this into a module? For example, instead of doing this:
do '../dbi_utilities.pl';
our ($db,$user,$pw,$attr);
my $Data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can you validate Elements based on an attribute Value using a Schema? The XML I'm trying to validate is as follows:
<root>
<element attribute="foo">
<bar/>
</element>
<element attribute="hello">
<world/>
</element>
</root>
How can this be validated using a Schema?
Note:
element c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I practice "mockist" or "classical" TDD? I've read (and re-read) Martin Fowler's Mocks Aren't Stubs. In it, he defines two different approaches to TDD: "Classical" and "Mockist". He attempts to answer the question "So should I be a classicist or a mockist?", but he admits that he has never tried mockist TDD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: How to make a hotfix deployment using Visual Studio? Let's say that you have a product that is written in Visual Studio and you provide your customers and users with an installer for that product.
Then, you have some minor changes that you want to deploy to your users; you don't want your users to have to go through... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How should I learn C? I'm interested in learning C. I have read K & R, and I have even done some simple C extension work in R and Python. What's a worthwhile project idea for doing something more substantial with C? Any good online resources, similar to Dive Into Python? In particular, resources focused on progr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Most effective way to collect wifi bssid and rssi data across many windows platforms I'm trying to collect wifi Bssid and Rssi information on Windows, and am looking for the most reliable way to do that across as many versions of Windows as possible. With Vista it's easy using Win32 calls with the Wireless LAN API. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: why does parsing this date string throw an unparseable date exception? I'm using SimpleDateFormat with the pattern EEE MM/dd hh:mma, passing in the date String Thu 10/9 08:15PM and it's throwing an Unparseable date exception. Why? I've used various patterns with SimpleDateFormat before so I'm fairly familiar with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which is faster between is and typeof Which of these pieces of code is faster?
if (obj is ClassA) {}
if (obj.GetType() == typeof(ClassA)) {}
Edit:
I'm aware that they don't do the same thing.
A: They don't do the same thing. The first one works if obj is of type ClassA or of some subclass of ClassA. The second ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "156"
} |
Q: Play audio from a stream using C# Is there a way in C# to play audio (for example, MP3) direcly from a System.IO.Stream that for instance was returend from a WebRequest without saving the data temporarily to the disk?
Solution with NAudio
With the help of NAudio 1.3 it is possible to:
*
*Load an MP3 file from a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: ASP.NET : w3wp is using lots of memory and the process is not responding Can someone give me step by step instructions or point to the correct references in the correct order
so that I can determine the root cause of this issue?
A: You can get a memory dump of the process and look into it WinDbg. It will at least ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compare Strings given in $_POST with php I have a form that is sending in sizes of things, and I need to see what the strings are equal to so that I can set the price accordingly. When i try to do this, it says that they are not equal, and i get no prices. This is the code i'm using:
if ($_POST['sizes'] == "Small ($... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to detect if an exception occurred before I entered a finally block? In Java, is there an elegant way to detect if an exception occurred prior to running the finally block? When dealing with "close()" statements, it's common to need exception handling within the finally block. Ideally, we'd want to ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Does repeated loading and saving of a compressed audio file reduce quality? Like it is the case with jpeg images for example?
What's about mp3 or ogg vorbis audio files?
A: It all depends on the definition of "loading" and "saving".
If the program in question actually decodes mp3/ogg upon loading and encodes in bac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between a deep copy and a shallow copy? What is the difference between a deep copy and a shallow copy?
A: Shallow copies duplicate as little as possible. A shallow copy of a collection is a copy of the collection structure, not the elements. With a shallow copy, two collections now share th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "753"
} |
Q: How do I display a large pdf in a c# application? I have a windows c# application and I want to display a pdf file, located on a webserver, in an acrobat com object added to my form.
pdf.loadfile(@"http://somewhere.com/nowwhere.pdf")
As my pdf is large, the application seems to hang till the entire file is loaded.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why would I ever choose to store and manipulate XML in a relational database? Modern RDBMS's have support for XML column types and functionality for dealing with XML in stored procedures. Historically I would always have mapped hierarchical data (whether of OO objects or XML) to relational tables. Given the widespre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: As a "mockist" TDD practitioner, should I mock other methods in the same class as the method under test? After reading Martin Fowler's Mocks Aren't Stubs, I've discovered I've been practicing TDD in the "mockist" fashion.
But I'm wondering if even in mockist TDD if one can take mocking too far.
Here's an updated exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Skype & Terminal Services information exchange? We have sales reps who access our 'system' via terminal services. In our system we would like to enable clicking the number of a client and launching skype on their local machine not in the terminal services session.
We see two potential ways of this working...
*
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to read XML data from a server using Flex? I believe the simplest way to request data from a server in XML format is to have a PHP/JSP/ASP.net page which actually generates XML based on HTTP GET params, and to somehow call/load this page from Flex.
How exactly can this be achieved using the Flex library classes?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UI Design / Workflow: Changing same property on multiple objects I am looking for a general UI design / work-flow for changing the same property across multiple objects.
Suppose I have an object class called Person. The Person class has a property called City. I want to select 5 Person objects and change the Cit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing data between C++ (MFC) app and C# We have a monolithic MFC GUI app that is nearing the end of it's life in C++. We are planning to build new functionality in C# and pass data between each app.
Question is: What is the best approach for passing data between C++ and C#?
Notes:
Both ends will have a GUI front ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: ASP.NET Session Timeout Testing I'm a doing some blackbox testing of a ASP.Net website and I need to test different session timeout scenarios.
I'm not sure they fully encapsulated session timeouts. Other then leaving a page open for 20 minutes is there an easier way to force a session timeout?
A: Add a page to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Adding to a ColdFusion classpath running on an instanced JRun server I'm having some trouble getting my ColdFusion server classpath to recognize my custom Java jars. The classpath is not reading my jvm.config file correctly (I assume out of my JRun server which is where the CF instance is running out of, it's a pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I stop visitors directly accessing the directories in my website? I have a (Wordpress powered) website, and Google is indexing some of the sub-directories. How can I stop Apache from showing users the directory listing? I know I can edit .htaccess to password-protect a directory, but I would prefer a 403 / cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there some industry standard for unacceptable webapp response time? There's a cots (commercial off-the-shelf) application that I work on customizing, where a couple of pages take an extremely long time to load for certain distributions of data. (I'm talking approximately 3 minutes for a page to load in this insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Devexpress Xtragrid how to add Combobox editor to column I want to place a combobox inside one column of a Xtragrid. I can bind the combobox to array values but how do you bind the combobox to the column?
A: Use the ColumnEdit property of the column to asign a lookupedit control (new). The lookupedit control is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Monitoring memory usage for a C DLL called with Java via JNI? How can I monitor the memory being used by a native C DLL that is being called from Java via JNI? Using standard Java monitoring tools and options I can see the Java memory space, but I cannot view any memory used by the C DLL. Java is using ~70MB, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET session and storing objects that use COM interop I'm working on an asp.net web site. We have to use com interop to interact with legacy vb6 activex components. The components in many cases rely on receiving a context object (which is itself a vb6 activex component) as a parameter. The context object is fa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get an error-code from a VB component into (serverside) JScript I have an plain-old asp web site that makes a call to a method in a dll written in VB 6. This method sets an error code in the VB Err Object if something goes wrong. Now I want to access that error code and description set in the Err object from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xterm control sequence to 'T' output to a file I swear there used to be a way in X to start capturing all terminal traffic to a file on your host. It may have been a HummingBird extension, but I thought it was standard. Now, I can't find the trick. Am I hallucinating (happens when you get old), or is it possible?I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I programmatically receive faxes? Preferable in java I need to be able to receive a fax in a java application. I was wondering what are some ways of doing this. Efax? Use a fax to email provider?
A: I suggest using fax to email. I've been using RapidFax for the past year or so, and it is fairly inexpensi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the right way to change the behavior of an tag? I want to make a link call a Javascript function through the onclick event and not do anything else (follow the link). What is the best way to do that? I usually do this:
<a href="#" onclick="foo()">Click</a>
But I'm not sure that is the best way and in this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a Java standard "both null or equal" static method? To save some typing and clarify my code, is there a standard version of the following method?
public static boolean bothNullOrEqual(Object x, Object y) {
return ( x == null ? y == null : x.equals(y) );
}
A: If you are using <1.7 but have Guava availabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Accessing RPG on iSeries from Java Has anyone had good experiences of talking direct to RPG programs running on a V5R4 iSeries machine from Java? If so, what are the recommendations of the community, and what pitfalls should I try to avoid?
From the various pieces of literature and spike solutions I have attempted i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Page Breaks in RDLC Report? I have an RDLC report that I'm having problems with page breaks. The report has a group that has a number of records that do not fit on one page. This report renders fine in Normal Mode, but when I switch to Print Mode, "extra" page breaks that were not there before appear. This is causin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are GUID collisions possible? I'm working on a database in SQL Server 2000 that uses a GUID for each user that uses the app it's tied to. Somehow, two users ended up with the same GUID. I know that microsoft uses an algorithm to generate a random GUID that has an extremely low chance of causing collisons, but is a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "152"
} |
Q: I have a button inside a ControlTemplate. How do I get a reference to it? I just want to enable or disable the button inside a ControlTemplate for a WPF Editor that I'm using.
A: My I recommend that buttons are easily controled through RoutedUICommands - including easily enabling and disabling them. Commands do not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Techniques to measure application performance I maintain an application which, during the course of two years, has constantly required new hardware to be even usable, due to the amount of new users / new data inserted. However, justifying the investiment is sometimes very hard to do.
I started to wonder - how can I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Expose a WCF Service through a Named Pipes binding Intro:
I successfully implemented a WCF Service hosted in a Windows Service a few days ago. The community here at StackOverflow helped me with the WSDL exposure here. I thank you once again. However recently I found out that there is another potential client for thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Which Facebook .NET Library is the best to use? There is a list of projects here, mainly the Facebook Developer Toolkit and Facebook.NET. However, I've seen a lot of negative feedback about the toolkit and it seems like Facebook.NET hasn't been upgraded to the latest facebook API.
Are either of these worth using? A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Effective way to notify user of input validation failures in an editable table Im looking for ideas on how to effectively notify users that their input into an editable table is invalid. For example, if one column of a table represents an American zip code and the user enters in the zip code "85rr3" into a cell, ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: window.resizeTo affects subsequent Firefox windows I have a webapp which resizes its window to exactly fit its contents:
window.resizeTo(200,300)
People do like having the page fit its window in this way. However with Firefox the next browser window the user opens comes up at the same size, which is ridiculously sm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Recommended spec for a build server We're using CruiseControl.NET to manage our builds and we're in the process of obtaining a new build server. I've been tasked with coming up with the spec for the new server.
This server will need to run multiple builds concurrently and as effeciently as possible.
What would you c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error with C# Partial classes I am using partial classes to split some functionality between 2 files, but I am getting an error. What am I doing wrong?
A1.cs:
private partial class A
{
private string SomeProperty { get { return "SomeGeneratedString"; } }
}
A2.cs:
private partial class A
{
void SomeF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Java ColorSpace Support I need to take a BufferedImage and convert it to YCbCr format so that I can do a more efficient Brightness/contrast manipulation on it, but I can't figure out how to do this. I've tried ColorConvertOp but there doesn't seem to be an appropriate ColorSpace for YCbCr (though there is a type fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linking File's Owners and View Controller [iPhone SDK] I seem to be having an issue with iPhone SDK 2.1 in as far as being
able to establish a relationship between a ViewController and a View
window. In as far as a Cocoa Touch Class, I went forward and added a
UIViewController subclass. I made sure that the target i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom Filters/Validators in Zend Framework I have a Zend Framework application structure as below:
/application
/library
/Zend
/Core
/Filter
/MyFilter.php
/Validator
/MyValidator.php
I would like to put custom filters and validators in their respective folders and ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/184996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: java.beans.Introspector getBeanInfo does not pickup any superinterface's properties I just noticed that java.beans.Introspector getBeanInfo does not pickup any superinterface's properties. Example:
public interface Person {
String getName();
}
public interface Employee extends Person {
int getSalary();
}
In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to version milestones developed in parallel that may not be completed sequentially? I am currently working on a project with five other developers and we are using subversion for our revision control system. We have established that we have 12 milestones leading up to the first release of our software. We have l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Windsor Container and internal properties Is there any solution how to initialize properties of component marked as 'internal'? What assembly name should I use for InternalsVisibleTo attrribute or it won't help?
A: internal means that they are only accessible to code within the same assembly.
That said, you can use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HTTP Compression in IIS 6 - vs Third Party Solutions Anyone had any experience with httpZip product (ISAPI - based compression for IIS). I'm wondering if this is worthwhile compared to the native compression in IIS6... Pros / Cons / pitfalls of either approach?
A: The website itself tells you to use native IIS6 exc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GLUT: any way to add a "file readable" hook to the event loop? I'd like to open a socket and hang a readable event on the GLUT event loop... any ideas on how to do this? Portable standard GLUT code is best, but I'm open to platform-specific hacks as well.
Thanks!
A: GLUT doesn't support this very well. See GLUT FA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing the type of a DOM element in JavaScript Is there a way to test the type of an element in JavaScript?
The answer may or may not require the prototype library, however the following setup does make use of the library.
function(event) {
var element = event.element();
// if the element is an anchor
...
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: Draw shapes or images on a curved path I am looking for a drawing library or code examples to draw images or vector shapes repeated along a path which could be curved.
I found a cocoa library which is what I am looking for http://apptree.net/drawkitmain.htm but for .NET.
A: I would use Scalable Vector Graphics (SVG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I resolve "%1 is not a valid Win32 application"? Environment:
Windows Server 2003 R2 Enterprise 64bit, SP2
.NET framework is supposedly installed (2.0 SP2, 3.0 SP2, 3.5 SP1)
I say "supposedly" because they are listed as installed under Add/Remove programs. I'm not sure it's properly installed, because the "AS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: gvim and gdb for C? In emacs there is a handy way to launch the gdb and gui options for gdb, the C debugger.
Is there a similar option in gvim?
A: There's a project called cgdb which aims to provide this exact behavior. While it doesn't launch from vim the way emacs does, it provides vim like keybindings and behav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: C++ testing framework: recommendation sought I'm looking for a "quick and dirty" C++ testing framework I can use on my Windows/Visual Studio box. It's just me developing, so it doesn't have to be enterprise class software.
Staring at a list of testing frameworks, I am somewhat befuddled...
http://en.wikipedia.org/w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to change the default Browser in Expression Blend I want to set IE as my default browser for running Silver light applications from Expression Blend, but I don't want to change my windows default from Mozilla. Is there a settings option in Blend to do this?
A: Right now there is not a setting to do that. It wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Learning LINQ: QuickSort I took the plunge this afternoon and began studying LINQ, so far just mucking around with LINQ on collections. One of the first things I tried was to implement QSort.
Now -- ignoring the fact that I could just use an ORDERBY and that this is a very silly qsort implementation -- what I came ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Crash when calling into C++ library from Perl using SWIG (AIX 5.1) I'm trying to call into a C++ library from Perl on an AIX 5.1 machine. I've created a very simple test project to try to exercise this.
My C++ shared library (test.cpp):
#include <stdio.h>
#include <iostream>
void myfunc()
{
printf("in myfunc()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the general complexity of building a canonical language representation? It is often handy to have a canonical representation of a language (in my case they are usually domain specific languages); however, I believe there are strict limits on the expressiveness of the languages involved that determine whether... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to limit standard streams available to linux at the process level? I would like to be able to spawn a linux process that would only have access to stdin, stdout, and stderr (nothing more and nothing less). Can I do this at the process level itself? I am also implicitly stating (oxymoron) that I don't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I inject a thread in a remote app domain from C# I was wondering if its possible to inject a thread into a remote app domain running in a separate process.
My guess is that I could do this using the debugging interfaces (ICorDebug) but I was wondering if there is any other way?
A: There was recently an announ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Delphi 7 compile error - “Duplicate resource(s)” between .res and .dfm I got a very similar error to the one below:
How can I fix this delphi 7 compile error - "Duplicate resource(s)"
However, the error I got is this:
[Error] WARNING. Duplicate resource(s):
[Error] Type 10 (RCDATA), ID TFMMAINTQUOTE:
[Error]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I determine my controllers in MVC? I'm fairly new to MVC coming from a php background where I designed by view and created pages when I needed something like say a login form. I'd have a file called login. This only sucked when I needed a new login form to login a different type of user. Say an admin. I'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Interpreting newlines with xsl:text? I have an XSL stylesheet with content in an xsl:text node like this:
<xsl:text>
foo
bar
baz
</xsl:text>
The stylesheet itself is a text file with "unix-style" newline line terminators. I invoke this stylesheet on Windows as well as unix-like platforms. It would be nice to have t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: SQL Date Range Split Can you please let me know the SQL to split date ranges when they overlap?
Data (sample data with a date range and possibly other columns):
Col1 FromDate ToDate
1. 1 1/1/2008 31/12/2010
2. 1 1/1/2009 31/12/2012
3. 1 1/1/2009 31/12/2014
Output:
Col1 From Date ToDate
1. 1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Stripping out a link in jQuery I have a bit of html like so:
<a href="#somthing" id="a1"><img src="something" /></a>
<a href="#somthing" id="a2"><img src="something" /></a>
I need to strip off the links so I'm just left with a couple of image tags. What would be the most efficient way to do this with jQuery?
A: $(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I "use" a Perl module in a directory not in @INC? I have a module in the parent directory of my script and I would like to 'use' it.
If I do
use '../Foo.pm';
I get syntax errors.
I tried to do:
push @INC, '..';
use EPMS;
and .. apparently doesn't show up in @INC
I'm going crazy! What's wrong here?
A: 'use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: What's the best way of accessing field in the enclosing class from the nested class? Say if I have a dropdown in a form and I have another nested class inside of this class .
Now what's the best way to access this dropdown from the nested class?
A: Unlike Java, a nested class isn't a special "inner class" so you'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: How to avoid screen flickering when a control must be constantly repainted in C#? I have a simple panel that is used as a drawing surface. The goal here is to draw a 4 pixel wide outline around a child ListView under certain circumstances. I would like to make the outline pulsate when something can be dragged into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does this remote script cause IE6 to hang? Please take a look at the html listed below and let me know why IE6 freezes when trying to load the remote script (located at 'http://code.katzenbach.com/Default.aspx'). The script returns JSONP and executes the 'callbackFunction' listed in the header. When it runs co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Navigation on validation failure in Seam/JSF I've been playing with Seam (2.0.2.SP1) for a few weeks, and I have most of the basics nailed down, but I haven't come up with a decent solution to the following.
Suppose I have a form at /foo.xhtml, with a rewrite rule such that URLs like /foo.seam?id=<fooId> are convert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Alternative to libraries of static classes I have a large collection of static 'Utility' classes that contain very generic static methods. For example, I have a CollectionUtility class that has useful methods like:
public static void RemoveDuplicates(ICollection collection)... etc
With C# 3.0 I've been converting th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make Publisher Policy file redirect assembly request I have created a common library at work, and it is installed in the GAC on our test server. I've recently updated it and I want all of our applications to be using the update. I created a publisher policy assembly and installed it in the GAC along with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS and lack of constants/variables issue? Given a stylesheet with a fully qualified reference to an image resource on another server, is there a good way to handle promotions through different environments that require a different base URL?
background-image: url
(evironmentSpecificURL/resourceName.foo);
The env... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP 5.x syncronized file access (no database) I'm mostly familiar with Java, C and C++ in which there are ways to control that only one thread is accessing a resource at any given time. Now I'm in search for something similar but in PHP 5.x.
To formulate my problem with one example:
I have an ASCII-file which only s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a way to determine whether an e-mail reaches its destination? I have a PHP script that sends out critical e-mails that needs to reach its destination. I know how to check whether the e-mail sent successfully, the only issue is knowing whether it actually got to its recipient.
Any suggestions? If there is no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I get and set Environment variables in C#? How can I get Environnment variables and if something is missing, set the value?
A: Environment.SetEnvironmentVariable("Variable name", value, EnvironmentVariableTarget.User);
A: Get and Set
Get
string getEnv = Environment.GetEnvironmentVariable("envVar");
Set
st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "242"
} |
Q: Ripping a CD to mp3 in C# - third party component or api out there? We're working on a project that requires the ripping of audio tracks from CDs to MP3s (ideally also retrieving the track information from CDDB or similar).
More background information: Various music labels send us CDs of music which we then deliver ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What are some best practices for handling sensitive information? I'm currently creating an application for a customer that will allow them to automatically bill their customers credit cards.
I'm curious as to what are some best practices to safely store and access the credit card information, and for that matter, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: jQuery tabs - getting newly selected index I've previously used jquery-ui tabs extension to load page fragments via ajax, and to conceal or reveal hidden divs within a page. Both of these methods are well documented, and I've had no problems there.
Now, however, I want to do something different with tabs. When th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do I tell if someone's faking a filetype? (PHP) I'm programming something that allows users to store documents and pictures on a webserver, to be stored and retrieved later. When users upload files to my server, PHP tells me what filetype it is based on the extension. However, I'm afraid that users could renam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Displaying Loading text while doing a WebRequest I have a button on my webform. Clicking this button will do an HttpWebRequest during the onclick event handler. After the request we copy the response from the request into HttpContext.Current.Response and send that to the client.
This web request can take a while (up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Uninitialized string offset error from PHP import script I have an import-from-excel script as part of a CMS that previously ran without issue.
My shared-hosting provider has recently upgraded their infrastructure, including PHP from 5.1 to 5.2.6, and the script now returns "Uninitialized string offset: -XXX in /pat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I see the hex values of a string in a VS2008 watch window? I have a string in a watch window in VS2008 and want to see the hex representation of each character. If I right click there's a hexadecimal option but this doesn't appear to do anything. Anybody know how to view the string as a series of hex values?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Optimizing Flex when multiple modules are used I have a Flex application where load time is extremely important (consumer site). i want to be able to get something up on screen and then allow additional modules to be loaded as necessary.
The issue I'm facing is that the sum total of all the modules is much larger th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can a Win32 process get the pid of its parent? I'm currently passing the pid on the command line to the child, but is there a way to do this in the Win32 API? Alternatively, can someone alleviate my fear that the pid I'm passing might belong to another process after some time if the parent has died?
A: Just in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How does your company do "Enterprise" Password Management? We've talked about personal password management here but how do you guys manage your passwords at a company wide level?
A: We have managed to plan our company applications so they are mainly web based and open source or in-house developed. This then allowed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How can I make a class global to the entire application? I would like to access a class everywhere in my application, how can I do this?
To make it more clear, I have a class somewhere that use some code. I have an other class that use the same code. I do not want to duplicate so I would like to call the same code i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best way to design for localization of strings This is kinda a general question, open for opinions. I've been trying to come up with a good way to design for localization of string resources for a Windows MFC application and related utilities. My wishlist is:
*
*Must preserve string literals in code (as opposed t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: IIS Recycling too often We run a .NET 1.1 application on W2k3 server. The app pool is configured to recycle at 512MB. However, a week ago it started to recycle every 2 minutes. Since we run a web farm, the anonymous user we run IIS with is a domain account.
About a week ago, that user account expired, and we have to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight 2.0 RC Drag and drop ordering of a ListBox I am trying to give a ListBox drag and drop ordering functionality and I have hit a wall. I got it to work when I specify the list box items in xaml but it does not work when I bind to a list it no longer works because the items are no longer of a listboxitem ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What happens if I don't close a System.Diagnostics.Process in my C# console app? I have a C# app which uses a System.Diagnostics.Process to run another exe. I ran into some example code where the process is started in a try block and closed in a finally block. I also saw example code where the process is not close... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's a ".dll.a" file? I'm trying to use a open source library from a Windows application, and the only pre-built version I can find comes as a file called "lib.dll.a"
What format is this, and can I convert it to a normal dll file?
A: Naming the output file libjvm.dll.a will allow gcc to recognize it as a
library ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Oracle joins ( left outer, right, etc. :S ) I knew stackoverflow would help me for other than know what is the "favorite programming cartoon" :P
This was the accepted answer by:
Bill Karwin
Thanks to all for the help ( I would like to double vote you all )
My query ended up like this ( this is the real one )
SELE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I specify a generic type in XAML (pre .NET 4 Framework)? In XAML I can declare a DataTemplate so that the template is used whenever a specific type is displayed. For example, this DataTemplate will use a TextBlock to display the name of a customer:
<DataTemplate DataType="{x:Type my:Customer}">
<TextBlock Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: Implementing functionality/code directly in database system RDBMS packages today offer a tremendous amount of functionality beyond standard data storage and retrieval. SQL Server for example can send emails, expose web service methods, and execute CLR code amongst other capabilities. However, I have always tried t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regular expression to match start of filename and filename extension What is the regular expression to match strings (in this case, file names) that start with 'Run' and have a filename extension of '.py'?
The regular expression should match any of the following:
RunFoo.py
RunBar.py
Run42.py
It should not match:
my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/185378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |