text stringlengths 8 267k | meta dict |
|---|---|
Q: Why does OpenCV reject cvLoadImage("string.ext"), but accept cvLoadImage(argv[1])? #include "cv.h"
#include "highgui.h"
#include <stdio.h>
int main(int argc, char* argv[]){
cvNamedWindow("Window1", CV_WINDOW_AUTOSIZE);
IplImage* image = 0;
->->image = cvLoadImage(argv[1]);<-<-
if(!image) printf("Un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I loosely couple database columns in a .NET application? I have two versions of an almost identical database. Below I have created an Example table to demonstrate the basic differences, namely the ID column has changed from an Integer Identity to a GUID and various properties have been updated, in the Examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the most efficient way to calculate running totals for consumption in Sql Server Analysis Services? I have a cube in SSAS 2005 that calculates running sums over millions of records. The current implementation is using a PeriodsToDate sum function in MDX and it is horribly slow, taking 15 minutes or more to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why do my Button send two postbacks when downloading zip file? I've got a problem on a WebForms application where a user selects some criteria from drop downs on the page and hits a button on the page which calls this method:
protected void btnSearch_Click(object sender, EventArgs e)
They then click on button to do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Avoiding UAC in vista im writing an application that downloads and installs addons for programs which needs to save the data to program files (for the programs in question). Now this works fine on xp and vista with uac disabled however it is failing on normal vista due to the virtual folders.
How would one get aroun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I have a J2EE application that needs updating within a client's intranet I have a J2EE application that runs fine and is accessible to the internet. Some of our prospective customers would like to use it, but are unwilling to send their data over the internet.
As a workaround I've thought of providing them with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does casing matter when spelling DOM event names? When specifying a DOM event name in Javascript, does casing matter? For example, which of the following will work reliably:
*
*onMouseOver
*onmouseover
*Both are ok. Casing does not matter.
*It's more complicated than that....
A: It depends. It is case ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I bind a Flex component property to a function? I want to set the enabled property on a button based on the return value of a function that has one or more parameters. How can I do this?
private function isUserAllowed (userName:Boolean):Boolean {
if (userName == 'Tom')
return true;
if (userName == 'B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why is snprintf faster than ostringstream or is it? I read somewhere that snprintf is faster than ostringstream. Has anyone has any experiences with it? If yes why is it faster.
A: Some guys would possibly tell you about that the functions can't be faster than each other, but their implementation can. That's right ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Have you ever had to file "TPS reports"? No, not literally. Rather, do you have any red tape horror stories of policies that affected your ability to produce quality software? I'm not talking about general human resources or systems administration policies like this question, but policies that were directly target... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In Silverlight, how do you determine what object is currently beneath the mouse by coordinates? I have object1 as a child of a Canvas. object1 has a MouseLeftButtonDown event handler which captures the object.
object1.CaptureMouse();
While still holding down the left mouse button, I move the mouse over object2. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What was the Historical Precursor for .NET Attributes? What languages or platforms influenced the .NET 1.0 Team to build-in the concept of Attributes from the very start? Was this an Aspect-Oriented thing? Serialization? or something else? I was still in VB6-land at this time, and never used any of the pre-1.0 .NET ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Should dependencies walk up or down the namespace tree? In a framework, should class dependencies run down a namespace (root to leaf) or up a namespace (think of it as an inverted tree with the root at the top)?
I'm having a hard time describing this, so let's look at an example:
namespace foo
{
class snafu : fuba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trying to return asp.net mvc JSONResult with VB.Net I'm trying to return a record from LINQ2SQL as a JsonResult to update my view page via jquery ajax. I'll post my code below. When I follow it through the debugger my function in the controller is being called and it is returning a record. I think there might be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get process info programmatically in C/C++ from a Solaris system? Is there a C/C++ library, and documentation about how to collect system and process information on Solaris?
Although I could parse command-line tools, I'd rather use a library that makes the task easier to do.
Thanks
Edit: It has been suggested... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Separating presentation/web-services Is it a good practice to develop web-service and web-site in two different languages, on two different servers? E.g. right now I create a Java web-service running on Glassfish and Ruby on Rails presentation layer running in the same server.
I'd like to leave web-service on the sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Auto refresh data in a .NET application using firebird RDBMS I’m developing a .NET application with an auto refresh feature. Every table in my database has a MODIFIED_DATE column that gets updated after each update or insert. At the moment the auto refresh feature will apply to only one table, however it may change ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Zend Framework: Proper way to interact with database? I'm fairly new to the Zend Framework and MVC and I'm a bit confused by Zend_DB and the proper way to interact with the database.
I'm using the PDO MySQL adapter and have created some classes to extend the abstract classes:
class Users extends Zend_Db_Table_Abstra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Different div 2 column layout This is different than the simple 2 column layout.
I need to have this html:
<div class="menu">
<div class="right">One</div>
<div>Three</div>
<div>Four</div>
<div class="right">Two</div>
<div class="right">Two</div>
<div>Four</div>
<div class="right">Two</div... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I redirect requests to specific files above the site root? I'm starting up a new web-site, and I'm having difficulties enforcing my desired file/folder organization:
For argument's sake, let's say that my website will be hosted at:
http://mywebsite.com/
I'd like (have set up) Apache's Virtual Host to map htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to send a WOL package(or anything at all) through a nic which has no IP address? I'm trying to send a WOL package on all interfaces in order to wake up the gateway(which is the DHCP server, so the machine won't have an IP yet).
And it seems that I can only bind sockets to IP and port pairs...
So the question is:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I post large data through an AJAX call (jQuery)? I am trying to use jQuery's ajax functionality to update data from a web form (ASP.NET MVC). Part of the data comes from a text area, and while is not a huge amount of data, can easily be more than 2 KB.
It seems that jQuery ajax puts all data into the query s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: determing the height in pixels of a gridview on an asp.net page at runtime? Anyone know if it possible at run-time to know how many pixels high an asp.net gridview is?
I have a gridview on the left of my page. On the right side, I populate with random images that vary in height and I would like to (as close as possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript carousel/slider with customizable navgation I am currently developing a site and have a need for a javascript-based carousel/slider hybrid on the home page that fades between 3 or 4 different images automatically, giving the user the chance to click on one and go to another page on the site. I also need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bazaar: moving from single-developer to an accessible repository I've started using bazaar DVCS for a project in a single-user mode, as described in their tutorial. I would like to involve another developer in this project, but the multi-user, "brancheable" repository seems to have different structure from my little... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What information does a developer get from apple about each user that buys an app in the appstore? Does anyone know what end user information a developer receives from Apple regarding a purchase of their application in the app store?
Do they receive the end users full name, the unique identifier of their iPhone/iPo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Morae Screen Text search not capturing screen text in WPF app When I try to use Morae Manager 3.0 to run a Screen Text search on a recording of our prototype (coded in WPF, .NET version 3.5 SP1), the only things that come up are the window titles. We are using Windows XP.
Even when I search for something that is edi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: YUI Button apply by class name Is it possible to apply / create a YUI Button by using an element's class name and not by id. I have to generate a list of buttons then transform it to a YUI button.
[Update]
By the way, I'm trying to apply the button in an anchor tag. So it will be a link button.
[Update:Code]
Ok so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Oracle ref cursor in Java without Oracle dependency According to google and some other sources (e.g., http://www.enterprisedt.com/publications/oracle/result_set.html), if I want to call a stored-function that returns a ref cursor, I need to write something like this in order to access the ResultSet:
String que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Computer Graphics: Raytracing and Programming 3D Renders I've noticed that a number of top universities are offering courses where students are taught subjects relating to Computer Graphics for their CS majors. Sadly this is something not offered by my university and something I would really like to get into sometim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Auto refresh web page I have a web page which allows the user to carry out various operations that in turn modify the database. Also, this web application needs to keep track of various fields in database that keep changing with time. Is refreshing the page every few seconds the best possible way to implement this? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Puzzling Enumerable.Cast InvalidCastException The following throws an InvalidCastException.
IEnumerable<int> list = new List<int>() { 1 };
IEnumerable<long> castedList = list.Cast<long>();
Console.WriteLine(castedList.First());
Why?
I'm using Visual Studio 2008 SP1.
A: That's very odd! There's a blog post here tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Are there any known issues of VS 2003/2005 and 2008 coexisting? Does anyone know of any issues with VS 2003/2005 and 2008 co-existing on the same install.
The registry hives are all separated and the .net frameworks all have their own locations. Only issue I can think of is the Web support (which can either be 1.1 o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: auto_ptr design In my opinion, a class should provide a well defined abstraction and no private members should be modified without the knowledge of class. But when I checked the "auto_ptr" (or any other smart pointer), this rule is violated. Please see the following code
class Foo{
public:
Foo(){}
};
int main(in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Grouping SQL Data in MySQL Side, or PHP? I have the following tables in MySQL:
team: id, name, [more stuff]
person: id, name, team, [more stuff]
entry: id, name, team, [more stuff]
registrations: id, event_id, team, status
registration_people: registration_id, person_id
registration_entries: registration_id, entry_i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any examples of Flot with floating tooltips? I am currently working on a Flot graph, the API which seems pretty powerful overall, although examples of advanced use are not widely documented.
The API suggests there are ways to set hoverable on the graph, not that I am sure what exactly that means I can do with it.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: make link on SWF File to another HTML I am having a problem with SWF File. I have a SWF File on my HTML page and i need to link it to another HTML i used but the anchor is not working. Any one can help me. How to link a SWF file.
Thanks
A: You can use SWFObject to add a flashvar like this:
<script type="text/jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the best way to validate/debug Mathml with free online tools? i have some xml with math ml inside, and i would like to find some free tools preferably online which i can use to validate and if possible even edit math ml.
Anyone knows of any good tools which i can use to do this?
Thanks.
Edit:
Does firefox 3.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the equivalent of a 'friend' keyword in C Sharp? What is the equivalent of a 'friend' keyword in C Sharp?
How do I use the 'internal' keyword?
I have read that 'internal' keyword is a replacement for 'friend' in C#.
I am using a DLL in my C# project that I have the source code for and yet I do not want to mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Can you specify which svn branches with git svn? I think my question is somewhat similar to CaptainPicard's but dissimilar enough that I feel compelled to ask so here goes.
I have an old SVN repository with around 7500 revisions and part of those 7500 revisions are some pretty large .fla files. And these .fla files ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: best language / framework for a web CRUD app with roles on Linux I have a Linux web server and I'd like to make some database tables (currently in Access) available on the web for CRUD. There needs to role-based security. What's the quickest path to develop this?
Also, which database would be best? I already have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I avoid run-time error when a worksheet is protected in MS-Excel? The code snippet below changes the data validation state of a cell and runs when the Excel-2003 worksheet is unprotected. However, when I protect the work sheet the macro doesn't run and raises a run-time error
Run-time error '-2147417848 (800... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How Do You Automatically Set the Width of Columns of a Databound ListView I have a databound list view and can set all the column widths manually except for the last. The data length of the last field varies greatly. The last column needs to expand to handle the width of the data and if greater scroll. I have tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How ZenTest works in detecting file save? I read some source code of ZenTest but didn't find where it is implemented.
Could you give me give some clue? Thanks in advance.
A: It looks like its in autotest.rb the method is called find_files_to_test, the algorithm is pretty basic, every second it checks the dates on a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NAnt and Vault Documentation So I am looking for documentation on the tags available in NAnt for Vault. I saw some samples on SourceGear's site but I don't think they are the exhaustive list. Does anywhere know where I can find documentation on all the eligible tags?
Thanks
A: This documentation along with the N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I write a User Defined Function? I would like to write this as a user defined function:
private double Score(Story s){
DateTime now = DateTime.Now;
TimeSpan elapsed = now.Subtract(s.PostedOn);
double daysAgo = elapsed.TotalDays; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP / MySql Verbosity VS over the wire I have been starting to write some reasonably large and or confusing MySQL queries in PHP. I am trying to find a balance between verbosity and performance. If performance has anything to do with it or not is my question.
It being white space and MySQL comments inside of my quer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.net Toolkit Masked Edit Control With 99:99 Time Mask I am trying to use the asp.net ajax toolkit masked edit control to take an hour/minute input with the mask 99:99 and the masktype="time" property set.
However it doesn't seem to do any time validation client or server side.... it allows me to input any numbers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a Windows Mobile emulator image I was wondering if there was a way to create my own Windows Mobile emulator image. I have a Sony Ericsson XPERIA X1 phone, which has a 480x800 on a 3 inch screen, approximately 300 DPI.
I'd like to create an emulator image with the correct screen properties, and hopefully a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When can't an object be converted to a reference? I want to compile the following line of code from http://code.google.com/p/enhsim:
enh::eout << enh::setw(26);
gcc gives the following error:
error: no match for 'operator<<' in 'enh::eout << enh::setw(26)'
But the EnhSimOutput class (of which enh::eout is an insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: .NET: Locking a ToolBarButton without specializing the class I am interested in locking a ToolBarButton in .NET 1.1 so that the property .Enabled = True is effectively ignored. I have looked at the members of the class and cannot find anything applicable.
I have found the Property Change Notification pattern in my r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to read iPhone files without jailbreaking? I'd like to access files in an iPhone, such as using remotely connecting via ssh and telnet. But it appears that the iPhone's ssh or telnet are not supported. I can ping it, but cannot use telnet or ssh.
I read through some internet article, it appears that using jailbr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Data modeling question - separation of data and calculation and accessor logic Ok, so I wanted to get opinions on this topic.
I have a dumb data object - CustomerOrder.
CustomerOrder has a price and a quantity but also has a TotalCash property (price * quantity). so I have a totalCash property but I dont want to pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a "request sent - waiting for response event" when dynamically loading an iframe? When dynamically inserting an iframe into a webpage, the JQuery load event allows me to trigger a callback function when this iframe is loaded (see also this stackoverflow article).
The problem I am struggling with, is that I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to keep DirectShow graph frames from bunching up when using a laggy filter? I have a DirectShow graph with the SampleGrabber filter doing some processing. The processing takes up to 50ms so often the playback speed is slower. The processing can be turned on and off.
My problem is that if the processing has been ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Weird HTTP problem/mistake with Lisp I'm attempting to learn a little more about handling sockets and network connections in SBCL; so I wrote a simple wrapper for HTTP. Thus far, it merely makes a stream and performs a request to ultimately get the header data and page content of a website.
Until now, it has worked ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cleanest way to run/debug python programs in windows Python for Windows by default comes with IDLE, which is the barest-bones IDE I've ever encountered. For editing files, I'll stick to emacs, thank you very much.
However, I want to run programs in some other shell than the crappy windows command prompt, which can'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Are there any new solutions for copying multiple groups of text to clipboard via JavaScript / Flash, since Flash 10? Since Flash 10 was introduced, many of the popular 'copy to clipboard' scripts out there have stopped working due to new security restrictions. There is a Flash-only solution here:
http://cfruss.blog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: "Finding" the "parent" object in a nested resource relationship? Say that I have two resources, Project and Task. A Project can have many Tasks; A Task belongs to one Project. Also say that I have Task nested under Project in routes.rb:
map.resources :projects do |project|
project.resources :tasks
end
Can one pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RESTful, efficient way to query List.contains(element)? Given:
/images: list of all images
/images/{imageId}: specific image
/feed/{feedId}: potentially huge list of some images (not all of them)
How would you query if a particular feed contains a particular image without downloading the full list? Put another way,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to organize 800 forms? My company is moving from classic asp (a nightmare) to .Net (rapidly becoming the same nightmare). We have over 800 forms, very similar in how they are processed, but 800 different sets of questions.
They have common code: add to the database, get from the database, validate user inputs,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fixing DB Inconsistencies - ID Fields I've inherited a (Microsoft?) SQL database that wasn't very pristine in its original state. There are still some very strange things in it that I'm trying to fix - one of them is inconsistent ID entries.
In the accounts table, each entry has a number called accountID, which is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to delete files via FTP when directory has over 100,000 files? I went to upload a new file to my web server only to get a message in return saying that my disk quota was full... I wasn't using up my allotted space but rather my allotted FILE QUANTITY. My host caps my total number of files at about 260,000.
Che... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it ok to use character values for primary keys? Is there a performance gain or best practice when it comes to using unique, numeric ID fields in a database table compared to using character-based ones?
For instance, if I had two tables:
athlete
id ... 17, name ... Rickey Henderson, teamid ... 28
team
teamid ... ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: 3 way calculation I have a data object with three fields, A, B and C. The problem is that the user can set any of them because:
A * B = C
So if a user starts off by setting A & B, C will be calculated. but then if a user set C, A gets recalculated, so there is an implicit anchoring that is happening based off the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: do you put your calculations on your sets or your gets . which is better ???
public class Order
{
private double _price;
private double _quantity;
public double TotalCash
{
get
{
return _price * _quantity;
}
}
or
public class Order
{
private double _totalCash;
private double _p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is "Memory Page out Rate" Could somebody please tell me what is "Memory Page Out Rate".
I have seen this in "HP Open View" server monitoring tool and tried googling it.
Would appreciate if some expert can clarify.
If page out rate is too high as 200+ per second, can it crash the server?
Thanks in advance
A: Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is using a while block to do nothing a bad thing? I'm currently working through the excercises in 'The C Programming Language'. Here's one of my solutions:
int c;
while ((c=getchar()) != EOF) {
if (c == ' ') {
while ((c = getchar()) == ' ')
{} // do nothing?
putchar(' ');
}
putchar(c);
}
I fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Template class with "typename" I have a template class where I want to use objects of that class (along with the parameterized type) inside a map. So far this is the solution that I've been able to arrive at:
class IStatMsg;
template <typename T>
class ITier
{
public:
// Methods
ITier(TierType oType) : o_T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone SDK - How to Tell if a Text Field Has Text? Sorry for the simple question but I feel like there's a smarter way to do this:
if ([txtFldTo.text length]>0){
//do something
}
else {
//do something else
}
where txtFldTo is an IBOutlet UITextField connected to a text field on the interface.
A: Somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ecommerce tool for selling services I am looking for a good eCommerce CMS.
I need to be able to sell services and products, it must be open source that it can be customised wherever needed.
I am very familiar with PHP and Mysql, and somewhat familiar with python and ruby, so a PHP solution would be preferred.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How does Google Books find text regions? One challenging topic in computer vision is processing document scans. Typically this involves a number of steps, like noise removal, color analysis, binarization, text block identification, OCR, and then maybe some context analysis and correction.
I'm curious if anyone un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# 3 byte Ints I am working on a project where I need to deal at the byte level with integers. Since saving space is a primary consideration, I only need very small (and variable length ints).
Is there a way that I can turn the int '4096' into 3 bytes? or '1053' into a 2 bytes?
Obviously I cna do it manually = (by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to set auto increment value=true in LINQ I have a table with names 'Employee' with four field EmployeeId,Name,Address,Age
I have set the EmployeeId is Primary key.I want that EmployeeId field will be incremented automatically whenever adding any new records.
Codebehind for insert is:
{
DataClassesDataCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hexgit number? if digit is the name for a number on base 10, what would be the name for a number on base 16? Hexgit?
A: It's a "nibble" (i.e., half a byte).
http://en.wikipedia.org/wiki/Nibble
A: Digit. Simply a hexadecimal one.
Are you looking for an analogue to bit for binary digit? Hexgit wouldn't be my choice;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Correct way to trigger a file download (in PHP)? Quick (and hopefully easy) question: I need to trigger a download of a PDF file that's generated by a PHP file. I can do this:
<a href="download.php">Download</a>
but should I be doing this another way? Javascript maybe? The above works but the window shows "Loadi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Finding closest match in collection of numbers So I got asked today what was the best way to find the closes match within a collection.
For example, you've got an array like this:
1, 3, 8, 10, 13, ...
What number is closest to 4?
Collection is numerical, unordered and can be anything. Same with the number to match.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to keep code base and database schema in synch? So recently on a project I'm working on, we've been struggling to keep a solution's code base and the associated database schema in synch (Database = SQL Server 2008).
Database changes occur fairly regularly (adding columns, constraints, relationships, etc) and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Linking Libraries in Xcode I'm using a powerbook (osx 10.5) and recently downloaded and installed FFTW 3.2 (link text). I've been able to compile and run some simple programs based on the online tutorial using the terminal:
g++ main.cpp -lfftw3 -lm
However, I can't get the same program to compile in Xcode. I get a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: GAE - How to live with no joins? Example Problem:
Entities:
*
*User contains name and a list of friends (User references)
*Blog Post contains title, content, date and Writer (User)
Requirement:
I want a page that displays the title and a link to the blog of the last 10 posts by a user's friend. I would also lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to keep my non-breaking spaces with HTML Tidy (PHP)? I've just noticed that tidy_repair_string() is removing my non-breaking spaces from empty elements causing my table to collapse. Basically I've put in:
<td> </td>
and HTML Tidy is stripping them out to:
<td> </td>
which may or may not be some Unicode ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery form submit() is not working in IE6? I want to submit a with using jquery as below;
$("#formid").submit();
Its working perfect in all browsers except IE6.
How to make it work in IE6 ??
A: You probably have an <input name="submit" /> somewhere in your form, which overwrites the function "submit" of the form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Loading an object in ServletContext (application scope) I would like to put two small constant objects (one TreeMap and one ArrayList) somewhere in the ServletContext of a Struts2 webapp (running under Tomcat 6), such that those objects may be accessible from any JSP, through the Application Scope.
Under Struts1, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ORACLE ROWNUM I have an employee table called ID_EMPLOYEE_MASTER with the fields
EMP_CODE,
EMP_NAME,
EMP_JOIN_DATE,
EMP_STATUS,
EMP_BASIC,
EMP_ACCOUNT,
EMP_BANK
I want to query all the employees whose status is 'P' ie..PRESENT,THEIR BANK ACCOUNT ie.. EMP_ACCOUNT, THEIR BASIC ie EMP_BASIC,THEIR NAME ie.. EMP_NAME, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to correct Zend_Uri_Exception (YouTube API with PHP Zend Gdata) I am using Zend Gdata to interface with the YouTube API from a PHP script. I actually had this working fine, and suddenly I am getting a fatal error about a 'Zend_Uri_Exception' with message 'Invalid URI supplied'. How can I correct the exception?
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get list of units in a Delphi Compiled Package (.dcp file) Is there a way to list what units/classes are in a Delphi compiled package?
A: Have you had a look at the TDUMP utility that is shipped with Delphi 7? A bpl is just a fancy DLL so you can list its exported functions:
e.g.
"C:\Program Files\Borland\D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Want to read a file to a TStringList Yes I want to read a simple a logfile into a TStringList and that is easy done with LoadFromFile. But the problem is that the file can be already opened by another program at the same time so an exception may appear. I have tried to use:
FileMode := fmShareCompat;
But it won't w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I make Emacs mouse scrolling slower and smoother? When I scroll in Emacs using mouse wheel, it scrolls 5 lines at a time, which, I think, is way too much - where do I set a new value?
Also, when I scroll in Emacs with a mouse (either wheel or scrollbar), the cursor jumps to stay inside the visible screen are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Deploying a webapp remotely to Tomcat using Ant on OSX I wish to use the Tomcat install/deploy tasks from catalina-ant.jar to deploy a webapp to a remote app server.
After installing Ant using the instructions found here, my ant folder is configured as:
/usr/local/ant
My "Ant Home" has also been set to that directo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate List<> of custom object I have the following requirement
I have a Employee class:
public class Employee
{
public int ID{get; set;}
public string EmpFName{get; set;}
public string EmpLName { get; set; }
}
I want to do something like this when creating values
var Emp = new List<Employee>[]{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In .NET MVC, can we keep the CSS inside the Views folder? I am working with ASP.Net MVC. When I keep the css inside the Views folder, its not loading the CSS. Can anybody help me regarding this issue?
A: I like a css file per View folder, just for organization. That way I can work with html and the corresponding cs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Create Window larger than desktop (display resolution) I need to resize a window larger than screen resolution or size of desktop, programmatically & preferably also manually.
Since MS-Windows XP/Vista disallows a window size larger than screen, does anybody have any ideas to work around this limitation?
I trying to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Dynamically Load HTTP Modules, Possibly with Unity? Has anyone seen any how-to, documentation, or otherwise about how to load HTTP Modules dynamically for IIS?
Basically what I am trying to do is to load HTTP Modules, which I'll call HTTPModuleA, HTTPModuleB, and HTTPModuleC. The modules however could be changed ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Comparison of unicode characters in xsl:if i have this block of xslt if-else case and was wondering if there's a way for me to do straight comparison with unicode character?
Something along the lines of the code shown below? Or does xslt have some built in function which i can use for this purpose? i.e. change the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a library that generates UIs based on metadata declarations like this>>? Do you know about a library that allows us to generate UI by just stating that it should be generated?
I think there must be a person who have implemented a mechanism allowing us to transform code like this:
class Main {
@Command
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Remote Object request image change I am using Flex with BlazeDS to connect a J2EE AppServer. Can I place any Global Image in any global position that would change automatically whenever any remote object is called and the image would be set as default whenever the response comes back from the server?
A: I assume yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XML Schema to C++ Classes I have to write a C++ Application (using the Qt Framework for the GUI) that can edit data stored in xml files described by a xsd schema file. Is there a tool to convert the xsd schema into C++ Classes?
A: See XmlPlus-xsd2cpp at Google:
XmlPlus xsd2cpp provides "simple to use" C++ XML data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Mapping Composite keys in Fluent NHibernate I am new to Fluent NHibernate and have been unable to figure out how to map composite keys.
How can I do this? What approach do I need to take?
A: There's a CompositeId method.
public class EntityMap : ClassMap<Entity>
{
public EntityMap()
{
CompositeId()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Create regex from glob expression i write program that parse text with regular expression. Regular expression should be obtained from user. I deside to use glob syntax for user input, and convert glob string to the regular expression internally. For example:
"foo.? bar*"
should be converted to
"^.*foo\.\w\bar\w+... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Piracy protection using USB based hardware solution i want to protect my Java product by using some USB-based authentication and password management solution like you can buy it here:
aladdin
This mean that you have to connect a USB stick with a special software on it, before you can start your application.
I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.