text stringlengths 8 267k | meta dict |
|---|---|
Q: Java code to import CSV into Access I posted the code below to the Sun developers forum since I thought it was erroring (the true error was before this code was even hit). One of the responses I got said it would not work and to throw it away. But it is actually working. It might not be the best code (I am new to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create a draggable and resizable JavaScript popup window? I want to create a draggable and resizable window in JavaScript for cross browser use, but I want to try and avoid using a framework if I can.
Has anyone got a link or some code that I can use?
A: JQuery would be a good way to go. And with the Jquer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to unit test an object with database queries I've heard that unit testing is "totally awesome", "really cool" and "all manner of good things" but 70% or more of my files involve database access (some read and some write) and I'm not sure how to write a unit test for these files.
I'm using PHP and Python but I th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "170"
} |
Q: What is the proper virtual directory access permission level required for a SOAP web service? When setting up a new virtual directory for hosting a SOAP web service in IIS 6.0 on a Server 2003 box I am required to set the access permissions for the virtual directory. The various permissions are to allow/disallow th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C# Performance For Proxy Server (vs C++) I want to create a simple http proxy server that does some very basic processing on the http headers (i.e. if header x == y, do z). The server may need to support hundreds of users. I can write the server in C# (pretty easy) or c++ (much harder). However, would a C# versio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I configure an ASP.NET MVC project to work with Boo I want to build an ASP.NET MVC application with Boo instead of C#. If you know the steps to configure this type of project setup, I'd be interested to know what I need to do.
The MVC project setup is no problem. What I'm trying to figure out how to configur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Performance vs Readability Reading this question I found this as (note the quotation marks) "code" to solve the problem (that's perl by the way).
100,{)..3%!'Fizz'*\5%!'Buzz'*+\or}%n*
Obviously this is an intellectual example without real (I hope to never see that in real code in my life) implications but, when yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Understanding Interfaces I have class method that returns a list of employees that I can iterate through. What's the best way to return the list? Typically I just return an ArrayList. However, as I understand, interfaces are better suited for this type of action. Which would be the best interface to use? Also, why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Update Panel inside of a UserControl inside of a Repeater inside of another UpdatePanel Yes, it sounds crazy....It might be.
The final updatepanel does not appear to trigger anything, it just refreshes the update panels and does not call back to the usercontrol hosting it.
Any ideas?
EDIT: I got it posting back, how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NHibernate and Oracle connect through Windows Authenication How do I use Windows Authentication to connect to an Oracle database?
Currently, I just use an Oracle Username and password, however, a requirement is to give the user on install the option of selecting Windows Authentication since we offer the same as SQL.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I retrieve data sent to the web server in ASP.NET? What are the ways to retrieve data submitted to the web server from a form in the client HTML in ASP.NET?
A: You can also search through both the Form and QueryString collections at the same time so that the data will be found regardless of the the request m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Exchange (2003) how do I list the forms used in the public folder tree? Does anyone have a script or can anyone point me in the right direction to query an Exchange (2003) public folder tree to determine all the forms being used ?
I need an output of form object/display name and count for each form type in each f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a Way to use Linq to Oracle I can connect with the DataContext to the Oracle database however I get errors in running the query against the oracle database. I looked at the SQL generated and it is for MSSQL and not Oracle PSQL.
Does anybody know of a decent easy to use wrapper to use LINQ against an Orac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How can I authenticate using client credentials in WCF just once? What is the best approach to make sure you only need to authenticate once when using an API built on WCF?
My current bindings and behaviors are listed below
<bindings>
<wsHttpBinding>
<binding name="wsHttp">
<se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I use Google Web Toolkit for my new webapp? I would like to create a database backed interactive AJAX webapp which has a custom (specific kind of events, editing) calendaring system. This would involve quite a lot of JavaScript and AJAX, and I thought about Google Web Toolkit for the interface and Ruby on Rai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Compile a referenced dll Using VS2005 and VB.NET.
I have a project that is an API for a data-store that I created. When compiled creates api.dll.
I have a second project in the same solution that has a project reference to the API project which when compiled will create wrapper.dll. This is basically a wrapper for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Source Versioning for Visual Studio Express Is there any Visual Studio Express plug ins for source versioning? I am starting a project on my own and only have the Express version of Visual Studio 2008.
A: You don't really need an integration/plugin. First is not supported but there are very good alternatives to mak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to write a regular expression pattern that is capable of validating URIs? How does one go about authoring a Regular Expression that matches against all strings that are valid URIs, while failing to match against all strings that are invalid URIs?
To be specific about what I am referencing when I say URI, I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: MySQL Results to a File How do I write the results from a mysql query to file? I just need something quick. Output can be CSV, XML, HTML, etc.
A: SELECT a,b,a+b
FROM test_table
INTO OUTFILE '/tmp/result.txt'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
(the docs show INTO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Authenticating Domain Users with System.DirectoryServices Given a username and a password for a domain user, what would be the best way to authenticate that user programatically?
A: You can use some hacks to authenticate only.
Try
Dim directoryEntry as New DirectoryEntry("LDAP://DomainController:389/dc=domain,d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Fastest way to calculate primes in C#? I actually have an answer to my question but it is not parallelized so I am interested in ways to improve the algorithm. Anyway it might be useful as-is for some people.
int Until = 20000000;
BitArray PrimeBits = new BitArray(Until, true);
/*
* Sieve of Eratosthenes
* PrimeB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is there a pattern using Linq to dynamically create a filter? Is there a pattern using Linq to dynamically create a filter?
I have the need to create custom filtering on a list, in the past I would just dynamically create the SQL...it doesn't seem like this is possible with Linq.
A: Dynamically Composing Expression... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: What is the best way to share MasterPages across projects Suppose you have two seperate ASP.NET Web Application projects that both need to use a common MasterPage.
What's the best way to share the MasterPage across projects without having to duplicate code? Preferably without having to resort to source control or f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Good Mercurial repository viewer for Mac Is there a good, native Mac tool to view Mercurial repositories, similar to gitnub for Git?
A: A few months back, Dustin Sallings wrote a fork of GitNub that uses Mercurial. It's Leopard-only, but lovely.
On Tiger, the "view" exension mentioned in the other comments works o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: A WYSIWYG Markdown control for Windows Forms? [We have a Windows Forms database front-end application that, among other things, can be used as a CMS; clients create the structure, fill it, and then use a ASP.NET WebForms-based site to present the results to publicly on the Web. For added flexibility, they are someti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Register file extensions / mime types in Linux I'm developing a Linux application that has its own file format. I want my app to open when you double-click on those files.
How can I register a file extension and associate it with my application on Linux? I'm looking for a way that is standard (works with GNOME and K... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Simple password encryption What is a good, simple encryption scheme for protecting passwords in a database? I don't necessarily need anything that's hyper-secure nor do I need anything that's lightning fast, but those things would be nice. Primarily, I just want something that's easy to implement without being ter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Visual Studio 08 Spell Check Addin? If possible one that supports at least spell checking:
*
*C# string literals
*HTML content
*Comments
A: If you're using ReSharper, there's a free addon for it called Agent Smith Plugin. One of its many features is a built in spell checker, that allows fixing the spelling mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Finding City and Zip Code for a Location Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location.
(This is similar to https://stackoverflow.com/questions/23572/latitude-longitude-database, except I want to convert in the opposite direction.)
Related ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Limiting traffic to SSL version of page only We have an external service that is currently accessible via the http (port 80, non-SSL) and https (port 443, SSL) addresses.
What is the best way to limit connections to only the https address? Is it something we can do via IIS or does it have to be done via code.
Additi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: InputManager on OS X I was wondering if InputManagers are still part of Leopard and if there is a good example that would show me what are the use of it?
A: InputManagers are still available on Leopard, except:
*
*they need to be in the Local domain (/Library/InputManagers); you cannot install them per-user any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there anything similar to the OS X InputManager on Windows? Is there anything similar on Windows what would achieve the same as the InputManager on OS X?
A: I'm pretty sure Windows has an API that developers can use to create new kinds of text input systems. I gather there are a wide variety of text input syste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: querying 2 tables with the same spec for the differences I recently had to solve this problem and find I've needed this info many times in the past so I thought I would post it. Assuming the following table def, how would you write a query to find all differences between the two?
table def:
CREATE TABLE feed_tbl
(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "File Save Failed" error when working with Crystal Reports in VS2008 Occasionally while attempting to save a Crystal Report that I'm working on in VS2008, a dialog titled "File Save Failed" pops up saying "The document could not be saved in C:\Users\Phillip\AppData\Local\Temp{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.rp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is using too much static bad or good? I like to use static functions in C++ as a way to categorize them, like C# does.
Console::WriteLine("hello")
Is this good or bad? If the functions are used often I guess it doesn't matter, but if not do they put pressure on memory?
What about static const?
A: Those who say sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Pass reference to element in C# Array I build up an array of strings with
string[] parts = string.spilt(" ");
And get an array with X parts in it, I would like to get a copy of the array of strings starting at element
parts[x-2]
Other than the obvious brute force approach (make a new array and insert strings), is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What's the best way to allow a user to browse for a file in C#? What's the best way to allow a user to browse for a file in C#?
A: using (OpenFileDialog dlg = new OpenFileDialog())
{
dlg.Title = "Select a file";
if (dlg.ShowDialog()== DialogResult.OK)
{
//do something with dlg.FileName
}
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there an "exists" function for jQuery? How can I check the existence of an element in jQuery?
The current code that I have is this:
if ($(selector).length > 0) {
// Do something
}
Is there a more elegant way to approach this? Perhaps a plugin or a function?
A: You can save a few bytes by writing:
if ($(sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3104"
} |
Q: Setting up replicated repositories in Plastic SCM So we're trying to set up replicated repositories using PlasticSCM, one in the US, and one in Australia and running into a bit of a snag.
The US configuration is Active Directory, the AU configuration is User/Password. This in itself is not a big deal, I've already ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regex (C#): Replace \n with \r\n How can I replace lone instances of \n with \r\n (LF alone with CRLF) using a regular expression in C#?
I know to do it using plan String.Replace, like:
myStr.Replace("\n", "\r\n");
myStr.Replace("\r\r\n", "\r\n");
However, this is inelegant, and would destroy any "\r+\r\n" already ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: How to insert a line break in a SQL Server VARCHAR/NVARCHAR string I didn't see any similar questions asked on this topic, and I had to research this for something I'm working on right now. Thought I would post the answer for it in case anyone else had the same question.
A: I'd say
concat('This is line 1.', 0xd0a,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "670"
} |
Q: How do you configure an OpenFileDialog to select folders? In VS .NET, when you are selecting a folder for a project, a dialog that looks like an OpenFileDialog or SaveFileDialog is displayed, but is set up to accept only folders. Ever since I've seen this I've wanted to know how it's done. I am aware of the Folder... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "260"
} |
Q: How do I find the 'temp' directory in Linux? How do I find the 'temp' directory in Linux? I am writing a platform neutral C++ function that returns the temp directory. In Mac and Windows, there is an API that returns these results. In Linux, I'm stumped.
A: Check following v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Attaching to a foreign executable in Visual C++ 2003 I have an executable (compiled by someone else) that is hitting an assertion near my code. I work on the code in Visual C++ 2003, but I don't have a project file for this particular executable (the code is used to build many different tools). Is it possible to lau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I display a PDF in Adobe Flex? Looking for a way to display a PDF in Flex. I'm sure there are several ways. Looking for the easiest to maintain / integrate / most user friendly. I'm guessing it's possible to display a browser window in the app and render it, but if it goes off of IE / FireFox it's not accepta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the best way to inherit an array that needs to store subclass specific data? I'm trying to set up an inheritance hierarchy similar to the following:
abstract class Vehicle
{
public string Name;
public List<Axle> Axles;
}
class Motorcycle : Vehicle
{
}
class Car : Vehicle
{
}
abstract class Axle
{
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What control is this? ("Open" Button with Drop Down) The Open button on the open file dialog used in certain windows applications includes a dropdown arrow with a list of additional options — namely Open With...
I haven't seen this in every Windows application, so you may have to try a few to get it, but SQL Serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Process Memory Size - Different Counters I'm trying to find out how much memory my own .Net server process is using (for monitoring and logging purposes).
I'm using:
Process.GetCurrentProcess().PrivateMemorySize64
However, the Process object has several different properties that let me read the memory space used:
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Is there a lang-vb or lang-basic option for prettify.js from Google? Visual Basic code does not render correctly with prettify.js from Google.
on Stack Overflow:
Partial Public Class WebForm1
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Java Swing: Displaying images from within a Jar When running a Java app from eclipse my ImageIcon shows up just fine.
But after creating a jar the path to the image obviously gets screwed up.
Is there a way to extract an image from the jar at runtime so I can then open it up? Or, is there a better way to do this?
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Enforcing web coding standards The HTML standard defines a clear separation of concerns between CSS (presentation) and HTML (semantics or structure).
Does anyone use a coding standards document for CSS and XHTML that has clauses which help to maintain this separation? What would be good clauses to include in such a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I return a variable from a $.getJSON function I want to return StudentId to use elsewhere outside of the scope of the $.getJSON()
j.getJSON(url, data, function(result)
{
var studentId = result.Something;
});
//use studentId here
I would imagine this has to do with scoping, but it doesn't seem to work t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Accessing a Component on an inherited form from the base form A number of forms in my project inherit from a base form. It is easy to get at the Controls collection of the derived forms, but I have not found a simple way to access the Components collection, since VS marks this as private.
I assume this could be don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET - How do you Unit Test WebControls? Alright.
So I figure it's about time I get into unit testing, since everyone's been banging on about it for long enough. I've installed NUnit and gone through a few "intro to unit testing" type tutorials.
I'm currently putting together a small framework to help with the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Resources of techniques use for collision detection in 2D? What are in your opinion the best resources (books or web pages) describing algorithms or techniques to use for collision detection in a 2D environment?
I'm just eager to learn different techniques to make more sophisticated and efficient games.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Forcing the Solution Explorer to select the file in the editor in visual studio 2005 In Visual Studio 2005, whenever I would view a file in the main editor, the Solution Explorer would find and highlight that file. Some time ago, this stopped working and the Solution Explorer would do nothing.
This has become quite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Ubiquity Hack What's the most useful hack you've discovered for Mozilla's new Ubiquity tool?
A: I wrote this a few days ago: http://www.appidx.com/ubiq/stackoverflow.html
The execute portion refu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Migrating from ASP Classic to .NET and pain mitigation We're in the process of redesigning the customer-facing section of our site in .NET 3.5. It's been going well so far, we're using the same workflow and stored procedures, for the most part, the biggest changes are the UI, the ORM (from dictionaries to LINQ), and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you get a reference to the enclosing class from an anonymous inner class in Java? I'm currently creating an explicit reference to this in the outer class so that I have a name to refer to in the anonymous inner class. Is there a better way to do this?
A: I just found this recently. Use OuterClassName.this.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Constructors with the same argument type I have a Person object with two constructors - one takes an int (personId), the other a string (logonName). I would like another constructor that takes a string (badgeNumber). I know this can't be done, but seems it might be a common situation. Is there a graceful way of h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Response.Redirect using ~ Path I have a method that where I want to redirect the user back to a login page located at the root of my web application.
I'm using the following code:
Response.Redirect("~/Login.aspx?ReturnPath=" + Request.Url.ToString());
This doesn't work though. My assumption was that ASP.NET would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Lightweight rich-text XML format? I am writing a basic word processing application and am trying to settle on a native "internal" format, the one that my code parses in order to render to the screen. I'd like this to be XML so that I can, in the future, just write XSLT to convert it to ODF or XHTML or whatever.
When... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Passing around sets of data A question that has pondered me for the last while. I am primarily a .net developer who dabbles in Objective-C for iPhone and Mac.
How do you go about sending "datasets" between methods in objective-c. For example in C# you can populate a custom class with data and pass it around in a Lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C#: instantiating classes from XML What I have is a collection of classes that all implement the same interface but can be pretty wildly different under the hood. I want to have a config file control which of the classes go into the collection upon starting the program, taking something that looks like :
<class1 pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: .Net Compact Framework scrollbars - horizontal always show when vertical shows I am new to the .Net Compact Framework and have been unable to find an answer via Google. Gasp! Yes, it's true, but that is part of why StackOverflow is here, right?
I have a form that is longer than the screen, so a vertical scroll-bar a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I set ItemTemplate dynamically in WPF? Using WPF, I have a TreeView control that I want to set its ItemTemplate dynamically through procedural code. How do I do this? I assume I need to find the resource somewhere.
myTreeViewControl.ItemTemplate = ??
A: if your treeview control requires different templa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Content Type for MHT files What is the content type for MHT files?
A: Microsoft, who co-authored the spec for MHT, seem to think that it should be 'message/rfc822' on this support page.
No specific MIME type seems to be given in the spec though:
RFC2557: MIME Encapsulation of Aggregate Documents, such as HTML (MHTM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: VMWare Tools for Ubuntu Hardy I am using VMWare tools for Ubuntu Hardy, but for some reason vmware-install.pl finds fault with my LINUX headers. The error message says that the "address space size" doesn't match.
To try and remediate, I have resorted to vmware-any-any-update117, and am now getting the following erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Virtual PC for Web Development with Oracle Is anyone using Virtual PC to maintain multiple large .NET 1.1 and 2.0 websites? Are there any lessons learned? I used Virtual PC recently with a small WinForms app and it worked great, but then everything works great with WinForms. ASP.NET development hogs way mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript animation with Safari I'm trying to create web applications that use JavaScript. I'd like to be able to use animation in these applications. I've tried to use basic JavaScript, but I've decided that the best thing to do is to use a library (such as YUI or jQuery).
I'm running into a problem. On Safari,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Fast SQL Server 2005 script generation It seems like the generation of SQL scripts from the SQL Server Management Studio is terribly slow. I think that the old Enterprise Manager could run laps around the newer script generation tool. I've seen a few posts here and there with other folks complaining about the speed,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cannot access a webservice from mobile device I developed a program in a mobile device (Pocket PC 2003) to access a web service, the web service is installed on a Windows XP SP2 PC with IIS, the PC has the IP 192.168.5.2.
The device obtains from the wireless network the IP 192.168.5.118 and the program works OK, it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checklist for Database Schema Upgrades Having to upgrade a database schema makes installing a new release of software a lot trickier. What are the best practices for doing this?
I'm looking for a checklist or timeline of action items, such as
*
*8:30 shut down apps
*8:45 modify schema
*9:15 install new apps
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Problems passing special chars with observe_field I am working on a rails project. Using the tag observe_field, I am taking text typed into a text area, processing it in a control, and displaying the result in a div (very similar to the preview in stack overflow). Everything works fine until I type certain special c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Profile a rails controller action What is the best way to profile a controller action in Ruby on Rails. Currently I am using the brute-force method of throwing in puts Time.now calls between what I think will be a bottleneck. But that feels really, really dirty. There has got to be a better way.
A: Use the Benchmar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How do I add a constant column value during data transfer from CSV to SQL? I am reading in CSV file and translating it to an SQL Table. The kicker is that one of the columns in the table is of data type ID that needs to be set to a constant (in this case 2). I am not sure how to do this.
A: You can use a Derived C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is there a browser equivalent to IE's ClearAuthenticationCache? I have a few internal .net web application here that require users to "log out" of them. I know this may seem moot on an Intranet application, but nonetheless it is there.
We are using Windows authentication for our Intranet apps, so we tie in to our Ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How do threads work in Python, and what are common Python-threading specific pitfalls? I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation isn't very tho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: Do you need the .NET 1.0 framework to target the .NET 1.0 framework? I have a bunch of .NET frameworks installed on my machine.
I know that with the Java JDK, I can use the 6.0 version to target 5.0 and earlier.
Can I do something similar with the .NET framework - target 1.0 and 2.0 with the 3.0 framework?
A: Vis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best way to display a video with rounded corners in Silverlight? The MediaElement doesn't support rounded corners (radiusx, radiusy). Should I use a VideoBrush on a Rectangle with rounded corners?
A: Yeah - In a way you're both asking and answering the question yourself... But that is one of the two opti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Find and Replace with Unique I am performing a find and replace on the line feed character ( ) and replacing it with the paragraph close and paragraph open tags using the following code:
<xsl:template match="/STORIES/STORY">
<component>
<xsl:if test="boolean(ARTICLEBODY)">
<p>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a reason to use BufferedReader over InputStreamReader when reading all characters? I currently use the following function to do a simple HTTP GET.
public static String download(String url) throws java.io.IOException {
java.io.InputStream s = null;
java.io.InputStreamReader r = null;
//java.io.Bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Java: Programatic Way to Determine Current Windows User I see many similar questions, however I want to find the Username of the currently logged in user using Java.
Its probably something like:
System.getProperty(current.user);
But, I'm not quite sure.
A: The commonly available system properties are documented in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Where can I find a good ASP.NET MVC sample? I have been using Castle MonoRail for the last two years, but in a new job I am going to be the one to bring in ASP.NET MVC with me.
I understand the basics of views, actions and the like. I just need a good sample for someone with MVC experience.
Any good links besides ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Visual Studio 2008 debugging issue I'm working in VS 2008 and have three projects in one solution. I'm debugging by attaching to a .net process invoked by a third party app (SalesLogix, a CRM app).
Once it has attached to the process and I attempt to set a breakpoint in one of the projects, it doesn't set a break... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Proprietary plug-ins for GPL programs: what about interpreted languages? I am developing a GPL-licensed application in Python and need to know if the GPL allows my program to use proprietary plug-ins. This is what the FSF has to say on the issue:
If a program released under the GPL uses plug-ins, what are the requi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Quick way to find a value in HTML (Java) Using regular expressions, what is the simplest way to fetch a websites HTML and find the value inside this tag (or any attribute's value for that matter):
<html>
<head>
[snip]
<meta name="generator" value="thevalue i'm looking for" />
[snip]
A: Its amazing how noon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NHIbernate: Difference between Restriction.In and Restriction.InG When creating a criteria in NHibernate I can use
Restriction.In() or
Restriction.InG()
What is the difference between them?
A: InG is the generic equivalent of In (for collections)
The signatures of the methods are as follows (only the ICollection In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Detach an entity from JPA/EJB3 persistence context What would be the easiest way to detach a specific JPA Entity Bean that was acquired through an EntityManager. Alternatively, could I have a query return detached objects in the first place so they would essentially act as 'read only'?
The reason why I want to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: How to fetch HTML in Java Without the use of any external library, what is the simplest way to fetch a website's HTML content into a String?
A: I'm currently using this:
String content = null;
URLConnection connection = null;
try {
connection = new URL("http://www.google.com").openConnection();
Scanner scanner... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Stackoverflow Style Notifications in asp.net Ajax When you get a badge or aren't logged in to stack overflow there's a groovy little notification bar at the top of the page that lets you know there's something going on.
I know the SOflow team use JQuery, but I was wondering if anyone knew of an implementation of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Does Amazon S3 download fail sometimes? We just added an autoupdater in our software and got some bug report saying
that the autoupdate wouldn't complete properly because the downloaded file's sha1 checksum wasn't matching. We're hosted on Amazon S3...
That's either something wrong with my code or something wrong wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How stable is WPF? How stable is WPF not in terms of stability of a WPF program, but in terms of the 'stability' of the API itself.
Let me explain:
Microsoft is notorious for changing its whole methodology around with new technology. Like with the move from silverlight 1 to silverlight 2. With WPF, I know that M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to detect duplicate data? I have got a simple contacts database but I'm having problems with users entering in duplicate data. I have implemented a simple data comparison but unfortunately the duplicated data that is being entered is not exactly the same. For example, names are incorrectly spelled or one person ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I check the active solution configuration Visual Studio built with at runtime? I would like to enable/disable some code based on a custom solution configuration I added in Visual Studio. How do I check this value at runtime?
A: You can use precompiler directives within Visual Studio. The #if directive will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Where do I use delegates? What are some real world places that call for delegates? I'm curious what situations or patterns are present where this method is the best solution. No code required.
A: I had the same question as you and went to this site for an answer.
Apparently, I didn't understood it better even tho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: Best way to test if a generic type is a string? (C#) I have a generic class that should allow any type, primitive or otherwise. The only problem with this is using default(T). When you call default on a value type or a string, it initializes it to a reasonable value (such as empty string). When you call default(T) o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: Do indexes work with "IN" clause If I have a query like:
Select EmployeeId
From Employee
Where EmployeeTypeId IN (1,2,3)
and I have an index on the EmployeeTypeId field, does SQL server still use that index?
A: Usually it would, unless the IN clause covers too much of the table, and then it will do a table scan.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: Best way to fetch a varying HTML tag I'm trying to fetch some HTML from various blogs and have noticed that different providers use the same tag in different ways.
For example, here are two major providers that use the meta name generator tag differently:
*
*Blogger: <meta content='blogger' name='generator'/> (co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Good way to use table alias in Update statement? Using SqlServer, and trying to update rows from within the same table. I want to use a table alias for readability.
This is the way I am doing it at the moment:
UPDATE ra
SET ra.ItemValue = rb.ItemValue
FROM dbo.Rates ra, dbo.Rates rb
WHERE ra.ResourceID = rb.Resourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.