text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I create a filter for Microsoft Excel? I want to add a file type extension to the Open Dialog of Excel (2003, 2007 if possible, 2007 only, if necessary).
When the user opens my type of file (i.e. myfile.myx), I want my application to read the file and paste the file into Excel in my own defined manner (by usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: automatic class templates? Is there a way to have the compile deduce the template parameter automatically?
template<class T>
struct TestA
{
TestA(T v) {}
};
template<class T>
void TestB(T v)
{
}
int main()
{
TestB (5);
}
Test B works fine, however when i change it to TestA it will not compile with the er... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I make mod_rewrite suppress processing more rules? Given my current .htaccess file, how would I modify it to check for an additional URL path like '/src/pub/' and rewrite it to '/' without affecting the current rewrite?
Here's the original .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Causes for web service memory leak We have a web service that uses up more and more private bytes until that application stops responding. The managed heap (mostly Gen2) will show some 200-250 MB, while private bytes shows over 1GB. What are possible causes of a memory leak outside of the managed heap?
I've alread... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ORACLE SQL: Multiple SUMS dependent on CODE in One Statement I believe there is a way to do this, but I'm not familiar with ORACLE 10g as many other people are. Here's the scenario:
I'm currently converting Classic ASP pages to ASP.net 2.0. I have a query that is creating a report. It's reporting Sales vs. Previous ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Win32: How to use RegisterTypeLib API from standard user The Win32 API call RegisterTypeLib() is used to create the registry keys necessary to register a type library.
Unfortunatly, on Windows XP, it tries to write those registry key entries to
HKEY_CLASSES_ROOT\TypeLib
rather than
HKEY_CURRENT_USER\Software\Clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Detecting an Application Focus Change / Hooking something for HWND changes? How could I detect when any application loses focus? Is there any system hooks to use? I want to pick up when ever a new application is in focus, or when one is lost. Even having the "current" HWND of the user would be good.
I am using C#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Python module to extract probable dates from strings? I'm looking for a Python module that would take an arbitrary block of text, search it for something that looks like a date string, and build a DateTime object out of it. Something like Date::Extract in Perl
Thank you in advance.
A: Why no give parsedatetime a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Getting a version 2.0 is not a compatible version when running NUnit I am trying to run the sample tests for NUnit, and I am getting an error. I have the supportedRuntime versions set to v1.0.3705 up to v2.0.50727. I have the requiredRuntime version set to v2.0.50727. Is this the wrong setting?
The following is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Style html text input size to match its contents I've asked a few other questions here about this system, so I'll try to avoid repeating a lot of detail.
The short version is that I have many html pages, each with a form that accepts input, but never saves the input anywhere- they are only ever printed out for maili... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio C# statement collapsing When editing really long code blocks (which should definitely be refactored anyway, but that's beyond the scope of this question), I often long for the ability to collapse statement blocks like one can collapse function blocks. That is to say, it would be great if the minus ico... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "182"
} |
Q: Is there a page event that runs after a webcontrol render event? I have already tried PreRenderComplete and unload is too late
A: Generally, the only event after 'Render' for a control is 'Unload'
A: protected override void Render(HtmlTextWriter writer)
{
base.Render(writer);
.... place code here
| {
"language": "en",
"url": "https://stackoverflow.com/questions/285423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to display jQuery Validation error container only on submit I am trying to make the Validation plugin work. It works fine for individual fields, but when I try to include the demo code for the error container that contains all of the errors, I have an issue. The problem is that it shows the container with all er... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Terminal Services: Get Client Name While Running As Administrator Under normal circumstances, a VB.NET application of mine can check the ClientName environmental variable to get the name of the workstation the user is connecting from.
So when WorkstationX RDPs into ServerA:
*
*ComputerName=ServerA
*ClientName=Wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Compact Framework - any implementation of the Image.FromStream (Stream, Boolean, Boolean)? In a .NET CF application I wrote, one of the features is to acquire frames from remote cameras. Frames are acquired as single jpeg images and displayed on the screen when available.
It was a good enough solution, but I don't l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can a Base64 String contain tabs? Simple yes or no question, and I'm 90% sure that it is no... but I'm not sure.
Can a Base64 string contain tabs?
A: The short answer is no - but Base64 cannot contain carriage returns either.
That is why, if you have multiple lines of Base64, you strip out any carriage returns, li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Changing a ListBox selection changes other ListBox's selection. What's going on? I've got a Windows Forms application with two ListBox controls on the same form.
They both have their SelectionMode set to 'MultiExtended'.
When I change the selection of one the selection of the other changes.
Now I thought I'd done s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to access a Python global variable from C? I have some global variables in a Python script. Some functions in that script call into C - is it possible to set one of those variables while in C and if so, how?
I appreciate that this isn't a very nice design in the first place, but I need to make a small change to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to insert rows when using a many-to-many relation Given the following, how could I insert rows in my db? (Or what should I correct in my schema?)
Models:
class Item < ActiveRecord::Base
has_many :tran_items
has_many :transactions, :through => :tran_items
end
class TranItem < Ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: regular expression to strip attributes and values from html tags Hi Guys I'm very new to regex, can you help me with this.
I have a string like this "<input attribute='value' >" where attribute='value' could be anything and I want to get do a preg_replace to get just <input />
How do I specify a wildcard to replace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Merge 2 DataTables and store in a new one If I have 2 DataTables (dtOne and dtTwo) and I want to merge them and put them in another DataTable (dtAll). How can I do this in C#? I tried the Merge statement on the datatable, but this returns void. Does Merge preserve the data? For example, if I do:
dtOne.Merge(dtT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Best way to select the row with the most recent timestamp that matches a criterion This is something that comes up so often I almost stopped thinking about it but I'm almost certain that I'm not doing this the best way.
The question: Suppose you have the following table
CREATE TABLE TEST_TABLE
(
ID INTEG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Using PrintDlg on Vista x64 does not work, works fine on 32 bit and XP We've got an app with some legacy printer "setup" code that we are still using PrintDlg for. We use a custom template to allow the user to select which printer to use for various types of printing tasks (such as reports or drawings) along with or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: windows cmd pipe not unicode even with /U switch I have a little c# console program that outputs some text using Console.WriteLine. I then pipe this output into a textfile like:
c:myprogram > textfile.txt
However, the file is always an ansi text file, even when I start cmd with the /u switch.
cmd /? says about the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SharePoint list.items.GetDataTable column names not match field names I am binding an SPGridView to a SPList. As code samples suggest, I am using the following code to create a dataview based on the list.
dim data as DataView = myList.Items.GetDataTable.DefaultView
grid.DataSource = data
etc...
What I am finding i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery Safari/Chrome incompatibility with draggable containment property This code works in Firefox, Internet Explorer, not in Safari/Chrome:
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery-ui.js"></script>
<script>
function newDiv() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Best practices for version control for Lotus Notes/Domino development Please share how you do version control for Lotus Notes/Domino development.
I want to put in our SVN repository all the scripts, views, custom forms, script libraries, etc.
Semi-automated methods are accepted as well (i.e. if I find a way to get a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What user account does trusted_connection use in sql2008? When I set trust connection = yes in my web.config, what user account does it use?
Is it the 'NT AUTHORITY\NETWORK SERVICE'?
Because I under security in Sql management, I see: NtAuthority/System only??
A: It uses the user that your Application Pool is runnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Holds value of property" in Java code I got some legacy code with that caption spread out as comment almost in every field. Also appearing is "Setter for property xyz".
Just out of curiosity, which Java tool generated this stubs?
A: Netbeans, if I remember correctly.
A: This link is to a source file for a NetBea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way to 'hide' a JavaScript file from IntelliSense in Visual Studio 2008? I have a third party JavaScript plug-in but including the file breaks IntelliSense for jQuery amongst other things. The only way I can get IntelliSense back working with jQuery is by commenting out the plug-in. Is there a way I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Asp.net Session Variable from SQL DB I created a custom login page using Forms Authentication and using a sQL DB to store user data. I am able to create a session variable from the username, but wondering if it is possible to pull a separate field and create a session variable based on that. I would like the sessi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create a 'global event' in actionscript / flex? What is the best way to create a 'global event' in flex/actionscript - preferably using a static class?
I want to raise an event to indicate that a stylesheet is loaded in order to show components that require that stylesheet. So I want each portion of the appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I extend the client's timeout on making a .NET web service post? I am making a post from a .NET console app to a .NET web service. I know that the timeout on the server side is 20 min, but if my client takes more than 100 seconds to post my data to that service then I get a timeout exception. How would I te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find html label associated with a given input Let's say I have an html form. Each input/select/textarea will have a corresponding <label> with the for attribute set to the id of it's companion. In this case, I know that each input will only have a single label.
Given an input element in javascript — via an onkeyup ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "133"
} |
Q: Last iteration of enhanced for loop in java Is there a way to determine if the loop is iterating for the last time. My code looks something like this:
int[] array = {1, 2, 3...};
StringBuilder builder = new StringBuilder();
for(int i : array)
{
builder.append("" + i);
if(!lastiteration)
builder.appe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: How to prevent HTML encoding for embedded expressions in XML Literals (VB.NET)? With the following code:
Dim x As System.Xml.Linq.XElement = _
<div>
<%= message.ToString() %>
</div>
Dim m = x.ToString()
...if message is HTML, then the < and > characters get converted to < and &rt;.
How can I force it to skip t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Moving from Desktop Development to Web Development Up till now all my programming experience has been desktop development (mostly C/C++ with OpenGL/DirectX) but I'm interested in trying my hand at some web dev.
The two directions I'm considering are Ruby on Rails and ASP.net.
Which is most widely used?
Which would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: The Big Tree: When to Release Data in an RIA This question is about a Java JTree or a Window .Net Tree (Winforms) or an Adobe Flex Tree.
In a client-server application (for Flex it's Web, really), I have a tree with hierarchical data (in a Windows Explorer type interface). Right now I lazily load up the tree as the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add a simple API to my C++ application for access by LabView? I have a data acquisition program written in C++ (Visual Studio 6.0). Some clients would like to control the software from their own custom software or LabView. I would like to come up with a simple API with a dll I can distribute to them and wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Dates with no time or timezone component in Java/MySQL I need to be able to store a date (year/month/day) with no time component. It's an abstract concept of a date, such as a birthday - I need to represent a date in the year and not a particular instant in time.
I am using Java to parse the date from some input tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: how do I implement a completely custom draggable control? I work on an application that requires some fancy custom controls. Inheriting from the .net Control class has caused various problems and is making things harder as time goes on. I won't get into the specifics here, but I am creating my own light weight con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iTunes COM interface - obtain song added to library? This isn't about a specific language, rather about the iTunes COM interface.
I managed to add a file to the library with .AddFile(), but now that the file is there I'd like to read some details about it such as the artist, song, and album. Since the song doesn't a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: PowerShell yielding to OS in tight loops I've previously encountered the suggestion to call System.Threading.Thread.Sleep(0); in tights loops in C# to prevent CPU hogging and used it to good effect.
I have a PowerShell script that has a tight loop and I'm wondering whether I should be calling [Thread]::Sleep(0) or S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the maximum number of characters that can be stored in a Windows Installer property I have googled quite a bit and I cannot find the answer. So how many characters can be stored in a Windows Installer property value. If you give an answer can you provide the source of the answer?
A: I asked the Windows Inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C# String.Replace double quotes and Literals I'm fairly new to c# so that's why I'm asking this here.
I am consuming a web service that returns a long string of XML values. Because this is a string all the attributes have escaped double quotes
string xmlSample = "<root><item att1=\"value\" att2=\"value2\" /></root>"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Server farm Shutdown How do large server farms handle gracefully shutting down all or part of the farm? I'm thinking of planed and unplanned cases like:
*
*"We need to shutdown Rack 42"
*"We need to do work on the power feeds to the whole block"
*"Blackout! UPS's running out of Juice! Aahh!"
*"AC is down, ai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OCIEnvCreate Failed Error - When accessing .aspx pages I am currently stuck on an ASP.NET error when trying to access a .aspx page through localhost. This is the error:
OCIEnvCreate failed with return code -1 but error message text was not available.
Description: An unhandled exception occurred during the execution ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Infinite loop in FreeBSD I have a script that constantly segfaults - the problem that I can't solve as segfault is in python libxml bindings - didn't write those. Ok, so in Linux I used to run an inf.loop so that when script dies - it restarts, like so:
#!/bin/bash
while [ 1 ]
do
nice -n 19 python server.py
sleep 1
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WS_VSCROLL, CreateWindow style works, SetWindowLong doesnt When i do
wnd = CreateWindow("EDIT", 0,
WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | ES_MULTILINE |
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN,
x, y, w, h,
parentWnd,
NULL, NULL, NULL);
everything is fine, however if i remove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Blackberry HTTP Header I'm trying to access an internal website that requires windows authentication. I've tried going to the website on my Blackberry but get the following error:
You are not authorized to view this
page.
You do not have permission to view
this directory or page using the
credentials that you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using the GCC __unused attribute with Objective-C Is it possible to use the __unused attribute macro on Objective-C object method parameters? I've tried placing it in various positions around the parameter declaration but it either causes a compilation error or seems to be ignored (i.e., the compiler still generates... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Maximize data, minimize code - what are the limits and problems? I would like to design very high availability(never take server down, roll out features without restart etc) application with both client(probably C# gui) and server components(Java,C++,Perl).
I got some advice from (minimize-code-maximize-data.html a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to delete all but the latest 20,000 records in MS SQL 2005? Every night I need to trim back a table to only contain the latest 20,000 records. I could use a subquery:
delete from table WHERE id NOT IN (select TOP 20000 ID from table ORDER BY date_added DESC)
But that seems inefficient, especially if we later d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I do a SVN Update from ASP.NET? I'd like to call svn up from an asp.net page so people can hit the page to update a repository. (BTW: I'm using Beanstalk.com svn hosting which doesn't allow post-commit hooks, which is why I am doing it this way).
See what I've got below. The process starts (it shows up in Pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In Firefox (2 or 3), what is the chrome:// path for the "Website Certified by Unknown Authority" XUL dialog? Another angle:
how do I browse all the XUL for a given chrome path, e.g.
http://kb.mozillazine.org/Dev_:_Firefox_Chrome_URLs has a listing but seems to be out of date.
A: At least in Firefox 3, chrome://glob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to detect the presence of URL in a string I have an input String say Please go to http://stackoverflow.com. The url part of the String is detected and an anchor <a href=""></a> is automatically added by many browser/IDE/applications. So it becomes Please go to <a href='http://stackoverflow.com'>http://stackoverf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Load-testing asp.net site (postbacks/viewstate) What is the best way to load-test an application that relies heavily on posts with viewstate (same posts can't be sent twice, so a simple record / replay won't do)?
Can I generate the viewstate to be used in in the posts?
A: The best (but expensive) solution is to u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any good replacement for SharePoint Designer? If you've ever used SharePoint Designer, you'll know it's bad. Really bad.
Is there any good replacement for that? Is there any consideration I must take account of if I want to build my own Visual Studio Add-in connector to connect to it?
Anything you know that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Don't mix Response.Write with AJAX, but what about UI.HtmlTextWriter? From the blog of the creator of the error message, if you mix Response.Write (among other things) with an UpdatePanel you will likely get PageRequestManagerParserErrorException errors. I was wondering, is it ok to mix UI.HtmlTextWriter and UpdateP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can You "Assign" the PageCount Property of an ASP.NET GridView? I have a web application that is using a data store that has it's own built in paging. The PagedResult class tells me the number of total pages. What I would like to do it (after binding my ASP.NET GridView) do this:
MyGridView.PageCount = thePageCount;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Run as different user under FreeBSD Is there a way in FreeBSD to (being root) run a command as unprivileged user, like nobody? Kind of like reverse of sudo. Oh and considering that 'nobody' has /usr/sbin/nologin as shell - so su is not an option.
A: You can su to an account with the nologin shell if you use the -m ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Automatically wrapping I-search? In Vim I can :set wrapscan so that when I do an incremental search, the cursor jumps to the first match whether the first match is above or below the cursor.
In Emacs, if I start a search via C-s, the search fails saying Failing I-search if the first match is above the cursor. If I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Is lining up operators a worthy style? some_var = foo()
another_var = bar()
or
some_var = foo()
another_var = bar()
Including changing the whitespace as lines are added or removed to keep them lined up. Does this really look good? Is it worth the mucking up of the diff?
A: I don't think it's a good style becau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Managing wireless network connection in C# We've got a WinForms app written in C# that has a very custom GUI. The user is not allowed to run any other applications and the user cannot go into the OS (WinXP Pro) at all. We're planning on allowing the user to connect to available wireless networks. We're going to ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to set a default row for a query that returns no rows? I need to know how to return a default row if no rows exist in a table. What would be the best way to do this? I'm only returning a single column from this particular table to get its value.
Edit: This would be SQL Server.
A: One approach for Oracle:
SELE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: jQuery validation formatting Issue in IE In firefox, the error messages display as should. Just to the right of the element being validated. In IE. No matter what I do with the sizing of the labels/elements/errors, the error is always posted below the element, causing every other element to be pushed down.
<p>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Representing Monetary Values in Java I understand that BigDecimal is recommended best practice for representing monetary values in Java. What do you use? Is there a better library that you prefer to use instead?
A: BigDecimal all the way. I've heard of some folks creating their own Cash or Money classes which encap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: SQL many to many realtion table, but unique entires Here is a nice underhand lob pitch to you guys.
So basically I've got my content table with unique primary key IDs and I've got my tag table with unique primary key IDs.
I've got a table that has an identity column as a primary key but the two other columes are th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RelaxNG (rnc) schema to extend XHTML I would like to edit XHTML files using Emacs' nxml-mode which can use rnc schemas for on the fly validation. This is all built in to newer Emacs versions.
However, my XHTML files contain elements from another schema. So <foo:foo> tags are valid, but only within the <xhtml:head> o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: programatically convert word docx to doc without using ole automation i'm looking for a way to programatically convert word documents in docx format to doc format without using ole automation. i already have a windows service that does this but it means installing office on a server and it is a little unreliable an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Constraint vs. Validation? I am working with Windows Forms Databinding, implementing interfaces like IDataErrorInfo. In order for this to work, the domain(or business) object is allowed to be in an invalid state. In fact, the domain object needs to retain the invalid value as the user entered it for IDataErrorInfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What techniques can you use to profile your code Some of the platforms that I develop on, don't have profiling tools. I am looking for suggestions/techniques that you have personally used to help you identify hotspots, without the use of a profiler.
The target language is C++.
I am interested in what you have perso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java: Reading a file into an array I have a file (called "number.txt") which I want to read to an array in Java. How exactly do I go ahead and do this? It is a straight-forward "1-dimensional" file, containing 100 numbers.
The problem is that I get an exception every time. Apparently it can't find it (I am sure its ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Automating Excel using ASP.NET Background
We are developing some in-house utilities using ASP.NET 2.0. One of which is extracting some information from databases and building an Excel workbook containing a number of spreadsheets with data based on queries into the database.
Problem
The proof-of-concept prototype (a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trapping second keyboard input in (ubuntu) linux I have written a program that gets input from a usb second keyboard (actually a barcode scanner). The problem is that if another window is active the data is input there rather than in my program. Could someone give me advice on what I'm doing wrong?
#include <stdio.h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: A cron job for rails: best practices? What's the best way to run scheduled tasks in a Rails environment? Script/runner? Rake? I would like to run the task every few minutes.
A: Both will work fine. I usually use script/runner.
Here's an example:
0 6 * * * cd /var/www/apps/your_app/current; ./script/runner --e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "306"
} |
Q: How do I find out what mail-server my host has installed for me? I'm using MediaTemple's (dv) hosting service. How do I determine what mail-server is installed? Should I use the shell? If so, what command would be used?
A: Try
$ nmap -p 25 -A -T polite <hostname>
from a Linux box with nmap installed.
A: Go to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C++ for a C# developer I'm a .NET developer, and worked with VB6 before that. I've become very familiar with those environments, and working in the context of garbage collected languages. However, I now wish to bolster my skillset with native C++ and find myself a bit overwhelmed. Ironically, it's not what I'd im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: WPF Binding to Grid Column Width I'm attempting to bind a DependancyProperty in one of my usercontrols to the Width property of a Column in a Grid.
I have code similar to this:
<Grid x:Name="MyGridName">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="TitleSection" Width="100" />
<ColumnDefin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Calling two functions with the same name from two different C DLLs I have two C DLLs that I need to access in the same executable. I have header files and .LIB files for both libraries. Unfortunately a subset of the functions that I need to access have the exact same names. The best solution I have been able to come... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I alter the position of a column in a PostgreSQL database table? I've tried the following, but I was unsuccessful:
ALTER TABLE person ALTER COLUMN dob POSITION 37;
A: Open the table in PGAdmin and in the SQL pane at the bottom copy the SQL Create Table statement. Then open the Query Tool and paste. If the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "189"
} |
Q: Java: Using generics to implement a class that operates on different kinds of numbers So, let's say I want to write a class that operates on different kinds of numbers, but I don't a priori know what kind of numbers (i.e. ints, doubles, etc.) I will be operating on.
I would like to use generics to create a general c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to spawn a process and capture its STDOUT in .NET? I need to spawn a child process that is a console application, and capture its output.
I wrote up the following code for a method:
string retMessage = String.Empty;
ProcessStartInfo startInfo = new ProcessStartInfo();
Process p = new Process();
startInfo.Create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "172"
} |
Q: How do I check that string has only international letters and spaces in UTF8 in PHP? In Python I could've converted it to Unicode and do '(?u)^[\w ]+$' regex search, but PHP doesn't seem to understand international \w, or does it?
A: Although I haven't tested myself, looking at http://us3.php.net/manual/en/referenc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using MSBuild to publish webservices How do I publish a Web Service to a server with MSBuild?
A: Take a look at the Web Deployment Project. It is basically an msbuild file that makes it wasy to perform your deployment steps. I use it in combination with the MSBuild community tasks which has msbuild tasks for zippin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to deal with SQL column names that look like SQL keywords? One of my columns is called from. I can't change the name because I didn't make it.
Am I allowed to do something like SELECT from FROM TableName or is there a special syntax to avoid the SQL Server being confused?
A: In Apache Drill, use backquotes:
sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "291"
} |
Q: Git recommended workflow I have been using git for several months in a project developed only by myself. I have a local repository and push it regularly to github for backup purposes.
I want to add another developer to this project, however I will have the responsibility of integrating the whole project.
What is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: irritating select() behaviour in c while (xxx) {
timeout.tv_sec=TIMEOUT;
timeout.tv_usec=0;
FD_ZERO(&set);
FD_SET(sd,&set);
switch (select(FD_SETSIZE,&set,NULL,NULL,&timeout))
xxxxx
}
works fine, however
FD_ZERO(&set);
FD_SET(sd,&set);
while (xxx) {
timeout.tv_sec=TIMEOUT;
timeou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is a serialVersionUID and why should I use it? Eclipse issues warnings when a serialVersionUID is missing.
The serializable class Foo does not declare a static final
serialVersionUID field of type long
What is serialVersionUID and why is it important? Please show an example where missing serialVersionUID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3367"
} |
Q: How to create automatic a list of items used in a LaTeX-document? I want to add items in a LaTeX-document. Say for example, that I want add hints to the document. I create a command, so I can call something similar to this:
\hint{foocareful}{Be careful with foo!}{foo is a very precious item and can easily be broken.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Java , adding minutes to a Date , weird anomaly With Java Version 1.5.0_06 on both Windows and Ubuntu Linux :
Whenever I add minutes to the date "2008/10/05 00:00:00" , it seems that an extra hour is wrongly added.
ie: adding 360 minutes to 2008/10/05 00:00:00 at midnight should arrive at 2008/10/05 06:00:00
But it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Open source ER diagramming tool for mysql I want to reverse engineer (import into diagram form) the database definition dump of a database I have, then since no foreign keys are defined in this particular database, I want to be able to manually create the table to table key mappings (using crow feet notation if poss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: DataGridView: how to focus the whole row instead of a single cell? I'd like to use the DataGridView control as a list with columns. Sort of like ListView in Details mode but I want to keep the DataGridView flexibility.
ListView (with Details view and FullRowSelect enabled) highlights the whole line and shows the foc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Identifying Duplicate Exceptions for Bug Tracking I've developed a "Proof of Concept" application that logs unhandled exceptions from an application to a bug-tracking system (in this case Team Foundation Server, but it could be ANY bug tracking system). A limitation of this idea is that I don't want duplicate Bug I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does a newly produced mac application need to support 10.4, and can I both support 10.4 and prepare for 64bit? My company is in the process of rewriting our software from scratch, and I'm the one who is going to be doing most of the work in rewriting the Mac client (The core of our software is Windows based, and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any function for UTC to convert to particular datetime to UTC date time I want to convert for example a particular date 12-11-2008 11:33:04.510 to UTC datetime. Can anyone help me how to do this. I want to do this in c# coding.
A: Just use DateTime.ToUniversalTime, assuming it's in the local timezone of yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is functional programming the next step towards natural-language programming? This is my very first question so I am a bit nervous about it because I am not sure whether I get the meaning across well enough. Anyhow, here we go....
Whenever new milestones in programming have been reached it seems they always have had... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I programmatically test an HTTP connection? Using Java, how can I test that a URL is contactable, and returns a valid response?
http://stackoverflow.com/about
A: Since java 5 if i recall, the InetAdress class contains a method called isReachable(); so you can use it to make a ping implementation in java. Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Can I find and import files into an Ant buildfile at run time? I want to create an Ant buildfile, that includes some files as a sort of plugin.
So if I want to activate a feature in a project - say pmd-checking - I copy a pmd.xml in a directory and the build.xml get on the start the idea, that pmd.xml exists and imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WX Python and Raw Input on Windows (WM_INPUT) Does anyone know how to use the Raw Input facility on Windows from a WX Python application?
What I need to do is be able to differentiate the input from multiple keyboards. So if there is another way to achieving that, that would work too.
A: Have you tried using ctypes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/285869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.