text stringlengths 8 267k | meta dict |
|---|---|
Q: Executing a script file from a Windows Installer Custom Action I need to execute a batch file as part of the un-install process in a Windows installer project (standard OOTB VS 2008 installer project-vdproj). One cannot execute a bat file directly from the Custom Actions in the installer project, so I wrote a quick... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Should I inject things into my entities? When using an IoC container, is it considered good design to inject other classes into them? i.e. a persistence class
A: This is the Spreadsheet Conundrum: do you write repository.store(entity) or entity.storeIn(repository)?
Each has its merits. I generally tend to favor rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Something wrong in the datetime format When i compile the application in my laptop it runs fine but when i run the same application in the server something is wrong with the date format. But when i checked the system date time format wit my laptop and server it the same format. Can anyone tell me what is wrong.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Assign variables with a regular expression I'm looking for a method to assign variables with patterns in regular expressions with C++ .NET
something like
String^ speed;
String^ size;
"command SPEED=[speed] SIZE=[size]"
Right now I'm using IndexOf() and Substring() but it is quite ugly
A: String^ speed; String^ si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can the NetBeans code formatter be made to format javadoc comments? The NetBeans 6.1 editor doesn't seem to like to wrap comments, and the code formatter seems to ignore them. For JavaDoc comments, this behaviour seems inappropriate, as you can end up spending a lot of wasted time manually reflowing paragraphs.
I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Information Hiding and Properties Does Information Hiding mean I should minimize the number of properties my classes have? Is that right? Do you tend to make your classes private fields with methods?
A: Information hiding has to do with how much data in your class (fields, properties) is accessible to outside cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where did the concept of Interfaces come from? In c#, we have interfaces. Where did these come from? They didn't exist in c++.
A: Interfaces were also a central part of COM, which was a very successful technology for separating interfaces from implementation.
A: I was under the impression that the first formaliz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How does one elaborate design using CRC cards? I've always been wondering how people use CRC (class responsiblity collaboration) cards. I've read about them in books, found vague information on the internet, but never grasped it really. I think someone ought to make a youtube video showing a session with CRC cards, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: IIS is returning 404 errors for ASPX pages that exist (aka DllRegisterServer entry point was not found) I'm having problems refreshing .Net 2.0 with IIS 6.
I have been able to successfully execute "aspnet_regiis.exe -i", but when I try to register the aspnet_isapi.dll:
regsvr32 “C:\WINDOWS\Microsoft.NET\Framework\v2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Windows XP - Create Shortcuts on Desktop and controll their placement In any language really, im looking for a simple (very simple) way to control the position of a shortcut on the users desktop. I already make the assumption that Auto Arrange and Align to Grid are unchecked.
Ex: The program creates the shortcut to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the point of the Lowered* columns in asp.net membership tables? What is the architectural reason for the column names prefixed with "Lowered" in the SQL schema for ASP.Net membership and friends? Some examples of the columns in question are below:
*
*aspnet_Applications.LoweredApplicationName
*aspnet_u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Pros and cons with Jaxer I realize that this question has been asked before, but it has been a month with no decent responses... I'm looking at Aptana's Jaxer and I find the concept to be very exciting.
Here is a quick overview for those who are not familiar with it:
Jaxer is, in their words, "the world's first tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: programmatically find number of hosts in a Netmask How do you programmatically find the number of hosts that a netmask supports.
Eg, If you have a /30 , how do you find how many IP's are in it without using a lookup table?
Preferably would be able to work with the "/" notation, rather than 255.xxx.xxx.xxx notation.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Managing the patch level of multiple windows systems In an environment with multiple windows servers what is the best way to ensure patch compliance accross all systems?
Is there a simple tool (some sort of client/server app?) that allows reports to be generated showing the status of all the systems so any that ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: wxWidgets: Detecting click event on custom controls How to add a click event listener to my custom control made with wxWidgets? The custom control uses wxWindow as the base. On the event list I see
wxEVT_LEFT_DOWN
wxEVT_LEFT_UP
wxEVT_LEFT_DCLICK
wxEVT_MIDDLE_DOWN
wxEVT_MIDDLE_UP
wxEVT_MIDDLE_DCLICK
wxEVT_RIGHT_D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to generate a newline in a cpp macro? How do I write a cpp macro which expands to include newlines?
A: It is not possible. It would only be relevant if you were looking at listing files or pre-processor output.
A common technique in writing macros so that they are easier to read is to use the \ character to co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Black-box vs White-box Reuse What are the pros/cons of using black-box reuse over white-box reuse?
A: In my experience, White box reuse is normally done through inheritance and black box is done through composition.
White Box Reuse
Pro: You can customize the module to fit the specific situation, this allows reuse ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are there any large-scale commercial projects that use Squeak Smalltalk? I've been learning Squeak Smalltalk & have noticed that it's got a really faithful community and is used in some large academic and open-source projects, but I haven't found any examples of it being used commercially in any significant way. I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/98998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WCF netTCPBinding - Is transport encryption enough? I've got a WCF service which handles some sensitive data. I'd like to make sure I keep that data from being exposed and so I'm looking at netTCPBinding... primarily because I can control the network it runs across and performance is a high priority.
I recognize th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to obtain a list of site resources when writing a Maven2 site plugin? When creating a plugin that executes in the default life-cycle, it's easy to obtain a reference to the project and its resources, but I'm getting a null instead of a MavenProject object when creating plugins that execute in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Report design using stored procedures in Report builder (SSRS)? Is it possible to use stored procedures for designing Reports in Report builder?
A: If you're asking if it's possible to use sprocs in SSRS reports that you create, then yes. Just call the sproc in the query for your DataSet like you would normaly.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I have a socket accept connections only from the localhost (in Java)? I have a java app (not running in any application container) which listens on a ServerSocket for connections. I would like it to only accept connections which come from localhost. Currently, after a connection is accepted, it checks the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Handling browser pop-up windows with Selenium We are running Selenium regression tests against our existing code base, and certain screens in our web app use pop-ups for intermediate steps.
Currently we use the commands in the test:
// force new window to open at this point - so we can select it later
selenium().get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Having trouble achieving 1Gbit UDP throughput For UDP packets with a payload less then 1470, is it possible to achieve 1Gbit throughput? Due to the small packet size, there should be some bottlenecks in achieving such throughput (I/O, OS, network, etc.). I imagine drivers and hardware might have to be tuned to small... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: ASP.NET webforms + ASP.NET Ajax versus ASP.NET MVC and Ajax framework freedom If given the choice, which path would you take?
ASP.NET Webforms + ASP.NET AJAX
or
ASP.NET MVC + JavaScript Framework of your Choice
Are there any limitations that ASP.NET Webforms / ASP.NET AJAX has vis-a-vis MVC?
A: I love webforms... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Getting BPL Versions at program startup Is it possible to check what version of BPL (ie Rtl70.BPL, Indy70.bpl etc) are installed on a clients computer when the program starts?
I have had some programs crash because the BPL on there computer is different to the ones on the build machine.
If i have to add each BPL use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: copying data from production to test server without erasing schema Using sql server 2000, I would like to take my production data and put it in my test database, but I don't want to overwrite the schema of the test database as there are fields in it that I haven't added to production yet. Can this be done? I shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Would it be useful to have method return values for null objects? Would it be useful to be able to provide method return value for null objects?
For a List the null return values might be:
get(int) : null
size() : 0
iterator() : empty iterator
That would allow the following code that has less null checks.
List item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generate a current datestamp in Java What is the best way to generate a current datestamp in Java?
YYYY-MM-DD:hh-mm-ss
A: Date d = new Date();
String formatted = new SimpleDateFormat ("yyyy-MM-dd:HH-mm-ss").format (d);
System.out.println (formatted);
A: Using the standard JDK, you will want to use java.text.Simp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: MIPS - Is it important? My question: Is the MIPS programming language that beneficial to know?
I'm a CS student and am taking an assembly class which focuses on MIPS. I'm very comfortable writing in high level languages, but MIPS has me a little bit down.
Is MIPS something that I should really focus on and try to co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Would Automatic Casts be useful? Is there any downside or problem potential to change the Java compiler to automatically cast? In the example below the result of list.get(0) would automatically be casted to the type of the variable hi.
List list = new ArrayList();
list.add("hi");
String hi = list.get(0);
I know tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: how to prevent "directory already exists error" in a makefile when using mkdir I need to generate a directory in my makefile and I would like to not get the "directory already exists error" over and over even though I can easily ignore it.
I mainly use mingw/msys but would like something that works across other shel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: How do you make Vim unhighlight what you searched for? I search for "nurple" in a file. I found it, great. But now, every occurrence of "nurple" is rendered in sick black on yellow. Forever.
Forever, that is, until I search for something I know won't be found, such as "asdhfalsdflajdflakjdf" simply so it clears the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "258"
} |
Q: Iterate with for loop or while loop? I often see code like:
Iterator i = list.iterator();
while(i.hasNext()) {
...
}
but I write that (when Java 1.5 isn't available or for each can't be used) as:
for(Iterator i = list.iterator(); i.hasNext(); ) {
...
}
because
*
*It is shorter
*It keeps i in a smaller ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Should selecting by first letter show as many as possible that start with that letter? When I am in a list and I press a letter to jump to the first entry that starts with that letter why does it leave that entry on the bottom of the visible entries? It should make the entry the top visable entry so that many entrie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get Haml to work with Rails? I am trying to get Haml to work with my Ruby on Rails project. I am new to Ruby on Rails and I really like it. However, when I attempt to add an aplication.html.haml or index.html.haml for a view, I just receive errors.
I am using NetBeans as my IDE.
A: Haml with Rails 3
For Ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Is there any way to get access to the DOM from Objective-C when using UIWebView? UIWebView is fine for displaying HTML, but I'd like to modify the loaded DOM from my Objective-C program. Does anybody know how to do that? This is a third party page, so I can't really include any custom JS to do so...unless I can mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: RMI server: rmiregistry or LocateRegistry.createRegistry For RMI on server-side, do we need to start rmiregistry program, or just call LocateRegistry.createRegistry?
If both are possible, what are the advantages and disadvantages?
A: They're the same thing... rmiregistry is a separate program, which you can run fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is the most common feature that demands the use of Visual Studio Professional over Standard? I'm afraid my trial of VS 2008 is running out soon, and unless a client pays for it, I might be shelling out some cash for it. I've been looking through the comparison chart to compare VS Professional to Standard, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# COM Office Automation - RPC_E_SYS_CALL_FAILED I'm writing a C# program that acts as a PowerPoint 2007 plugin. On some machines, some calls to the PowerPoint object model throw a COMException with the message RPC_E_SYS_CALL_FAILED. I couldn't find any specific advice on what to do regarding this error, or how to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you parse a web page and extract all the href links? I want to parse a web page in Groovy and extract all of the href links and the associated text with it.
If the page contained these links:
<a href="http://www.google.com">Google</a><br />
<a href="http://www.apple.com">Apple</a>
the output would be:
Google... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Would it be useful to add extra info to stack traces? Would it be useful to be able to mark objects where the value ofString.valueOf() would included in any stack trace. In my example below I used "trace". Variables that aren't declared at the point of the stack trace would just be ingored.
It would make debugging ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How are virtual functions and vtable implemented? We all know what virtual functions are in C++, but how are they implemented at a deep level?
Can the vtable be modified or even directly accessed at runtime?
Does the vtable exist for all classes, or only those that have at least one virtual function?
Do abstract cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: Is there any downside to redundant qualifiers? Any benefit? For example, referencing something as System.Data.Datagrid as opposed to just Datagrid. Please provide examples and explanation. Thanks.
A: You're being very explicit about the type you're referencing, and that is a benefit. Although, in the very same proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Would it be useful to include the class name and variable name in any NullPointerException message? Would it be useful to include the class name and variable name in any NullPointerException message? I know that it might not always be possible because of changes made by a JIT but is seems like the info should be av... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Would it be useful to change java to support both static and dynamic types? What if a Java allow both static and dynamic types. That might allow the best of both worlds. i.e.:
String str = "Hello";
var temp = str;
temp = 10;
temp = temp * 5;
*
*Would that be possible?
*Would that be beneficial?
*Do any languag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Understanding [ClassOne, ClassTwo].each(&:my_method)
Possible Duplicate:
What does map(&:name) mean in Ruby?
I was watching a railscast and saw this code.
[Category, Product].(&:delete_all)
In regards to clearing a database.
I asked about the line in IRC and was told
(&:delete_all)
was a shortcut for
{|model|... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Grab a ProgressEvent from a POST upload in as3 Is there any way to track the status of a posted upload in AS3? There is a ProgressEvent, but it gives data back about the response, not the actual POST upload. I'm posting binary data for an image, so it's usually in the 50-100kb range.
The image data was generated in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I change the colors displayed in cygwin rxvt? When I print "\[\e[34m\]sometext" I get some text in blue, but can I specify the shade of blue somewhere?
A: If your rxvt has 256 colors enabled, you can use extended color codes (e.g. "^[[38;5;36m"). Try this script to test if your terminal has 256 colors enable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing PHP associative arrays to and from XML Is there an easy way to marshal a PHP associative array to and from XML? For example, I have the following array:
$items = array("1", "2",
array(
"item3.1" => "3.1",
"item3.2" => "3.2"
"isawesome" => true
)
);
How would I turn it into s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to test if a line segment intersects an axis-aligned rectange in 2D? How to test if a line segment intersects an axis-aligned rectange in 2D? The segment is defined with its two ends: p1, p2. The rectangle is defined with top-left and bottom-right points.
A: Since your rectangle is aligned, Liang-Barsky might b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Is there a good reference on how java executes bytecode? I'm interested in how java organizes memory and executes code (like what gets put in the stack or the heap), from the start of main, to assigning variables, calling functions, passing parameters, returning values, instantiating objects, etc. Has anyone found a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I fix this Subversion MKCOL error? When I commit I get this error from Subversion:
bash-2.05b$ svn commit -m "testing subversion, still"
Adding baz
svn: Commit failed (details follow):
svn: MKCOL of '/viper/!svn/wrk/6b9bcd38-b2fe-0310-95ff-9d1a44098866/sandboxes/ohammersmith/trunk/baz': 405 Method Not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: How to check if a folder exists in Cocoa & Objective-C? How to check if a folder (directory) exists in Cocoa using Objective-C?
A: NSFileManager is the best place to look for file related APIs. The specific API you require is
- fileExistsAtPath:isDirectory:.
Example:
NSString *pathToFile = @"...";
BOOL isDir = NO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: What is the easiest FLV player for embedding video on a website? I have video that I've converted to FLV format. I'd rather host it on my own site than use a service like YouTube. What is the easiest player to use? I'd like to just put the .swf file of the player somewhere on my server, and give it the video as a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: What is the best way to store software documentation? An obvious answer is "an internal wiki". What are the pros and cons of a wiki used for software documentation? Any other suggestions? What are you using for your software documentation?
Loren Segal - Unfortunately we don't have support for any doc tool to compile... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does writing and speaking on software make you a better programmer? Do you think that writing about software (i.e. having a blog) and speaking on software (and concepts) make you a better programmer?
A: I believe that is the case. As with teaching, you develop a firmer grasp on the subject when you have to explain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Retrieve multiple rows from an ODBC source with a UNION query I am retrieving multiple rows into a listview control from an ODBC source. For simple SELECTs it seems to work well with a statement attribute of SQL_SCROLLABLE. How do I do this with a UNION query (with two selects)?
The most likely server will be MS S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to handle code that is deemed dangerous to change, but stable? What is the best way to handle a big team that has access to a stable but no so pretty code, that is easy to introduce bugs into?
I'm looking for something along the lines of SVN locking the file(s).
A: Tell them to leave it alone.
It works, what i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual C++/Studio: Application configuration incorrect? My C(++) program, written and compiled using Visual C(++)/Visual Studio, runs fine on my own machine, but refuses to run on another machine. The error message I get is "This application has failed to start because the application configuration is incorrect. Rei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I change the colors of an arbitrary widget in GTK+? If I'm writing an application that wants to communicate some information through the use of color, how can I change the background and foreground colors of a given widget? I would like to know how to do this in glade if it's possible, as well as programmati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are some different ways of implementing a plugin system? I'm not looking so much for language-specific answers, just general models for implementing a plugin system (if you want to know, I'm using Python). I have my own idea (register callbacks, and that's about it), but I know others exist. What's normally use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does several levels of base classes slow down a class/struct in c++? Does having several levels of base classes slow down a class? A derives B derives C derives D derives F derives G, ...
Does multiple inheritance slow down a class?
A: [Deep inheritance hierarchies] greatly increases the maintenance burden by addi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Is it possible to get Code Coverage Analysis on an Interop Assembly? I've asked this question over on the MSDN forums also and haven't found a resolution:
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=3686852&SiteID=1
The basic problem here as I see it is that an interop assembly doesn't actually contain any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is a good PHP library to handle file uploads? I am looking to use a PHP library for uploading pictures to a web server so that I can use something that has been tested and hopefully not have to design one myself. Does anyone know of such a library?
Edit: I am aware that file uploads are built into PHP, I am lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What tools do you use for Automated Builds / Automated Deployments? Why? What tools do you use for Automated Builds / Automated Deployments? Why?
What tools do you recommend?
A: Hudson for automated builds. I chose it because it was the easiest to setup and demo. A system that's too complex and isn't slick-looking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Point-Triangle Collision Detection in 3D How do I correct for floating point error in the following physical simulation:
*
*Original point (x, y, z),
*Desired point (x', y', z') after forces are applied.
*Two triangles (A, B, C) and (B, C, D), who share edge BC
I am using this method for collision detection:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I grab single key hit in D Programming Language + Tango? I read this article and try to do the exercise in D Programming Language, but encounter a problem in the first exercise.
(1) Display series of numbers
(1,2,3,4, 5....etc) in an infinite
loop. The program should quit if
someone hits a specific ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Has anybody compared WCF and ZeroC ICE? ZeroC's ICE (www.zeroc.com) looks interesting and I am interested in looking at it and comparing it to our existing software that uses WCF. In particular, our WCF app uses server callbacks (via HTTP).
Anybody who's compared them? How did it go? I'm particularly interested in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Where do "pure virtual function call" crashes come from? I sometimes notice programs that crash on my computer with the error: "pure virtual function call".
How do these programs even compile when an object cannot be created of an abstract class?
A: Usually when you call a virtual function through a dangling pointe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "124"
} |
Q: Can you Distribute a Ruby on Rails Application without Source? I'm wondering if it's possible to distribute a RoR app for production use without source code? I've seen this post on SO, but my situation is a little different. This would be an app administered by people with some clue, so I'm cool with still requiri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Does Ajax detoriate performance? Does excess use of AJAX affects performance? In context of big size web-applications, how do you handle AJAX requests to control asynchronous requests?
A: excess use of anything degrades performance; using AJAX where necessary will improve performance, especially if the alternative ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When is it appropriate to use Time#utc in Rails 2.1? I am working on a Rails application that needs to handle dates and times in users' time zones. We have recently migrated it to Rails 2.1 and added time zone support, but there are numerous situations in which we use Time#utc and then compare against that time. Wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to draw in the nonclient area? I'd like to be able to do some drawing to the right of the menu bar, in the nonclient area of a window.
Is this possible, using C++ / MFC?
A: In order to draw in the non-client area, you need to get the "window" DC (rather than "client" DC), and draw in the "window" DC.
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What's the definitive Java Swing starter guide and reference? Obviously the Java API reference, but what else is there that you all use?
I've been doing web development my entire career. Lately I've been messing around a lot with Groovy and I've decided to do a small application in Griffon just to experiment more... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I create a Netflix-style iframe overlay without a huge javascript library? I'm trying to use a link to open an overlay instead of in a separate popup window. This overlay should consist of a semi-transparent div layer that blocks the whole screen from being clicked on. I also aim to disable scrolling at this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ResourceManager and Unit Testing I was curious if anyone had any problems creating unit tests around using the ResourceManager. I am using Visual Studio test edition and it appears that the satellite assemblies don't get loaded during the test. When I try to get a resource for another culture, the test always fail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: CSS Reset, default styles for common elements After applying a CSS reset, I want to get back to 'normal' behavior for html elements like: p, h1..h6, strong, ul and li.
Now when I say normal I mean e.g. the p element adds spacing or a carriage return like result when used, or the size of the font and boldness for a h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Scalable socket event queue processing My C# class must be able to process a high volume of events received via a tcp stream style socket connection. The volume of event messages received from the tcp server by the class's socket is completely variable. For instance, sometimes it will only receive one event message ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Associating a ListView with a collection of objects How can you use a ListView to show the user a collection of objects, and to manage those objects?
A: For the purpose of argument, here's our design goal: We've got a "monster" object, and that "monster" will have several "powers." The user interacts with the power... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multi-purpose 3d Artificial Life Engine? Studying emergence, it's quite useful to have a development framework to build upon to quickly test out new ideas. 3d with physics collision would be nice, and open-source would be a big plus. For this purpose 'breve' looks quite promising, but I was wondering if anyone had u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Which, and why, do you prefer Exceptions or Return codes? My question is what do most developers prefer for error handling, Exceptions or Error Return Codes. Please be language(or language family) specific and why you prefer one over the other.
I'm asking this out of curiosity. Personally I prefer Error Return Codes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: Message passing between objects - How to refer to the target object? The most basic task in an object oriented environment is executing a method on an object. To do this, you have to have a reference to the object on which you are invoking the method. Is the proper way to establish this reference to pass the object ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why do C# and VB have Generics? What benefit do they provide? Generics, FTW From Wikipedia:
Generic programming is a style of
computer programming in which
algorithms are written in terms of
to-be-specified-later types that are
then instantiated when needed for
specific types provided as parameters
and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Private vs. Public members in practice (how important is encapsulation?) One of the biggest advantages of object-oriented programming is encapsulation, and one of the "truths" we've (or, at least, I've) been taught is that members should always be made private and made available via accessor and mutator methods, thu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Maintaining Automated Browser UI Testing What's the best way to manage a slew of browser UI tests? I'm looking for an approach that may have worked for you in the past when dealing with numerous automated browser tests. Obvious answers such as "they should be refactored into lower-level UI tests" aren't what I'm loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the difference between, IsAssignableFrom and GetInterface? Using reflection in .Net, what is the differnce between:
if (foo.IsAssignableFrom(typeof(IBar)))
And
if (foo.GetInterface(typeof(IBar).FullName) != null)
Which is more appropriate, why?
When could one or the other fail?
A: If you just want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What Are Some Decent ISPs That Host Subversion I want a recommendation on an ISP which has Subversion installed so I can get a repository started. So far I found out discount.asp doesn't have that on their servers and will not support it. So I'm looking for a recommendation
A: What's your price range?
Do you want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How important do you think Progressive Enhancement is? Progressive Enhancement is a web development methodology that not only allows greater portability and accessibility but in my opinion, makes the development process easier.
What I want is to know what the rest of the community think of this approach.
In particul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get the "Command Buffer" in Solaris 10? When working on a linx CShell u get the option to press the up / down arrows to select the last command/s typed or the Command Buffer. This even works on Windows.
However this is not functional when working on Solaris, to which i recently switched. I am guessing that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I create a directory listing of a subversion repository I have a client that is asking me to give them a listing of every file and folder in the source code (and then a brief explanation of the source tree). Is there an easy way to create some sort of decently formatted list like this from a subversion repos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What JavaScript Repository should I use? Many languages have standard repositories where people donate useful libraries that they want others to have access to. For instance Perl has CPAN, PHP has PEAR, Ruby has RubyGems, and so on. What is the best option for JavaScript?
I ask because a few months ago I ported St... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is it safe to add delegates to events with keyword new? One thing I am concerned with is that I discovered two ways of registering delegates to events.
*
*OnStuff += this.Handle;
*OnStuff += new StuffEventHandler(this.Handle);
The first one is clean, and it makes sense doing "OnStuff -= this.Handle;" to unreg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What problems do you encounter with VFP apps in a 64 bit environment? I know that there are issues with the VFP OLEDB provider on 64 bit machines. ... but what issues do you encounter while actually running a VFP application - on a 64 bit machine? Has anyone had any experience in this area?
My first thought was that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When to use Binary Space Partitioning, Quadtree, Octree? I have recently learned about binary space partitioning trees and their application to 3d graphics and collision detection. I have also briefly perused material relating to quadtrees and octrees. When would you use quadtrees over bsp trees, or vice versa? A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: Convert/extract phpinfo() into php.ini I am thinking along the lines of replicating a web hosts PHP setup environment for offline local development. The idea is to parse the output of phpinfo() and write any setup values it contains into a local php.ini. I would imagine everything ism included in phpinfo and that c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are some useful TextMate shortcuts? Macs are renowned (or bemoaned) for having an extensive number of shortcuts. However, OS X itself pales in comparison to the shortcut lists in TextMate and its bundles.
What are some useful keyboard shortcuts you use?
A: Control-T(ControlT): Transpose (works in most Cocoa-na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Attaching an ID/Label to LINQ to SQL generated code? I'm interested in tracing database calls made by LINQ to SQL back to the .NET code that generated the call. For instance, a DBA might have a concern that a particular cached execution plan is doing poorly. If for example a DBA were to tell a developer to address t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse text comparison order I'm using Eclipse 3.4 (on Mac) and I've got an annoyance with the text comparison having the files I'm comparing in a specific order which is not what I want.
When I compare two files it always seems to put the first file (alphabetically) on the left, and the latter one on the right, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Biggest GWT Pitfalls? I'm at the beginning/middle of a project that we chose to implement using GWT. Has anyone encountered any major pitfalls in using GWT (and GWT-EXT) that were unable to be overcome? How about from a performance perspective?
A couple things that we've seen/heard already include:
*
*Google not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/99866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "189"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.