text string | meta dict |
|---|---|
Q: What's the best way to break from nested loops in JavaScript? What's the best way to break from nested loops in Javascript?
//Write the links to the page.
for (var x = 0; x < Args.length; x++)
{
for (var Heading in Navigation.Headings)
{
for (var Item in Navigation.Headings[Heading])
{
if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "611"
} |
Q: How do I fade a row out before postback I have a table that is created in a DataList in ASP.Net. This table has three fields of text, then a field with an edit button, and a field with a delete button. When a person clicks the delete button, it posts back, deletes the items, and then binds the DataList again. The Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UserType join in Hibernate Is it possible to make hibernate do "the right thing" for some value of "right" in this situation?
from ClassA a, ClassB b
where a.prop = b.prop
The thing is that prop is a UserType with different representation in the joined tables. In table A it is represented as an integer and in table... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C wrapper to remove users on command "ps" I have one question maybe someone here can help me. If i do "ps aux --sort user" on linux console I have one list of users and their processes runing on the machine. My question is how do I remove the users name and print that list like this in a C program:
for example:
(…)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby rufus scheduler gem We're thinking about using the rufus-scheduler gem on a Ruby on Rails project to do regular monitoring of a communication queue. Has anyone have experience using this gem on a Rails project? Anyone have strong preferences of an alternative scheduler?
A: I find cron and script/runner is us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should a developer aim for readability or performance first? Oftentimes a developer will be faced with a choice between two possible ways to solve a problem -- one that is idiomatic and readable, and another that is less intuitive, but may perform better. For example, in C-based languages, there are two ways to mul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: How do you catch a managed exception (from a delegate) in unmanaged C++? I have unmanaged C++ calling a managed delegate via the function pointer provided by Marshal::GetFunctionPointerForDelegate. This delegate has the potential to throw an exception. I need to be able to properly handle this exception in my unma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JavaScript Callback Scope I'm having some trouble with plain old JavaScript (no frameworks) in referencing my object in a callback function.
function foo(id) {
this.dom = document.getElementById(id);
this.bar = 5;
var self = this;
this.dom.addEventListener("click", self.onclick, false);
}
foo.protot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: How do I handle large SQL SERVER batch inserts? I'm looking to execute a series of queries as part of a migration project. The scripts to be generated are produced from a tool which analyses the legacy database then produces a script to map each of the old entities to an appropriate new record. THe scripts run well ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I suppress individual BizTalk warnings in Visual Studio 2005 We are currently using BizTalk 2006 R2 to build Enterprise Integration solutions. We use BizTalk maps extensively, but when you build a solution in Visual Studio 2005, it produces the following warning against maps:
Warning Double-click here to sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WPF DocumentViewer Find-function and FixedPage documents .Net contains a nice control called DocumentViewer. it also offers a subcontrol for finding text in the loaded document (that's at least what it is supposed to do).
When inserting FixedPage's objects as document source for the DocumentViewer, the find-function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is returned when I call ToString() on an uninitialized char object property? I have a c# object with a property called Gender which is declared as a char.
private char _Gender;
public char Gender
{
get{ return _Gender; }
set{ _Gender = value; }
}
What string is returned/created when I call MyObject.Ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is a postback? I'm making my way into web development and have seen the word postback thrown around. Coming from a non-web based background, what does a new web developer have to know about postbacks? (i.e. what are they and when do they arise?)
Any more information you'd like to share to help a newbie in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: Passing copy of object to method -- who does the copying? I have an object that I'm passing in a method call. Say I'm using a language that only allows you to pass objects by reference, like Java or PHP. If the method makes changes to the object, it will affect the caller. I don't want this to happen. So it seems li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Please wait dialog & downloading files in asp.net In my ASP.Net application I have a requirement that when a user clicks on an UI element we generate a PDF for them which they can download. This is currently implemented by doing a form post to an ashx page. This page essentially inspects the form and then executes t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Classpath including JAR within a JAR Is it possible to specify a Java classpath that includes a JAR file contained within another JAR file?
A: If you are building with ant (I am using ant from eclipse), you can just add the extra jar files
by saying to ant to add them...
Not necessarily the best method if you have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "143"
} |
Q: How do I Update a GridView from a Page Method from code behind? How do I update a Gridview on a aspx page from a webmethod?
Here is my code.
[WebMethod]
public static string GetDate()
{
return DateTime.Now.ToString();
}
I can't use the "findcontrol" or the "this" methods so I need some help.
A: You can dynami... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET MVC HandleError How do I go about the [HandleError] filter in asp.net MVC Preview 5?
I set the customErrors in my Web.config file
<customErrors mode="On" defaultRedirect="Error.aspx">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: MYSQL: REGEXP single quotation matching I am having a trouble matching a string in a MySQL-query with the following regex:
I want it to match to this string: "Rue de l' Harmonie"
SELECT
id,
street_name
FROM
street_names
WHERE
street_name REGEXP '^(rue[a-z]+[[:blank:]])((du|de|la|des|d[\']|l[\'])[[:blank:]])*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# - Any reason why this code would not function correctly? For some reason, Section 1 works but Section 2 does not. When run in the opposite order (2 before 1), Section 1 (Affiliation) is not run at all. All the data is the same.
//Section 1
UserService.DsUserAttributes dsAffiliation = us_service.GetU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Monitoring Windows directory size I'm looking for something that will monitor Windows directories for size and file count over time. I'm talking about a handful of servers and a few thousand folders (millions of files).
Requirements:
*
*Notification on X increase in size over Y time
*Notification on X increase i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Groovy execute "cp *" shell command I want to copy text files and only text files from src/ to dst/
groovy:000> "cp src/*.txt dst/".execute().text
===>
groovy:000>
You can see the command executes w/out error but the file src/test.txt does not get copied to dst/
This also fails:
groovy:000> "cp src/* ds... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I determine if an array is initialized in VB6? Passing an undimensioned array to the VB6's Ubound function will cause an error, so I want to check if it has been dimensioned yet before attempting to check its upper bound. How do I do this?
A: Both methods by GSerg and Raven are undocumented hacks but since ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Where (which layer) to put Entity query methods, "persist" methods etc.? I have a SEAM app with some JPA/Hibernate entities. And I now wonder where to put my query, persistence methods.
The default choice seems to put them in a session bean layer with injected
@PersistenceContext(...) @Inject EntityManager entityMa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unsubscribe anonymous method in C# Is it possible to unsubscribe an anonymous method from an event?
If I subscribe to an event like this:
void MyMethod()
{
Console.WriteLine("I did it!");
}
MyEvent += MyMethod;
I can un-subscribe like this:
MyEvent -= MyMethod;
But if I subscribe using an anonymous method:
My... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "246"
} |
Q: Cross-browser XPath implementation in JavaScript I'm looking for a XPath library to query over XML documents in FF, IE, Opera and Safari... and couldn't find one. Have you seen any?
A: Google's AJAXSLT open source project fits well the stated requirements.
As their own description goes to say:
"AJAXSLT is an implem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: When writing Eclipse JDT plugins, is there a way to track appearace of certain strings in code? I'm writing an Eclipse plugin for the JDT.
I need a functionality that tracks certain strings or regular expressions and possibly creates markers.
I know that Eclipse already does that for //TODO comments, for example (cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does Mono .NET support and compile C++ / CLI? Does Mono .NET support and compile C++ / CLI?
If not, do you know if they have any plans of supporting it?
A: We don't have a compiler for C++/CLI, it would be a very large undertaking for a very small userbase. Consider also that the C++/CLI spec is inherently flawed a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: How do you handle arbitrary namespaces when querying over Linq to XML? I have a project where I am taking some particularly ugly "live" HTML and forcing it into a formal XML DOM with the HTML Agility Pack. What I would like to be able to do is then query over this with Linq to XML so that I can scrape out the bits ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Newline in string attribute How can I add a line break to text when it is being set as an attribute i.e.:
<TextBlock Text="Stuff on line1 \n Stuff on line2" />
Breaking it out into the exploded format isn't an option for my particular situation. What I need is some way to emulate the following:
<TextBlock>
<Text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "306"
} |
Q: How can I get a section of this div to sit next to each other? Code and preview:
<html>
<head>
<title>Testing some CSS</title>
<style type="text/css">
.dDay {
font-size:205%
}
.dMon {
font-weight:bold;
font-variant:small-caps;
font-size:130%;
margin-top:-.7em;
}
.detailContainer {
vertical-a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTTP 1.1 Persistent Connections using Sockets in Java Let's say I have a java program that makes an HTTP request on a server using HTTP 1.1 and doesn't close the connection. I make one request, and read all data returned from the input stream I have bound to the socket. However, upon making a second request, I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET: How to set the css class of a Control during DataBind? A table row is generated using an asp:Repeater:
<asp:repeater ID="announcementsRepeater" OnItemDataBound="announcementsRepeater_ItemDataBound" runat="Server">
<itemtemplate>
<tr id="announcementRow" class="announcementItem" runat="server">...</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: dlinq versus ADO.NET Entity Framework I am about to finalize the design of my webapplication, i am building it as an n-tier architecture and i am posed with the question of using DLinq vs EFM. I would appreciate if someone could give me some expert advice on it.
A: One suggested question I would ask, "How big (tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change the height of an NSProgressIndicator? By default, cocoa progress bars are slightly fat and I want something a little slimmer, like the progress bars seen in the Finder copy dialog. However, Interface Builder locks the NSProgressIndicator control height to 20 pixels and my programmatic attempts to slim ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does batch file FOR fail when iterating over command output? I have a batch file that uses this idiom (many times) to read a registry value into an environment variable:
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\Path\To\Key" /v ValueName') DO SET MyVariable=%%B
(There's a tab character afte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: what is a good cross-platform css compressor? i need to compress my css as part of my ant build. i noticed that csstidy does this, but it would not be easy to include this in my ant build because i would need to use a different binary on different platforms.
so, is there a java css compressor that people use?
A: Ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is Mongrel failing to pick up the correct HTTP verb? I have an extremely simple routes.rb in my Rails app:
ActionController::Routing::Routes.draw do |map|
map.resources :tags
end
Starting up my app with script/server and pointing my browser to localhost:3000/tags/ yields:
ActionController::MethodNotAllowed
On... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL - Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'UNION' How do I fix that error once and for all? I just want to be able to do unions in MySQL.
(I'm looking for a shortcut, like an option to make MySQL ignore that issue or take it's best guess, not look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Any way to determine speed of a removable drive in windows? Is there any way to determine a removable drive speed in Windows without actually reading in a file. And if I do have to read in a file, how much needs to be read to get a semi accurate speed (e.g. determine whether a device is USB2 or USB1)?
EDIT: Just to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any kind of file dependency tracer for Asp.Net apps? I have an Asp.Net 2.0 (VB.Net) app and I'm trying to export a Control (ASCX) to another project. I need to know what other files that the Control needs in order to work.
Is there any way - using VS.Net 2005 or an external app - to recursively trace the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Showing completion in a progress bar In this particular situation, there are 9 automated steps in a process that take varying lengths of time. We currently have a number showing percentage in the center of a progress bar, but it suffers from the common stop-and-go problem of racing up to 33%, waiting a long time, ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does it mean for a programming language to be "on rails"? I'm currently working with Groovy and Grails. While Groovy is pretty straight-forward since it's basically Java, I can't say I grok Grails. I read that Groovy is to Grails as Ruby is to Ruby on Rails, but what does that mean?
A: I think a framework that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Is there a library to read JSON in C# on Windows Mobile? I am trying to find a library to parse JSON on C# on Windows Mobile (working with Visual Studio 2005). The libraries that I have found that allow me to parse JSON in C# (litjson and Jayrock) don't work on Windows Mobile, they require classes that are not prese... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Do I need to dispose transient disposable objects? I have a class that creates several IDisposable objects, all of these objects are then passed to another 'manager' class in a 3rd party library. As I need some of the objects in later calls I kept a local field reference to the created objects so that I could access... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is this the best way to get unique version of filename w/ Python? Still 'diving in' to Python, and want to make sure I'm not overlooking something. I wrote a script that extracts files from several zip files, and saves the extracted files together in one directory. To prevent duplicate filenames from being over-writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Efficiently shrinking a two dimensional array in C# What is an efficient way to shrink a two dimensional array to a smaller size in C#?
For example:
var bigArray = new object[100, 100];
var smallArray = new object[10, 10];
bigArray[0, 0] = 1;
bigArray[0, 1] = 2;
...
bigArray[99, 99] = 100000;
startRowIndex = 0;
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Converting punycode with dash character to Unicode I need to convert the punycode NIATO-OTABD to nñiñatoñ.
I found a text converter in JavaScript the other day, but the punycode conversion doesn't work if there's a dash in the middle.
Any suggestion to fix the "dash" issue?
A: I took the time to create the punycode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What does the SQL Server Error "String Data, Right Truncation" mean and how do I fix it? We are doing some performance tests on our website and we are getting the following error a lot:
*** 'C:\inetpub\foo.plex' log message at: 2008/10/07 13:19:58
DBD::ODBC::st execute failed: [Microsoft][SQL Native Client]String da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: JavaScript style/optimization: String.indexOf() v. Regex.test() I've recently come across this piece of JavaScript code:
if (",>=,<=,<>,".indexOf("," + sCompOp + ",") != -1)
I was intrigued, because to write this test I would have done:
if (/(>=|<=|<>)/.test(sCompOp))
Is this just a stylistic difference, or does t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a preference for nested try/catch blocks? One of the things that always bugs me about using Readers and Streams in Java is that the close() method can throw an exception. Since it's a good idea to put the close method in a finally block, that necessitates a bit of an awkward situation. I usually use this co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Storing Crystal Reports Files in Database? I've got a UI front end which talks to and manipulates a SQL Server database, and one of the things it can do is run reports on the data in the database.
This UI can be installed on multiple computers, and so far I've just been keeping the reports in a folder with the inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Domain Driven Design - Logical Deletes So, I have a nice domain model built. Repositories handle the data access and what not. A new requirements has popped up that indicates that reasons need to be logged with deletes. Up until now, deletes have been fairly simple => Entity.Children.Remove(child). No internal c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to fix the DTSX precedence constraint evaluation error while passing variable in command line? I have a dtsx package with a precedence constraint that evaluates an expression and a constraint. The constraint is "success" and the expression is "@myVariable" == 3. myVariable is an int32, and when set in Visual S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WCF Endpoint with Priority I need WCF service with 3 endpoints
*
*High
*Normal
*Low
Most of messages will come through Normal and Low Endpoints.
If Message on High will appear it have to be processed asap.
Does anyone knows how to do it ???
A: You should take a look at this great two part series from Miche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the difference between HTML div and span elements? I would like to ask for some simple examples showing the uses of <div> and <span>. I've seen them both used to mark a section of a page with an id or class, but I'm interested in knowing if there are times when one is preferred over the other.
A: As mention... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "672"
} |
Q: .NET SqlConnection NIC usage Having a computer with multiple NICs, I need to specify somehow the one to use for the connection to SQL Server.
A: Following on from @pzycoman, SqlConnection (and SQL OLEDB/SQL Server ODBC) has no explicit connection string semantic to express the bound NIC other than to specify the de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Forking subprocesses in Perl unit tests stops prove; Test::Harness exiting I have been trying to use the Perl utility/module "prove" as a test harness for some unit tests. The unit tests are a little more "system" than "unit" as I need to fork off some background processes as part of the test, Using the following...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Zero-to-many relationship with Linq to SQL I have a User class which may or may not have an associated Department. This is referenced through the foreign key DepartmentId, and the relevant field in the User table is set to allow nulls.
When I set up my "Create User" form and select no Department, I get a conflict e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error installing newgem on linux I am trying to install newgem on my linux box (sudo gem install newgem) and i am getting the following error:
Building native extensions. This could take a while...
ERROR: Error installing newgem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL command to LINQ (pivoting) I'm moving DB from MySQL (used ODBC) to MS SQL and I want to "translate" SQL queries to LINQ. Can someone help me with this (it should SUM Charge column for every location and group result by months):
SELECT
sum(case when Location="Location1" then Charge else 0 end) as Location1,
sum(c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tool for generating C# classes from NHibernate mappings files? What tool is there for generating C# classes from NHibernate mappings files?
A: On the NHibernate resources page under 'Helpful tools', there are a few code generators listed:
http://nhibernate.info/doc/nh/en/index.html
A: NConstruct Lite generate both... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best Practice for Exception Handling in a Windows Forms Application? I'm currently in the process of writing my first Windows Forms application. I've read a few C# books now so I've got a relatively good understanding of what language features C# has to deal with exceptions. They're all quite theoretical however so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: Why does Visual Studio take so long to delete a file Why does Visual studio take so long to delete a file from the solution tree? The app freezes and sits there for what feels like an eternity.
If I delete the file from the file system first, then delete it in the solution it happens instantly.
Is there an option ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I create an ActiveRecord relationship to an ActiveResource object? Let's say I'm writing a Library application for a publishing company who already has a People application.
So in my Library application I have
class Person < ActiveResource::Base
self.site = "http://api.people.mypublisher.com/"
end
and now ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Comparison Functor Types vs. operator< In the Google C++ Style Guide, the section on Operator Overloading recommends against overloading any operators ("except in rare, special circumstances"). Specifically, it recommends:
In particular, do not overload
operator== or operator< just so that
your class can be use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I compare strings in Bourne Shell? I need to compare strings in shell:
var1="mtu eth0"
if [ "$var1" == "mtu *" ]
then
# do something
fi
But obviously the "*" doesn't work in Shell. Is there a way to do it?
A: bash
Shortest fix:
if [[ "$var1" = "mtu "* ]]
Bash's [[ ]] doesn't get glob-expanded, unlike ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What is the best practice for JPA/Hibernate entity classes and synchronization? It seems like most examples of JPA/Hibernate entity bean classes I've seen do no explicit synchronization. Yet, it is possible to call getters/setters on those objects in the context of building up a transaction. And it's possible for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Selecting a node in virtualized TreeView with WPF Is there a way to select manually a node in virtualizing TreeView and then bring it into view?
The data model I'm using with my TreeView is implemented based on the VM-M-V model. Each TreeViewItem's IsSelected property is binded to a corresponing property in ViewMode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Making my ajax updated div fade in I have this code that performs an ajax call and loads the results into two duplicate divs every time a dropdown is changed. I want the results to be faded into the div, to give a more obvious indication that something has changed, as its so seamless its sometimes hard to notice the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What do the letter codes in Oracle user_contraints table's constraint_type column stand for? select distinct constraint_type from user_constraints;
C
-
C
P
R
U
Seems P means primary key and R means foreign key, correct? What are U and C?
A: From the 12cR1 documentation:
C - Check constraint on a table
P - Pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: How to Digitally "Sign" a document I don't like paper documents. I like everything stored on a server. I'd like to avoid printing, signing, and scanning, if possible.
How do I get signatures from people to sign-off on forms and still keep it digital?
The purpose of signing is to prove that certain departments have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Firebird stored procedure for concatenating all field values from multiple rows my goal is to write a stored proc that can collect all field values from multiple rows into one single output variable (maybe varchar(some_length)). It may seem strange solution but i've quite positive its the only one i can use at that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C# Set collection? Does anyone know if there is a good equivalent to Java's Set collection in C#? I know that you can somewhat mimic a set using a Dictionary or a HashTable by populating but ignoring the values, but that's not a very elegant way.
A: If you're using .NET 3.5, you can use HashSet<T>. It's true that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "550"
} |
Q: How to gain exclusive access to SQL Server 2005 database to restore? Whenever I restore a backup of my database in SQL Server I am presented with the following error:
Msg 3101, Level 16, State 1, Line 1
Exclusive access could not be obtained because the database is in use.
Msg 3013, Level 16, State 1, Line 1
RESTORE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Select Poorly Used Start and End Dates From Facility Table I'm using DB2, although a solution using any flavor of SQL would likely be easy enough for me to convert.
I didn't design this database, or the application that uses the database. I haven't the power to change this application, how it works, or the data. B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Access parent's parent from javascript object Something like
var life= {
users : {
guys : function(){ this.SOMETHING.mameAndDestroy(this.girls); },
girls : function(){ this.SOMETHING.kiss(this.boys); },
},
mameAndDestroy : function(group){ },
kiss : function(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Resources for working with video feeds in C# I'm starting to get into a side project that I hope to pull in frames from several small IP cameras, perhaps do a bit of motion detection and redisplay them in a form with alerts.
Does anyone have some good resources or similar projects that I could use to get acquainte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you deal with m..n relationships in a relational database? Let's look at an example - books. A book can have 1..n authors. An author can have 1..m books. What is a good way to represent all of the authors of a book?
I came up with an idea to create a Books table and an Authors table. The Authors table has a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Persistence: Data Trees stored as Directory Trees I was wondering as to the practicalities of storing an in memory tree structure as directory tree for persistence purposes. In my case he target filesystem will be ZFS, and once the structure has been created it will be accessed by multiple processes infrequently.
Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Flat File Repair Tool Scenario: Attempting to import many (>100), large(>1M recs) flat-files (csv).
Problem: Many records are missing field delimiters.
Asking: Is there a parsing tool that will attempt to define and validate the file and allow you to make "in-line" corrections?
ETA: I'm attempting to import this fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the differences between the Builder, Factory Method, and Abstract Factory patterns? A program receives a list of Messages (base type). Each message in the list has to be processed according to it's type (descendant type). However, different messages need different inputs in order to be processed correctly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How many active ASP.NET developers are there? I'm looking for metrics on how many ASP.NET developers are actively using ASP.NET.
If you have links to reliable metrics I would be interested to see them.
A: http://news.netcraft.com/
They have decent metrics on what server type sites are using. You could go from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Organization of JUnit tests in projects What would you consider best practice for organizing JUnit tests in a project, and why? For example, do you keep your tests next to the classes they test? Do you put them in a separate but parallel package structure? Do you use a different organization strategy entirely?
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Loading content as the user scrolls down I am building a blog type page, and I want to load items into the page as the user scrolls down, much like Google Reader, or Soup.io. How would you go about achieving this effect? I've seen some examples which read the height of the page, and have an onScroll even attached to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Log to file via PHP or log to MySQL database - which is quicker? I have a database driven website serving about 50,000 pages.
I want to track each webpage/record hit.
I will do this by creating logs, and then batch processing the logs once a day.
I am not concerned with how I will do the batch process, only with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: C / C++ compiler warnings: do you clean up all your code to remove them or leave them in? I've worked on many projects where I've been given code by others to update. More often than not I compile it and get about 1,000+ compiler warnings. When I see compiler warnings they make me feel dirty, so my first task is to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: How would you do a "not in" query with LINQ? I have two collections which have property Email in both collections. I need to get a list of the items in the first list where Email does not exist in the second list. With SQL I would just use "not in", but I do not know the equivalent in LINQ. How is that done?
So far ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "345"
} |
Q: How to tell if a URL parameter needs to be encoded in Java I'm writing a Java app that is accepting URL parameter values that may or may not be encoded. I need an easy way to tell whether or not I need to encode the parameter string.
In other words, I want a function boolean needsEncoding(String param), which will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which graphic file formats are supported by browsers? JPEG, GIF and PNG can be displayed with the img tag and will work in all browsers, the object element can be use for displaying images specifying its MIME type, but what other graphic formats are supported by img or object tag in most browsers without installing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: .NET Regex balancing groups expression - matching when not balanced .NET balanced group regexes make my head explode. I've got this string i'm trying to match:
other stuff blah blah....
{
stuff stuff
{key:
stuff
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can Database Mirroring Be Setup On MS SQLServer Between Two Clusters Using Microsoft SQL Server's database mirroring capability, can the mirroring occur between two clusters? All of the examples in MSDN show a topology indicating single servers for both the principal and mirror server.
A: At least in 2005 and 2008,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the difference between '/' and '//' when used for division? Is there a benefit to using one over the other? In Python 2, they both seem to return the same results:
>>> 6/3
2
>>> 6//3
2
A: Python 2.x Clarification:
To clarify for the Python 2.x line, / is neither floor division nor true division.
/ is floor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "563"
} |
Q: How do I LINQify this? Is there any way to clean up this type of loop using LINQ?
List<Car> result;
List<string> makes;
List<string> models;
for (int i = 0; i < makes.Count() && i < models.Count(); i++)
{
result.Add(new Car() { Make = makes[i], Model = models[i] });
}
Basically I'm looking for some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Preferred way to include relative reference to JavaScript in VS 2008 nested Masterpage Our base Masterpage has something like the following
<head runat="server">
<title></title>
<script type="text/javascript" src="<%= Page.ResolveClientURL("~/javascript/actions.js")%>"></script>
<script type="text/javasc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Image Capture in C# I'm working on a home project that involves comparing images to a database of images (using a quadrant - or so - histogram approach). I wanted to know what my options are in regards to web cams or other image capture devices that:
*
*Are easy to work with with the
Windows SDK (particularly
Di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Interesting compiler projects I'm currently in the process of choosing a project for a grad-level compiler course to be done over the next 8 weeks. I'd like to do something related to optimization since I haven't worked much in that area before, but anything in the field is fair game.
What was the most interesting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: VS 2k8 Doesn't Release File Handle After Debugging Stops: Unable to copy file X to output directory because it is being used by another process Every once in a while, typically when I stop debugging in our UI assembly, I get the following error which requires a restart of Visual Studio 2008 and it's killing my produ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Technologies for centrally storing and publishing perl scripts and "small tools"? My problem:
There are numerous (>100) tools the development teams use which are "home" written. They are sometimes a perl script, or a "web page", or just something that does a couple of small functions. I need to find a way (as part ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Forward Referencing or Declaration in C++ How do I do forward referencing / declaration in C++ to avoid circular header file references?
I have the #ifndef guard in the header file, yet memory tells me I need this forward referencing thing - which i've used before >< but can't remember how.
A: You predeclare the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/183898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |