text stringlengths 8 267k | meta dict |
|---|---|
Q: Benefits and portability of Boost Library Since I have started using this site, I keep hearing about the Boost library. I am wondering what are some of the major benefits of the Boost library (hence why should I use it) and how portable is the Boost library?
A: Boost is a collection of high quality peer reviewed C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: How do eliminate the flicker effect on ajax call I am encountering a problem:
On an html page, when i click a certain control (a tab panel title) i make an ajax call.
From Wicket (java code) i call a javascript function that "redraws" all the componenets on my page (this is like a reload of the page). Everytime i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HTTP vs HTTPS performance Are there any major differences in performance between http and https? I seem to recall reading that HTTPS can be a fifth as fast as HTTP. Is this valid with the current generation webservers/browsers? If so, are there any whitepapers to support it?
A: The overhead is NOT due to the enc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "386"
} |
Q: Restrict dependencies between Java packages What are the possibilities to enforce restrictions on the package dependencies in a Java build system? For example, the myapp.server.bl.Customer class should not be allowed to refer to the myapp.client.ui.customlayout package.
I'm interested in either Ant-based or IDE-spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Prevent Text Wrap in DataGrid I have a problem with a data-bound DataGrid control, in that despite each column having its Wrap property set to false, the text still wraps. It seems to only do this on IE, and not FF.
A: It appears that Microsoft is aware of this issue and they have provided a workaround...
I don't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Background tasks on App Engine How can I run background tasks on App Engine?
A: GAE is very useful tool to build scalable web applications. Few of the limitations pointed out by many are no support for background tasks, lack of periodic tasks and strict limit on how much time each HTTP request takes, if a request e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET GridView postback not setting posted controls' values When adding an EditItemTemplate of some complexity (mulitple fields in one template), and then parsing the controls from the RowUpdating event, the controls that were manually entered by the user have no values. My guess is there is something going on wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Virtualized SQL Server: Why not? The IT department where I work is trying to move to 100% virtualized servers, with all the data stored on a SAN. They haven't done it yet, but the plan eventually calls for moving the existing physical SQL Server machines to virtual servers as well.
A few months ago I attended the H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Setting per-file flags with automake Is there a way set flags on a per-file basis with automake?
In particular, if I have a c++ project and want to compile with -WAll all the files except one for which I want to disable a particular warning, what could I do?
I tried something like:
CXXFLAGS = -WAll ...
bin_PROGRAMS ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Practical Uses for the "Curiously Recurring Template Pattern" What are some practical uses for the "Curiously Recurring Template Pattern"? The "counted class" example commonly shown just isn't a convincing example to me.
A: The CRTP gets a lot less curious if you consider that the subclass type that is passed to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: HTTP Authentication in .NET Is it possible to create a .NET equivalent to the following code?
<?php
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
echo 'Text to send if user hits Cancel button';
exit;
} else {
echo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL Server 2000 and System.Transactions.TransactionScope() Is it possible to create LIGHTWEIGHT transactions using TransactionScope() with SQL2000? Or if not, is there a workaround using CommitableTransaction and/or something similar?
So the answer is, basically, "If you want local-to-1-server-transactions on SQL200... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: New Date/Time data types in SQL 2008 I am trying to use the new DATETIMEOFFSET data type in SQL 2008 but I can't figure out how to get the DATETIMEOFFSET '2008-09-27 21:28:17.2930000 -07:00' to show as '2008-09-27 14:28:17.2930000' (basically applying the offset to show the local time).
Does anyone know how to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Compact Framework DirectShow Based Camera with Preview I've an example (wimobot.org) of a working directshow camera (not based on CameraDialog), but this example doesn't includes preview. I don't know how to implement the direct show filter for the preview, any sample code in C# or Visual Basic .Net?
Thanks in advan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you add a superscript character into a Powerbuilder textbox? Is there any way to do this in the Powerbuilder properties window for a datawindow's textbox?
A: That kind of depends on how you define "textbox", but in general the only way to mix normal and superscript text is with a richtext control. In PB 11.5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to generate Code39 barcodes in vb.net I want to create Code39 encoded barcodes from my application.
I know I can use a font for this, but I'd prefer not to as I'd have to register the font on the server and I've had some pretty bad experiences with that.
An example of what I've produced after asking this questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Dynamic Sorting within SQL Stored Procedures This is an issue that I've spent hours researching in the past. It seems to me to be something that should have been addressed by modern RDBMS solutions but as yet I have not found anything that really addresses what I see to be an incredibly common need in any Web or Wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "136"
} |
Q: Low-level details of the implementation of performSelectorOnMainThread: Was wondering if anyone knows, or has pointers to good documentation that discusses, the low-level implementation details of Cocoa's 'performSelectorOnMainThread:' method.
My best guess, and one I think is probably pretty close, is that it uses ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Winforms threading problem, second thread can't access 1st main forms controls I have a winforms application, the issue has to do with threading.
Since I am calling 'MyCustomCode() which creates a new thread, and calls the method
'SomeMethod()' which then accesses MessageBox.Show(...).
The problem has to do with thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What are some ways of accessing Microsoft SQL Server from Linux? We have a Windows machine running SQL Server 2005, and we need to be able to run some database queries on it from a Linux box. What are some of the recommended ways of doing this? Ideally, we would want a command-line utility similar to sqlcmd on Win... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Customizing Visual Studio's Intellisense A recent project had me working with C# again, and I noticed something I hadn't before -- C#'s Intellisense shows possible exceptions that can be thrown when calling a method
Since I work mostly with VB.NET applications, it'd be really nice to have this feature in those appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Manipulate Results in GridView RowDataBound or Directly in SQL? I have a curious question about efficiency. Say I have a field on a database that is just a numeric digit that represents something else. Like, a value of 1 means the term is 30 days.
Would it be better (more efficient) to code a SELECT statement like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementing a resizable textarea? How does Stackoverflow implement the resizable textarea?
Is that something they rolled themselves or is it a publicly available component that I can easily attach to textareas on my sites?
I found this question and it doesn't quite do what I want.
autosizing-textarea
That talks m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How can circular dependencies be avoided when callbacks are used? How can you avoid circular dependencies when you're designing two classes with a producer/consumer relationship? Here ListenerImpl needs a reference to Broadcaster in order to register/unregister itself, and Broadcaster needs a reference back to the L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: IIS 6, Wildcard Application Mapping, and FrontPage While I'd love to get rid of requiring FrontPage Extensions on a heavy traffic site I host, the client requires it to administrate the site. Having just implemented Wildcard Application Mapping in IIS 6 on this site in order to provide integrated Forms Authenticatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with vector inside a class I have this code inside a class:
void SendStones()
{
int currenthole = hole;
int lastplace = 0;
for(int i=0;i<stns.size();i++)
{
while(1)
{//Calculate new currenthole
if(currenthole == 13) { currenthole = 7; break;}
if(current... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I have a 100+MB XML file (sans-DTD/Schema). XSLT won't have it. Strategies for transforming/parsing? This XML file contained archived news stories for all of last year. I was asked to sort these stories by story categor[y|ies] into new XML files.
big_story_export.xml
turns into
lifestyles.xml
food.xml
nascar.xml
.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding a caption to an equation in LaTeX Well, it seems simple enough, but I can't find a way to add a caption to an equation.
The caption is needed to explain the variables used in the equation, so some kind of table-like structure to keep it all aligned and pretty would be great.
A: The \caption command is restri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: How do I execute conditional logic based upon the type passed to a VB.NET generic method I want to create a VB.NET generic factory method that creates instances of classes (as a home-grown inversion of control container). If I pass the interface IDoSomething as the generic parameter, I want to return an instance of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to store configuration parameters in SVN? Like many projects, we deploy to many environments, QA, UA, Developer trunks, etc..
What is the best way to store sensitive configuration parameters in SVN? Or, should you not and just maintain a smaller unversioned file with credentials in it on the server?
Mainly, we d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Disk-backed STL container classes? I enjoy developing algorithms using the STL, however, I have this recurring problem where my data sets are too large for the heap.
I have been searching for drop-in replacements for STL containers and algorithms which are disk-backed, i.e. the data structures on stored on disk rat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Pascal casing or Camel Casing for C# code? I've been arguing with my coworkers about Pascal casing (upper camel case) vs. lower CamelCasing. They are used to lower camel casing for everything from table names in SQL databases to property naming in C# code but I like Pascal casing better, lower camel casing for varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: What does the comma operator do? What does the following code do in C/C++?
if (blah(), 5) {
//do something
}
A: Comma operator is applied and the value 5 is used to determine the conditional's true/false.
It will execute blah() and get something back (presumably), then the comma operator is employed and 5 will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: annotation based Spring bean validation I'm investigating an annotation-based approach to validating Spring beans using spring modules. In this tutorial, the following bean (getters and setters omitted) is used as an example:
public final class User {
@NotBlank
@Length(max = 80)
private String name;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: "Submit" button works in Firefox 3 but not in IE7 (ASP 1.1) I have code from an old website that I needed to modify. There are two pages that I modified some form code in. I modified the max length of a textbox and I modified slightly a line or two of code in a function. The "btnSubmit_Click" function as it happens.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is StringBuilder's RAM consumption like? We have a few operations where we are doing a large number of large string concatenations, and have recently encountered an out of memory exception. Unfortunately, debugging the code is not an option, as this is occurring at a customer site.
So, before looking into a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using Subsonic for potentially heavily accessed ASPNET MVC Application I am about to start a project for a potentially heavily accessed ASPNET MVC application and I was thinking to use Subsonic for my DAL.
I have some concern about the ability of Subsonic to handle thousands of concurrent requests.
Can anyone give m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python desktop widgets I'm interested in making desktop widgets, similar to Apple's Dashboard or what Vista has. I'd like to make them cross-platform, if possible. Opera's widgets are cross-platform but require the user to have Opera installed, so that's a big limitation.
I know most widgets are made with HTML/XML, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I write .NET unit tests? How do I write unit tests in .NET?
Specifically Visual Studio 2005?
A: If you're using one of the Visual Studio Team Suite products, you reference Microsoft.VisualStudio.TestTools.UnitTesting, decorate your test classes with the TestClass attribute, and decorate your test methods w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Continuations in Ruby Has anyone ever done work to get Ruby to do continuations (like Seaside on Smalltalk)?
A: As others have said already, Ruby 1.8 supports continuations.
Ruby 1.9 has not supported them for a while however. They have been added back some time this year, but most of the other Ruby interpreters (J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Check if option is selected with jQuery, if not select a default Using jQuery, how do you check if there is an option selected in a select menu, and if not, assign one of the options as selected.
(The select is generated with a maze of PHP functions in an app I just inherited, so this is a quick fix while I get my h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "212"
} |
Q: need an algorithm for collapsing netblock ranges into lists of superset ranges My math-fu is failing me! I need an efficient way of reducing network ranges to supersets, e.g. if I input list of IP ranges:
*
*1.1.1.1 to 2.2.2.5
*1.1.1.2 to 2.2.2.4
*10.5.5.5 to 155.5.5.5
*10.5.5.6 to 10.5.5.7
I want to return ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Viewing repository information from within Eclipse, when code was checked out using svn tortoise I am using svn tortoise to checkout a maven project from a repository, I then open eclispe, and use the m2eclipse plugin to import a maven project. The maven projeect comes in okay, and I can build it fine.
The problem i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: BeautifulSoup's Python 3 compatibility Does BeautifulSoup work with Python 3?
If not, how soon will there be a port? Will there be a port at all?
Google doesn't turn up anything to me (Maybe it's 'coz I'm looking for the wrong thing?)
A: About two months after I asked this question, a port has been released:
http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How do you define a type in a Linq 2 SQL mapping? I'm trying to do my linq 2 sql objects manually, so I have the following code:
var mapping = XmlMappingSource.FromXml(xml);
using (DataContext ctx = new DataContext(conn_string, mapping))
{
list = ctx.GetTable<Achievement>().ToList();
}
and the XML looks like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple platform development I was currently developing a desktop application in C# using mono and testing in SuSE and Windows. The concept doesn't matter much, but it is a "web lint" program that will scan a web site and return possible issues with security and/or cross browser compatibility. However, I want to b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Php code formatter / beautifier and php beautification in general Do you know any good tools for nicely formatting messy php code? Preferably a script for Aptana/Eclipse, but a standalone tool will do too.
A: There's a pear module that formats your code. PHP Beautifier
A: If you use Zend Development Environment, y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: C# "Using" Syntax Does the using catch the exception or throw it? i.e.
using (StreamReader rdr = File.OpenText("file.txt"))
{
//do stuff
}
If the streamreader throws an exception is it caught by using or thrown so the calling function can handle it?
A: When you see a using statement, think of this code:
StreadRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: How could I guess a checksum algorithm? Let's assume that I have some packets with a 16-bit checksum at the end. I would like to guess which checksum algorithm is used.
For a start, from dump data I can see that one byte change in the packet's payload totally changes the checksum, so I can assume that it isn't some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: SQL clone record with a unique index Is there a clean way of cloning a record in SQL that has an index(auto increment). I want to clone all the fields except the index. I currently have to enumerate every field, and use that in an insert select, and I would rather not explicitly list all of the fields, as they may... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Way to Stop a Windows Service when CanStop is set to False (C#) Ok so part two of I have no will power experiment is:
Summary Question -
Is there a way to set the CanStop property on a windows service dynamically?
Whole Spiel -
I have a service that is currently checking and killing processes (IE Games) I have told ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSON editor/formatter? I've got some JSON data, but it's all on one line. Does anyone know of a web or Windows editor that will format (e.g. indent and insert new lines) this data for me, so I can read it better? Preferably one that uses a GUI to display the JSON—instead of a command-line tool that outputs a reforma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: SQL to reorder nodes in a hierarchy I've got a 'task list' database that uses the adjacency list model (see below) so each 'task' can have unlimited sub-tasks. The table has an 'TaskOrder' column so everything renders in the correct order on a treeview.
Is there an SQL statement (MS-SQL 2005) that will select all th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to make NSRunLoop wait for a flag to be set? In the Apple documentation for NSRunLoop there is sample code demonstrating suspending execution while waiting for a flag to be set by something else.
BOOL shouldKeepRunning = YES; // global
NSRunLoop *theRL = [NSRunLoop currentRunLoop];
while (shouldKeepR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Implementation of AJP protocol in Java From Apache, you can use the "mod_jk" module to send HTTP requests to Tomcat using the "AJP" protocol, which is far more efficient that HTTP itself.
I want to do the same, but from a Java program. I want to use "AJP" because of its good performances (and Tomcat is not bad after... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Search for text between delimiters in MySQL I am trying to extract a certain part of a column that is between delimiters.
e.g. find foo in the following
test 'esf :foo: bar
So in the above I'd want to return foo, but all the regexp functions only return true|false,
is there a way to do this in MySQL
A: This should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Best strategy to implement stackoverflow style badges system in asp.net mvc I was wondering what would be the best strategy to implement a badges system using asp.net mvc. The one that stackoverflow has is pretty interesting. What do you suggest?
I guess I need to clarify the question a bit. The problem would be the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Interlocked equivalent on Linux In a C++ Linux app, what is the simplest way to get the functionality that the Interlocked functions on Win32 provide? Specifically, a lightweight way to atomically increment or add 32 or 64 bit integers?
A: Just few notes to clarify the issue which has nothing to do with Linux.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Pitfalls/gotchas of ClickOnce/smart-client deployment in .NET I have several .NET Windows Forms applications that I'm preparing to convert into a ClickOnce/smart-client deployment scenario. I've read the isn't-this-great tutorials, but are there pitfalls or "gotchas" that I should be aware of?
There are several mino... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Programs don't work on Vista and Server 2008 Many, if not all, of my old VC++ 6.0 MFC apps don't work in Vista and Server 2008. I had that migration was a problem, but now it's my problem :(
How do I go about making these things work? Is that possible? I've searched, but is there some repository of knowledge on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you determine if WPF is using Hardware or Software Rendering? I'm benchmarking a WPF application on various platforms and I need an easy way to determine if WPF is using hardware or software rendering.
I seem to recall a call to determine this, but can't lay my hands on it right now.
Also, is there an easy,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: How to use GROUP BY to concatenate strings in MySQL? Basically the question is how to get from this:
foo_id foo_name
1 A
1 B
2 C
to this:
foo_id foo_name
1 A B
2 C
A: SELECT id, GROUP_CONCAT(name SEPARATOR ' ') FROM table GROUP BY id;
https://dev.mysql.com/doc/refman/8.0/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "440"
} |
Q: Crystalspace vs. Irrlicht vs. .....? So, I use Linux, and I've been trying to find the time to get into game programming. I started out with Panda3d and had some pretty decent results and got a feel for many of the concepts in game programming. Not too long after that, I decided to step it up a notch and go to somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using respond_to for graceful degradation with ajax in RoR 2.x I was going through the AWDR book on web development with ruby on rails and one of the issues with the old code was it didn't use respond_to to make sure the view used would be the javascript view. Now in some updated examples I've seen people mention th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: what's the fundamental difference between a jsp taglib vs including a jsp page? i have several common elements (components), that will generate some html. it seems my options are creating a taglib, or just putting that logic into a jsp page and including the jsp.
whats the difference? positives vs negatives?
A: Tag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you copy a record in a SQL table but swap out the unique id of the new row? This question comes close to what I need, but my scenario is slightly different. The source table and destination table are the same and the primary key is a uniqueidentifier (guid). When I try this:
insert into MyTable
select * f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "148"
} |
Q: SNMP SET with ACL and Set Community Name I need to perform a SNMP Set operation in a printer in the network which as an Access Control List configured (ACL) and my host's IP Address is not in the ACL table.
I'm getting a strange behavior: When I have a SNMPv1 Set community name configured, I am ONLY able to perform ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a disadvantage to blindly using INSERT in MySQL? Often I want to add a value to a table or update the value if its key already exists. This can be accomplished in several ways, assuming a primary or unique key is set on the 'user_id' and 'pref_key' columns in the example:
1. Blind insert, update if receivin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Multi-line label in RadioButton component (AS3) I'm making a small quiz-application in Flash (and ActionScript 3). Decided to use the RadioButton-component for radiobuttons, but I'm having some problems getting the word-wrapping to work.
The code for creating the button can be found below.
_button = new RadioButton(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Stored Procedure Ownership Chaining I have several stored procedures in my database that are used to load data from a datamart that is housed in a separate database. These procedures are, generally, in the form:
CREATE PROCEDURE load_stuff
WITH EXECUTE AS OWNER AS
INSERT INTO my_db.dbo.report_table
(
column_a
)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Use jQuery to send Excel data using AJAX I have the following function that is pulling data from a database. The ajax call is working correctly. How can I send the tab delimited data in my success function to the user? Setting the contect type to "application/vnd.ms-excel" didn't work. The alert on success shows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Accessing a dynamitcally added buttoncolumn's (in a Datagrid) click event. C#/ASP.NET When I dynamically create a Datagrid and add in a new buttoncolumn how do I access the buttoncolumn_click event?
Thanks.
A: protected void Page_Load(object sender, EventArgs e)
{
DataGrid dg = new DataGrid();
dg.GridLines =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What the heck does loader.load((newSource is URLRequest)? newSource:new URLRequest(newSource)); do? I ran across the following code in Ely Greenfield's SuperImage from his Book component - I understand loader.load() but what does the rest of do?
loader.load((newSource is URLRequest)? newSource:new URLRequest(newSour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Preferred path to applications on OSX? I want to be able to run a text editor from my app, as given by the user in the TEXT_EDITOR environment variable. Now, assuming there is nothing in that variable, I want to default to the TextEdit program that ships with OSX. Is it kosher to hardcode /Applications/TextEdit.ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you write Valid XHTML 1.0 Strict code when you are using javascript to fill an element that requires a child? I'm running my site through the W3C's validator trying to get it to validate as XHTML 1.0 Strict and I've gotten down to a particularly sticky (at least in my experience) validation error. I'm includ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Classic ASP SQL Injection Protection What is a strong way to protect against sql injection for a classic asp app?
FYI I am using it with an access DB. (I didnt write the app)
A: Using parametrized querys, you need to create a command object, assign it parameters with a name and a value, if you do so you wouldn't n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: .NET Log Soap Request on Client I'm consuming a third party .NET WebService in my client application. For debugging purposes I want to capture the SOAP requests that are being sent from my server. How would I go about doing this? This is being done on .NET 2.0 without the use of WCF or WSE.
A: If it's for debugg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: profile program's speed on Linux I have a couple variants of a program that I want to compare on performance. Both perform essentially the same task.
One does it all in C and memory. The other calls an external utility and does file IO.
How do I reliably compare them?
1) Getting "time on CPU" using "time" favors th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to prevent fgets blocks when file stream has no new data I have a popen() function which executes tail -f sometextfile. Aslong as there is data in the filestream obviously I can get the data through fgets(). Now, if no new data comes from tail, fgets() hangs. I tried ferror() and feof() to no avail. How can I ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Does ANSI C support signed / unsigned bit fields? Does it make sense to qualify bit fields as signed / unsigned?
A: Yes. An example from here:
struct {
/* field 4 bits wide */
unsigned field1 :4;
/*
* unnamed 3 bit field
* unnamed fields allow for padding
*/
unsigned :3;
/*
* one-bit fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to design a fact table for delivery data I'm building a data warehouse that includes delivery information for restaurants. The data is stored in SQL Server 2005 and is then put into a SQL Server Analysis Services 2005 cube.
The Deliveries information consists of the following tables:
FactDeliveres
*
*BranchKe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issues working with JSF redirect and WebTrends On our new platform we are utilizing JSF. Our WebTrends tags are not reflecting the proper page title on this platform. It currently is displaying the name of the users previous page instead of the current page.
We are making use of the JSF Navigation rule in which we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to transfer sql encrypted data between SQL Server 2005 databases? I have an existing SQL Server 2005 database that contains data encrypted using a Symmetric key. The symmetric key is opened using a password. I am working on an upgrade to the front end applications that use this database, which include adding do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How Do I Profile the ADO.NET Connection Pool? I'm profiling a ASP.NET web application. I believe it is very database connection intensive (excessive use of the ADO.NET connection pool). How to I tell w/out debugging how many times it is going to the pool and on average how many connections are available in the pool?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: preconditions and exceptions Suppose you have a method with some pre and post-conditions.
Is it ok to create an exception class for each pre-condition that is not accomplished?
For example:
Not accomplishing pre1 means throwing a notPre1Exception instance.
A: Yes and no.
Yes - Violating a precondition is certainly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I use a type with generic arguments as a constraint? I would like to specify a constraint which is another type with a generic argument.
class KeyFrame<T>
{
public float Time;
public T Value;
}
// I want any kind of Keyframe to be accepted
class Timeline<T> where T : Keyframe<*>
{
}
But this cannot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Compatibility Mode for Web Services I have a web service that loads an unmanaged .dll made from VC++ 6. In Vista and Windows Server 2008, I can get applications using this to work by putting them in Win98 Compatibility mode. Is there a similar way I can do this with my web service, so it will run?
A: It depends o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Naming conventions for threads? It's helpful to name threads so one can sort out which threads are doing what for diagnostic and debugging purposes.
Is there a particular naming convention for threads in a heavily multi-threaded application that works better than another? Any guidelines? What kind of information sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: MS Access MDE on Terminal Server I deployed an MDE file on the terminal server and when I double clicked the MDE i have the following error. " There isn't enough memory to perform this operation. Close unneeded programs and try again.
I never had any issues on local machine.
I tried de-compiling and compacting and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating non-reverse-engineerable Java programs Is there a way to deploy a Java program in a format that is not reverse-engineerable?
I know how to convert my application into an executable JAR file, but I want to make sure that the code cannot be reverse engineered, or at least, not easily.
Obfuscation of the sou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: jsp create scripting variable like jsp:usebean does I would like to do something like
<test:di id="someService"/`>
<%
someService.methodCall();
%>
where <test:di
gets and instantiates a service bean and creates a scripting variable for use. similar to how jsp:usebean works for example
<jsp:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JMP0811I-U Fujitsu runtime error after compiling Fujitsu COBOL with DB2 SQL: cause/remedy? I'm able to (on Windows XP) precompile, compile and link a sample (Fujitsu NetCobol) COBOL test program which contains embedded SQL. This test program is to read and display the number of rows in a DB2 (UDB 9.5 on Linux) datab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine when copy finishes in VBScript? Does anyone know of a method to determine when a file copy completes in VBScript? I'm using the following to copy:
set sa = CreateObject("Shell.Application")
set zip = sa.NameSpace(saveFile)
set Fol = sa.NameSpace(folderToZip)
zip.copyHere (Fol.items)
A: Do U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to avoid a postback in JavaScript? I have an ASP.NET page which has a button it it. The button click launches a modal dialog box using JavaScript. Based on the value returned by the modal dialog box, I want to proceed with, or cancel the post back that happens. How do I do this?
A: Is this what you are trying t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Problem accessing previousState in OnFlushDirty() event of Castle ActiveRecord I have this problem, I'm using Castle ActiveRecord and when I update I verify changes in the object in the OnFlushDirty event.
However, when I access to the previouState["MyProperty"], it turns to be null and I can't get the old value.
Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# ResetBinding flip the DataGridView *Updated with example* I had a problem that was partially solved. To explain it quickly : I have a grid binded to a complex object that require to be serialized. When the object is build back from the serialization, event like on the grid doesn't refresh the table display. Someo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting different header size by changing window size I have a C++ program representing a TCP header as a struct:
#include "stdafx.h"
/* TCP HEADER
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I persist a ByRef variable into .net winforms dialog form? I am creating a "department picker" form that is going to serve as a modal popup form with many of my "primary" forms of a Winforms application. Ideally the user is going to click on an icon next to a text box that will pop up the form, they will sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Precision of reals through writeln/readln in Delphi My clients application exports and imports quite a few variables of type real through a text file using writeln and readln. I've tried to increase the width of the fields written so the code looks like:
writeln(file, exportRealvalue:30); //using excess width of f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Load in memory text into WebBrowser control On the .Net WebBrowser control the only way I can see to load a page to it is to set the URL property. But I would like to instead give it some HTML code that I already have in memory without writing it out to a file first. Is there any way to do this? Or are there any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.