text stringlengths 8 267k | meta dict |
|---|---|
Q: C# - Instantiate a class depending on a provided interface in a generic class I have a generic function which gets a interface as a type, now in one condition I have to create a new class depending on the interface. I have been thinking about it and a way to solve it would be to use an IoC but I was hoping there wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Select which href ends with some string Is it possible using jQuery to select all <a> links which href ends with "ABC"?
For example, if I want to find this link <a href="http://server/page.aspx?id=ABC">
A: $("a[href*=ABC]").addClass('selected');
A: Just in case you don't want to import a big library like jQuery ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "700"
} |
Q: Can you get a specific error condition when a C++ stream open fails? Is there any way to get a specific error condition when a C++ stream open fails? That is, whether it failed because the file didn't exist, or permissions were wrong, or etc. Basically I'm looking for functionality equivalent to errno for fopen() in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I select multiple sets of attributes within an XML document using XPath? I am having trouble constructing a single XPath statement to return two different sets of attributes.
For example take the following XML document:
<root>
<line name="one" alpha="a1" beta="b1"/>
<line name="two" alpha="a2" beta="b2"/>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: In Linq, check child relationships? Is there any way in Linq to check to see if a record of a parent exists in its children?
I have a table that has a foreign key relationship with 12 other tables. All I want to do is see if any records in those child tables depend on the parent, so I can delete it without causing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Log all queries in mysql Is it possible for me to turn on audit logging on my mysql database?
I basically want to monitor all queries for an hour, and dump the log to a file.
A: For the record, general_log and slow_log were introduced in 5.1.6:
http://dev.mysql.com/doc/refman/5.1/en/log-destinations.html
5.2.1. Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "348"
} |
Q: Handling updates to a Cached DataTable when the users session holds DataViews based on that DataTable My website runs on a single server. I am caching a DataTable. Each session has a refernce to it's own DataView referring to that DataTable. What I am worried about is when I need to make changes to the underlying da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mutli-threaded application hanging on _dl_sysinfo_int80 I have a multi-threaded application that is hanging on a call to _dl_sysinfo_int80(). According to gdb, all threads are stuck in this call.
The top of the stack trace looks like:
#0 0x002727a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x004f23de in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Truncate a decimal value in C++ What's the easiest way to truncate a C++ float variable that has a value of 0.6000002 to a value of 0.6000 and store it back in the variable?
A: First it is important to know that floating point numbers are approximated. See the link provided by @Greg Hewgill to understand why this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I setup a Right Click context menu in Silverlight? I want to create a right click context menu for my textboxes to provide the typical copy/paste functionality. Any ideas on how to go about this?
A: Looks like this is a way to do this here, another example here, and the most recent one here. Using these met... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I access 'this' from within a C# extension method? I've been working with Vector2's and XNA, and I've come to find that calling the Normalize() member function on a Zero Vector normalizes it to a vector of {NaN, NaN}. This is all well and good, but in my case I'd prefer it instead just leave them as Zero Vec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bug in SQLite self-join on id? I'm trying to generate pairwise combinations of rows on based on their ids. SQLite version is 3.5.9. The table contents are the following:
id|name|val
1|A|20
2|B|21
3|C|22
with table schema being:
CREATE TABLE mytable (
id INTEGER NOT NULL,
name VARCHAR,
val INTEGER,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MFC built using /clr compiler option - CString/System::String conversion I've got a fairly large MFC application that has just been migrated from VS6.0 to VS2008. It was a pretty painful process, but now I'd like to explore any managed-code options that may be available. I was able to successfully build the project ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Emacs 23 and iPython Is there anyone out there using iPython with emacs 23? The documents on the emacs wiki are a bit of a muddle and I would be interested in hearing from anyone using emacs for Python development. Do you use the download python-mode and ipython.el? What do you recommend?
A: I got it working quite ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: T-SQL distance formula using a radius in miles around a central location What's the best way to calculate the distance formula around a central location using a radius in miles? We've typically been using a circular radius formula, but are considering using a plain square because it's faster and much more efficient.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best practices on managing complexity/visualizing components in your software? We're building tools to mine information from the web. We have several pieces, such as
*
*Crawl data from the web
*Extract information based on templates & business rules
*Parse results into database
*Apply normalization & filterin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Specifying a proxy to use with DotNetOpenID I'm using DotNetOpenID to provide relying party OpenID support for our website. All external requests have to be brokered via a proxy server, and I'm looking for a way to tell DotNetOpenID to use this proxy. I know I can set up a global proxy config in web.config, but I cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Generics / JSON JavaScriptSerializer C# I'm building a winForms app in NET3.5SP1 using VS2008Express. Am trying to deserialize an object using the System.Web.Script.Serialization library.
The error is: Type 'jsonWinForm.Category' is not supported for deserialization of an array.
Cheers!
using System;
using System.C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is there a secure browser cache? Note: this is a different problem to https - it's related to privacy security
I'm trying to figure out if there's a way to take load off our server [cache] by pushing information to the browser. Is there any technology that will provide secure caching that is bound to a session?
We ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is C code still considered C++? The comment to this answer got me wondering. I've always thought that C was a proper subset of C++, that is, any valid C code is valid C++ code by extension. Am I wrong about that? Is it possible to write a valid C program that is not valid C++ code?
EDIT: This is really similar to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why shared_ptr has an explicit constructor I was wondering why shared_ptr doesn't have an implicit constructor. The fact it doesn't is alluded to here: Getting a boost::shared_ptr for this
(I figured out the reason but thought it would be a fun question to post anyway.)
#include <boost/shared_ptr.hpp>
#include <iost... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How much math do I need to become productive in Haskell? I'm interested in learning Haskell on my own time (not through a course), but I suspect that my math background may be insufficient to grok important language concepts (TBD).
I have had a year of college calculus (single variable), but not discrete math or log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Getting the icon associated with a running application Having the window handle for an open application, I'm able to use the GetWindowText function to retrieve the text from the title bar of the app. I would like to take this a step farther and retrieve the icon associated with the same app.
How might I go about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a way to send optional parameters to an action? Can I send optional parameters (empty strings, null int?'s etc) to an action through a GET request in asp.net mvc? (one sentence question!)
A: You can do optional parameters with the routing table fairly easily, just specify the defaults in the route of the g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Data Modelling Advice for Blog Tagging system on Google App Engine Am wondering if anyone might provide some conceptual advice on an efficient way to build a data model to accomplish the simple system described below. Am somewhat new to thinking in a non-relational manner and want to try avoiding any obvious pitfal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you return a constant from an sql statement? How do I return a constant from an sql statement?
For example how would I change the code below so "my message" would return if my (boolean expression) was true
if (my boolean expression)
"my message"
else
select top 1 name from people;
I am using ms sql 2000
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: RegDelete cannot delete Registry key in WSH 5.7 Based on the advice provided at http://www.tweakguides.com/VA_4.html to prevent Windows Vista from "intelligently" rearranging column formats in Windows Explorer, I have written a script to automate the process a little.
Dim WshShell
Set WshShell = WScript.CreateObject... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How best to pass a message for the user between pages So the chain of events is:
*
*The user submits a form.
*During the processing of the submission, there is a message generated, such as "Your record was saved."
*The user is redirected to a new page, say the search results.
*The new page needs to display the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Project design / specification critique, is this the right idea? Say we are creating Acme CMS. This CMS web application will allow you to create an unlimited number of categories with sub-categories (unlimited depth), and each category can have 0+ content pages associated with it.
So this project, at a high level w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ISAPI_Rewrite In IIS 7 I've been using ISAPI_Rewrite from Helicon (http://www.helicontech.com/isapi_rewrite/) on a Server 2003 box for years and have always had good luck with it.
I'm migrating all the sites on the 2003 box to a new shiny Server 2008 box. I would prefer to not purchase a new license and I have hear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Twisted FTPFileListProtocol and file names with spaces I am using Python and the Twisted framework to connect to an FTP site to perform various automated tasks. Our FTP server happens to be Pure-FTPd, if that's relevant.
When connecting and calling the list method on an FTPClient, the resulting FTPFileListProtocol'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Vector or diagram drawing webservice I have a webapp from which I'd like to insert diagrams and images quickly and easily. I expect there is, somewhere out there, a webservice which will take a URL with a parameter that describes the vector graphics or diagram and returns an image.
No unlike what google charts does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I detect clicks when using YUI drag drop? I'm using YUI to add drag drop support to a div. It also responds to clicks. Unfortunately, the click behavior takes effect even after a drag drop operation. Here's a code snippet:
// Create a DOM object for the group tag.
div = document.createElement('div');
div.clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I use ModalPopup from the ASP.NET Script-Only ajax control toolkit? I am using the ASP.NET Client-Side ajax control toolkit in my asp.net MVC application. I see that there is a .js file named "AjaxControlToolkit.ModalPopup.ModalPopupBehavior.js" in the AjaxControlToolkit folder. However, I cannot find any exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find all nodes from an XML using cElementTree Is there a way to find all nodes in a xml tree using cElementTree? The findall method works only for specified tags.
A: You can use XPath paths on the findall method:
The 1.2 release supports simple
element location paths. In its
simplest form, a location path is o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET - What IoC Container framework would you recommend to a beginner in this area? What Inversion of Control Container framework would you recommend to a beginner in this area?
A: Autofac.
Lightweight, simple, fast, C# 3.0-oriented and works (for me) better in complex projects than any other IoC Container (even W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I detect that the number of rows in an NSTableView has changed? I have a custom NSTableView subclass which is bound to a data source (an NSArray) which updates asynchronously. When items are added to the array, rows are automatically added to the tableview. Awesome!
My question is this: How can I detect that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use Ajax.BeginForm MVC helper with JSON result? I'm trying to use the ASP.NET MVC Ajax.BeginForm helper but don't want to use the existing content insertion options when the call completes. Instead, I want to use a custom JavaScript function as the callback.
This works, but the result I want should be returne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Best Language for Windows 2000-based Website I've been contacted to see about updating an old legacy web application that was built using ASP and Access. The server is running Windows 2000 Advanced Server and I believe IIS 5.0 (I am trying to get confirmation on that, but the company isn't technical so I highly doub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to dynamically call child class methods in PHP 5? <?php
class foo
{
//this class is always etended, and has some other methods that do utility work
//and are never overrided
public function init()
{
//what do to here to call bar->doSomething or baz->doSomething
//depending on wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there an optimal byte size for sending data over a network? I assume 100 bytes is too small and can slow down larger file transfers with all of the writes, but something like 1MB seems like it may be too much. Does anyone have any suggestions for an optimal chunk of bytes per write for sending data over a networ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Targeting 64-bit I'm building a web application on .Net and it will run on 64 bit server. Is there something special that I should do to take full advantage of 64 bits?
Only thing that comes to mind is that RAM is cheap and "unlimited" for 64bit, maybe I should cache as much as possible.
Edit: closing as duplicate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to find the inverse of datetime.isocalendar()? The Python datetime.isocalendar() method returns a tuple (ISO_year, ISO_week_number, ISO_weekday) for the given datetime object. Is there a corresponding inverse function? If not, is there an easy way to compute a date given a year, week number and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Access to Modified Closure (2) This is an extension of question from Access to Modified Closure. I just want to verify if the following is actually safe enough for production use.
List<string> lists = new List<string>();
//Code to retrieve lists from DB
foreach (string list in lists)
{
Button btn = new Butto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Django Deployment I am given a responsibility in my project to develop a Equipment tracking tool with following requirements
*
*New Equipment can be added by admin to a particular user
*Once equipment is assigned to a person he will a request to accept the request so he will be responsible
*User can transfer hi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting a File's MD5 Checksum in Java I am looking to use Java to get the MD5 checksum of a file. I was really surprised but I haven't been able to find anything that shows how to get the MD5 checksum of a file.
How is it done?
A: The com.google.common.hash API offers:
*
*A unified user-friendly API for all has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "567"
} |
Q: How to pass a parameter to a dynamically set JavaScript function? Ok, I have one JavaScript that creates rows in a table like this:
function AddRow(text,rowID) {
var tbl = document.getElementById('tblNotePanel');
var row = tbl.insertRow(tbl.rows.length);
var cell = row.insertCell();
var textNode =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Security Sandbox in AS3 What is a security sandbox violation, and how do I override it? I'm making a project in FlashDevelop, and today, it will not load external files, even though it had been previously. It gives the following output:
************* Security Sandbox Violation ********* Connection to
file:///C|... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Classic ASP getting SCOPE_IDENTITY() Value from SQL2005 I can't figure out how to get the SCOPE_IDENTITY() back to my variables from an SQL2005 Store Procedure.
My sSQL String:
sSQL = "EXEC [sp_NewClaim] " & Chr(34) & ClaimNumber & Chr(34) & ", " & Request.Cookies("UserID") & ", " & Request.Cookies("MasterID") & ", ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can HTML5 sessionStorage be written to disk? (Related to Is there a secure Browser Cache? ):
Do any of the implementations of HTML5 session storage write to disk ever?
e.g. can I rely on having a "secure"/"private" cache that I know will not be able to persist beyond the browser session whether it
*
*times out
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Simple Question about Visio 2007 (trying to create a simple UML diagram(C++) )? I'm simply trying to create a UML diagram where I can show the header file declarations.
I to be able to display things such as:
Bitmap * getImage()
Coordinate * getCoordinates(Object o)
Stuff like that. Problem is, I can't figure out h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does ASP.NET webforms need the Runat="Server" attribute? Why do I have to specify runat="server" on all my ASP.NET controls when it is a mandatory attribute and server is the only option available in my limited knowledge of ASP.NET, and I get an error if I don't use it?
I do understand that I can optionally use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "209"
} |
Q: WebClient.DownloadFileAsync: With many file downloads I am using multiple instances of the WebClient class in order to download many small files at the same time asynchronously from a web server on the internet.
The URI i'm using has it's IP in number notation to avoid unnecessary DNS resolutions.
I am pushing it a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does my page have to have the HTML5 doctype to access sessionStorage Our dev shop continues to support IE6 etc. I'm wanting to use session storage to make an app-cache but wondering how much work it would be...
Is it possible to use an HTML4 doc type in an HTML5-compatible browser and still access the sessionStor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using boolean or enum columns in indices? I`ve read that columns that are chosen for indices should discriminate well among the rows, i.e. index columns should not contain a large number of rows with the same value. This would suggest that booleans or an enum such as gender would be a bad choice for an index.
But s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Does MySQL index foreign key columns automatically? Does MySQL index foreign key columns automatically?
A: As stated it does for InnoDB. At first I thought it was strange that many other (in particular MS SQL and DB2) doesn't. TableSpace scans are only better than index scans when there are very few table rows - so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "307"
} |
Q: SilverLight DataGrid: Copy & paste
*
*Is there a way that I can select a bunch of rows or cells from a SilverLight DataGrid and Copy them for pasting into e.g. excel?
The DataGrid doesn't seem to have this functionality built in!
Thanks a lot
A: Silverlight 4 is great, Ctrl-A a datagrid, copy and paste it int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there an equivalent of 'which' on the Windows command line? As I sometimes have path problems, where one of my own cmd scripts is hidden (shadowed) by another program (earlier on the path), I would like to be able to find the full path to a program on the Windows command line, given just its name.
Is there an equ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2743"
} |
Q: Silverlight DataGrid: Export to excel or csv Is there a way I can export my Silverlight DataGrid data to excel or csv?
I searched the web but can't find any examples!
Thanks a lot
A: I have found this using the clipboard.
To make the code generic you can modify the first example to read the column bindings and ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Integrating external scripts with Zend Framework What is the best way to integrate an external script into the Zend Framework? Let me explain because I may be asking this the wrong way. I have a script that downloads and parses an XML file. This script, which runs as a daily cron job, needs to dump its data into the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: POST data to a PHP page from C# WinForm I have a winForms NET3.5SP1 app, and want to POST data to a PHP page.
I'm also going to be passing it as JSON, but wanted to get straight POST working first.
Here is the code:
Person p = new Person();
p.firstName = "Bill";
p.lastName = "Gates";
p.email = "asdf@... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Anyone uses ASP .NET Membership? Was wandering if anyone uses ASP .NET membership? If you do, tell me what you think about it.
If you don't use it, Are you planning to use it on future projects? If not, why?
RWendi
A: Yes. Have used it quite a lot, and it will save you a lot of work.
There are some pain points l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Mark MSI so it has to be run as elevated Administrator account I have a CustomAction as part of an MSI.
It MUST run as a domain account that is also a member of the local Administrators account.
It can't use the NoImpersonate flag to run the custom action as NT Authority\System as it will not then get access to netw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: File permissions on Shared hosts I've written a script which takes the summary of an order and stores in into an XML file, except the problem is that I don't want people to be able to open the XML file in their browser, obviously.
I'm hosted on a very dodgy shared server with limited abilities: no SSH, for starters.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does anyone here have experience developing for Minix? Recently I have become curious about the Minix OS. http://www.minix3.org/
I am very taken with descriptions of its robustness & reliability features, but I have noticed a distinct paucity of software packages available for the platform.
Has anybody here develope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Visual Studio Extensibility, How do you enumerate the projects in a solution? Just trying to get up to speed with the SDK...
So, I've created my own tool window....
Now I want to iterate through the existing projects in the currently loaded solution and display their names in the tool window....
but not quite sure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I get LongVarchar out param from SPROC in ADO.NET 2.0 with SQLAnywhere 10? I have sproc 'up_selfassessform_view' which has the following parameters:
in ai_eqidentkey SYSKEY
in ai_acidentkey SYSKEY
out as_eqcomments TEXT_STRING
out as_acexplanation TEXT_STRING
- which are domain objects - SYSKEY is 'integer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Will the .Net Entity Framework work with a .mdb? Can use a .mdb file as the data source for an Entity Framework model using the Microsoft Jet OLEDB data provider? If so, how will I be limited? No stored procedures, for example.
A: Not a Entity Framework Expert, but seems to be not working with MS Access.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/304367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery - cycle help I'm looking to get some help on using the cycle library for jQuery. I'm in the beginner demos, and I got the absolute first one completed. This is the second one on the page.
<script src="jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="jquery.cycle.all.min.js" type="text/javasc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Zend Framework Updates? How long do you normally test an update for Zend Framework before pushing it out into a productions project. We can break this question up into minor updates 1.6.0 -> 1.6.1 or maybe a major update 1.6.2 -> 1.7.0. Obviously you don't release it if it add bugs to your code.
Also, as with most... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: View ASPX page in Web browser I have the following .aspx page, and I want to view it in web browsers such as IE or Google Chrome by opening it directly in those browsers:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When Are Custom Event Handlers Attached? I have a UserControl inside a GridView.
When are the Custom Event Handlers attached to the UserControl ?
Please tell me because I have no idea.
In the scenario below the UserCreated event handler is null at the time the UserCreated event is fired, i.e. during DataBinding. Onc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to edit log message already committed in Subversion? Is there a way to edit the log message of a certain revision in Subversion? I accidentally wrote the wrong filename in my commit message which could be confusing later.
I've seen How do I edit an incorrect commit message in Git?, but the solution to that quest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "590"
} |
Q: How do I compare two images & recognize the pattern in an image? How do I compare two images & recognize the pattern in an image irrespective of its size and pattern size, and using .Net C#? Also, which algorithms are used for doing so from Image Processing?
A: See Scale-invariant feature transform, template match... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I develop a plug-in for QtWebKit? I am trying to develop a plug-in for QtWebkit. But I am not able to find how to develop a plugin for QtWebKit, hopefully one that can be invoked by JavaScript. Does anyone know of any tutorials or documents that explain how to do this?
Webkit has been intregated into Qt and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Function overloading vs. default parameters in VB.NET? In VB.NET, which is better to use: function overloading or default parameters?
A: if the parameters are optional (i.e. the overloads are a subset of the parameters that the full procedure signature accepts) then default or optional parameters would make more se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Most efficient way to delimit key Say I have a string of 16 numeric characters (i.e. 0123456789012345) what is the most efficient way to delimit it into sets like : 0123-4567-8901-2345, in PHP?
Note: I am rewriting an existing system that is painfully slow.
A: Use str_split():
$string = '0123456789012345';
$sets = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create a sqllite3 in-memory database? One of the appropriate uses for sqlite3 is "in-memory databases". This sounds like a really useful tool for my C++ applications. Does anyone have an example of how this is done in C or C++? I'm specifically looking for a canonical way to slurp several flat-files into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the easiest way to order a / in jQuery? I'm looking for some sample code that will sort the list items in an HTML list by alphabetical order. Can anyone help?
Here is a sample list for people to work with:
<ul class="alphaList">
<li>apples</li>
<li>cats</li>
<li>bears</li>
</ul>
A: var items =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: What is the best way of converting a Microsoft Word document into XHTML? I would like to programatically convert a Microsoft Word document into XHTML. The language of choice is PHP, so I would appreciate any suggestions with PHP.
The initial idea is trying to convert the doc file into odt, and then use the Odt2Xhtml... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PostgreSQL or MS SQL Server? I'm considering using PostgreSQL with a .Net web app. Basically 3 reasons:
*
*Mature Geo Queries
*Small footprint + Linux
*Price
I'm wondering a bit about tools though, SQL Server Profiler and query plans and performance monitors have been helpful. How is this world with Postgres?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL DataReader missing a row in loop When running the following code it leaves out one row. When I do a files.Count it says there are 4 rows but there is no data stored for the 4th row. When I run the stored procedure from within SQL Manager it returns all 4 rows and all the data. Any help?
List<File> fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mocking a COM object I have been working on a wrapper for a COM object that can only take and return strings. The interface for the COM object looks like this:
interface IMapinfo
{
void Do(string cmd);
string Eval(string cmd);
}
Now I have made classes that wrap up basic functions like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Keeping track of web site configuration details, action items, documentation? Does anyone know of an application (hosted or otherwise) that I could use to keep track of details for a number of web sites? I manage 50+ web sites that range from custom solutions to open source platforms (WordPress, Joomla). I started... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to cleanly reuse edit / new views in Asp.NET MVC I'm trying to avoid code like this when reusing the same ViewUserControl in ASP.NET MVC. Any suggestions?
<% if (ViewContext.ViewData["editMode"].ToString() == "edit"){ %>
<%= Html.SubmitButton("submit", "Update Brand")%><span class="or">Or</span><a href="#" c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Virtual PC 2007 or Hyper-V for personal desktop use? I'm running Vista on my laptop, but would like to virtualize Ubuntu so that I can boot it from time to time for my personal use (e.g. running code, testing Linux programs). I tried this with Virtual PC 2007 (I allocated 1G of RAM for Ubuntu), and it was very slow.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Generate an integer sequence in MySQL I need to do a join with a table/result-set/whatever that has the integers n to m inclusive. Is there a trivial way to get that without just building the table?
(BTW what would that type of construct be called, a "Meta query"?)
m-n is bounded to something reasonable ( < 1000's)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: FireFox sits on "Transferring data from..." or "Read...." I'm building some functional tests for a web site using Selenium, and I'm stuck on a bizarre browser issue where the page never seems to finish loading. The status bar reads either "Transferring data from..." or "Read...".
Since the page never finishes loadi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Monitoring ASP/COM+ application performance in Windows 2003/IIS 6.0 We are running a website using Active Server Pages & COM+ components. The ASP pages call COM+ components which in turn communicates with external systems and respond to ASP page requests.
We find that the application becomes slow over a period of ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determining if a Unicode character is visible? I am writing a text editor which has an option to display a bullet in place of any invisible Unicode character. Unfortunately there appears to be no easy way to determine whether a Unicode character is invisible.
I need to find a text file containing every Unicode char... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I open other people's Outlook calendars from Perl? I can access my calendar entries as:
$folder = $namespace->Folders("Joe Cool")->Folders("Calendar");
How do I open "Jane Cool" Calendar? Outlook shows that calendar as:
People's Calendar
Jane Cool
A: I believe you are looking for the GetSharedDefaultFo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RECENT Java References? I'e been programming Java forever, but have been away from it for a while. Can anyone recommend a really good Java reference, where "really good" is defined by "Good coverage of the language, detailed coverage of recent extensions, and written for the technical reader (not a "for Dummies" so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reserving Desktop Space so maximized windows don't cover it I'd like to "reserve" a portion of the screen so that maximized windows don't cover that area (think taskbar(Win) or dock(mac).
I've seen other programs that have done this, but really have not liked them and since I'm in the business, thought I might have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript Regular Expressions - Required field validation How do I check if a field (textbox) is empty or filled only with white spaces (spaces/enters/tabs etc.), using javascript RegExp?
A: /^\s*$/.test(string)
Could be used like so:
var empty_string = /^\s*$/; //create RegExp object for re-use
if (empty_string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What are security problems with piggybacking authentication off another site (basic auth)? I have a WSS installation that's behind basic authentication/SSL (it's hosted at a public web host). I'm creating a sister site in ASP.NET, and am considering just running the credentials through and allowing users to log into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Variable variable class extensions in PHP--is it possible? Is something like the following possible in PHP?
$blah = 'foo1';
class foo2 extends $blah {
//...
}
class foo1 {
//...
}
This gives an error.
I want to dynamically set $blah so I can extend whatever class I want.
Edit: The reason for wanting to do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Round trip editing of binary documents stored on a server I'm looking to build some functionality for a content management system for the editing of files stored on the server.
I'd like to provide users the ability to easily download files locally to their computer, open the file for editing, and save it back to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: F# Code in an App_Code subfolder I have a project with 2 subfolders in the App_code folder, one for VB and one for F# (C# files are in the root). I can access the VB classes just fine (via the namespace) but not the F# code. Has anyone had a problem like this and if so how did you fix it?
Addendum:
F# code that is n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send serialize form data using JQuery if the input element is an array I have this piece of code in my PHP code:
while ($row = mysqli_fetch_assoc($result))
{
extract($row);
echo "<tr>";
echo "<td bgcolor='#FFFFFF'><input id='bookArray[]' name='bookArray[]' type='checkbox' value='$book_id' />$book_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: PHP can't open local file when called externally I'm using the WorldPay payment gateway on a website I'm working on. It handles all the credit card authorisation, and then calls a PHP file on my server with information about the transaction. It grabs the output from my script and displays it in the WorldPay chrome.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.