text stringlengths 8 267k | meta dict |
|---|---|
Q: Low Friction Minimal Requirements Gathering How can our team gather requirements from our "Product Owner" in as low friction yet useable of a way as possible?
Now here's the guidelines- No posts that it can't be done or that the business needs to make a decision that it cares about quality, yada yada. The product I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RoR + SMS: Rails web app architecture to send/receive SMS? What web app architecture works well receiving/sending SMS text messages? By "architecture, I mean specific architecture, not generally, such as MVC.
Background: I'm building a web app that receives queries from/sends answers to cell phones. The app design (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why do we need anything more than HTTP GET, PUT, POST? What is the practical benefit of using HTTP GET, PUT, DELETE, POST, HEAD? Why not focus on their behavioral benefits (safety and idempotency), forgetting their names, and use GET, PUT or POST depending on which behavior we want?
Why shouldn't we only use GET, PU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Transactions in REST? I'm wondering how you'd implement the following use-case in REST. Is it even possible to do without compromising the conceptual model?
Read or update multiple resources within the scope of a single transaction. For example, transfer $100 from Bob's bank account into John's account.
As far as I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: How to hide table rows without resizing overall width? Is there a way to hide table rows without affecting the overall table width? I've got some javascript that shows/hides some table rows, but when the rows are set to display: none;, the table with shrinks to fit the contents of the visible rows.
A: If you are lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I reseed an identity column in a T-SQL table variable? I have a T-SQL table variable (not a table) which has an auto incrementing identity column. I want to clear all data from this variable and reset the identity column value to 1. How can this be done?
A: If you're using a table variable, you can't do it.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Ruby isPrime Method ('1' * N) !~ /^1?$|^(11+?)\1+$/
On the net, I found this piece of Ruby code that works for N >= 0 that determines whether or not N is a prime. From what I can tell, it looks like play with regex but I have no idea how it works. Could someone tell me how it works?
A: require 'prime'
Prime.prime... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How can I remotely (via web services) determine date format of SharePoint 2003 site, for use in Versions.asmx returned XML? The GetVersions() call to the Versions.asmx web service in SharePoint 2003 returns a localised date format, with no way of determining what the format is. It's the site regional setting of date... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I have non-measure codes mixed with measures in my fact table? We're doing a complex bit of data accumulation. Our customer sends us some stuff that includes two dimensions (time and a business unit). Time is mostly year-month. The business unit dimension has just a few attributes: a name, and a few categorie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery - Triggering Events from Clicking on a Link Issue I'd like to trigger an event when a link is clicked both by clicking on it normally or by opening it in a new tab (e.g., middle click, ctrl + click, etc)
I've tried the following so far:
$('a').click(myfunc) Doesn't capture middle clicks.
$('a').mousedown(myf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Easy way to use variables of enum types as string in C? Here's what I am trying to do:
typedef enum { ONE, TWO, THREE } Numbers;
I am trying to write a function that would do a switch case similar to the following:
char num_str[10];
int process_numbers_str(Numbers num) {
switch(num) {
case ONE:
case TW... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: Multithreaded Memory Allocators for C/C++ I currently have heavily multi-threaded server application, and I'm shopping around for a good multi-threaded memory allocator.
So far I'm torn between:
*
*Sun's umem
*Google's tcmalloc
*Intel's threading building blocks allocator
*Emery Berger's hoard
From what I've... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: .NET : How to set user information in an EventLog Entry? The System.Diagnostics.EventLog class provides a way to interact with a windows event log. I use it all the time for simple logging...
System.Diagnostics.EventLog.WriteEntry("MyEventSource", "My Special Message")
Is there a way to set the user information in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MySQL Row Format: Difference between fixed and dynamic? MySQL specifies the row format of a table as either fixed or dynamic, depending on the column data types. If a table has a variable-length column data type, such as TEXT or VARCHAR, the row format is dynamic; otherwise, it's fixed.
My question is, what's the di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: CScrollView and window size (MFC Question) What's the best way to determine the current displayed client area in a CScrollView? I only need the size of the visible portion, so GetClientRect() won't work here.
A: You do need to use GetClientRect(), but I think you're asking the wrong question. It is not so that in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accepting form fields via HTTP Post in WCF I need to accept form data to a WCF-based service. Here's the interface:
[OperationContract]
[WebInvoke(UriTemplate = "lead/inff",
BodyStyle = WebMessageBodyStyle.WrappedRequest)]
int Inff(Stream input);
Here's the implementation (sample - no error handling and other ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Visual Studio 6 tips and tricks Some of us would invariably have to support 'legacy' code using Microsoft's Visual Studio 6.0 IDEs which - although opinions would differ - are generally regarded to be less user friendly compared to the later incarnations of the Visual Studio series of IDEs.
So I'd like to hear about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Converting Win16 C code to Win32 In general, what needs to be done to convert a 16 bit Windows program to Win32? I'm sure I'm not the only person to inherit a codebase and be stunned to find 16-bit code lurking in the corners.
The code in question is C.
A: Apart from getting your build environment right, Here are f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to save an encrypted string to the database? I have this function in VB.net "ENCRYPT" (see below)
Private key() As Byte = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}
Private iv() As Byte = {65, 110, 68, 26, 69, 178, 200, 219}
Public Function Encrypt(ByVal plainText As... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to test a stored procedure? Like many companies that require all access be through stored procedures, we seem to have a lot of business logic locked away in sprocs. These things are just plain hard to test, and some of them have become silly long. Does anyone out there have a set of best pract... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Totaling a GridView in ASP.NET In one of my ASP.NET Web Applications, I am using a BulkEditGridView (a GridView which allows all rows to be edited at the same time) to implement an order form. In my grid, I have a column which calculates the total for each item (cost x quantity) and a grand total field at the bottom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does this C++ function use memoization? #include <vector>
std::vector<long int> as;
long int a(size_t n){
if(n==1) return 1;
if(n==2) return -2;
if(as.size()<n+1)
as.resize(n+1);
if(as[n]<=0)
{
as[n]=-4*a(n-1)-4*a(n-2);
}
return mod(as[n], 65535);
}
The above code sample using memoization... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Database under source control again! We use MS SQL Server and C#. Our database is under sourse control and I will tell you some details of our implementation. We had implemented two operations:
*
*Export database to plain-text files. Database schema files:
tables.sql
relationships.sql
views.sql
...
and table con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Options for refactoring bits of code away from native C++? So, one commonly heard comment when talking about performance is that you write your code with whatever language gets the job done fastest. If performance in specific areas is a problem, then rewrite those bits in C/C++.
But, what if you're starting with a n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using boost::random as the RNG for std::random_shuffle I have a program that uses the mt19937 random number generator from boost::random. I need to do a random_shuffle and want the random numbers generated for this to be from this shared state so that they can be deterministic with respect to the mersenne twister's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Performance challenge: NAL Unit Wrapping From what I've seen in the past, StackOverflow seems to like programming challenges, such as the fast char to string exercise problem which got dozens of responses. This is an optimization challenge: take a very simple function and see if you can come up with a smarter way o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Copy collection items to another collection in .NET In .NET (VB), how can I take all of the items in one collection, and add them to a second collection (without losing pre-existing items in the second collection)? I'm looking for something a little more efficient than this:
For Each item As Host In hostCollection1
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What is the best way to set-up authentication in a tomcat webapp? I have a self built JSP webapp and at the moment I'm using tomcats built in admin pannel to manage user accounts (that are stored in tomcats config xml files) but this is limited because i can not create new accounts from within the web-app (eg. I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difflib.SequenceMatcher isjunk optional parameter query: how to ignore whitespaces, tabs, empty lines? I am trying to use Difflib.SequenceMatcher to compute the similarities between two files. These two files are almost identical except that one contains some extra whitespaces, empty lines and other doesn't. I am tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Writing Color Calibration Data to a TIFF or PNG file My custom homebrew photography processing software, running on 64 bit Linux/GNU, writes out PNG and TIFF files. These are to be sent to a quality printing shop to be made into fine art. Working with interior designers - it's important to get the colors just r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are valid characters for creating a multipart form boundary? In an HTML form post what are valid characters for creating a multipart boundary?
A: According to RFC 2046, section 5.1.1:
boundary := 0*69<bchars> bcharsnospace
bchars := bcharsnospace / " "
bcharsnospace := DIGIT / ALPHA / "'" / "(" / ")" /
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Why is using a wild card with a Java import statement bad? It is much more convenient and cleaner to use a single statement like
import java.awt.*;
than to import a bunch of individual classes
import java.awt.Panel;
import java.awt.Graphics;
import java.awt.Canvas;
...
What is wrong with using a wildcard in the im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "558"
} |
Q: GetCallbackEventReference doesn't work synchronously I have an ASP.NET 3.5 WebForm that leverages the frameworks Page.ClientScript.GetCallbackEventReference() method and I'd like some of the calls to be synchronous.
Now, the documentation says that the 5th parameter (see below) controls this. Specifically, when y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Proper build reports in TFS with multiple products under a project Underneath one "Project" in TFS we have multiple products. This is because for us, a project is a business unit and they each can have many applications that we develop for them. Each one has its own folder in source control(under the TFS project) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can you recommend a .cvsignore file for a Visual C#.NET solution? I've developed a Visual C#.NET 2008 Express Edition solution containing three projects. I am cleaning it up to commit it into a CVS repository.
There are several files that are created during the build process that are not necessary to be placed in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When memory is allocated for a program? I need to know when the memory will be allocated for a particular program. How can i view where the memory is allocated.
A: You'll need to be more specific with the OS, and perhaps language if it's interpreted or run time compiled (ie, PHP, JAVA, .NET, etc).
However, in gener... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why should the interface for a Java class be preferred? PMD would report a violation for:
ArrayList<Object> list = new ArrayList<Object>();
The violation was "Avoid using implementation types like 'ArrayList'; use the interface instead".
The following line would correct the violation:
List<Object> list = new ArrayL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: XPath query searching for an element with specific text Given the following XML structure
<html>
<body>
<div>
<span>Test: Text2</span>
</div>
<div>
<span>Test: Text3</span>
</div>
<div>
<span>Test: Text5</span>
</div>
</body>
</html>
What is the best XPath query to loca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to convert a byte into a string in vb.net? I have the function below ENCRYPT.
Public Function Encrypt(ByVal plainText As String) As Byte()
Dim key() As Byte = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}
Dim iv() As Byte = {65, 110, 68, 26, 69, 178, 200, 219}
' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to include one CSS file in another? Is it possible to include one CSS file in another?
A: Yes, use @import
detailed info easily googled for, a good one at http://webdesign.about.com/od/beginningcss/f/css_import_link.htm
A: yes it is possible using @import and providing the path of css file
e.g.
@im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "858"
} |
Q: Flex HTTPService does not include Content-Length header? I am trying to get a Flex application to communicate with a custom python webserver I have developed.
I am noticing that I cannot read the postdata received because Flex does not seem to include the Content-Length in the HTTP headers. (My webserver work when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does one do the equivalent of "import * from module" with Python's __import__ function? Given a string with a module name, how do you import everything in the module as if you had called:
from module import *
i.e. given string S="module", how does one get the equivalent of the following:
__import__(S, fromlist=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Least common multiple for 3 or more numbers How do you calculate the least common multiple of multiple numbers?
So far I've only been able to calculate it between two numbers. But have no idea how to expand it to calculate 3 or more numbers.
So far this is how I did it
LCM = num1 * num2 / gcd ( num1 , num2 )
Wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "174"
} |
Q: How do I force a DIV block to extend to the bottom of a page even if it has no content? In the markup shown below, I'm trying to get the content div to stretch all the way to the bottom of the page but it's only stretching if there's content to display. The reason I want to do this is so the vertical border still ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "219"
} |
Q: Real HLSL IDE/debugger Are there any IDE's for developing HLSL code? The three key features I want are:
1) syntax highlighting
2) auto-complete
3) interaction debugging
Visual Studio doesn't do any of these things, and it doesn't seem that RenderMonkey or FX Composer do either.
Is there some IDE that I'm not aware ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Best place to save user information for Windows XP and Vista applications I need to save a user's login information in encrypted form for this application I'm building, but I'm not sure of the best place to save the file. I don't want to save it into the program application folder as I want it per user.
So what is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET and unverifiable components I am working on an ASP.NET application. I need to use some third party component (do not have the source code) that is unverifiable (I think it is written in managed c++).
I am wondering if this can cause problems for the customers.
The ASP.NET application can be installed on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Silverlight the 'same' as jQuery? Could Silverlight be used for the same things as jQuery, or are they intended for different things?
For example, vb.net could be used for the same stuff as C# while C# is intended for different things than what JavaScript is. Is Silverlight and jQuery like vb.net and C#, or more ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Error logging in C# I am making my switch from coding in C++ to C#. I need to replace my C++ error logging/reporting macro system with something similar in C#.
In my C++ source I can write
LOGERR("Some error");
or
LOGERR("Error with inputs %s and %d", stringvar, intvar);
The macro & supporting library code then pas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: Proxy for command line utilities in Win XP How do I get command line utilities like ping to use the default proxy in Windows XP.
proxycfg -u sets the proxy to the default (IE) proxy alright, but it doesn't seem to be working.
Update: I am behind a proxy and would like a way to check if a site is up or not hence tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How was Adobe Acrobat 9 made? Can anyone tell how Adobe Acrobat 9 was made? I like the look and feel of the GUI and I'm curious how it was made. Specifically, what programming language was used to make it?
A: All of Adobe's major products are written in C++. Although they're mostly written using proprietary toolki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Will the below code cause memory leak in c++ class someclass {};
class base
{
int a;
int *pint;
someclass objsomeclass;
someclass* psomeclass;
public:
base()
{
objsomeclass = someclass();
psomeclass = new someclass();
pint = new int();
throw "constructor fail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Determining if the window is in help mode Developing a .NET WinForms application: how can I check if the window is in Help mode (i.e. after clicking the "?" button in the title bar)?
The problem I have is that my System.Windows.Forms.ToolStripItem objects do not have a HelpRequested event (because they do not inheri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regexp matching of list of quotes strings - unquoted in Javascript, the following:
var test = '"the quick" "brown fox" "jumps over" "the lazy dog"';
var result = test.match(/".*?"/g);
alert(result);
yields "the quick","brown fox","jumps over","the lazy dog"
I want each matched element to be unquoted: the quick,brow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Django VMware appliance Does anyone know of a Django 1.0 + postgresql + apache + mod_python VMware appliance? A "vanilla" Django 1.0 appliance where postgresql can be installed manually would also do.
A: Configure and build your appliance at Elastic Server On-Demand.
A: Another option I've had moderate success wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best way to detect when a user leaves a web page? What is the best way to detect if a user leaves a web page?
The onunload JavaScript event doesn't work every time (the HTTP request takes longer than the time required to terminate the browser).
Creating one will probably be blocked by current browsers.
A: In the ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "227"
} |
Q: Window short cuts for XFCE4 This is not a programming question per se, but this is certainly about something which would help increasing my programming productivity.
In KDE, one can assign short-cuts to particular windows. This eliminates alt-tabbing completely and, is very very convenient when multiple apps(browser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Solution for overloaded operator constraint in .NET generics What would I do if I want to have a generic method that only accepts types that have overloaded an operator, for instance the subtraction operator. I tried using an interface as a constraint but interfaces can't have operator overloading.
What is the best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: CakePHP hasAndBelogsToMany using save() vs. saveAll() I am using a very intrinsic database with a CakePHP application and so far my multi-models views and controllers are working fine. I have a singular table (Entity) that have it's id on several other tables as the Foreign Key entity_id
Some tables are one to one r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Debug Pylons application through Eclipse I have Eclipse setup with PyDev and love being able to debug my scripts/apps. I've just started playing around with Pylons and was wondering if there is a way to start up the paster server through Eclipse so I can debug my webapp?
A: If you'd rather not include your Python ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to make RightToLeftLayout work for controls inside GroupBoxes and Panels? According to MSDN
form.RightToLeftLayout = True;
form.RightToLeft = ifWeWantRTL() ? RightToLeft.True : RightToLeft.False;
is enough to mirrow the form content for RTL languages.
But controls placement gets mirrowed only for controls imme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Get list of databases from SQL Server How can I get the list of available databases on a SQL Server instance? I'm planning to make a list of them in a combo box in VB.NET.
A: in light of the ambiguity as to the number of non-user databases, you should probably add:
WHERE name NOT IN ('master', 'tempdb', 'model', 'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "459"
} |
Q: Is there a decent open-source gaming console I've got a young nephew who aspires to grow up to be a game programmer and i'd like to introduce him to the world of open-source as well as get him a sweet gift.
Anything like that out there?
A: There are a number of Open Source platforms out their for game development... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why does regasm.exe register my c# assembly with the wrong GUID? I've got a c# assembly which I'm invoking via COM from a Delphi (win32 native) application.
This works on all the machines I've tested it on, except one.
The problem is that the Delphi application gets "Class not registered" when trying to create the C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Get list of available servers in SQL server group How can I extract the list of available SQL servers in an SQL server group? I'm planning to put that list in a combo box in VB.NET.
A: The only way I knew to do it was using the command line:
osql -L
But I found the below article which seems to solve your specific ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the best way to deploy a JRuby on Rails application to Tomcat? I'm looking at ways to deploy a Ruby on Rails app (running on JRuby) to a Tomcat instance for testing.
The tomcat instance is running on a Solaris server that I can SSH to. I've looked at using Capistrano, but there doesn't seem to be a lot out th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Page working in FF, not in IE, where to start I have a page which is largely created by DOM script, which generates a table of images (normal img elements) from several webcams (helping out a friend with a pet boarding and my HTML/DOM is a bit rusty).
It works fine in FF3 or Chrome, but not in IE7, In fact, the who... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Calculating the size of Array::pack format string How do you calculate the length of the string that would be returned by Array::pack? Is there something like Python's calcsize?
A: array.pack("").count I would say. Not really the fastest method, but it works.
A: By making an interpreter complying to the specifica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I assign a datasource to a generic list collection? I have a generic list, i.e. List<myclass>. Here myclass contains two string properties.
How can I assign a datasource to the list collection?
A: Start with a simple class:
// create a dummy class
public class MyClass
{
private string n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Change the resolution of image in iPhone? I wanted to change the resolution of a image,this image I am getting from remote location.The image I am getting is too large to fit in iPhone screen is their any way to change that resolution?
A: If you're using a UIImageView then UIView's contentMode is what you need, you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connection timed out when doing deployment of ear file I getting the following error:
Deploying application in domain failed; Error loading deployment descriptors for jrules-teamserver-SUNAS82 -- Connection timed out ; requested operation cannot be completed Error loading deployment descriptors for jrules-teamserver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I manipulate bits in Python? In C I could, for example, zero out bit #10 in a 32 bit unsigned value like so:
unsigned long value = 0xdeadbeef;
value &= ~(1<<10);
How do I do that in Python ?
A: Bitwise operations on Python ints work much like in C. The &, | and ^ operators in Python work just like in C. The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Good HTML Templates for form based Web Applications I would like to refer HTML templates designed/developed especially for form based Web Applications.
I have been searching them but am not able to find out which I find better.
Regards,
Jatan
A: Much of the choice in this sort of thing is going to be defined by you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Delphi #IF(DEBUG) equivalent? Is there a Delphi equivalent of the C# #if(DEBUG) compiler directive?
A: DebugHook is set if an application is running under the IDE debugger. Not the same as a compiler directive but still pretty useful. For example:
ReportMemoryLeaksOnShutdown := DebugHook <> 0; // show memory leak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Saving a SecureString One of the feature requests I've got for the program I'm working on is to be able to save the list of credentials users enter in, so they can be shared around. The specific use case that inspired this request was using our program on a large corporate network, made up of fairly good LANs connec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Character reading from file in Python In a text file, there is a string "I don't like this".
However, when I read it into a string, it becomes "I don\xe2\x80\x98t like this". I understand that \u2018 is the unicode representation of "'". I use
f1 = open (file1, "r")
text = f1.read()
command to do the reading.
Now,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "117"
} |
Q: Return "correct" error code, or protect privacy? OK, probably best to give an example here of what I mean.
Imagine a web based forum system, where the user authentication is done by some external method, which the system is aware of.
Now, say for example, a user enters the URL for a thread that they do not have acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Django is there a way to display choices as checkboxes? In the admin interface and newforms there is the brilliant helper of being able to define choices. You can use code like this:
APPROVAL_CHOICES = (
('yes', 'Yes'),
('no', 'No'),
('cancelled', 'Cancelled'),
)
client_approved = models.CharField(ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: How to be successful in web user interface testing? We are setting up a Selenium test campaign on a big web application.
The first thing we've done was to build a framework which initialize SQL data in database before the test, launch the test, archive results and then clear data.
We've integrate that in a Maven 2 p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MS VC++ 6 class wizard Ok, I'm developing an application that has been in pretty much continous development over the last 16 years, from C in DOS, through various flavours of C++ and now is largely based around C++ with MFC and StingRay GUIs and various other SDKs.
While I use VS 2005 for the release builds, I still... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MPI for multicore? With the recent buzz on multicore programming is anyone exploring the possibilities of using MPI ?
A: I've used MPI extensively on large clusters with multi-core nodes. I'm not sure if it's the right thing for a single multi-core box, but if you anticipate that your code may one day scale larger... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Is there a SAPI module for PHP 5 for supporting the thttpd web server? Is there a SAPI module for PHP 5 for supporting the thttpd web server?
Oddly, the one included on PHP 5.2.6 source is for PHP 4.x.
Thanks,
Kenneth
A: The thttpd SAPI that ships with PHP 5 works. Ignore the README where it says "PHP 4".
Howeve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to parse float? What is the best way to parse a float in CSharp?
I know about TryParse, but what I'm particularly wondering about is dots, commas etc.
I'm having problems with my website. On my dev server, the ',' is for decimals, the '.' for separator. On the prod server though, it is the other way round.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Why does Swing in my Java Applet flicker on fast mouse over? I made a Java Applet with some Standard GUI Components on it. I used the MigLayout Manager.
If I move the mouse slowly over the various GUI Components everything appears to be fine, but if I move the mouse fast, it flickers.
What could make that nasty ugly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Preserving signatures of decorated functions Suppose I have written a decorator that does something very generic. For example, it might convert all arguments to a specific type, perform logging, implement memoization, etc.
Here is an example:
def args_as_ints(f):
def g(*args, **kwargs):
args = [int(x) fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: Loading .sql files from within PHP I'm creating an installation script for an application that I'm developing and need to create databases dynamically from within PHP. I've got it to create the database but now I need to load in several .sql files. I had planned to open the file and mysql_query it a line at a time -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: How to find whether a particular string has unicode characters (esp. Double Byte characters) To be more precise, I need to know whether (and if possible, how) I can find whether a given string has double byte characters or not. Basically, I need to open a pop-up to display a given text which can contain double byte ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: CouchDB modeling for multi-user I am already excited about document databases and especially about CouchDB's simplicity. But I have a hard time understanding if such databases are a viable option for multi user systems. Since those systems require some kind of relations between records which document databases do no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Cognos 8 Javascript to select values in a multi select list box prompt I have a multi select list box value prompt in Cognos 8.3.
It contains values:
Adelaide North
Adelaide South
Adelaide East
Adelaide East
Sydney North
Sydney South
Sydney East
Sydney West
etc.
I want to able to add a button onto my prompt ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best "closable TabbedPane" Component in Java? After solving my flicker issue, I wonder if there is a better closable Tabbed Pane, then the one that pops up on top by googling for closabletappedpane?
(you recognize it by its processMouseEvents Method)
I especially need one, that never flickers :-)
Please... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Subcribe via RSS for log4j logs? Is it possible to subscribe to a url with log4j logs?
I understand that many applications do have daily error logs notification by email. But a problem with this approach is that the server that host the application may not provide smtp capability. Thus the RSS subscribe approach see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When using ANT, how can I define a task only if I have some specific java version? I have the problem that an specific step in Ant can only be executed when we have Java 1.5 installed in the build computer. The task definition uses uses a jar file that was compiled using 1.5, so running with a 1.4 virtual machine ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Customization of Hibernate sequence generation I have one hibernate sequence, that generates all sequence-numbers in my app. When I generate the schemas from hibernate (target Oracle10), it genererates:
create sequence hibernate_sequence;
I would like to change the configuration of the sequence. I have to use somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is your favourite Java Script WYSIWYG Editor component? I definitifely like the one at stackoverflow, because it's clean and simple. Also the live preview with code/syntax hilighting is really helpful (and motivating).
What is your favourite Javascript Editor Framework and why?
A: I like widgEditor because it'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to convert generic dictionary to non-generic without enumerating? I want to convert an instance of generic IDictionary to non generic IDictionary. Can I do it without creating new instance of IDictionary? Is any framework support for this task?
I tried wrap generic IDictionary in class that implements nongeneti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Javascript exception stack trace In Firefox I can get the stack trace of an exception by using exception.stack.
Is there a way to get that in other browsers, too?
Edit: I actually want to save the stack trace automatically (if possible) and not debug it at the time (i.e. I know how to get the stack trace in a debugg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: In SQL Server can I insert multiple nodes into XML from a table? I want to generate some XML in a stored procedure based on data in a table.
The following insert allows me to add many nodes but they have to be hard-coded or use variables (sql:variable):
SET @MyXml.modify('
insert
<myNode>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Linux configuration file libraries Are there any good configuration file reading libraries for C\C++ that can be used for applications written on the linux platform. I would like to have a simple configuration file for my application. At best i would like to steer clear of XML files that might potentially confuse u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Tabbed VS Tree for navigaion. Which is the preferred approach? I realize that in of TOAD books right, it justifies the reaons on why it uses tabbed pane is that tree view involves too much scrolling.
But for me i like tree view better. As it only shows you the top level.
I see TOAD user interface. i thought the tabb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I databind a ColumnDefinition's Width or RowDefinition's Height? Under the View-Model-ViewModel pattern for WPF, I am trying to databind the Heights and Widths of various definitions for grid controls, so I can store the values the user sets them to after using a GridSplitter. However, the normal pattern does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/147908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.