text stringlengths 8 267k | meta dict |
|---|---|
Q: 404 & 501 errors with Microsoft's Web Application Stress Tool I've recorded a few scripts with this tool, but when I run it, 100% of my results codes are either 404 (Not Found) or 501 (Not Implemented).
How can this be?
A: If I recall correctly, before you run the test, you have to specify the host you wish to test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Build hierarchical html tags in PHP from flat data How do you build a hierarchical set of tags with data in PHP?
For example, a nested list:
<div>
<ul>
<li>foo
</li>
<li>bar
<ul>
<li>sub-bar
</li>
</ul>
</li>
</ul>
</div>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Chunked Encoding Implementation in .NET (or at least pseudo code) I wrote a raw TCP client for HTTP/HTTPS requests, however I'm having problems with chunked encoding responses. HTTP/1.1 is requirement therefore I should support it.
Raw TCP is a business requirement that I need to keep, therefore I can't switch to .N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reasons to have an absolute path in .NET We're trying to decide between having all the devs on a particular team to use an absolute path for their code base or if relative paths are fine.
One reason I can think for an absolute path, meaning everyone has the same path, is because of IIS and functional tests. Our asp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is It Possible to Use a String as an Index? In other languages you can use strings as keys -
PHP:
$array['string'] = 50;
$array['anotherstring'] = 150;
Is this possible in VBA?
A: In VBA you can create a Collection object. Items in the collection can be accessed by index (Long integer) or by a string key.
A: Ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting Raw HTTP Request into HTTPWebRequest Object In .NET is it possible to convert a raw HTTP request to HTTPWebRequest object?
I'm sure .NET internally doing it. Any idea which part of the .NET is actually handling this? Can I call it or is there any external library which allows raw HTTP connections?
A: Its... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Init Structure with std::wstring I've got a structure as follows:
typedef struct
{
std::wstring DevAgentVersion;
std::wstring SerialNumber;
} DeviceInfo;
But when I try to use it I get all sorts of memory allocation errors.
If I try to pass it into a function like this:
GetDeviceInfo(DeviceInfo *info);
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GUI Framework patterns? We are developing in an embedded type environment and find ourselves needing to create our own UI framework.
I have done this before, but I am interested in doing a little bit of research around common design patterns for frameworks.
Types of things that I am thinking of as patterns (somewhat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you identify the triggers associated with a table in a sybase database? I am using SQL Advantage and need to know what the SQL is to identify the triggers associated with a table. I don't have the option to use another tool so the good old fashioned SQL solution is the ideal answer.
A: to show triggers and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is it possible to initialise a New System.Collections.Generic.Dictionary with String key/value pairs? Is it possible to create and initialise a System.Collections.Generic.Dictionary object with String key/value pairs in one statement?
I'm thinking along the lines of the constructor for an array of Strings..
e.g.
Pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How can I implement an interface to handle type casting classes? I want to pass in the tType of a class to a function, and the class object to a generic function.
I need to be able to cast to that Type (of class) so I can access the class's methods.
Something like:
void GenericFunction(Object obj, Type type)
{
(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to close a system dialog on a BlackBerry? I have a BlackBerry app running in the background that needs to know when a "Missed call" system dialog is brought up by the system, and programmatically close it without user intervention. How can I do that?
I could actually almost know when the dialog is brought up, i.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to setup a Active Directory environment test? The project I´m working on needs to auth its users against AD, and as a fallback check against its own user base. Now I need to test it outside the production environment.
What is the best method to setup a Active Directory test environment? Currently I´m downloading... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Flex - Binding ViewStack selectedChild Property Using a String Value The attached code example (pseudo code) compiles, but throws this Run-Time Error:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/getChildIndex()
at mx.core::Container/getChildIndex()[E:\de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: defining structures globally in c++ there was a somewhat detailed thread (228684) on how to globally (using extern struct) declare a structure that could be seen in more than 1 c++ file, but I can not figure out exactly how to do it (there was a lot of discussion about do this, do that, maybe do this, try this, etc.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting an Average over Multiple Collections in LINQ I have a collection of collections, all the child collections have the same number of elements. The parent collection does nothing other than hold the child collections.
[0] [Child_0] [ID: 1]
[0] [Child_0] [Amount: 4]
[0] [Child_1] [ID: 2]
[0] [Child_1] [Amount: 7... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting Emacs to untabify when saving certain file types (and only those file types) I have the following in my .emacs file:
(defun c++-mode-untabify ()
(save-excursion
(goto-char (point-min))
(while (re-search-forward "[ \t]+$" nil t)
(delete-region (match-beginning 0) (match-end 0)))
(got... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: get scriptaculous helper drop_receiving_element to not generate "
A: The code for the drop_receiving_element is
def drop_receiving_element(element_id, options = {})
javascript_tag(drop_receiving_element_js(element_id, options).chop!)
end
javascript_tag is what adds the script tags, so it looks like you should jus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generating a Visual Site Map of an Existing Site I thought I could easily answer this question by searching the web, but my Google-fu has failed me. So I turn to you, oh mighty stackoverflowers, and beseech you for enlightenment:
What is the quickest and best way to generate a visual site map (e.g. flowchart, mind m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Extracting Information from websites Not every website exposes their data well, with XML feeds, APIs, etc
How could I go about extracting information from a website? For example:
...
<div>
<div>
<span id="important-data">information here</span>
</div>
</div>
...
I come from a background of Java programming ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting useful emails from Hudson instead of tail of ant log A team member of mine recently setup some Hudson continuous-integration builds for a number of our development code bases. It uses the built in ant integration configured in simple way.
While, it is very helpful and I recommend it strongly, I was wonderin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best practice for handling null int/char from a SQL Database? I have a database that hold's a user's optional profile. In the profile I have strings, char (for M or F) and ints.
I ran into an issue where I try to put the sex of the user into the property of my Profile object, and the application crashes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In SQL how to compare date values? Using MySQL syntax and having a table with a row like:
mydate DATETIME NULL,
Is there a way to do something like:
... WHERE mydate<='2008-11-25';
I'm trying but not really getting it to work.
A: Uh, WHERE mydate<='2008-11-25' is the way to do it. That should work.
Do you get an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Object-oriented or sequential? I'm refactoring a 500-lines of C++ code in main() for solving a differential equation. I'd like to encapsulate the big ideas of our solver into smaller functions (i.e. "SolvePotential(...)" instead of 50 lines of numerics code).
Should I code this sequentially with a bunch of functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Actionscript 3 REPL Is there a REPL (Read-Eval-Print Loop) available anywhere for Actionscript 3? I could not find anything on google, but it would really come in handy.
A: Google harder. ;)
A: actionscript3 is a compiled language so is this even possible?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/318596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Automatically setting up unit test projects in VS2008, need help I'm beginning to toy with the new ASP.NET MVC framework, and reading around in some tutorials I saw that in addition to creating the MVC project, theres an option to add a Unit Test project, using the Test framework (which I have) thats basically alrea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: displaytag: suppress zeros in HTML table I have a HTML table that's generated in a JSP by the displaytag tag library. I would like to suppress any zeros that appear in the table, i.e. they should be replaced by a blank cell. Is there any straightforward way to achieve this?
A: I discovered that this can be achieved... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: 16-bit float data type Does anyone have any experience with using the 16-bit floating-point type in an application. This relatively new data type is used in computer graphics. It's defined by several specs: OpenEXR, DirectX and the new IEEE-754 2008 standard.
At WinHEC 2008 Microsoft's Chas Boyd had a presentat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: internal error markers Theoretically, the end user should never see internal errors. But in practice, theory and practice differ. So the question is what to show the end user. Now, for the totally non-technical user, you want to show as little as possible ("click here to submit a bug report" kind of things), but for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Get the real width and height of an image with JavaScript? (in Safari/Chrome) I am creating a jQuery plugin.
How do I get the real image width and height with Javascript in Safari?
The following works with Firefox 3, IE7 and Opera 9:
var pic = $("img")
// need to remove these in of case img-element has set width an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "281"
} |
Q: Textbox anchored to a form on all 4 sides not displayed properly I'm running into a problem trying to anchor a textbox to a form on all 4 sides. I added a textbox to a form and set the Multiline property to True and the Anchor property to Left, Right, Up, and Down so that the textbox will expand and shrink with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: BLAS Library Benchmark Is there a benchmark that compares the different BLAS (Basic Linear Algebra Subprograms) libraries? I am especially interested in sparse matrix multiplication for single- and multi-core systems?
A: BLAS performance is very much system dependent, so you'll best do the benchmarks yourself on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Multiple QMainWindow instances? The QMainWindow is the main window in a Qt application. So usually you'd have only one, but would it be possible at all to have multiple QMainWindow instances in your application?
I am working on integrating a Qt-based GUI application B into another Qt-based GUI application A. Both t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: BindingList and LINQ? I am new with Linq and I would like to sort some data that are in the BindingList. Once I did my Linq query, I need to use back the BindingList collection to bind my data.
var orderedList = //Here is linq query
return (BindingList<MyObject>)orderedList;
This compiled but fails in execution, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Run function/effect once then stop I am trying to find a way using jquery without cookies to display a block and click it to hide() and not show again.
It is a temporary under construction div on my page.
Is there any way to click it to close, which is easy enough using jQuery, then not have it load again? For it wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a good way to dump a Linux core file from inside a process? We have a server (written in C and C++) that currently catches a SEGV and dumps some internal info to a file. I would like to generate a core file and write it to disk at the time we catch the SEGV, so our support reps and customers don't have to fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why does this cause Windows Authentication to appear and not an exception? Ok, so after spending a good portion of a day debugging a stupid typing mistake inside a piece of code I am curious as to why the specific actions occured rather than an exception.
First of all the problem code.
Public Sub InstantiateIn(ByVal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Null object design pattern question I recently watched this youtube tutorial on the Null Object design pattern. Even though there were some errors in it: such as the NullCar that doesn't do anything creates an infinite loop, the concept was well explained. My question is, what do you do when the objects that can be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is a good choice of ORM for an eCommerce website? I am using C# 3.0 / .NET 3.5 and planning to build an eCommerce website.
I've seen NHibernate, LLBLGEN, Genome, Linq to SQL, Entity Framework, SubSonic, etc.
I don't want to code everything by hand. If there is some specific bottleneck I'll manage to optimize th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to install system packages into oracle? I am creating a copy of our testing Oracle DB (10g both) and run into a problem in that our testing database has UTL_SMTP and UTL_FILE system packages installed and my local OracleXE version does not. Our system administrator has gone home for the day and given his state ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Object ownership in stringWithString and initWithString in NSString I understand that any init... method initializes a new object and that NSString stringWithString makes a copy of the parameter string as a new object. I also understand that being the objects' owner, I can control the release/deallocation of any obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Where does Thunderbird store the UID of the last message downloaded via POP? I use Thunderbird to receive email using POP3. I have Thurnderbird configured to leave email on the server. Lets say one day I uses POP3 to retrieve (RETR) 10 email messages, then I logout for the night. Overnight 10 more messages are se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I create a Flex application with dynamic height? Is there a way to allow a flex application to have a dynamic height while embedded in an HTML wrapper?
I want the Flex application to grow in height in a way that it will not cause vertical scroll bars.
A: The best way should be overriding the Application's m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the dangers of using OpenID for your website? Let's say I create a website like StackOverFlow and decide to use OpenID. What's to prevent me, or anyone else for that matter, from phishing the ID's? That is, how can you truly know that any website is using OpenID and not pretending to? And how do you protect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: asp.net sql timeout when not using sql Im in the process of learning asp.net 3.5, currently on webparts and co.
Ive started a new project for webparts, not using a database with it, but when i go to view the website (dev server), i get an sql timeout??
A network-related or instance-specific
error occurred while e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does anyone know where there is a recipe for serializing data and preserving its order in the output? I am working with a set of data that I have converted to a list of dictionaries
For example one item in my list is
{'reportDate': u'R20070501', 'idnum': u'1078099', 'columnLabel': u'2005',
'actionDate': u'C2007062... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: running multiple TestNG testcases from a single testcase I have the following situation:
I create a class with a single test method, within this test method, I create another class that contains multiple test methods.
The report shows only my initial test method, it passes IFF it passes and all the tests in the oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java Serialization 1.4 vs 1.6 I have one java program that has to be compiled as 1.4, and another program that could be anything (so, 1.4 or 1.6), and the two need to pass serialized objects back and forth. If I define a serializable class in a place where both programs can see it, will java's serialization still wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: HTML Link opening a page that Redirect to a Quicktime .MOV file displays garbage characters in IE when Target is _blank I have a .NET page that does a Response.Redirect to a Quicktime .mov file. When I create a link to this .NET page, if the link opens in the same window (i.e. no Target defined on the anchor tag), a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make Word's Cursor Type (Or More Text Insert) in Non-Italic After Turning Text Italic When I perform the following code:
Dim italicSaveRange As Word.Range
Dim savedItalic As Variant
Dim someRange As Word.Range
Set italicSaveRange = someRange.Duplicate
italicSaveRange.Collapse (WdCollapseEnd)
savedItalic = italicSav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Work around two IE6 layout bugs My webpage is suffering from two IE6 rendering bugs. Each of them have workarounds, but unfortunately said workarounds are incompatible with each other.
Here's a minimized test case. The behavior in Firefox/Safari is the desired/correct one. IE7 is unknown, since I don't have access t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET-MVC (IIS6) Error on high traffic: Specified cast is not valid I just launched my tiny webapp on my humble dedicated server (Win2003)... running ASP.NET MVC, LINQ2SQL, SQL Express 2005, and IIS6 (setup with wildcard mapping)
The website runs smoothly 90% of the times. However, on relatively high traffic, LINQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: PST to CSV File Conversion Does anyone know of a good tool that converts .pst to .csv files through command line?
A: Can you assume Outlook is installed on the computer? If so, I believe it can be background scripted using OLE or something similar. I've done file conversions through Excel using Ruby that way.
And... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Automatic entity mapping similar to O/R-mapping with JSF? With JPA I do not need to code the SQL for every new attribute as the o/r-mapping is being done automatically.
As I am new to JSF, i am wondering whether there is a similar possiblity with JSF?
I do not want to add new code to a jsf datatable every time I cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Applying image rounded corners to
* I was using jQuery plugins to create a rounded corner for my <li>, but it was not working on a lot of browsers and didn't support mouse over.
I am wondering what is the best way to use two images (left corner and right corner) as the left and right side with using <li>.
A: The c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: List of strings to one string Lets say you have a:
List<string> los = new List<string>();
In this crazy functional world we live in these days which one of these would be best for creating one string by concatenating these:
String.Join(String.Empty, los.ToArray());
StringBuilder builder = new StringBuilder();
los.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "227"
} |
Q: Registering derived classes with reflection, good or evil? As we all know, when we derive a class and use polymorphism, someone, somewhere needs to know what class to instanciate. We can use factories, a big switch statement, if-else-if, etc. I just learnt from Bill K this is called Dependency Injection.
My Question... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# - WebRequest Doesn't Return Different Pages Here's the purpose of my console program: Make a web request > Save results from web request > Use QueryString to get next page from web request > Save those results > Use QueryString to get next page from web request, etc.
So here's some pseudocode for how I set the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Null \u0000 in Java String? Are there any good reasons not to use \u0000 as a delimiter within a Java String? I would be encoding and decoding the string myself.
This is for saving a list of user-inputted (I'm expecting input to be typed?) strings to an Eclipse preference and reading it back. The list may be variabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JPA/Hibernate mapping to store months and days-of-months I have following POJOs:
class Month {
long id;
String description;
List<Day> days; // always contains 29, 30 or 31 elements
}
class Day {
byte nr; // possible values are 1-31
String info;
}
Is there a way to store these objects into follo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# How to translate virtual keycode to char? I am trying to map a virtual keycode to a char.
My code uses ProcessCmdKey to listen to WM_KEYDOWN which gives me access to the key pressed. For example, when I press single quote I get a key of 222 which I want to have it mapped to keychar 39 which represents... you gues... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Security considerations when hosting signed jars What are the security implications for hosting signed jars on the internet?
As I understand jar signing, once a user choose to auto-accept a certificate, it doesn't matter if the signed jar came from your domain, linked from another domain or hosted on another domain.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: BEGIN_MSG_MAP_EX breaks Visual Studio 2005 intellisense? I have a C++ application using WTL/ATL BEGIN_MSG_MAP_EX macros for message handling. I use some macros from atlcrack.h.
When we upgraded the projects to Visual Studio 2005, intellisense acts crazy. I've tracked the behavior down to the BEGIN_MSG_MAP_EX macro n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Emacs mode that highlight Lisp forms What is the Emacs mode or package that highlights Lisp forms changing the color of the backgrounds so that the form you are in has one color, the outer form another, the outer outer form another and so on?
A: Take a look at screenshots here http://lemonodor.com/archives/001207.h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Webdav Plugin for Eclipse 3.4? How do you get webdav support in eclipse 3.4? The development version of the 3.3 plugin I had been using in 3.3 doesn't seem to work.
A: Maybe it would help if you mentioned what 3.3 plugin you used that stopped working in 3.4. Said that, did you check the WTP project. This is IMHO t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the best way to open and read a file in Perl? Please note - I am not looking for the "right" way to open/read a file, or the way I should open/read a file every single time. I am just interested to find out what way most people use, and maybe learn a few new methods at the same time :)*
A very common block of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: What do these Perl/Tk errors from Tk::After mean? Here are the errors:
$ perl ftper.pl
Use of uninitialized value $id in hash element at /usr/lib/perl5/vendor_perl/5.1
/i686-cygwin/Tk/After.pm line 39.
se of uninitialized value $id in hash element at /usr/lib/perl5/vendor_perl/5.1
/i686-cygwin/Tk/After.pm line 39.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Maven or Ivy for Managing Dependencies from Ant? I was wondering about the best way to manage projects dependencies from ant. What are the pros and cons of the Maven Ant task and of Ivy?
A: I think this blog post covers exactly what the OP is looking for:
Why you should use the Maven Ant Tasks instead of Maven or I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Using Variables in SQL 2008 to return more than one record I'm pretty sure this is not the right way to do this so I'm looking for some suggestions.
I don't think my problem so much is that I'm trying to solve a spatial problem. I'm just not sure of a good way to take the latitude and longitude and return a geograp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SAJAX and Form fields Is there a way to send a whole form's fields through a sajax function call? I think it is sajax anyway.
We are using Mediawiki and the function call is to "sajax_do_call(funcName,[params],callbackFuncName)"
I was just wondering if there was a way to jsut drop all fields from a form into params?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple/Different authentication settings in web.config How would I go about setting different authentication tags for different parts of my web app? Say I have:
/
/folder1/
/folder2/
Would it be possible to specify different <authentication/> tags for each folder?
I want folder1 to use Windows authentication but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Are the Swing LayoutManagers adequate? I just had to add a checkbox to an application that was written before I got here, and it was way more difficult than it had to be because the app uses some third-party LayoutManager that attempts to do pseudo-absolute, gridlike positioning. The API was terrible, it takes posi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Get encoding of page/iframe via JavaScript I'd like to programatically determine the encoding of a page via JavaScript, or some other API from a browser. The reason I want this information is because I am attempting to fuzz major browsers on what character encodings they support, and obviously just because I sent th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Do you add information to the top of each .hpp/.cpp file? When creating a new C++ header/source file, what information do you add to the top? For example, do you add the date, your name, a description of the file, etc.? Do you use a structured format for this information?
e.g.
// Foo.cpp - Implementation of the Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Private module methods in Ruby I have a two part question
Best-Practice
*
*I have an algorithm that performs some operation on a data structure using the public interface
*It is currently a module with numerous static methods, all private except for the one public interface method.
*There is one instance variab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "120"
} |
Q: #inject and slowness I've often heard Ruby's inject method criticized as being "slow." As I rather like the function, and see equivalents in other languages, I'm curious if it's merely Ruby's implementation of the method that's slow, or if it is inherently a slow way to do things (e.g. should be avoided for non-smal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Table row height in Firefox Due to current limitations on getting DIV tags to work well across browser platforms for the particular liquid layout I desire, I have opted to use a combination of Tables and DIVs for layout. That being said, a couple of issues remain.
The FIRST issue is that in Firefox, my table row ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you put two conditions in an xslt test attribute? Is this right for When 4 < 5 and 1 < 2 ?
<xsl:when test="4 < 5 AND 1 < 2" >
<!-- do something -->
</xsl:when>
A: From XML.com:
Like xsl:if instructions, xsl:when
elements can have more elaborate
contents between their start- and
end-tags—for exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "132"
} |
Q: tfs database size - version control I have TFS installed on a single server and am running out of space on the disk. (We've been using the instance for about 2 years now.)
Looking at the tables in SQL Server what seems to be culprit is the tbl_content table, it is at 70 GB. If I do a get on the entire source tree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there an easy way to determine the type of a file without knowing the file's extension? I have a table with a binary column which stores files of a number of different possible filetypes (PDF, BMP, JPEG, WAV, MP3, DOC, MPEG, AVI etc.), but no columns that store either the name or the type of the original file. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: .Net MVC Routing Catchall not working I can't seem to figure this out. I'm experimenting with MVC Beta and am trying to implement a catchall route such that if the user enters mysite.com/blah instead of mysite.com/home/index it will hit the "Error" route.
Unfortunately it seems that the "Default" route always catch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: J2ME development without Java? I'm making my first foray into the J2ME world. I'd prefer to use a functional language to do the development.
Scala used to have CLDC support, but it's no longer maintained. Bigloo seems to have disappeared.
Interpreters (such as Jython) are a no-go, since J2ME apps have to be small (a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Solving "Who owns the Zebra" programmatically? Edit: this puzzle is also known as "Einstein's Riddle"
The Who owns the Zebra (you can try the online version here) is an example of a classic set of puzzles and I bet that most people on Stack Overflow can solve it with pen and paper. But what would a programmatic solu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: Anyone seen good embedded help in a web application? I have a pretty simple app on the web (written in Flex) which is very straightforward to use once it has data inside it. The steps to get data inside it are themselves also pretty simple, but not at all obvious to my audience when they first log into my app.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Controlling C# DataGridView with an Arraylist in VS2008 I'm having some problems with a datagridview element I'm using in VS2008.
This DataGridView is actually a tab in a TabControl element.
I gave it 5 colums which need to be filled up with elements from a costum Object i made.
It's basically a small library applic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create Table so that user is the owner It is my understanding that the default behavior when creating a table in SQL 2005 is that it will be created with dbo as the owner of the table. Is there a way to change this default behavior so that all tables get created as the user instead of as dbo?
I am working on moving... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Redirect stout from child process with .net I'm using the following code
System::Diagnostics::Process^ p = gcnew System::Diagnostics::Process();
p->StartInfo->FileName = "tnccmd.exe";
p->StartInfo->UseShellExecute = false;
p->StartInfo->RedirectStandardInput = true;
p->StartInfo->RedirectStandardOutput = true;
p->... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How To limit file size in TFS Is there a way to set a maximum size for files that can be check in into source control under Team Foundation Server 2005 or 2008?
In the past, when we worked with SourceSafe there were several cases were developers decided to checkin a 500mb data file to source control.
I don't know w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to indent a selection in gVim (Win32) I'd like to indent a block of text.
I am able to do this in the Linux build of gVim.
I do this in the state of gVim where I'm not in the insert or visual mode. The bar at the bottom is blank on the left, and the line number and percentage are showing on the right hand side.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: DropDownList annoyance: same value won't trigger event i've populated a dropdownlist control with different text properties but each text properties had THE SAME value (text property was A, value properties is blah,text property was B, value properties is blahblah, etc... )
ASP.net only checks value properties on po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you test if cookies are enabled in Java/J2EE Testing:
return request.getCookies() == null;
is not an appropriate way test. Is there another way?
A: Set a cookie and try to read it back.
import javax.servlet.*;
import javax.servlet.http.*;
public class Test4Cookies extends HttpServlet {
private static fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Any tips on how to organize Eclipse environment on multiple monitors? I can't find a good way of putting Eclipse windows on two monitors. Currently I just detached (clicked on a header and dragged) a few windows to a secondary monitor (package explorer, console, and outline) while leaving primary monitor with maximi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "177"
} |
Q: What does PermGen actually stand for? I know what PermGen is, what it's used for, why it fails, how to increase it etc.
What I don't know is what PermGen actually stands for. Permanent... Gen... something?
Does anyone know what PermGen actually stands for?
A: Permanent Generation. Details are of course implementati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "128"
} |
Q: Convert string to code in Scheme How do I convert a string into the corresponding code in PLT Scheme (which does not contain the string->input-port method)? For example, I want to convert this string:
"(1 (0) 1 (0) 0)"
into this list:
'(1 (0) 1 (0) 0)
Is it possible to do this without opening a file?
A: From PLT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Strategies for using NHibernate to generate a schema I'm building a new app that is using NHibernate to generate the database schema but i can see a possible problem in the future.
Obviously you use all the data from your database is cleared when you update the schema but what stratagies do people use to restore any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ruby: defining class level hash with default values i have a basic ruby class:
class LogEntry
end
and what i would like to do is be able to define a hash with a few values like so:
EntryType = { :error => 0, :warning => 1, :info => 2 }
so that i can access the values like this (or something similar):
LogEntry.Ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best method to show/hide hover popup window I have a calendar control derived from DataGridView. A custom item hover event is already in place. When handling the event, I have the item that was hovered and the mouse location. What is the best method to show a pop-up window with detailed information about the item? S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get the MIN() of two fields in Postgres? Let's say I have a table like this:
name | score_a | score_b
-----+---------+--------
Joe | 100 | 24
Sam | 96 | 438
Bob | 76 | 101
... | ... | ...
I'd like to select the minimum of score_a and score_b. In other words, something like:
SELEC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "205"
} |
Q: Padding in NSTextView -- possible without custom drawing? In Cocoa, NSTextView has a rather shallow margin between text and border. Is there a way to specify a padding (distance between text and border of view) for a NSTextView without resorting to owner drawing?
A: The NSTextView method setTextContainerInset: does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What should a good BugTracking tool be capable of? I found a lot of questions asking for the best tool, but none asking for the features, you really need? And what features you never really needed?
(I caught myself to be comparing tools on feature matrices. Something I hate, because in the end I will be using only t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.