text string | meta dict |
|---|---|
Q: macro definition containing #include directive Is there a way to define a macro that contains a #include
directive in its body?
If I just put
the "#include", it gives the error
C2162: "expected macro formal parameter"
since here I am not using # to concatenate strings.
If I use "\# include", then I receive the fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Default to last page in a ListView Using a standard ASP.NET ListView with a LinqDataSource and pagination enabled (with a DataPager), what would be the best way to default to displaying the last page of results?
A: set the current page index to be the page count - 1.
A: You'll need to know the total record count a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you get child bands in ultragrid without using related tables in a dataset? I'm using linq to pull back an object (i.e. customer) that might have a collection of other objects(customer.orders). I would be nice if I can pass this list of customers to the ultragrid and a hierarchical view of customers and thie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Drawbacks to templates and the STL in C++ Are there any drawbacks to using the STL or templates. Are there any situations for which they are inappropriate.
A: There are several potential benefits and drawbacks
*
*Templates expand the size of the resulting code.
*Templated code is expanded and processed at com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why can't I reference a user defined type field when using nested queries? So I have the following user defined type in my oracle database:
CREATE OR REPLACE TYPE METRIC_IMPERIAL_DISTANCE AS OBJECT
(
METERS_FEET INTEGER,
CENTIMETERS_INCHES INTEGER,
FRACTION NUMBER
)
I can do the following:
SELECT t_id, get_d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a Visual Studio Web test to upload a file with a random file name I have (after quite a bit of work) a web test that will upload a file to my SharePoint document library using a file that is included in the test and DeploymentItem that identifies that file so it can be used in the file upload post parameter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MEF, creating Import's tree when a branch is requested Using MEF I want to do the following.
I have a WPF Shell. To the shell I want to Import from another DLL a UserControl that is also a View of my MVP triad.
The way the MVP triad works, is that in presenter I have a constructor that takes both IModel and IView an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the iPhone app-name restrictions? (And [where] are they documented?!) It took me 2 days (and a lot of head/wall pounding) to finally discover that the reason ad-hoc distribution wasn't working for me was because my app-name had UTF-8 characters. I'm still boggling over how such a widely international platf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I join an XML column back onto the record it originates from? I have a table "Blah" with a PK column BlahID and an XML column BlahItems in a database on SQL Server 2005.
This table has records as follows...
BlahID BlahItems
------ ------------------------------------------------------
1 <root><item nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HTML DTDs - what's the point?
Possible Duplicate:
What are the different doctypes in html and what do they mean?
Being fairly inexperienced with certain aspects of web development (I've always concentrated more on the back-end than the front), can anyone give me their thoughts on whether I should worry about the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: modern for loop for primitive array Is there any performance difference between the for loops on a primitive array?
Assume:
double[] doubleArray = new double[300000];
for (double var: doubleArray)
someComplexCalculation(var);
or :
for ( int i = 0, y = doubleArray.length; i < y; i++)
someComplexCalculation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Where do I store sensitive encrypted password in an SQL Server agent job? I prefer to keep our SSIS packages in a solution on the server, not in sql. By default, sensitive data is encrypted with a user key. Since the sql server agent uses a service account to run jobs, we have to change this encryption method to som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: General tips and techniques for minimizing the size of Flex applications I really like the Flex framework, however I routinely deal with SWF files that are ~ 500KB.
I don't know at what point a file considered to be "too big" to be served on the internet, but I would assume that a 500KB download just to use a web a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why does ASP.NET cause the "Operation Aborted" Error in IE7? I have been reading lots of blog posts offering cause and solution to the "Operation Aborted" error in IE. I recently built an application that is getting this error for some of ther users, some of the time.
Let me explain in detail.
The application is .NE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ColdFusion adding extra quotes when constructing database queries in strings I am coding in ColdFusion, but trying to stay in cfscript, so I have a function that allows me to pass in a query to run it with
<cfquery blah >
#query#
</cfquery>
Somehow though, when I construct my queries with sql = "SELECT * FROM a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Spring configuration error My spring-context file is shown below.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:jms="htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to do a TLS handshake event in Tomcat? I'm running an application (web service) in tomcat with TLS enabled (with certificates both for the client and the server).
I want that my application will be able to send audit message (logging) when TLS handshake fails. For example I want to log when:
*
*the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: unmarshalling an axis generated (multiref containing) soap response with jaxb I'm consuming an axis 1.4 web service that returns soap responses that I want to unmarshal into my domain objects using jaxb annotations. My initial tests worked very well until some of the returned messages had multiRef elements. Objects... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Browser history for Flash (or AJAX) What is the best tool / practice to enable browser history for Flash (or AJAX) websites?
I guess the established practice is to set and read a hash-addition to the URL like
http://example.com/#id=1
I am aware of the Flex History Manager, but was wondering if there are any good al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python: Check if uploaded file is jpg How can I check if a file uploaded by a user is a real jpg file in Python (Google App Engine)?
This is how far I got by now:
Script receives image via HTML Form Post and is processed by the following code
...
incomming_image = self.request.get("img")
image = db.Blob(incomming_im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I send control characters to a Windows printer in Crystal Reports? We are trying to build a Crystal Report that sends control characters directly to the printer, without going through the (buggy) Windows driver for that printer. Does anyone know a way to do this from within a Crystal Report?
The specific con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to monitor memcached statistics on windows? What's the easiest method people have found to monitor memcached on Windows? One method I've tried, which works decently:
telnet into the memcached port (11211) and enter the "stats" command. You'll get back a listing like this:
stats
STAT pid 2816
STAT uptime 791
STAT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: infinite loop in c++ I'm learning C++ and writing little programs as I go along. The following is one such program:
// This program is intended to take any integer and convert to the
// corresponding signed char.
#include <iostream>
int main()
{
signed char sch = 0;
int n = 0;
while(true){
std::cin >> n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I implement activation arguments in GWT? I'm writing an editor in GWT, how can I pass the user/pass from the page? For example a user submits a simple html form and then an GWT app shows up in the next page, how can I get the form submission info into the GWT nicely?
Thanks.
A: 1) Create a serializable bean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should a return statement be inside or outside a lock? I just realized that in some place in my code I have the return statement inside the lock and sometime outside. Which one is the best?
1)
void example()
{
lock (mutex)
{
//...
}
return myData;
}
2)
void example()
{
lock (mutex)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: How do you know the correct path to use in a PHP require_once() statement As many do I have a config.php file in the root of a web app that I want to include in almost every other php file. So most of them have a line like:
require_once("config.php");
or sometimes
require_once("../config.php");
or even
require_on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Using generic parameters with static compareObject method I'd like to remove all "unchecked" warnings from this general utility method (part of a larger class with a number of similar methods). In a pinch, I can use @SuppressWarnings("unchecked") but I'm wondering if I can use generics properly to avoid the warnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: pass DataTable to unmanaged environment (visual c# 2005) What will the best way to pass a datatable data to unmanaged environments? (c++)
Ofer
A: I don't think there is a single best answer here.
One option is to export the database as XML and let your unmanaged code consume that. The main benefit of this approach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Performance-wise, what's better: an IF...ELSE clause, or WHERE LIKE clause? I have a stored procedure that has a optional parameter, @UserID VARCHAR(50). The thing is, there are two ways to work with it:
*
*Give it a default value of NULL, the have an IF...ELSE clause, that performs two different SELECT queri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to create a "weak reference" in JavaScript? Is there any way in JavaScript to create a "weak reference" to another object? Here is the wiki page describing what a weak reference is. Here is another article that describes them in Java. Can anyone think of a way to implement this behavior in JavaScript?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: Guesstimating database size I'm trying to foresee how big my database will be. Let's say I have only one table:
CREATE TABLE user (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
email VARCHAR(50),
pass CHAR(40),
url VARCHAR(1000),
PRIMARY KEY(id));
Adding all up: 4 + 51 + 40 + 1001 = 1096 bytes in one record.
If I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A better way of filling out an excel spreadsheet on a web server in ASP.NET than interop? Is there a better way I can fill out a spread sheet on a web server (using asp.net) than using interop?
EDIT: I wasn't very clear as to what I require:
I have a template that I must use that is provided by our customer. In the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Execute only one unit test while debugging in Visual Studio 2008 Is there a way to select which TestMethods you want to execute in Visual Studio 2008 Unit Test project while debugging? I want to debug one particular test without having my other TestMethods execute during each debug session.
A: Click on a test meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: URL Routing: Handling Spaces and Illegal Characters When Creating Friendly URLs I've seen a lot of discussion on URL Routing, and LOTS of great suggestions... but in the real world, one thing I haven't seen discussed are:
*
*Creating Friendly URLs with Spaces and illegal characters
*Querying the DB
Say you'r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Accessing dynamically created stored procedure from LINQ I'm pivoting data in MS SQL stored procedure. Columns which are pivoted are dynamically created using stored procedure parameter (for exampe: "location1,location2,location3,") so number of columns which will be generated is not known. Output should look like (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting Perforce unopened modified files I'm trying to figure out a way to detect files that are not opened for editing but have nevertheless been modified locally. p4 fstat returns a value headModTime for any given file, but this is the change time in the depot, which should not be equal to the filesystem's stat ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Mock File methods in .NET (like File.Copy("1.txt", "2.txt")) We have some methods that call File.Copy, File.Delete, File.Exists, etc. How can we test these methods without actually hitting the file system?
I consider myself a unit testing n00b, so any advice is appreciated.
A: If you absolutely have to do this, Ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Javascript and Accessibility As a web developer, a number of the projects I work on fall under government umbrellas and hence are subject to 508 Accessibility laws, and sometimes W3C accessibility guidelines. To what extent can JavaScript be used while still meeting these requirements?
Along these lines, to what ext... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Javascript form submit: Object doesn't support this property or method (IE7) I'm trying to submit a form with javascript. Firefox works fine but IE complains that "Object doesn't support this property or method" on the submit line of this function:
function submitPGV(formName, action)
{
var gvString = "";
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: System.Collections.Generic List and F# I have a C# class the returns a List, using System.Collections.Generic Lists not F# List
I want to iterate though the list to find a object or not find it. Here is how I would do it in C#. How would I accomplish the similar thing in F#
foreach (AperioCaseObj caseObj in CaseLi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Modular Application Database Structure I am building a modular application. Through configuration you can turn these application modules on and off. I'm trying to determine what database structure (mssql2005) I should use for the tables that hold data for each of the modules. The two options that I've thought of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to include PHP libraries when using static factory pattern? I have several static factory patterns in my PHP library. However, memory footprint is getting out of hand and we want to reduce the number of files required during execution time. Here is an example of where we are today:
require_once(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to eliminate 'unused output column' warnings in SSIS jobs? I'm trying to get rid of some spurious warnings in my SSIS Progress log. I'm getting a bunch of warnings about unused columns in tasks that use raw SQL to do their work. I have a Data Flow responsible for archiving data in a staging table prior to loadin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there any performance reason to declare method parameters final in Java? Is there any performance reason to declare method parameters final in Java?
As in:
public void foo(int bar) { ... }
Versus:
public void foo(final int bar) { ... }
Assuming that bar is only read and never modified in foo().
A: The final ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "119"
} |
Q: Using Mac OS X Services-menu from a Java/Swing application I would like to make my Java/Swing application compatible with the Services-menu available on Mac OS X. For example, so that the user could select some text in JTextArea and have it converted into speech by Services -> Speech -> Start Speaking Text.
Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Removing Interdev from an IIS 5 (Windows 2000 Server) virtual directory and replacing with FTP I've got a few sites on a Windows 2000 box that are still using Interdev/HTTP updates. I'd like to convert those to be FTP only and remove the Interdev update capability. How do I convert these with minimal disruption? I.E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem matching Java String against array I need to see if a string value matches with an object value, but why won't this work?
public int countPacks(String flavour) {
int counter = 0;
for(int index = 0; index < packets.size(); index++) {
if (packets.equals(flavour)) {
counte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where is the best place to add methods to the Integer class in Rails? Where is the best place to add a method to the integer class in Rails?
I'd like to add a to_meters and to_miles methods.
A: Why not just:
class Feet
def self.in_miles(feet)
feet/5280
end
end
usage:
Feet.in_miles 2313
Or maybe look at it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: DropDownList doesn't show enough rows In ASP.NET, a ListBox has a Rows attribute I can set to say how many rows to show. A DropDownList, though, doesn't. Is there any way I can set the maximum number of rows a DropDownList should display? Code? Markup? CSS?
A: If you want that level of control, you are left to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to format a duration in java? (e.g format H:MM:SS) I'd like to format a duration in seconds using a pattern like H:MM:SS. The current utilities in java are designed to format a time but not a duration.
A: If you're using a version of Java prior to 8... you can use Joda Time and PeriodFormatter. If you've really... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "220"
} |
Q: Using Python's smtplib with Tor I'm conducting experiments regarding e-mail spam. One of these experiments require sending mail thru Tor. Since I'm using Python and smtplib for my experiments, I'm looking for a way to use the Tor proxy (or other method) to perform that mail sending.
Ideas how this can be done?
A: B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Possible Causes for a Large Number of Sleeping Connections to a MySQL Server? What are possible causes for a large number of sleeping connections to a MySQL Server? I'm using CodeIgniter with persistent connections disabled.
A: Even though the app doesn't keep the connection open, the OS lets it hang around. See ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why are C++ methods sometimes defined inside classes? I frequently run into large, non-template classes in C++ where simple methods are defined directly in the class body in the header file instead of separately in the implementation file. For example:
class Foo {
int getBar() const { return bar; }
...
};
Why d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I test views in a Rails plugin? I'm writing a Rails plugin that includes some partials. I'd like to test the partials, but I'm having a hard time setting up a test that will render them. There's no associated controller, so I'm just faking one:
require 'action_controller'
require 'active_support'
require '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why is a char and a bool the same size in c++? I'm reading The C++ Programming Language. In it Stroustrup states that sizeof(char) == 1 and 1 <= sizeof(bool). The specifics depend on the implementation. Why would such a simple value as a boolean take the same space as a char?
A: In modern computer architectures, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: ThreadPool causing GUI to freeze (?) I'm noticing that, if the ThreadPool max thread count for my IO-intensive app is set too low (16), then my GUI will freeze. But if I set it considerable higher (250), it works just fine.
Can anyone explain this phenomenon?
A: Woah there! Don't mess with the ThreadPool count unle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Vim File Explorer Configuration I'm setting the below variables in my vimrc to control how windows get split when I bring up the file explorer plugin for vim. But it appears these variables are not being read because they have no effect on how the file explorer window is displayed. I'm new to vim. I know the vimrc f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Disappearing CSS table cell borders in Gecko-based browsers I have a very specific html table construct that seems to reveal a Gecko bug.
Here's a distilled version of the problem. Observe the following table in a gecko-based browser (FF, for example): (you'll have to copy and paste this into a new file)
<style>
t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is it worth upgrading to the latest version of CodeIgniter? I am about 2 minor revisions behind.
A: I'm one of those guys who always upgrade stuff. But have a look at the official changelog and see if the many bugfixes and new features are interesting enough to you.
I noticed 1.7.0 is out, and I'm definetly going t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MSBuild copy output from another project into the output of the current project I have a situation where I want to copy the output assembly from one project into the output directory of my target application using MSBuild, without hard-coding paths in my MSBuild Copy task. Here's the scenario:
*
*Project A - Web ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Change return signature via inheritance – Polymorphism Just wondering if there is any way to do the following:
public Interface IDataField
{
object GetValue();
}
public Interface IComplexDataField : IDataField
{
object GetDefaultValue();
}
public class MyBase
{
private IDataField _DataField;
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create Annotation instance with defaults, in Java How can I create an instance of the following annotation (with all fields set to their default value).
@Retention( RetentionPolicy.RUNTIME )
public @interface Settings {
String a() default "AAA";
String b() default "BBB";
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Efficient data transfer from Java to C++ on windows I'm looking to stream lots of data (up to ~1 Gbit) from Java to a C++ application (both on the same machine). I'm currently using a FIFO on Linux but need a Windows solution too.
The most cross-platform method seems to be a local socket, but:
a) won't I get huge ov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can a Flash movie pass mouse events to the containing page? One of our newer products is a walk-on video system, in which a character appears in an absolutely positioned DIV and gives a little presentation. We're using Flash 9, AS3. Unfortunately, in order to make him appear in front of the website content, we need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is using StringBuilder Remove method more memory efficient than creating a new StringBuilder in loop? In C# which is more memory efficient: Option #1 or Option #2?
public void TestStringBuilder()
{
//potentially a collection with several hundred items:
string[] outputStrings = new string[] { "test1", "test2"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Create a date from day month and year with T-SQL I am trying to convert a date with individual parts such as 12, 1, 2007 into a datetime in SQL Server 2005. I have tried the following:
CAST(DATEPART(year, DATE)+'-'+ DATEPART(month, DATE) +'-'+ DATEPART(day, DATE) AS DATETIME)
but this results in the wrong date. Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "280"
} |
Q: ADO.NET Data Services Entity Framework request error when property setter is internal I receive an error message when exposing an ADO.NET Data Service using an Entity Framework data model that contains an entity (called "Case") with an internal setter on a property. If I modify the setter to be public (using the ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to configure nginx to work with Jetty6 webserver? It seems that nginx is used with php, ruby and python.
Anyone has an example of how to setup nginx to work with jetty/tomcat in backend?
Thanks.
A: nginx can forward via HTTP protocol, so just point it to the correct port and you're set:
server {
location ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Deploying a newly developed Eclipse Plugin I have written an Eclpise plugin (an Error Parser for the CDT), and it works just fine in the debugger version of eclipse. However I cannot for the life of me figure out how to install the plugin into eclipse. I can export the plugin as a jar file, and it seems to export ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Passing AD authentication credentials via IE browser in C# Windows Form We have a Windows Form application which hosts an IE browser control. Our users run the application and open links to documents stored in MOSS. We are trying to set the application up to pass in credentials of a service account so that we can av... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Remote Desktop Username@IP vs. IP@Username Randomness Does anyone else find that when they open a saved connection in Remote Desktop it sometimes sets up the login as Username@IpAddress and other times (seemingly at random) sets it up as IpAddress@Username?
Does anyone know what the logic is behind the two / why thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Disable DataGridView System ContextMenu Does anyone know how I can disable the System Context Menu when a user right clicks in a DataGridViewTextBoxCell? I have tried to override the WndProc at the DataGridView level (as there is no WndProc to override on the Cell level), but nothing seems to work. Any help would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Render Self-Closing Tag in ASP.NET custom control derived from Control I'm working on a Facebook FBML controls library and would like to create my FBML controls somewhat patterned like the ASP.NET WebControls library. I have a base class that handles rendering by default; here's my render method:
protected... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can an explorer right click menu item be triggered from a batch file? Subject says it all but he background:
I want to trigger some TortoiseSVN action from a batch file? I suspect that I can do this by calling the right exe with the right args but I'd rather find a way to solve the more general problem of doing an a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I find all occurrences of a sequence of chars when preceded by a specific string? I'm trying to extract all matches from a EBML definition, which is something like this:
| + A track
| + Track number: 3
| + Track UID: 724222477
| + Track type: subtitles
...
| + Language: eng
...
| + A track
| + Track numb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/266997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Save Java2D to SWF (flash) I'm trying to save the output of an vector image drawin in Java2D to an SWF file. There are great libraries for saving java2D output as things like SVG (BATIK) and PDF(itext) but I can't find one for SWF. Any ideas?
A: I just got an example to work using the SpriteGraphics2D object from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Problem entering edit mode on FormView The problem that I'm having is one that I'm fearing is a design problem, not a coding problem, but I'll ask the question anyway.
I have an ASP.NET 2.0 web application that loads two different user controls dynamically based on a value from a database. Inside each of these user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Could not load file or assembly 'System.Web.Mvc' My new ASP.NET MVC Web Application works on my development workstation, but does not run on my web server...
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "205"
} |
Q: ClientScriptManager.GetPostBackEventReference Method I'm trying to understand what this method means as I'm reading this and have wondered what uses this may have. I don't quite understand the example given.
Can anyone give another explanation of it. Examples would help.
Thanks
A: The simplest example is a LinkButt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Read XLSX file in Java I need to read an Excel 2007 XLSX file in a Java application. Does anyone know of a good API to accomplish this task?
A: AFAIK there are no xlsx-libraries available yet. But there are some for old xls:
One library is jxls which internally uses the already mentioned POI.
2 other links: Handle ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Simple C++ code not working This very simple code gives me tons of errors:
#include <iostream>
#include <string>
int main() {
std::string test = " ";
std::cout << test;
}
I tried to compile it on linux by typing gcc -o simpletest simpletest.cpp on the console. I can't see why it isn't working. What is happ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why doesn't MSBuild copy as I would expect I'm needing to script my build. I'm using MSBUILD because of it's integration with VS.net. I am trying to copy some files from the build environment to the deployment folder. I'm using the copy task of MSBuild. But instead of copying the directory tree as I would expect. i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Getting odd/even part of a sequence with LINQ Say I have a list of all Projects, and that I group them by Category like this:
var projectsByCat = from p in Projects
group p by p.Category into g
orderby g.Count() descending
select new { Category = g.Key, Pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Is there a benefit to having both an abstract class and an interface? I started out with a generic interface called ILogin. The interfaces requires that you implement two properties: UserID and Password. I have many login-type classes that implement this interface. As my project grew and grew, I found that many c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Creating a Mixed Mode C++ Bridge from C to C#? I hope someone can help me with this, I'm mostly a C# developer so my
C and C++ skills are bad. I have a native C dll that is a plugin of a
larger application. I cross compile this dll for windows on linux
using gcc.
In the native dll when I create a D3DSurface I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .NET Assembly References Compile Time Errors I have assembly A with class Z that inherits from class X in assembly B. Now in a completely different solution, I have assembly C, which uses class Z.
The compiler complains unless assembly C has a reference to both assembly A & B. Even though assembly C does not use cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Asp.net - Add blank item at top of dropdownlist Why is the dropdown not showing my blank item first? Here is what I have
drpList.Items.Add(New ListItem("", ""))
With drpList
.DataSource = myController.GetList(userid)
.DataTextField = "Name"
.DataValueField = "ID"
.DataBind()
End With
Edit ~ I am bi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: sorting HTML tables with displaytag JSP tab library I'm using the JSP displaytag tag lib to create HTML tables. I'd like the user to able to click on a column header in order to sort the data. My JSP code is shown below:
<display:table name="tableData" id="stat" sort="page">
<display:column property="name" title="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What objects can be tested with Regular Expressions in C# Could someone please tell me which objects types can be tested using Regular Expressions in C#?
A: If I understand you correctly and you are asking which object types can be tested against regular expressions then the answer is: strings and only strings.
Thu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting SQL to HQL I'm trying to convert the below SQL query to HQL and am having a few issues. A straight line by line conversion doesn't work, I am wondering if I should be using an Inner Join in the HQL?
SELECT (UNIX_TIMESTAMP(cosc1.change_date) - UNIX_TIMESTAMP(cosc2.change_date))
FROM custom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to view a table with *lots* of columns? At the risk of being downmodded, I want to ask what the best mechanism (best is obviously subjective for the practice violation inherent here) for viewing data from a table, using C#, with a lot of columns. By a lot, I mean something like 1000.
Now before you get all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Multiple Table Models with MVC? I am just getting started with MVC, and it seems like it will be a great way to go, once I manage to switch my thinking to it.
Most of the material I have come across seems to have a 1-1 relationship between models, views, and tables - ie each model represents a table and allows CRUD,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: git-svn: is there a way to get it to play nice with submodules, or ignore them? once you have a commit that contains a submodule object, you pretty much cannot get git-svn to commit past it.
Any ideas, workarounds, anything that is not "don't use submodules with git-svn"?
So far the answer seems to be a big NO.
Is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to implement an inherited Dictionary over WCF I’m trying to implement a dictionary for use with WCF. My requirements are:
*
*actual (private variable or base
class) type equivalent to
Dictionary
*Comparer
= System.StringComparer.InvariantCultureIgnoreCase
*Custom (override/new) Add(key,
value) method (to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Scope of (string) literals I always try to avoid to return string literals, because I fear they aren't defined outside of the function. But I'm not sure if this is the case. Let's take, for example, this function:
const char *
return_a_string(void)
{
return "blah";
}
Is this correct code? It does work for me, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Fetching images from two different servers Can anyone please tell me the procedure to bring two images from different servers in Silverlight 2?
A: If You have the url u can just set it to image controls.
img1.Source=new BitmapImage(new Uri(your_url_for_the_iamge)); //img1 is your image control
If you want to downlo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Most efficient way to close a load() page using the X sign in jquery I'm new to Jquery and I'm trying to use a div container to load a URL, however, I want to give a user an option to close it with an X sign on the top right corner like in Amazon.com. What's the best way to accomplish this?
Here's what I have and se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UpdatePanel Slowness in IE I'm working on an ASP.Net application and working to add some Ajax to it to speed up certain areas. The first area that I am concentrating is the attendance area for the teachers to report attendance (and some other data) about the kids. This needs to be fast.
I've created a dual-control s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Multiple screens/monitors with Silverlight I'd like to write a Silverlight app that has 2 or more browser windows that "interact".
An example would be a parent/details display where selecting an item in the "Parent" list (in one browser window) will display the details of the item in another window.
The main poi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET aspxerrorpath in URL I have a site where I use CustomErrors in the web.config to specify a custom error page, and that's working just fine. The custom 404 page is also specified in the IIS configuration (because if it's not, I don't get my custom 404 page).
But I have some logic that kicks in if a user gets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/267138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |