text stringlengths 8 267k | meta dict |
|---|---|
Q: How are Operating Systems "Made"? Creating an OS seems like a massive project. How would anyone even get started?
For example, when I pop Ubuntu into my drive, how can my computer just run it?
(This, I guess, is what I'd really like to know.)
Or, looking at it from another angle, what is the least amount of bytes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Benefits of using a constructor? In my quest in trying to learn more about OOP in PHP. I have come across the constructor function a good few times and simply can't ignore it anymore. In my understanding, the constructor is called upon the moment I create an object, is this correct?
But why would I need to create th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Trying to add a ToolStrip to a ToolStripPanel side-by-side with an existing ToolStrip I'm using .net 2.0 with Visual Studio 2005 and I am trying to add two different toolstrips to the top of the form such that they show up side-by-side. I want it to be like Word 2003, where you can add multiple toolstrips to the sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Optimization in Python - do's, don'ts and rules of thumb Well I was reading this post and then I came across a code which was:
jokes=range(1000000)
domain=[(0,(len(jokes)*2)-i-1) for i in range(0,len(jokes)*2)]
I thought wouldn't it be better to calculate the value of len(jokes) once outside the list comprehension?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how to find items that aren't part of the alphabet In my view I have an alphabet based selector, to select manufacturers by the first letter of their name. I got that part working. But I have manufacturers whose name starts with a number, for example 3M, or 3DLabs. In the view I have the character "#" to group all t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to get data from "clean" and "dirty" URLs I'm writing an application that gets data from URLs, but I want to make it an option whether or not the user uses "clean" urls (ex: http://example.com/hello/world) or "dirty" urls (ex: http://example.com/?action=hello&sub=world).
What would be the best way to get va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to customize the background color of the standard label within a UITableViewCell? I'm trying for the past several hours to figure out how to do this, but with no luck. There are several potential solutions for this when searching Google, but nothing seems to work.
I'm trying to customize the background color of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling from a parent file in python I have a file called main.py and a file called classes.py
main.py contains the application and what's happening while class.py contains some classes.
main.py has the following code
main.py
import classes
def addItem(text):
print text
myClass = classes.ExampleClass()
And th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does it make sense to use a framework for a simple java web app? I've done lots of java web development using jsps and servlets, and I have found this approach to be straightforward and flexible. Some of the groundwork involved though - such as managing database connections - is rather tedious, and it takes a fair... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Returning multiple values I have a function that identify coordinates on a page, and I am returning them as a
Dictionary<int, Collection<Rectangle>> GetDocumentCoordinates(int DocumentId)
However, later I need information about each page - if it was validated, what is the page resolution, color/bw, etc. I could cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Radio Button Check w/ jQuery What would be the best way to loop through all radio buttons on my page and alert the user if one of them is unchecked for a particular question?
Note: there are multiple questions on one page.
<li>
<fieldset>
<h3>What music do you listen to?</h3>
<ul class="answerList">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What happens when a user closes their browser waiting for a long running web service call? I have a similar issue like here:
http://social.msdn.microsoft.com/forums/en-US/biztalkgeneral/thread/87d5a6ec-04ee-4c6f-8267-f526ee105f0b
I have an asp.net web page that calls a BizTalk web service. The BizTalk orchestration... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: WCF - Who is connecting to me With WCF, how can I determine who is connecting to my server?
Background: I have a set of WCF clients and servers. I suspect one client is pointed to the wrong server, so I want to log all the connections to that server. I don't know which client it is, so I have to check it on the serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Handling dynamically generated controls in asp.net What's the best way to handle data entered through dynamically generated controls in ASP.NET?
Currently, I have a group of controls that are generated in the Page_Load stage, and I need to access the data from them. It seems like it might be possible to just use a h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: algorithm to sum up a list of numbers for all combinations I have a list of numbers and I want to add up all the different combinations.
For example:
*
*number as 1,4,7 and 13
*the output would be:
1+4=5
1+7=8
1+13=14
4+7=11
4+13=17
7+13=20
1+4+7=12
1+4+13=18
1+7+13=21
4+7+13=24
1+4+7+13=25
Is there a formul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How can I avoid a "blinking" progress div on a fast result with jQuery ajax? I am using jQuery for my AJAX calls to an ASP.NET backend using this approach. I am using .ajaxStart and .ajaxStop to show and hide a progress indicator. When the AJAX request finishes very quickly, the progress indicator "blinks" because i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to properly document an extension method So, I have a few extension methods, for commonly used stuff, and in documenting them, it's occurred to me that I have no idea how to consistently write the summary tag in the XML comments. For example:
/// <summary>
/// Gets a subset of characters from the lef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: using results from a sql query in a python program in another sql query sorry for my previous question which was very ambiguous, but i think if i get the answer to this question I can work it out.
In the program below i have selected the barcodes of products where the amount is less than the quantity. I want to say,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to alter constants in Java build process I have inherited a Java application (servlets) that runs under Tomcat. For historical reasons, the code has different "look and feel" options based on where the application will be deployed (essentially a matter of branding).
There are several constants that control ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: profile linking times with gcc/g++ and ld I'm using g++ to compile and link a project consisting of about 15 c++ source files and 4 shared object files. Recently the linking time more than doubled, but I don't have the history of the makefile available to me. Is there any way to profile g++ to see what part of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: is there a PRODUCT function like there is a SUM function in Oracle SQL? I have a coworker looking for this, and I don't recall ever running into anything like that.
Is there a reasonable technique that would let you simulate it?
SELECT PRODUCT(X)
FROM
(
SELECT 3 X FROM DUAL
UNION ALL
SELECT 5 X FROM DUA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Which compiler is correct for the following overloading/specialization behavior? Consider the following code:
#include <stdio.h>
namespace Foo {
template <typename T>
void foo(T *, int) { puts("T"); }
template <typename T>
struct foo_fun {
static void fun() { foo((T *)0, 0); };
};
}
namespace Foo {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: All code in one file After asking organising my Python project and then calling from a parent file in Python it's occurring to me that it'll be so much easier to put all my code in one file (data will be read in externally).
I've always thought that this was bad project organisation but it seems to be the easiest wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you configure a get-only property for a Silverlight-enabled WCF service I'm not certain where the error is resulting (from silverlight, from wcf, something else...) but, I have a WCF service being called from Silverlight. The method returns a class, with a property that does not have a setter. This throws an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trying to get rid of a c++ boost warning Whenever I include boost in my project I get a million of these warnings. Does anyone know how I can get rid of the warnings?
../depends\boost/config/abi_prefix.hpp(19)
: warning C4103:
'depends\boost\config\abi_prefix.hpp'
: alignment changed after including
header... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How may I reference the script tag that loaded the currently-executing script? How can I reference the script element that loaded the javascript that is currently running?
Here's the situation. I have a "master" script being loaded high in the page, first thing under the HEAD tag.
<!DOCTYPE html PUBLIC "-//W3C//DTD ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "374"
} |
Q: I am confused about SOAP namespaces I am learning about SOAP implementation and have become somewhat confused regarding the appropriate namespace URI for a SOAP 1.2 Envelope.
The w3c specification for SOAP refers to the "http://www.w3.org/2003/05/soap-envelope" namespace. However, I have seen other examples that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: In Silverlight, what is the best way to convert between a System.Drawing.Color and a System.Windows.Media.Color? I'm trying to convert from a System.Drawing.Color to a Silverlight System.Windows.Media.Color. I'm actually trying to pass this color through a service.
The System.Drawing.Color, passed over the wire, doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Free DotNetNuke skin resources Does anyone have any quality resources for some free (or cheap) DotNetNuke skins? Most of the skin resources in the DotNetNuke ecosystem are to costly when you need a simple skin for a site that may not turn any revenue.
A: There are about ten that have been converted from open sourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Use of Print Preview in .Net Winforms I am writing c# code in .Net 2008 Winforms.
I created a print preview window to create a report. It works fine I can preview the report and then print it. The only problem is it is not as flexible as the Office Print preview. The users cannot chose a printer other that the defau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handling historical calendar dates What standards and strategies are there for handling historic dates described in older calendar form?
The contemporary Gregorian calendar, with different length months, leap years, etc. is relatively easily handled with built-in programming language libraries, or data formats such ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Selenium Fitnesse Bridge: How do I store and echo a variable? I'm using the Selenium Fitnesse Bridge Fixture in order to write tests in Fitnesse for Selenium. It's great because it covers ALL the functions that Selenium has. However, the problem I'm running into is storing variables like I would in Selenium IDE.
| !... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual FoxPro Compact Index File Format I am trying to understand the file format of a Visual FoxPro compact index (*.IDX). I am currently referring to Microsoft's documentation for guidance.
The index is a B-tree of 512-byte nodes. Each leaf ("exterior") node contains multiple entries. Each entry consists of four p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Webform Validation Frameworks I find that in most of my web projects a large majority of my time is spent validating user input both on the client-side and on the server-side.
I have worked with the ASP.NET form validation controls, but I have always found them to be cumbersome and never really work the way I intend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Assembly-wide / root-level styles in WPF class library I have a C# (2008/.NET 3.5) class library assembly that supports WPF (based on this article). I've created several windows, and am now attempting to create a common style set for them. However, as it's a class library (instead of a WPF app), I don't have an app.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: retaining list selectedIndex between data binding reloads in Flex In my Flex interface, I've got a few List components that are data bound to ArrayCollections. I'm finding that when the ArrayCollections are updated (by Web services) and the data bindings for the Lists update, each List is reset and its selectedIndex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How best to convert a SharePoint multi-user field string into an array of SPUsers? I'm writing an ItemAdding handler for a SharePoint list, and the list contains multi-user fields. Since the SPItem is not actually available at this point, I think I'm relegated to using the string that comes back from the SPItemEven... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do you manage api keys I'm looking at building an API and was considering oauth for managing access to the api, but what I'm doing is more of a b2b system allowing businesses to access data to incorporate into their sites. I won't have any b2c at the beginning.
So oauth doesn't seem like the right tool for me, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL "IF", "BEGIN", "END", "END IF"? Not a SQL person at all. Have the following code a consultant wrote.
First, it makes sure only an elementary school has been chosen - then, after the BEGIN, if the variable @Term equals a 3 we want to do the stuff under that IF statement. Here's the problem. When @Term is no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: How do you like your primary keys? In a fairly animated discussion in my team I was made to think what most people like as primary keys. We had the following groups-
*
*Int/ BigInt which autoincrement are good enough primary keys.
*There should be at least 3 columns that make up the primary key.
*Id, GUID and h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: IE designMode Showing display:none Divs I've done a lot of research on this,but I'm unable to solve this problem. I've got a Div with several Divs within it that I want to hide before switching on a TinyMCE instance.
I'm doing this via jQuery -
$(".drop").hide()
This works fine, and every browser engine except Tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding multiple function calls to a case of in delphi? case i of
0..99 : Function-call('bobo') ;
100..209 : function-smell('Hobo');
210..300 : function-yikes('argh');
end;
But what if I wanted 210..300 to call both function yikes and function smell? Can't figure out how thank... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why is this E4X code not respecting the default namespace? I'm hacking around in a Firefox extension, trying to use E4X. However, I've come across a weird problem:
var myXml = <test xmlns="http://test.com">
Hey
<inner>
Guys
</inner>
</test>;
var ns = myXml.namespace();
default xml namesp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Swapping option boxes in Internet Explorer? My client asked me (a JavaScript client-side programmer) to change the order of the options so that their company's option appears at the top of a select box when the page loads.
The following code works in Firefox but fails in Internet Explorer 7 when I try to swap two op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is ORM still the "Vietnam of Computer Science"? I read this post last night, and I noticed it was from 2006. I could go either way on the ORM, database thing, but I was just wondering if everything bad Jeff said about ORM still applies even now considering the post is from 2006.
A: I can only speak for my experien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: MouseMove event too slow for painting I'm using C# WinForms to create a level builder for my XNA game. I have a tile grid that you can paint with a Pencil tool, like in MSPaint. The problem is that when you drag the mouse fast(ish) to paint a line tiles get skipped.
I've tried using one approach i saw on Google sayi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Power off an USB device in software on Windows I would like to power cycle an USB device through software on Windows.
I am doing development on a small USB power microcontroller. This chip will revert to native behavior on a power cycle and allow a code download. Since my code will crash the device when things go w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Why are "control" characters illegal in XML 1.0? There are a variety of characters that are not legally encodeable in XML 1.0, e.g. U+0007 ('bell') and U+001B ('escape'). Most of the interesting ones are non-whitespace 'control' characters.
It's clear from (e.g.) this question and others that it's the XML spec tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Where does an OpenSearch OSDD document go? Does anyone have a clue what I name this XML document and where to put it now that I have it created?
I would like to provide an OSDD (OpenSearch description document) on my site so that Google Chrome will automatically pick up search capabilities for it. Google tells me th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Disable tap clicks When on a Tablet PC, touching the screen with your pen is interpreted as a click. The sensitivity is adjusted so that even if your pen slips a little bit, it is still interpreted as a click; you have to move a certain distance before it becomes a drag-n-drop event.
In a notebook style application,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I format and read XML processing instructions using Java StAX? First, how do I format the XML processing instruction, is it:
<?processingInstructionName attribute="value" attribute2="value2"?>
Using StAX, I then want to read it by handling the XMLStreamConstants.PROCESSING_INSTRUCTION (javadoc) event, but it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .Net implementations I've worked at two companies that implement ASP.Net two different ways. I tend to lean towards A, but my current job follows the B (more typical) approach. I'm wondering which is best, and also, are there formal names for these implementations?
A) No project or solution was built. We simply po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What account is my service running as? How do I determine what account a service is running as from within the service itself.
A: A language would have been useful..
In C++:
GetUserName
C#
System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
| {
"language": "en",
"url": "https://stackoverflow.com/questions/404144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you get the version of the Windows video driver(s)? On Windows,
how can my user-mode program get the driver version number(s) for the video card(s) installed?
Programs like ATI's "Catalyst Control Center" can display this information to the user or include it automatically into bug reports. How do they get i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What does x(); refer to? var y = new w();
var x = y.z;
y.z= function() {
doOneThing();
x();
}
where w does not contain a z object but contains other objects (e.g, a, b, c)
What is x(); possibly referring too? (Again, this is JavaScript)
Is the function calling itself?
A: var y = new w();
var x = y.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GNU Compiler Debug 'Level' While browsing the various option switches for my compiler (GNU C++ 3.2.3 is supported by my organization for my given hardware configuration), I ran across this:
-glevel
:
Level 3 includes extra information, such as all the macro definitions
present in the program. Some debuggers suppo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Enable anti-aliasing of code view in XCode Is there any way to get XCode to render text in the editor with anti-aliasing enabled? I can't see anything in the preferences dialog that would do it.
A: XCode text is already anti-alaised. Check to make sure the font size is larger than specified in:
System Preferences ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What characters are disallowed in an ftp Delete command? I am ftp'ing files from an external server, then deleting them on the external server, and one file failed because there was a space in the filename. I changed my ftp delete command to have quotes around the filename.
ftpStream.WriteLine("delete """ & FileToD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any known issues with msxml3.dll on Windows 2003? I'm trying to migrate a VB6 business object, which uses RDS to be accessed, from a Windows 2000 to a Windows 2003 server environment. I've made no changes to the app, nor the calling app, but I am getting an error code 440 Automation Error when the code execution re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with the return type of a stored procedure i have a stored procedure that creates a table then fills this table somehow from tables of the database then selects everything from this table then drops this table.the problem is,how can i use the selected columns from that dropped table im using DataContext i al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I avoid an authentication dialog in Flex when using HTTPService or URLRequest? This is related to this question. I'm writing a Flex app (a WindowedApplication) that uses REST. Everything's fine when I post with valid authentication, but if I happen to pass an invalid username or password to the REST API (a T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I run the following WMI query? How do I run the following WMI query, both programmatically to and as a one-shot deal? Can I use Visual Studio 2008, and if so what language and type of project do I setup? I'm a complete beginner at this so please provide details. Thanks!
SELECT * FROM Win32_USBControllerDevice... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Design Patterns - Architecture Astronaut Perhaps my question is similar in nature to this one: Do you use design patterns?
The programs that I write are small 50-75 K line programs mostly using Windows Forms and ASP.NET. These programs are GUI intensive allowing the design and layout of various graphics and graphic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Inserting a new record pattern in SubSonic 3 I'm trying out the new SubSonic 3 preview, but I'm not sure about the patterns I should be using for the basic CRUD operations in my MVC project.
I'm trying to keep as much of my data logic in my models, so I added some static CRUD methods to each model's partial class.
F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL LIKE with no wildcards the same as '='? I know this is a pretty basic question, and I think I know the answer...but I'd like to confirm.
Are these queries truly equivalent?
SELECT * FROM FOO WHERE BAR LIKE 'X'
SELECT * FROM FOO WHERE BAR ='X'
Perhaps there is a performance overhead in using like with no wild ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Using an enum as an array index I have this enum:
enum ButtonState {
BUTTON_NORMAL = 0,
BUTTON_PRESSED = 1,
BUTTON_CLICKED = 2
};
const u8 NUM_BUTTON_STATES = 3;
In my Button class I have member variables ButtonState state; and ButtonColors colors[NUM_BUTTON_STATES];. When drawing the button, I use col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: How do I pass a reference to a two-dimensional array to a function? I am trying to pass a reference to a two-dimensional array to a function in C++. I know the size of both dimensions at compile time. Here is what I have right now:
const int board_width = 80;
const int board_height = 80;
void do_something(int[board_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do I erase a reverse_iterator from an stl data structure? For some reason the following code fails. You can't simply erase a reverse_iterator by using its base() method.
#include <set>
#include <iostream>
int main()
{
std::set<int> setOfInts;
setOfInts.insert(1);
setOfInts.insert(2);
setOfInts.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Spring SP Class generation with or without Eclipse With Hibernate+Eclipse you can generate POJO classes that represent the tables. You can then wire it all together pretty easily with Spring. However, if you have to interact with stored procedures you have to wrap each one in it's own class(es) -- although this is d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create equivalent of Java's CardLayout or ASP:MultiView with UIView and subViews? Ideally I'd like to be able to create the views in Interface Builder and then swap them with code.
Any pointers to sample code or tutorials would be appreciated.
A: This is exactly what the pairing of UIViewController and UIVie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java calendar time, minute is wrong Anyone know why the MINUTE method in java.util.Caldendar returns an incorrect minute?
import java.util.Calendar;
public class Clock
{
// Instance fields
private Calendar time;
/**
* Constructor. Starts the clock at the current operating system time
*/
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Uninstalling a Windows app installed by a nonexistent user We have a .Net Winforms app running on XP machines that are not connected to the internet. We install and update this app by distributing a CD with a .MSI installer file. Users uninstall the old app from the Add or Remove Programs control panel and install t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: splash screen w/ load assembly status I'm trying to create a splash screen that shows assemblies (all referenced library) loading status. I use AppDomain.AssemblyLoad AssemblyLoadEventHandler delegate to catch what assembly is being loaded but the problem is the event is not triggered when the program initializes. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# MySQL Connection problems I'm now using Visual Studio 2008 Pro Edition. I installed Connector/Net 5.2 with Visual Studio integration. I restarted Visual Studio, and MySQL database now appears in the list of data providers. I entered my database information, and clicked "Test Connection" and it succeeds, but when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to set a pragma disable warning for visual studio for an entire solution? Is there a way to set a pragma disable warning for visual studio for an entire solution?
A: Use the /w compiler switch for per-project suppression. I'm not aware of any way to do it solution wide without selecting all projects... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Optimizing Importing of Data to SQL Server 2005 with C# I have a table that has about 1/2 million records in it.
Each month we get about 1/2 million more records to import. These are currently shoved into another table in the DB, but will eventually be loaded directly from a txt file. For each of these new records... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatically transcode MPEG-2 videos I need to be able to programmatically transcode mpeg-2 files to .mp4, .mp3, .wmv, .rm (optional), and .flv (optional), and hopefully generate a thumbnail as well. I found the Java Media Framework, but it frankly looks pretty crappy. This will be running a Linux server, so I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Regular expression to convert urls to hyperlinks in .Net In my ASP.NET application, I want to use regular expressions to change URLs into hyper links in user posts, for example:
http://www.somesite.com/default.aspx
to
<a href="http://www.somesite.com/default.aspx">http://www.somesite.com/default.aspx</a>
This i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scraping using PHP + SimpleXML... I can grab images but not raw text? I'm trying to grab a specific bit of raw text from a web site. Using this site and other sources, I learned how to grab specific images using simpleXML and xpath.
However the same approach doesn't appear to be working for grabbing raw text. Here'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python program to calculate harmonic series Does anyone know how to write a program in Python that will calculate the addition of the harmonic series. i.e. 1 + 1/2 +1/3 +1/4...
A: Just a footnote on the other answers that used floating point; starting with the largest divisor and iterating downward (toward the reci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C# Objects, Interfaces and the Database In working with objects and interfaces what is the best practice for writing to the database? There is a plethora of opinions regarding the object design but I am unclear about the database end. A simple example:
Suppose a Contact base class that contains the common fields su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fixing malformed HTML in PHP? I am constructing a large HTML document from fragments supplied by users that have the annoying habit of being malformed in various ways. Browsers are robust and forgiving enough but I want to be able to validate and (ideally) fix any malformed HTML if at all possible. For example:
<t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to give an ASP.NET MVC User Control a different Model than the Page I have an order page that is being rendered from a Model object (Order) with a few properties. One of the properties of the Order object is
public List<OrderItem> Items { get; set; };
and the other is
public List<OrderComment> Comme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checking to see what item is selected in an HTML select list via jQuery How do I get the actual value (or text) of the item selected in an HTML select box? Here are the main methods I've tried...
document.getElementById('PlaceNames').value
$("#PlaceNames option:selected").val()
$("#PlaceNames option:selected")... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Control serializer in JsonResult aka Json function in ASP.Net MVC? Is there a way to configure what JSON serializer is used when returning JSON via the JsonResult in the controller:
public ActionResult SomeJsonFunction()
{
var x = SomeModelCode.SomeModelFunction();
return Json(x);
}
It looks like the default is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Install default database with AIR app I want to ship a default SQLite database, with some predefined key/value pairs in a table, along with an Adobe AIR application. What is the best method to accomplish this? In my mind, this would be as simple as updating an xml file and rebuilding the application. I've come acros... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get a scheme interpreter working inside Emacs? I'm going through SICP and I'd like to have an interpreter analogous to the interactive Python interpreter to play around in while I'm watching the lectures and reading the book. Furthermore, I'd like this interpreter to run inside Emacs so I can jump back and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What have you used Regular Expressions for? I have heard of regular expressions and only seen use cases for a few things so I don't think of using them very often. In the past I have done a couple of things and it has taken me hours to do. Later I talk to someone and they say "here is how to do it using a regular ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: LINQ to SQL I am finishing off a C# ASP.NET program that allows the user to build their own computer by selecting hardware components such as memory, cpu, etc from a drop down lists. The SQL datatable has 3 columns; ComputerID, Attribute and Value. The computerID is an ID that corresponds to a certain computer in my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: typedef a std::string - Best practice I am writing a library in standard C++ which does the phonetic conversion. I have used std::string as of now. But in future I may have to change this to someother (std::wstring or something else). So I need to write my library in such a way that I can switch this easily. I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What MIME type if JSON is being returned by a REST API? My REST API returns JSON.
I'm currently returning text/plain as the MIME type, but it feels funny.
Should I be returning application/x-javascript or some other type?
The second question is with regard to the HTTP status code for error conditions.
If my REST AP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Grails NumberFormatException on stylesheet Using Grails 1.1 beta2 and a JSP page. The JSP includes the CSS reference:
<link rel="stylesheet" type="text/css" href="styles.css">
When this line is included Grails pukes with the error:
[7000] errors.GrailsExceptionResolver java.lang.NumberFormatException: For input str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Making a another script function call from javascript I have Designed the Javascript function My.js it contains following code
My.js
function display(){
//Call to another Javascript function defined as ShowUser() in selectUser.js
showUser(str);
}
SelectUser.js has
function showUser(Str){
//Do the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add rows programmatically to a DataGridTable How do I add rows programmatically to a DataGridTable in C#? When the user selects an option, I want to repopulate a DataGridTable with fresh data, which I am acquiring as shown below:
connect.Open();
MySqlCommand comm = connect.CreateCommand();
co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Private member variables scope - C++ I am just starting with C++ and got some problems in understanding how the scope for private member variables in a class works. Please see the below code
class Foo{
private:
std::vector<int> container;
public:
// other methods
};
int main(int argc, char* ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I create a regular windows DLL (for a plugin) in .NET? I'm trying to create a plugin for a program. The program works by loading your plugin DLL and executing specifically named functions within that DLL. Pretty standard stuff. However, I'd like to create my plugin in C# (and I am a bit of newbie). My questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Possible locations to call addObserver and removeObserver methods I have a case where the child view sends notification to its parent view. Now I'm calling addObserver: in viewWillAppear: and removeObserver: in viewWillDisappear:. But, I'm guessing this is not correct since viewWillAppear: calls when view is refresh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C# Clear Datagridview on parent form when child form closes I have an MDI application with a Datagridview control on the parent (main) form. Clicking on an item on the toolstrip menu populates the datagrid then opens the corresponding child form.
When closing the child form I want to clear the datagrid on the parent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: retrieving Drupal contents from Flex using RemoteObject I have previously used DTO in Flex which is mapped to a PHP DTO file. I used PHP through remoteobject (AMFPHP) to retrieve info from a MySQL database which is converted into the DTO type and then passed back to Flex to populate Datagrid.
The data used to popula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python globals, locals, and UnboundLocalError I ran across this case of UnboundLocalError recently, which seems strange:
import pprint
def main():
if 'pprint' in globals(): print 'pprint is in globals()'
pprint.pprint('Spam')
from pprint import pprint
pprint('Eggs')
if __name__ == '__main__': main(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/404534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.