text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I HTML Encode all the output in a web application? I want to prevent XSS attacks in my web application. I found that HTML Encoding the output can really prevent XSS attacks. Now the problem is that how do I HTML encode every single output in my application? I there a way to automate this?
I appreciate answers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Alternatives to XCopy for copying lots of files? The situation: I have a pieceofcrapuous laptop. One of the things that make it pieceofcrapuous is that the battery is dead, and the power cable pulls out of the back with little effort.
I recently received a non-pieceofcrapuous laptop, and I am in the process of copyi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to log in T-SQL I'm using ADO.NET to access SQL Server 2005 and would like to be able to log from inside the T-SQL stored procedures that I'm calling. Is that somehow possible?
I'm unable to see output from the 'print'-statement when using ADO.NET and since I want to use logging just for debuging the ideal solut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How would you design a very "Pythonic" UI framework? I have been playing with the Ruby library "shoes". Basically you can write a GUI application in the following way:
Shoes.app do
t = para "Not clicked!"
button "The Label" do
alert "You clicked the button!" # when clicked, make an alert
t.replace "Click... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Open source PDF library for C/C++ application? I want to be able to generate PDF output from my (native) C++ Windows application. Are there any free/open source libraries available to do this?
I looked at the answers to this question, but they mostly relate to .Net.
A: jagpdf seems to be one of them. It is written ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "98"
} |
Q: Interview questions: WPF Developer What should every WPF developer know?
Entry Level
*
*Strong .NET 2.0 Background & willing to learn!
*Explain dependency properties?
*What's a style?
*What's a template?
*Binding
*Differences between base classes: Visual, UIElement, FrameworkElement, Control
*Visual vs Logi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "183"
} |
Q: Databinding an enum property to a ComboBox in WPF As an example take the following code:
public enum ExampleEnum { FooBar, BarFoo }
public class ExampleClass : INotifyPropertyChanged
{
private ExampleEnum example;
public ExampleEnum ExampleProperty
{ get { return example; } { /* set and notify */; } }... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "275"
} |
Q: Copy the entire contents of a directory in C# I want to copy the entire contents of a directory from one location to another in C#.
There doesn't appear to be a way to do this using System.IO classes without lots of recursion.
There is a method in VB that we can use if we add a reference to Microsoft.VisualBasic:
ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "610"
} |
Q: How do I get raw logs from Google Analytics? Is it possible to obtain raw logs from Google Analytic? Is there any tool that can generate the raw logs from GA?
A: No. But why don't you just use your webserver's logs? The value of GA is not in the data they collect, but the aggregation/analysis. That's why it's not c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is the best way to do per-user database connections in Rails What is the best way to do per-user database connections in Rails?
I realize this is a poor Rails design practice, but we're gradually replacing an existing web application that uses one database per user. A complete redesign/rewrite is not feasible.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Push or Pull for a near real time automation server? We are currently developing a server whereby a client requests interest in changes to specific data elements and when that data changes the server pushes the data back to the client. There has vigorous debate at work about whether or not it would be better for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SDK for writing DVD's I need to add DVD writing functionality to an application I'm working on. However it needs to be able to write out files that are being grabbed "live" from a camera, over a long period of time. I can't wait until all the files are captured before I start writing them to the DVD, I need to write... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you paste multiple tabbed lines into Vi? I want to paste something I have cut from my desktop into a file open in Vi.
But if I paste the tabs embed on top of each other across the page.
I think it is some sort of visual mode change but can't find the command.
A: If you're using plain vi:
You probably have au... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Copy files on Windows Command Line with Progress I need to copy files using Windows command-line (available on XP Pro or later by default) and show progress during the process.
The progress indicator could be in a terminal or a GUI window. It is intended to be used during batch file scripting.
A: I used the copy co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: What tool do you use for counting lines of source code in Visual Studio Projects? I know there are quite a few line count tools around. Is there something simple that's not a part some other big package that you use ?
A: Slick Edit Gadgets has a nice report breaking it down by lines of code, whitespace and comments... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Retrieving the associated shared service provider's name? How do you programmatically retrieve the name of a shared services provider that's associated with a specific Sharepoint web application?
I have a custom solution that needs to:
*
*Enumerate all web applications that it's deployed to
*Figure out the Share... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript syntax highlighting in vim Has anyone else found VIM's syntax highlighting of Javascript sub-optimal? I'm finding that sometimes I need to scroll around in order to get the syntax highlighting adjusted, as sometimes it mysteriously drops all highlighting.
Are there any work-arounds or ways to fix this? I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: ASP.NET Custom Controls and "Dynamic" Event Model OK, I am not sure if the title it completely accurate, open to suggestions!
I am in the process of creating an ASP.NET custom control, this is something that is still relatively new to me, so please bear with me.
I am thinking about the event model. Since we are not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ambiguity in Left joins (oracle only?) My boss found a bug in a query I created, and I don't understand the reasoning behind the bug, although the query results prove he's correct. Here's the query (simplified version) before the fix:
select PTNO,PTNM,CATCD
from PARTS
left join CATEGORIES on (CATEGORIES.CATCD=PARTS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Precompiled headers with GCC How can I get precompiled headers working with GCC?
I have had no luck in my attempts and I haven't seen many good examples for how to set it up. I've tried on Cygwin GCC 3.4.4 and using 4.0 on Ubuntu.
A: Call GCC the same way as if you call it for your source file, but with a header f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "102"
} |
Q: Can I set a breakpoint on 'memory access' in GDB? I am running an application through gdb and I want to set a breakpoint for any time a specific variable is accessed / changed. Is there a good method for doing this? I would also be interested in other ways to monitor a variable in C/C++ to see if/when it changes.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "266"
} |
Q: Rectangle functions in emacs I've read in several places that the rectangle functions in emacs are very useful. I've read a bit about them, and I can't quite figure why. I mean, when you want to kill a paragraph, you mark the first row/column and then the last one, and that's actually a rectangle, right? But you ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I enable line numbers in VS2008? I can't seem to find that option.
Surely it's in there?
A: Go to Tools - Options - Text Editor - All Languages - General, and check Line numbers to show line numbers for all files.
If you just want to see (or not see) the line numbers of a specific file, you can override th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Should I use multiple assemblies for an isolated ASP.NET web application? Coming from a corporate IT environment, the standard was always creating a class library project for each layer, Business Logic, Data Access, and sometimes greater isolation of specific types.
Now that I am working on my own web application pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Drilling down in VisualVM I just installed Java 1.6_07 so I could try profiling with VisualVM. It tells me that my app is spending 60% of its time in sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
How do I find out what it was doing during that time? How much of the time was it waiting for something to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Converting SVG to PNG using C# I've been trying to convert SVG images to PNG using C#, without having to write too much code. Can anyone recommend a library or example code for doing this?
A: There is a much easier way using the library http://svg.codeplex.com/ (Newer version @GIT, @NuGet). Here is my code
var byt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: Nested SQL Server transaction performing cascade delete Suppose I have a table called Companies that has a DepartmentID column. There's also a Departaments table that has as EmployeeID column. Of course I have an Employee table as well. The problem is that I want to delete a company, so first i have to delete all th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET how to Render a control to HTML? I have any ASP.NET control. I want the HTML string how to do I get the HTML string of the control?
A: If your control is a web user control, this is how you can get to the HTML it emits from another page or handler:
public void GetHtmlFromMySweetControl(HttpContext context)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Is there a keyboard shortcut for "Build Page" in Visual Studio 2005? "Build Page" is one of the items you can add to your toolbar to compile just the ASPX page or ASCX control you are working on. Is there a keyboard shortcut for it?
A: I always use Ctrl + Shift + B, which rebuilds the entire solution.
You could al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to permanently remove a breakpoint in Visual Studio 2005 /2008 (ASP.NET, C#) Often, when I have a breakpoint on some line in Visual Studio, The program will run and stop there. great. I will then click the red circle (or press F9) to remove it. Obviously I don't want my program to keep stopping there. The proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I toggle Caps Lock in VB.NET? Using VB.NET, how do I toggle the state of Caps Lock?
A: Try this:
Public Class Form1
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer)
Private Sub Form1_Load(ByVal sender As Sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JComboBox Selection Change Listener? I'm trying to get an event to fire whenever a choice is made from a JComboBox.
The problem I'm having is that there is no obvious addSelectionListener() method.
I've tried to use actionPerformed(), but it never fires.
Short of overriding the model for the JComboBox, I'm out of id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: Access to Result sets from within Stored procedures Transact-SQL SQL Server I'm using SQL Server 2005, and I would like to know how to access different result sets from within transact-sql. The following stored procedure returns two result sets, how do I access them from, for example, another stored procedure?
CREAT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Best Way to Unit Test a Website With Multiple User Types with PHPUnit I'm starting to learn how to use PHPUnit to test the website I'm working on. The problem I'm running into is that I have five different user types defined and I need to be able to test every class with the different types. I currently have a use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get the current state of Caps Lock in VB.NET? How do I find out whether or not Caps Lock is activated, using VB.NET?
This is a follow-up to my earlier question.
A: I'm not an expert in VB.NET so only PInvoke comes to my mind:
Declare Function GetKeyState Lib "user32"
Alias "GetKeyState" (ByValnVirtKey ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the reasoning behind the Interface Segregation Principle? The Interface Segregation Principle (ISP) says that many client specific interfaces are better than one general purpose interface. Why is this important?
A: It simplifies the interface that any one client will use and removes dependencies that they m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Enforce SSL in code in an ashx handler I have a site, which contains several ashx handlers, on a couple of the handlers I want to reject non-SSL requests. Is there a way that I can do this in code?
A: If you must do it programmatically, a way I've done it in the past is to inspect the url and look for "https" in it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I use a start commit hook in TortoiseSVN to setup a custom log entry? I'd like to automate TortoiseSVN as part of a commit process.
Specifically I'd like to dynamically create a log entry for the commit dialog.
I know that I can launch the commit dialog either from the commandline or by right clicking on a fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to check which locale is a .NET application running under, without having access to its sourcecode? Context:
I'm in charge of running a service written in .NET. Proprietary application. It uses a SQL Server database. It ran as a user member of the Administrators group in the local machine. It worked alright bef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the meaning and reasoning behind the Open/Closed Principle? The Open/Closed Principle states that software entities (classes, modules, etc.) should be open for extension, but closed for modification. What does this mean, and why is it an important principle of good object-oriented design?
A: Open Closed Pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Replacing plain text password for app We are currently storing plain text passwords for a web app that we have.
I keep advocating moving to a password hash but another developer said that this would be less secure -- more passwords could match the hash and a dictionary/hash attack would be faster.
Is there any tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I do a simple 'Find and Replace" in MsSQL? Question is pretty self explanitory. I want to do a simple find and replace, like you would in a text editor on the data in a column of my database (which is MsSQL on MS Windows server 2003)
A: This pointed me in the right direction, but I have a DB that originated ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Save each sheet in a workbook to separate CSV files How do I save each sheet in an Excel workbook to separate CSV files with a macro?
I have an excel with multiple sheets and I was looking for a macro that will save each sheet to a separate CSV (comma separated file). Excel will not allow you to save all sheets to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: SqlServer Express slow performance I am stress testing a .NET web application. I did this for 2 reasons: I wanted to see what performance was like under real world conditions and also to make sure we hadn't missed any problems during testing. We had 30 concurrent users in the application using it as they would duri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is Adobe Flex? Is it just Flash II? Question
Alright, I'm confused by all the buzzwords and press release bingo going on.
*
*What is the relationship between flash and flex:
*
*Replace flash (not really compatible)
*Enhance flash
*The next version of flash but still basically compatible
*Separate techn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: Does Windows Server 2003 SP2 tell the truth about Free System Page Table Entries? We have some Win32 console applications running on Windows Server 2003 Service Pack 2 that regularly fail with this:
Error 1450 (ERROR_NO_SYSTEM_RESOURCES): "Insufficient system resources exist to complete the requested service."
All... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the difference between the WPF TextBlock element and Label control? Visually both of the following snippets produce the same UI. So why are there 2 controls..
Snippet1
<TextBlock>Name:</TextBlock>
<TextBox Name="nameTextBox" />
Snippet2
<Label>Name:</Label>
<TextBox Name="nameTextBox" />
(Well I am gonna ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: Best way to write a conversion function Let's say that I'm writing a function to convert between temperature scales. I want to support at least Celsius, Fahrenheit, and Kelvin. Is it better to pass the source scale and target scale as separate parameters of the function, or some sort of combined parameter?
Example 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Are you fluent in Unicode yet? Almost 5 years ago Joel Spolsky wrote this article, "The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)".
Like many, I read it carefully, realizing it was high-time I got to grips with this "replacement for ASCI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can I convert the following code to use generics? I'm converting an application to use Java 1.5 and have found the following method:
/**
* Compare two Comparables, treat nulls as -infinity.
* @param o1
* @param o2
* @return -1 if o1<o2, 0 if o1==o2, 1 if o1>o2
*/
protected static int nullCom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: VS 2005 Installer Project Version Number I am getting this error now that I hit version number 1.256.0:
Error 4 Invalid product version '1.256.0'. Must be of format '##.##.####'
The installer was fine with 1.255.0 but something with 256 (2^8) it doesn't like. I found this stated on msdn.com:
The Version propert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What GUI should I run with JUnit(similar to NUnit gui) What GUI should use to run my JUnit tests, and how exactly do I do that? My entire background is in .NET, so I'm used to just firing up my NUnit gui and running my unit tests. If the lights are green, I'm clean.
Now, I have to write some Java code and want to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What platforms JavaFX is/will be supported on? I have read about JavaFX, and like all new technologies I wanted to get my hands "dirty" with it. However, although it talks of multiplatform support, I can't find specifics on this.
What platforms support a JavaFX application? All those with Java SE? ME? Does it depend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What do I need to know to globalize an asp.net application? I'm writing an asp.net application that will need to be localized to several regions other than North America. What do I need to do to prepare for this globalization? What are your top 1 to 2 resources for learning how to write a world ready application.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Bug template in Bugzilla Is there any way to enforce a template in Bugzilla to guide users fill in bugs descriptions ?
Actually, i'd like to put some markup texts in the bug description field and avoid the creation of custom fields.
I've installed version 3.2rc1.
A: Indeed, just check ../enter_bug.cgi?format=guided... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Subversion Client-Side application Which standalone Windows GUI application do you recommend for use for accessing a Subversion repository?
Edit: A lot of people are mentioning Tortoise, however I am looking for an application not a shell extension. Also people are questioning my reasoning behind not wanting to use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Set Google Chrome as the debugging browser in Visual Studio When I press F5 in Visual Studio 2008, I want Google Chrome launched as the browser that my ASP.NET app runs in. May I know how this can be done?
A: Right click on an .aspx file and click "Browse with..." then select Chrome and click "Set as Default." You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: How do you declare a Predicate Delegate inline? So I have an object which has some fields, doesn't really matter what.
I have a generic list of these objects.
List<MyObject> myObjects = new List<MyObject>();
myObjects.Add(myObject1);
myObjects.Add(myObject2);
myObjects.Add(myObject3);
So I want to remove objects fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: What's the difference between the inner workings of Java's JVM and .NET's CLR? What's the difference between the inner workings of Java's JVM and .NET's CLR?
Perhaps a starting point would be, are they basically the same thing in their respective environments (Java > JVM > Machine code) (C# > CLR > IL).
Update: Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How do I disable validation in Web Data Administrator? I'm trying to run some queries to get rid of XSS in our database using Web Data Administrator but I keep running into this Potentially Dangerous Request crap.
How do I disable validation of the query in Web Data Administrator?
A: Go into the install directory o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF Service support file jsdebug fails to load I have a WCF service that gets called from client side JavaScript. The call fails with a Service is null JavaScript error. WebDevelopment helper trace shows that the calls to load the jsdebug support file results in a 404 (file not found) error.
Restarting IIS or clear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the best way to keep an asp:button from displaying it's URL on the status bar? What is the best way to keep an asp:button from displaying it's URL on the status bar of the browser? The button is currently defines like this:
<asp:button id="btnFind"
runat="server"
Text="Find Info"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sharepoint 2007 with MS Office 2007 footers We had a need for a document management solution and were hoping SharePoint 2007 would satisfy our needs. We felt our needs were relatively simple. We needed to manage versioning, have searching capabilities, and having an approval workflow.
SharePoint handled these three ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do I need to copy the .compiled files to the production server? I'm using a deploy project to deploy my ASP.net web application.
When I build the deploy project, all the .compiled files are re-created.
Do I need to FTP them to the production web server?
If I do a small change do I need to copy all the web site again... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Developing drivers with no info How does the open-source/free software community develop drivers for products that offer no documentation?
A: How do you reverse engineer something?
*
*You observe the input and output, and develop a set of rules or models that describe the operation of the object.
Example:
Let'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How are Mocks meant to be used? When I originally was introduced to Mocks I felt the primary purpose was to mock up objects that come from external sources of data. This way I did not have to maintain an automated unit testing test database, I could just fake it.
But now I am starting to think of it differently. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How can I tab accross a ButtonBar component in Flex? I have a button bar inf flex along with several other input controls, I have set the tabIndex property for each control and all goes well until I tab to the ButtonBar.
The ButtonBar has 3 buttons but tabbing to it, only the first button gets focus, tab again and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Data Encryption A database that stores a lot of credit card information is an inevitable part of the system we have just completed. What I want though is ultimate security of the card numbers whereby we setup a mechanism to encrypt and decrypt but of ourselves cannot decrypt any given number.
What I am after is a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do you change the displayed order of ActiveScaffold "actions"? I am using ActiveScaffold in a Ruby on Rails app, and have replaced the default "actions" text in the table (ie. "edit", "delete", "show") with icons using CSS. I have also added a couple of custom actions with action_link.add ("move" and "copy").
Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Easiest way to add a Header and Footer to a Printing.PrintDocument (.Net 2.0)? What's the easiest way to add a header and footer to a .Net PrintDocument object, either pragmatically or at design-time?
Specifically I'm trying to print a 3rd party grid control (Infragistics GridEx v4.3), which takes a PrintDocument ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Merging two arrays in .NET Is there a built in function in .NET 2.0 that will take two arrays and merge them into one array?
The arrays are both of the same type. I'm getting these arrays from a widely used function within my code base and can't modify the function to return the data in a different format.
I'm looki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "298"
} |
Q: How Do I Load an Assembly and All of its Dependencies at Runtime in C# for Reflection? I'm writing a utility for myself, partly as an exercise in learning C# Reflection and partly because I actually want the resulting tool for my own use.
What I'm after is basically pointing the application at an assembly and choosi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How can I display simple tooltips on icons in html? I am using ActiveScaffold in a Ruby on Rails app, and to save space in the table I have replaced the default "actions" text in the table (ie. "edit", "delete", "show") with icons using CSS. I have also added a couple of custom actions with action_link.add ("move" a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I find duplicate values in a table in Oracle? What's the simplest SQL statement that will return the duplicate values for a given column and the count of their occurrences in an Oracle database table?
For example: I have a JOBS table with the column JOB_NUMBER. How can I find out if I have any duplicate JOB_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "305"
} |
Q: HTML.Button in ASP.NET MVC Starting from ASP.NET MVC Preview 3, HTML.Button ( and other related HTML controls) are no longer supported.
The question is, what is the equivalent for them? I've an app that was built using Preview 2, now I have to make it compatible with the latest CTP releases.
A: Several of the exte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What is the best way to rollout web applications? I'm trying to create a standard way of rolling out web applications for our company. Currently we do it with zip files, vbscript/javascript, and manual some steps.
For thick client installs we generate MSI installers using Wise/Wix. We don't create installers cur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatically change combobox I need to update a combobox with a new value so it changes the reflected text in it. The cleanest way to do this is after the comboboxhas been initialised and with a message.
So I am trying to craft a postmessage to the hwnd that contains the combobox.
So if I want to send a message ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In SQL, what's the difference between count(column) and count(*)? I have the following query:
select column_name, count(column_name)
from table
group by column_name
having count(column_name) > 1;
What would be the difference if I replaced all calls to count(column_name) to count(*)?
This question was inspired by Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "221"
} |
Q: How do you stop IIS SMTP Server from sending bounce emails? How do you stop the "Default SMTP Virtual Server" from sending bounce messages for email addresses that you don't have?
i.e. I'm using IIS' SMTP server to handle my email and if an email is sent unknown at mydomain.com a bounce email with 'address not known... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When/Why to use Cascading in SQL Server? When setting up foreign keys in SQL Server, under what circumstances should you have it cascade on delete or update, and what is the reasoning behind it?
This probably applies to other databases as well.
I'm looking most of all for concrete examples of each scenario, preferab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "170"
} |
Q: Hibernate - maxElementsOnDisk from EHCache to TreeCache I'm migrating a Hibernate application's cache from EHCache to JBoss TreeCache.
I'm trying to find how to configure the equivalent to maxElementsOnDisk to limit the cache size on disk, but I couldn't find anything similar to configure in a FileCacheLoader with p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wrap an Oracle schema update in a transaction I've got a program that periodically updates its database schema. Sometimes, one of the DDL statements might fail and if it does, I want to roll back all the changes. I wrap the update in a transaction like so:
BEGIN TRAN;
CREATE TABLE A (PKey int NOT NULL IDENTITY, N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to vertically center content with variable height within a div? What is the best way to vertically center the content of a div when the height of the content is variable. In my particular case, the height of the container div is fixed, but it would be great if there were a solution that would work in cases wher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "172"
} |
Q: User Initiated Kernel dump in Windows XP I remember watching a webcast from Mark Russinovich showing the sequence of keyboard keys for a user initiated kernel dump. Can somebody refresh my memory on the exact order of the keys.
Please note this is for XP.
A: http://psacake.com/web/jr.asp contains full instructions,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In SQL, what’s the difference between count(*) and count('x')? I have the following code:
SELECT <column>, count(*)
FROM <table>
GROUP BY <column> HAVING COUNT(*) > 1;
Is there any difference to the results or performance if I replace the COUNT(*) with COUNT('x')?
(This question is related to a previous one)
A: Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What online brokers offer APIs? So I'm getting really sick of E*TRADE and, being a developer, would love to find an online broker that offers an API. It would be great to be able to write my own trading tools, and maybe even modify existing ones.
Based on my research so far, I've only found one option. Interactive B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "155"
} |
Q: Visibility of template specialization of C++ function Suppose I have fileA.h which declares a class classA with template function SomeFunc<T>(). This function is implemented directly in the header file (as is usual for template functions). Now I add a specialized implementation of SomeFunc() (like for SomeFunc<int>(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Copying relational data from database to database Edit: Let me completely rephrase this, because I'm not sure there's an XML way like I was originally describing.
Yet another edit: This needs to be a repeatable process, and it has to be able to be set up in a way that it can be called in C# code.
In database A, I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a way to use GflAx to incorporate gradient colours? Ok, narrow question of the day. I'm using GflAx (from xnview) to create some graphic tiles. I would like to put some gradients in as well though.
Is there a way I can do this within this product?
There is also an SDK which is part of this product but I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wildcard Subdomain Exceptions I have a wildcard subdomain enabled and dynamically parse the URL by passing it as-is to my index.php (ex. somecity.domain.com).
Now, I wish to create a few subdomains that are static where I can install different application and not co-mingle with my current one (ex. blog.domain.com)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ColdFusion: Is it safe to leave out the variables keyword in a CFC? In a ColdFusion Component (CFC), is it necessary to use fully qualified names for variables-scoped variables?
Am I going to get myself into trouble if I change this:
<cfcomponent>
<cfset variables.foo = "a private instance variable">
<cffun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best way to migrate from VSS to Subversion? I'm a single developer looking to get off of Visual Source Safe and move to svn.
A quick search brings up several tools, but I don't see a clear winner and I can't afford to spend a lot of time testing different tools.
Has anyone done this successfully, and can recommend a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Rhino Mocks: How can I mock out a method that transforms its input? I have a Data Access Object TransactionDao. When you call TransactionDao.Save(transaction) I would like for it to setting a transaction.IsSaved=true flag (this is a simplification the actual thing I'm trying to do is not quite so banal). So when m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pex users: what are your Impressions of Pex and Automated Exploratory Testing in general? Those of you who have used Pex, what do you think its advantages and disadvantages are of Pex as a tool?
Also, what do you think are the advantages and disadvantages of "Automated Exploratory Testing" in general, as a supplemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Clean up Designer.vb file in Visual Studio 2008 I noticed that my Designer.vb file of one of my forms has a lot of controls that aren't even used or visible on my form. This is probably from copying controls from my other forms. Is there a way to clean up the Designer.vb file and get rid of all the unused controls... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is a bool read/write atomic in C# Is accessing a bool field atomic in C#? In particular, do I need to put a lock around:
class Foo
{
private bool _bar;
//... in some function on any thread (or many threads)
_bar = true;
//... same for a read
if (_bar) { ... }
}
A: As stated above, bool is atomic, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: I have a link icon next to each link. How do I exclude the link icon from images? I've got the following in my .css file creating a little image next to each link on my site:
div.post .text a[href^="http:"]
{
background: url(../../pics/remote.gif) right top no-repeat;
padding-right: 10px;
white-space: no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a mini-site in ASP.NET that works on Blackberry, Windows Mobile, and iPhone I'm working on an ASP.NET website which targets desktop browsers. We want to enable an optional mobile view (e.g. http://m.sample.com) which will offer a few simple pages which will be mostly text. There will be not need for AJAX or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I find records added to my database table in the past 24 hours? I'm using MySQL in particular, but I'm hoping for a cross-vendor solution. I'm using the NOW() function to add a timestamp as a column for each record.
INSERT INTO messages
(typeId, messageTime, stationId, message)
VALUES
(?, NOW(), ?, ?)
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Which environment, IDE or interpreter to put in practice Scheme? I've been making my way through The Little Schemer and I was wondering what environment, IDE or interpreter would be best to use in order to test any of the Scheme code I jot down for myself.
A: I would highly recommend both Chicken and Gauche for sch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.