text stringlengths 8 267k | meta dict |
|---|---|
Q: Ruby / Rails pre-epoch dates on windows Working with dates in ruby and rails on windows, I'm having problems with pre-epoch dates (before 1970) throwing out of range exceptions. I tried using both Time and DateTime objects, but still have the same problems.
A: If you only need dates (no times), the Date class in ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get rid of VSMacros80 folder from project root? How can I have it so Visual Studio doesn't keep re-creating this folder that I never use. It's annoying ot keep looking and unnecessary.
A: Add a trailing slash to the default projects location:
Get Rid of the Annoying VSMacros80 Folder
A: Just add "/" on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Server to MySQL I have a backup of an SQL Server DB in .bak format which I've successfully managed to restore to a local instance of SQL Server Express. I now want to export both the structure and data in a format that MySQL will accept. The tools that I use for MySQL management typically allow me to import/expo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to share ASP.NET .ascx controls across different website applications? Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX controls that you want to share across these 2 applications.
What's the best way to create a "user control library", so that you can use the same control ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What are some 'good use' examples of dynamic casting? We often hear/read that one should avoid dynamic casting. I was wondering what would be 'good use' examples of it, according to you?
Edit:
Yes, I'm aware of that other thread: it is indeed when reading one of the first answers there that I asked my question!
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: WPF Listbox style with a button I have a ListBox that has a style defined for ListBoxItems. Inside this style, I have some labels and a button. One that button, I want to define a click event that can be handled on my page (or any page that uses that style). How do I create an event handler on my WPF page to hand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: PHP equivalent of .NET/Java's toString() How do I convert the value of a PHP variable to string?
I was looking for something better than concatenating with an empty string:
$myText = $myVar . '';
Like the ToString() method in Java or .NET.
A: You can use the casting operators:
$myText = (string)$myVar;
There are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "566"
} |
Q: SQL Server DateTime conversion failure I have a large table with 1 million+ records. Unfortunately, the person who created the table decided to put dates in a varchar(50) field.
I need to do a simple date comparison -
datediff(dd, convert(datetime, lastUpdate, 100), getDate()) < 31
But it fails on the convert():
Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: calculating user defined formulas (with c++) We would like to have user defined formulas in our c++ program.
e.g. The value v = x + ( y - (z - 2)) / 2. Later in the program the user would define x,y and z -> the program should return the result of the calculation. Somewhen later the formula may get changed, so the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Feasibility of GPU as a CPU? What do you think the future of GPU as a CPU initiatives like CUDA are? Do you think they are going to become mainstream and be the next adopted fad in the industry? Apple is building a new framework for using the GPU to do CPU tasks and there has been alot of success in the Nvidias CUDA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Create an Attribute to Break the Build OK, this kind of follows on from my previous question.
What I would really like to do is create some sort of attribute which allows me to decorate a method that will break the build. Much like the Obsolete("reason", true) attribute, but without falsely identifying obsolete code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Multiple classes in a header file vs. a single header file per class For whatever reason, our company has a coding guideline that states:
Each class shall have it's own header and implementation file.
So if we wrote a class called MyString we would need an associated MyStringh.h and MyString.cxx.
Does anyone else do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Does PHP have an equivalent to this type of Python string substitution? Python has this wonderful way of handling string substitutions using dictionaries:
>>> 'The %(site)s site %(adj)s because it %(adj)s' % {'site':'Stackoverflow', 'adj':'rocks'}
'The Stackoverflow site rocks because it rocks'
I love this because ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why does Visual Studio create a new .vsmdi file? If I open a solution in Visual Studio 2008 and run a unit test then VS creates a new .vsmdi file in the Solution Items folder and gives it the next number available e.g. My Solution2.vsmdi.
Any idea why VS is doing this and how I can get it to stop doing this?
A: It ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: How to select posts with specific tags/categories in WordPress This is a very specific question regarding MySQL as implemented in WordPress.
I'm trying to develop a plugin that will show (select) posts that have specific 'tags' and belong to specific 'categories' (both multiple)
I was told it's impossible because of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Do you follow the Personal Software Process? Does your organization/team follow the Team Software Process? For more information - Personal Software Process on Wikipedia and Team Software Process on Wikipedia.
I have two questions:
*
*What benefits have you seen from
these processes?
*What tools and/or
methods do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Best Apache Ant Template Every time I create a new project I copy the last project's ant file to the new one and make the appropriate changes (trying at the same time to make it more flexible for the next project). But since I didn't really thought about it at the beginning, the file started to look really ugly.
Do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I convert types in C++? I'm using two different libraries in my project, and both of them supply a basic rectangle struct. The problem with this is that there seems to be no way to insert a conversion between the types, so I can't call a function in one library with the result from a function in the other. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In ASP.NET, what are the different ways to inline code in the .aspx? Can I get a 'when to use' for these and others?
<% %>
<%# EVAL() %>
Thanks
A: You can also use
<%= Class.Method() %>
And it will print the result, just as you can do in Ruby on Rails.
A: Just want to add, there's also the resources expression
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Bash reg-exp substitution Is there a way to run a regexp-string replace on the current line in the bash?
I find myself rather often in the situation, where I have typed a long commandline and then realize, that I would like to change a word somewhere in the line.
My current approach is to finish the line, press Ctrl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Should I be doing JSPX instead of JSP? Using JDeveloper, I started developing a set of web pages for a project at work. Since I didn't know much about JDev at the time, I ran over to Oracle to follow some tutorials. The JDev tutorials recommended doing JSPX instead of JSP, but didn't really explain why. Are you deve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Java Singleton vs static - is there a real performance benefit? I am merging a CVS branch and one of the larger changes is the replacement wherever it occurs of a Singleton pattern with abstract classes that have a static initialisation block and all static methods.
Is this something that's worth keeping since it wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: cannot install ruby gems - zlib error I'm trying to install some Ruby Gems so I can use Ruby to notify me when I get twitter messages. However, after doing a gem update --system, I now get a zlib error every time I try and do a gem install of anything. below is the console output I get when trying to install ruby ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Equation (expression) parser with precedence? I've developed an equation parser using a simple stack algorithm that will handle binary (+, -, |, &, *, /, etc) operators, unary (!) operators, and parenthesis.
Using this method, however, leaves me with everything having the same precedence - it's evaluated left to rig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: Exception analysis tool for C++ I've been looking for a tool to extract exception information from a C++ program. The most wanted feature I'm looking for: I want to know all the exceptions that can be thrown from a function (which would include all the function that is called from that function recursively).
I've al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Any pitfalls developing C#/.NET code in a VM running on a Mac? I am considering buying an Apple MacBook Pro. Are there any pitfalls developing C#/.NET code in a virtual machine running on a Mac?
Also, is it better to run Vista or XP Pro for this purpose?
A: I'm developing in a Parallels VM running Windows Server 20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I maintain state between calls to a SQL Server UDF? I have a SQL script that inserts data (via INSERT statements currently numbering in the thousands) One of the columns contains a unique identifier (though not an IDENTITY type, just a plain ol' int) that's actually unique across a few different tables.
I'd lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generating an object model in Ruby from an XML DTD I have an XML document with a DTD, and would love to be able to access the XML model, something like this:
title = Thing.Items[0].Title
Is there a way, in Ruby, to generate this kind of object model based on a DTD? Or am I stuck using REXML?
Thanks!
A: if you incl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Impose a total ordering on all instances of *any* class in Java I'm unsure whether the following code would ensure all conditions given in Comparator's Javadoc.
class TotalOrder<T> implements Comparator<T> {
public boolean compare(T o1, T o2) {
if (o1 == o2 || equal(o1, o2)) return 0;
int h1 =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Free Network Monitor I am having trouble integrating two products, one of which is mine and they appear not to be talking. So I want to make sure they are communicating correctly. I had a look around for network monitor and found TCP Spy. This works but only shows 1 side of the conversation at a time (it has to run ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Web 2.0 Color Combinations What are the most user-friendly color combinations for Web 2.0 websites, such as background, button colors, etc.?
A: I've been using this free color schemer to help me determine some nice layouts. You give it a base color and it will give you a lot of complements.
EDIT: Gah! Curse you jk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How can I get notification when a mirrored SQL Server database has failed over We have a couple of mirrored SQL Server databases.
My first problem - the key problem - is to get a notification when the db fails over. I don't need to know because, erm, its mirrored and so it (almost) all carries on working automagical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Database compare tools My company has a number of relatively small Access databases (2-5MB) that control our user assisted design tools. Naturally these databases evolve over time as data bugs are found and fixed and as the schema changes to support new features in the tools. Can anyone recommend a database diff t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is "safe_eval" really safe? I'm looking for a "safe" eval function, to implement spreadsheet-like calculations (using numpy/scipy).
The functionality to do this (the rexec module) has been removed from Python since 2.3 due to apparently unfixable security problems. There are several third-party hacks out there that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Performance difference between IIf() and If In Visual Basic, is there a performance difference when using the IIf function instead of the If statement?
A: According to this guy, IIf can take up to 6x as long as If/Then. YMMV.
A: Better use If instead of IIf to use the type inference mechanism correctly (Option Inf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Proxy which requires authentication with Android Emulator Has anybody managed to get the Android Emulator working behind a proxy that requires authentication?
I've tried setting the -http-proxy argument to
http://DOMAIN/USERNAME:PASSWORD@IP:PORT
but am having no success.
I've tried following the docs to no avail. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: SQL Server 2k5 memory consumption? I have a development vm which is running sql server as well as some other apps for my stack, and I found that the other apps are performing awfully. After doing some digging, SQL Server was hogging the memory. After a quick web search I discovered that by default, it will consume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing $_POST values with cURL How do you pass $_POST values to a page using cURL?
A: Another simple PHP example of using cURL:
<?php
$ch = curl_init(); // Initiate cURL
$url = "http://www.somesite.com/curl_example.php"; // Where you want to post data
curl_setopt($ch, CURLOPT_URL,$ur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "98"
} |
Q: How do I get the path where the user installed my Java application? I want to bring up a file dialog in Java that defaults to the application installation directory.
What's the best way to get that information programmatically?
A: System.getProperty("user.dir")
gets the directory the Java VM was started from.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Comparing two XML Schemas Are there any tools to effectively compare two XML schema's? I have seen some generic XML diff tools, but I was wondering if there is anything that knows more about schemas.
A: I would look into DeltaXML. It seems to have the features you're looking for. They even have a guide on how to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Optimizing for low bandwidth I am charged with designing a web application that displays very large geographical data. And one of the requirements is that it should be optimized so the PC still on dial-ups common in the suburbs of my country could use it as well.
Now I am permitted to use Flash and/or Silverlight if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When do you use dependency injection? I've been using StructureMap recently and have enjoyed the experience thoroughly. However, I can see how one can easily get carried away with interfacing everything out and end up with classes that take in a boatload of interfaces into their constructors. Even though that real... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: If, IIf() and If() I recently asked a question about IIf vs. If and found out that there is another function in VB called If which basically does the same thing as IIf but is a short-circuit.
Does this If function perform better than the IIf function? Does the If statement trump the If and IIf functions?
A: One ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the purpose of the designer files in Visual Studio 2008 Web application projects? There is a conversion process that is needed when migrating Visual Studio 2005 web site to Visual Studio 2008 web application projects.
It looks like VS2008 is creating a .designer. file for every aspx when you right click on a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Compatability between Windows Vista and Visual Studio 2008 I am wondering if anyone else is experiencing these same issues:
My main dev machine is a Dell, running Vista Home Premium and Visual Studio 2008 - both fully patched / up-to-date.
There are some quirks, such as the play/pause media controls on my keyboard n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How would you handle errors when using jQuery.ajax()? When using jQuery's ajax method to submit form data, what is the best way to handle errors?
This is an example of what a call might look like:
$.ajax({
url: "userCreation.ashx",
data: { u:userName, p:password, e:email },
type: "POST",
beforeSend: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Corporate-Friendly Open Source Licenses What open source licenses are more corporate-friendly, i.e., they can be used in commercial products without the need to open source the commercial product?
A: The two most commonly used licenses that allow what you want are the BSD License and
MIT License. (see also the ful... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Java import/export dependencies I'm trying to find a way to list the (static) dependency requirements of a jar file, in terms of which symbols are required at run time.
I can see that the methods exported by classes can be listed using "javap", but there doesn't seem to be an opposite facility to list the 'imports'.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is GCC broken when taking the address of an argument on ARM7TDMI? My C code snippet takes the address of an argument and stores it in a volatile memory location (preprocessed code):
void foo(unsigned int x) {
*(volatile unsigned int*)(0x4000000 + 0xd4) = (unsigned int)(&x);
}
int main() {
foo(1);
while(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Most Pythonic way equivalent for: while ((x = next()) != END) What's the best Python idiom for this C construct?
while ((x = next()) != END) {
....
}
I don't have the ability to recode next().
update: and the answer from seems to be:
for x in iter(next, END):
....
A: It depends a bit what you want to do.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is it possible to use nHibernate with Paradox database? Is it possible to configure nHibernate to connect to Paradox database (*.db files)?
A: Yes, sort of.
There is no support included in the trunk, you need to write your own dialect. Or you can port the Paradox dialect created for Hibernate.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/28560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Globalization architecture I need to store products for an e-commerce solution in a database. Each product should have descriptive information, such as name, description etc.
I need any product to be localized to x number of languages.
What I've done so far, is to make any column that should be localized and nvarcha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I merge my files when the folder structure has changed using Borland StarTeam? I'm in the process of refactoring some code which includes moving folders around, and I would like to regularly merge to keep things current. What is the best way to merge after I've moved folders around in my working copy?
A: Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you set up an OpenID provider (server) in Ubuntu? I want to log onto Stack Overflow using OpenID, but I thought I'd set up my own OpenID provider, just because it's harder :) How do you do this in Ubuntu?
Edit: Replacing 'server' with the correct term OpenID provider (Identity provider would also be correct a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Why is it bad practice to make multiple database connections in one request? A discussion about Singletons in PHP has me thinking about this issue more and more. Most people instruct that you shouldn't make a bunch of DB connections in one request, and I'm just curious as to what your reasoning is. My first thought ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I support SSL Client Certificate authentication? I want to do what myopenid does -- once you've logged, you can click a button that generates you an SSL certificate; the browser then downloads this certificate and stores it. When you later go back to yourid.myopenid.com, your browser can use its stored certi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: C on Visual Studio I'm trying to learn C. As a C# developer, my IDE is Visual Studio. I've heard this is a good environment for C/C++ development. However, it seems no matter what little thing I try to do, intuition fails me. Can someone give good resources for how to either:
*
*learn the ins and out of C in Visu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Why do my exception stack traces always point to the last method line? I have a problem with my Visual Studio installation. When I got an exception I always have incorrect line numbers in it's stack trace. There are always point to last line of each method in my codebase. At the same time it's OK when I'm tracing pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is DateTime.Now the best way to measure a function's performance? I need to find a bottleneck and need to accurately as possible measure time.
Is the following code snippet the best way to measure the performance?
DateTime startTime = DateTime.Now;
// Some execution process
DateTime endTime = DateTime.Now;
TimeSpa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "493"
} |
Q: Finding controls that use a certain interface in ASP.NET Having a heckuva time with this one, though I feel I'm missing something obvious. I have a control that inherits from System.Web.UI.WebControls.Button, and then implements an interface that I have set up. So think...
public class Button : System.Web.UI.WebCont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Elastic tabstop editors and plugins What Windows code editors allow the use of elastic tabstops, either natively or through a plugin?
I know about a gedit plugin, but it only works on Linux.
A: Code Browser may be the first for windows. I would love to see this feature as a plugin for other editors as well.
A: I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Debugging Web Service with SOAP Packet I have a web service that I created in C# and a test harness that was provided by my client. Unfortunately my web service doesn't seem to be parsing the objects created by the test harness. I believe the problem lies with serializing the soap packet.
Using TCPTrace I was able ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best/a very good meta-data reader library? Right now, I'm particularly interested in reading the data from MP3 files (ID3 tags?), but the more it can do (eg EXIF from images?) the better without compromising the ID3 tag reading abilities.
I'm interested in making a script that goes through my media (righ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best way to extract data from a FileMaker Pro database in a script? My job would be easier, or at least less tedious if I could come up with an automated way (preferably in a Python script) to extract useful information from a FileMaker Pro database. I am working on Linux machine and the FileMaker database is on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to avoid OutOfMemoryError when using Bytebuffers and NIO? I'm using ByteBuffers and FileChannels to write binary data to a file. When doing that for big files or successively for multiple files, I get an OutOfMemoryError exception.
I've read elsewhere that using Bytebuffers with NIO is broken and should be avoid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Process.StartTime Access Denied My code needs to determine how long a particular process has been running. But it continues to fail with an access denied error message on the Process.StartTime request. This is a process running with a User's credentials (ie, not a high-privilege process). There's clearly a security ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Eclipse 3.2.2 content assist not finding classes in the project In Eclipse 3.2.2 on Linux content assist is not finding classes within the same project. Upgrading above 3.2 is not an option as SWT is not available above 3.2 for Solaris.
I have seen suggestions to clean the workspace, reopen the workspace, run eclips... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a simple way to make html textarea and input type text equally wide? Is there a simple way of getting a HTML textarea and an input type="text" to render with (approximately) equal width (in pixels), that works in different browsers?
A CSS/HTML solution would be brilliant. I would prefer not to have to use J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Which PHP opcode cacher should I use to improve performance? I'm trying to improve performance under high load and would like to implement opcode caching. Which of the following should I use?
*
*APC - Installation Guide
*eAccelerator - Installation Guide
*XCache - Installation Guide
I'm also open to any other a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Best way to unit test ASP.NET MVC action methods that use BindingHelperExtensions.UpdateFrom? In handling a form post I have something like
public ActionResult Insert()
{
Order order = new Order();
BindingHelperExtensions.UpdateFrom(order, this.Request.Form);
this.orderService.Save(o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get `df` to show updated information on FreeBSD I recently ran out of disk space on a drive on a FreeBSD server. I truncated the file that was causing problems but I'm not seeing the change reflected when running df. When I run du -d0 on the partition it shows the correct value. Is there any way to force this inf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The best way to get a count of IEnumerable Whats the best/easiest way to obtain a count of items within an IEnumerable collection without enumerating over all of the items in the collection?
Possible with LINQ or Lambda?
A: Use this.
IEnumerable list =..........;
list.OfType<T>().Count()
it will return the count.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Any good Subversion virtual appliance recommendations? I'm looking for a quick-and-dirty solution to this, I have to set up a Subversion server really quickly, like by the end of the day tomorrow. My initial thought was to just download a virtual appliance that we could load onto our host machine. The problem I am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using Visual Studio 2008 Web Deployment projects - getting an error finding aspnet_merge.exe I recently upgraded a VS2005 web deployment project to VS2008 - and now I get the following error when building:
The specified task executable location "bin\aspnet_merge.exe" is invalid.
Here is the source of the error (fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Simple Object to Database Product I've been taking a look at some different products for .NET which propose to speed up development time by providing a way for business objects to map seamlessly to an automatically generated database. I've never had a problem writing a data access layer, but I'm wondering if this ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: vim commands in Eclipse I have been doing some java development lately and have started using Eclipse. For the most part, I think it is great, but being a C/C++ guy used to doing all of his editing in vim, I find myself needlessly hitting the Esc key over and over.
It would be really nice if I got all the nice feat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: What refactoring tools do you use for Python? I have a bunch of classes I want to rename. Some of them have names that are small and that name is reused in other class names, where I don't want that name changed. Most of this lives in Python code, but we also have some XML code that references class names.
Simple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: PAD (Portable Application Description) files for shareware / freeware I've been told that I should include PAD files with the freeware applications I distribute so hosting sites can list the information correctly and check for updates, etc.
Can you give me some info on using PAD files? Here are general questions whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to find out which CVS tags cover which files and paths? There is a legacy CVS repository, which contains a large number of directories, sub-directories, and paths. There is also a large number of branches and tags that do not necessarilly cover all paths & files - usually a subset. How can I find out, which bran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Windows Mobile - What scripting platforms are available? We have a number of users with Windows Mobile 6 and need to apply minor changes. eg. update a registry setting. One option is push and execute an executable file using our device management software.
I'd like this to be a little more friendly for the admins wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: XML => HTML with Hpricot and Rails I have never worked with web services and rails, and obviously this is something I need to learn.
I have chosen to use hpricot because it looks great.
Anyway, _why's been nice enough to provide the following example on the hpricot website:
#!ruby
require 'hpricot'
require 'open-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What exactly is Microsoft Expression Studio and how does it integrate with Visual Studio? My university is part of MSDNAA, so I downloaded it a while back, but I just got around to installing it. I guess part of it replaces FrontPage for web editing, and there appears to be a video editor and a vector graphics edito... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Java and manually executing finalize If I call finalize() on an object from my program code, will the JVM still run the method again when the garbage collector processes this object?
This would be an approximate example:
MyObject m = new MyObject();
m.finalize();
m = null;
System.gc()
Would the explicit call to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What causes Visual Studio to fail to load an assembly incorrectly? I had been happily coding along on a decent sized solution (just over 13k LOC, 5 projects) which utilizes Linq to Sql for it's data access. All of sudden I performed a normal build and I received a sweet, sweet ambiguous message:
Error 1 Build failed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Scrum - How to get better input from the functional/commercial team We are a small team of 3 developers (2 experienced but new to this particular business sector) developing a functionally complex product. We're using Scrum and have a demo at the end of each sprint. Its clear that the functional team have plenty ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Can SlickEdit automatically update its tag files? I prefer SlickEdit for my IDE but the only way I can get it to update the tag files to incorporate code changes is to recreate the project and/or run start a re-tag manually. Is there a way to setup Slick Edit so that it automatically incorporates changes in the code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Coolest C# LINQ/Lambdas trick you've ever pulled? Saw a post about hidden features in C# but not a lot of people have written linq/lambdas example so... I wonder...
What's the coolest (as in the most elegant) use of the C# LINQ and/or Lambdas/anonymous delegates you have ever saw/written?
Bonus if it has went into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Why does SQL Server work faster when you index a table after filling it? I have a sproc that puts 750K records into a temp table through a query as one of its first actions. If I create indexes on the temp table before filling it, the item takes about twice as long to run compared to when I index after filling the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Determine Parent Node Of DOMElement I'm translating my C# code for YouTube video comments into PHP. In order to properly nest comment replies, I need to re-arrange XML nodes. In PHP I'm using DOMDocument and DOMXPath which closely corresponds to C# XmlDocument. I've gotten pretty far in my translation but now I'm st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Why doesn't **sort** sort the same on every machine? Using the same sort command with the same input produces different results on different machines. How do I fix that?
A: This can be the result of locale differences:
$ echo 'CO2_
CO_' | env LC_ALL=C sort
CO2_
CO_
$ echo 'CO2_
CO_' | env LC_ALL=en_US sort
CO_
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: .NET Compiler -- DEBUG vs. RELEASE For years I have been using the DEBUG compiler constant in VB.NET to write messages to the console. I've also been using System.Diagnostics.Debug.Write in similar fashion. It was always my understanding that when RELEASE was used as the build option, that all of these statements ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Datatypes for physics I'm currently designing a program that will involve some physics (nothing too fancy, a few balls crashing to each other)
What's the most exact datatype I can use to represent position (without a feeling of discrete jumps) in c#?
Also, what's the smallest ammount of time I can get between t and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: SQLServer Get Results Where Value Is Null I have an SQL server database that I am querying and I only want to get the information when a specific row is null. I used a where statement such as:
WHERE database.foobar = NULL
and it does not return anything. However, I know that there is at least one result because I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best JavaScript compressor What is the the best JavaScript compressor available? I'm looking for a tool that:
*
*is easy to use
*has a high compression rate
*Produce reliable end results (doesn't mess up the code)
A: I use ShrinkSafe from the Dojo project - it is exceptional because it actually uses a JavaScr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "174"
} |
Q: Best architecture for handling file system changes? Here is the scenario:
I'm writing an app that will watch for any changes in a specific directory. This directory will be flooded with thousands of files a minute each with an "almost" unique GUID. The file format is this:
GUID.dat where GUID == xxxxxxxxxxxxxxxxxxxx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Expanding Virtual Disk Hey everyone, I'm using Virtual PC and working with a virtual hard disk (*.vhd) that is only sized at 8.2 GB. I would like to double the size to something like 16-20GB. I see options for compacting the VHD but nothing to expand it. It's set to "dynamically expand" but I'm installing some softw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why do you not explicitly call finalize() or start the garbage collector? After reading this question, I was reminded of when I was taught Java and told never to call finalize() or run the garbage collector because "it's a big black box that you never need to worry about". Can someone boil the reasoning for this dow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Guide to choosing between REST vs SOAP services? Does anyone have links to documentation or guides on making the decision between REST vs. SOAP? I understand both of these but am looking for some references on the key decision points, eg, security, which may make you lean towards one or the other.
A: Google first h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: CPU utilization by database? Is it possible to get a breakdown of CPU utilization by database?
I'm ideally looking for a Task Manager type interface for SQL server, but instead of looking at the CPU utilization of each PID (like taskmgr) or each SPID (like spwho2k5), I want to view the total CPU utilization of each ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: What's the best way to use web services in python? I have a medium sized application that runs as a .net web-service which I do not control,
and I want to create a loose pythonic API above it to enable easy scripting.
I wanted to know what is the best/most practical solution for using web-services in python.
Edit:
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.