text
stringlengths
8
267k
meta
dict
Q: Looped push_back against resize() + iterator Simple question; what's better and why? out.resize( in.size() ); T1::iterator outit = out.begin(); for( inIt = in.begin() to end, ++inIt, ++outIt ) *outit = *inIt OR out.erase(); for( inIt = in.begin() to end, ++inIt ) out.push_back( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Eclipse - Problems saving workspace Periodically (during autosave) and at close i get: Problems saving workspace (X) Problems occurred while trying to save the state of the workbench. Details >> Could not write metadata for '/projectname'. encoded string too long: 123456 bytes Can't find a reason or solution ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: In TFS, can I use an added 'In Progress' state to determine how long tasks take? I've modified the Agile task template in TFS to include a new 'In Progress' state. When work is started on an item the 'assigned user' will set the task from 'Active' to 'In Progress'. This helps me to know which tasks have been start...
{ "language": "en", "url": "https://stackoverflow.com/questions/381277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: An Easy way to Deploy an MVC App to a Desktop Machine? I have an interesting situation where I need to deploy an ASP.NET MVC app to a (pseudo-boss's) local desktop machine so they can run it locally for data entry purposes. What would be the best way to get the app running on a vista machine without Visual Studio i...
{ "language": "en", "url": "https://stackoverflow.com/questions/381282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Distinct stylesheets for type, color and layout. What goes where? I came across this article on "A List Apart" that suggests spliting css information in (at least) three separate files, one for typography, one for layout and one for color information. Color seems pretty obvious, but how would you explain to your ave...
{ "language": "en", "url": "https://stackoverflow.com/questions/381295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I read an XML file into a buffer in C? I want to read an XML file into a char *buffer using C. What is the best way to do this? How should I get started? A: Is reading the contents of the file into a single, simple buffer really what you want to do? XML files are generally there to be parsed, and you can d...
{ "language": "en", "url": "https://stackoverflow.com/questions/381300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: VSTO: Can't create workbooks When I try to create a Excel or Word workbook project in VS, I get the message: A compatible version of Microsoft Office is not installed on this computer. You must install the version of Office that is compatible with your project. In addition, repair the version of the Vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/381320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to look for a certain pattern within a database field? I have a column that has fields such as C5, C6, C3, CC, CA, CD, etc. I want to be able to find all the columns that have a letter and then a number such as C5 and C6. I know if I do: SELECT * FROM TABLE WHERE FIELD LIKE 'C%' It will return CC,CA,CD as wel...
{ "language": "en", "url": "https://stackoverflow.com/questions/381323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: An operator == whose parameters are non-const references I this post, I've seen this: class MonitorObjectString: public MonitorObject { // some other declarations friend inline bool operator==(/*const*/ MonitorObjectString& lhs, /*const*/ MonitorObjectString& rhs) { retu...
{ "language": "en", "url": "https://stackoverflow.com/questions/381324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In WCF - In the "Faulted" Event - How Do I Get The Exception Details? I have a WCF server and I'm tapping into the "Faulted" event which stupidly only gives me "object sender, EventArgs e". How can I get the current 'Exception' object in that event? Or, if there is some sort of global system way, like Environment.Ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/381345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: lightweight boost::bind I'm so sick of the pass-callback-data-as-void*-struct anti-pattern. Boost bind solves it nicely, but is an unacceptable dependency. What's a lightweight alternative? How would I write it myself as simply as possible? A: Check out the fast delegate by Don Clugston. It's supposedly the fast...
{ "language": "en", "url": "https://stackoverflow.com/questions/381363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a wildcard expansion option for .net apps? I've used the setargv.obj linking for Expanding Wildcard Arguments in the past for a number of C and C++ apps, but I can't find any similar mention for .net applications. Is there a standard way to have your app's command line parameters automatically wildcard expa...
{ "language": "en", "url": "https://stackoverflow.com/questions/381366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: ASP .NET 2.0 Control State vs ViewState Is the new ControlState feature only applicable to custom controls or is it available for the standard server controls as well? That is..can you disable ViewState for an entire page with standard controls like Detailsview, Gridview and would it still work? Does ControlState ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/381369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which JDBC jar should I use with java 1.5.0_16 and PostgreSQL 8.3.5? Which JDBC jar should I use with java 1.5.0_16 and PostgreSQL 8.3.5? A: Are you having an issue with the standard postgresql JDBC driver? I'm not using it right now, but I have in the past and it worked fine: http://jdbc.postgresql.org/ A: jdbc4 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sqlite: CURRENT_TIMESTAMP is in GMT, not the timezone of the machine I have a sqlite (v3) table with this column definition: "timestamp" DATETIME DEFAULT CURRENT_TIMESTAMP The server that this database lives on is in the CST time zone. When I insert into my table without including the timestamp column, sqlite auto...
{ "language": "en", "url": "https://stackoverflow.com/questions/381371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "146" }
Q: Insert fail then update OR Load and then decide if insert or update I have a webservice in java that receives a list of information to be inserted or updated in a database. I don't know which one is to insert or update. Which one is the best approach to abtain better performance results: * *Iterate over the list(...
{ "language": "en", "url": "https://stackoverflow.com/questions/381373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: weird slowness in asp.net web app - VS 2008 I compiled my app in release mode. I then went ahead and 'published' the site. Copies all files and moved them to a staging server with a static ip. Restarted IIS. Went to another machine and hit my web site. It took about 4 seconds for just the default page, which is pure...
{ "language": "en", "url": "https://stackoverflow.com/questions/381375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Benefits of using JSTL vs Velocity for view layer in MVC app? I'm currently building a Spring MVC application. I was looking to use JSP pages with tag libraries for handling the view layer and formatting of the HTML, but I've come across another group in my company that uses Velocity templates for the same purpose. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I break out of recursive find function once a specific file is found? I'm using the File::Find module to traverse a directory tree. Once I find a specific file, I want to stop searching. How can I do that? find (\$processFile, $mydir); sub processFile() { if ($_ =~ /target/) { # How c...
{ "language": "en", "url": "https://stackoverflow.com/questions/381395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the most efficient way to filter listboxes based on selections of another in c#? I have several listboxes that get each of their data from a separate stored procedure. If the user selects an option in 1 listbox, it should filter the other listboxes. I have done this before by adding logic to the stored p...
{ "language": "en", "url": "https://stackoverflow.com/questions/381396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you compare DateTime objects using a specified tolerance in C#? By default C# compares DateTime objects to the 100ns tick. However, my database returns DateTime values to the nearest millisecond. What's the best way to compare two DateTime objects in C# using a specified tolerance? Edit: I'm dealing with a tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/381401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: XML Parse error while processing the SOAP response I am using C# .Net 2.0 to write a webservices client. The server's soap implementation is tested and is pretty solid. gSoap/C++ applications had no problem reading the responses. However the .Net implementation complains "There is an error in XML document" while cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/381403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Make div look the same in IE6 and IE7/FF I have a Div with five float divs inside: var div=document.createElement("div"); div.className="cssDivNino"; var divFolio=document.createElement("div"); divFolio.className="cssFolio"; div.appendChild(divFolio); var divCurp=document.createElement("div"); divCurp.className="c...
{ "language": "en", "url": "https://stackoverflow.com/questions/381405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flex: Immediate editing in dataGrid cellEditor When I am editing a cell in a dataGrid, the changes are not applied to the dataProvider until I finish editing. Is there a way that I can make the changes appear in the dataProvider whilst editing? I would assume that the way of doing this would be to subclass the edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/381408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: efficient algorithm to test _which_ sets a particular number belongs to If I have a large set of continuous ranges ( e.g. [0..5], [10..20], [7..13],[-1..37] ) and can arrange those sets into any data-structure I like, what's the most efficient way to test which sets a particular test_number belongs to? I've thought ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Javascript form submission to activate Spring Web Flow transitions with JSF integration I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my flows does have a page that must trigger a form submit at certain events. For each different action, a different view must be presented. So, I'm tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/381434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Performance monitor shows 4294967293 sessions active I have an ASP.Net 3.5 website running in IIS 6 on Windows Server 2003 R2. It is a relatively small internal application that probably serves less than ten users at any given time. The server has 4 Gig of memory and shows that 3+ Gig is available while the site i...
{ "language": "en", "url": "https://stackoverflow.com/questions/381443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: asp.net - Generate Powerpoint file on the fly I have a client of my web based application who heavily uses the data from our system for powerpoint presentations. We currently allow data to export in more traditional file types...PDF, CSV, HTML, and a few others. Powerpoint doesn't seem to be really automated. Is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/381445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Systray context menu - why are my commands not enabled? I'm creating a WPF app and have a system tray icon with a context menu. For the menu items I want to use WPF commands but when I assign them they are always greyed out even though the (same) commands are enabled in other places. MenuItem menuItem = new MenuItem...
{ "language": "en", "url": "https://stackoverflow.com/questions/381451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why won't TeamCity run my Nant build file? I have a simple NAnt build file, which attempts to perform an update from subversion on the specified directory. An example of the test build file content is: <?xml version="1.0" ?> <project name="Project_name" default="update"> <property name="root" value="C:\Subversion\Up...
{ "language": "en", "url": "https://stackoverflow.com/questions/381452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Authentication/authorization scheme Is there any best practice data model for authentication/authorization scheme? A: A data model that consists of a mapping of roles to privileges is fairly flexible and suits most purposes. Then you assign roles to users (the concept is essentially the same as that of groups)...a...
{ "language": "en", "url": "https://stackoverflow.com/questions/381453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How did you extend your Assert class I love to Extend my Assert.AreEqual to many different classes, the known one is the CollectionAssert of course, but I can think of some more such as: ImageAssert, XmlAssert etc.. Did you Create your own Assert classes? and what kind of new would you like to create? A: That's my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: MS Access Project In TFS Build I have a question for all of you and please any ideas are welcome. We have alot of MSAccess database projects in our repository on which developers work and do there tests in Dev Envoirment on there own. As you all know compiling a databse project is itself a wrong statement, cause you...
{ "language": "en", "url": "https://stackoverflow.com/questions/381466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where should external assemblies be place in my Visual Studio solution so that they are part of source control? I have a multi-project solution. I believe it is best practice to put all externally referenced assemblies (e.g. OSS stuff) in a folder that is on the relative path of the solution and it's component proj...
{ "language": "en", "url": "https://stackoverflow.com/questions/381478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get psyco speedup on x64 architecture? Is there a way to get the same sort of speedup on x64 architecture as you can get from psyco on 32 bit processors? A: No, unfortunately, Psyco only runs on 32-bit x86 right now.
{ "language": "en", "url": "https://stackoverflow.com/questions/381479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ruby (Shoes) - Wait for function to return value I have a function that presents the user a combo-box. def select_interface(interfaces) list_box :items => interfaces do |list| interface = list.text end ### ideally should wait until interface has a value then: ### return interface end The rest of the pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/381480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NHibernate efficiency Having fallen behind in the world of ORM and modern data access, I'm looking to move away from DataSets (shudder) and into a proper mapping framework. I've just about got my head around Linq to SQL, an I'm now looking into NHibernate with the view to using it in our next project. With old schoo...
{ "language": "en", "url": "https://stackoverflow.com/questions/381485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Where can one find a specification for the data structures representing a dll in memory? Specifically I want to know what the data structure for the imports (idata) section looks like. A: The DLL file format is the same as that of EXE files, the PE (portable executable) format. You can get a copy of the specificati...
{ "language": "en", "url": "https://stackoverflow.com/questions/381487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make a WPF WebBrowser read-only? I'm using a WPF WebBrowser control to preview HTML typed by the user. example... WPF TextBox and WebBrowser controls http://img411.imageshack.us/img411/2296/appbz9.jpg But, how do I made the WebBrowser control read-only? I don't want the user to be clicking links in there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MySQL inner join question I have two tables in a MySQL database urltracker with columns id and urlclicked and urlreferrer with columns id, url_id and urlreferrer the urltracker is really just a lookup table with the url_id column in the urlreferrer table being the link between the tables. Example DDL: CREATE TABLE u...
{ "language": "en", "url": "https://stackoverflow.com/questions/381496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Callback and scope I discovered to have some problem to fully understand callbacks scoping when trying to learn Jquery. I would add that i have little experience with the Javascript language The code: var globDom; // placeholder for DOM fragment // Getting xml file; jquery parses the file and give me back a DOM...
{ "language": "en", "url": "https://stackoverflow.com/questions/381501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to obtain names of method parameters in Java? I'm writing small and very DRY framework, which heavily relies on metadata. I'd like to know if there is a way to obtain method parameter names, i.e. given some method public void a(int myIntParam, String theString) { ... } get the strings "myIntParam" an...
{ "language": "en", "url": "https://stackoverflow.com/questions/381502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Can a Byte[] Array be written to a file in C#? I'm trying to write out a Byte[] array representing a complete file to a file. The original file from the client is sent via TCP and then received by a server. The received stream is read to a byte array and then sent to be processed by this class. This is mainly to e...
{ "language": "en", "url": "https://stackoverflow.com/questions/381508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "403" }
Q: .NET Signed XML Prefix Is there a way to set the prefix on the Signature of a Signed XML Document (SignedXml class in .Net)? So instead of: <Signature xmlns="http://www.w3.org/2000/09/xmldsig#> ... </Signature> I could have the following: <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#> ... </ds:Signatur...
{ "language": "en", "url": "https://stackoverflow.com/questions/381517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How Do You Set a Textblock to Autosize to the Width of a TreeView? I have a TextBlock that I need to autosize to the width of a TreeView. The TreeView and the TextBlock are both contained in a StackPanel. The StackPanel is inside an Expander. The width of the TreeView should drive the width of the other objects a...
{ "language": "en", "url": "https://stackoverflow.com/questions/381520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I catch redirections to other domains when testing with Webrat? In my Rails app, I have a form which redirects through a foreign service, Amazon FPS. The form POSTs to an action in my app which redirects to Amazon, who collect information and then redirect back to my app. I'm testing this workflow with Webra...
{ "language": "en", "url": "https://stackoverflow.com/questions/381527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Deploying .PDB files in IIS. Any benefit? I am deploying ASP.NET and Web Service solutions to IIS for a development server. It looks like the last person that did this job deployed all the .pdb files too. I asked about it, and was told that they "provide better stack trace info in the logs" if they are left on the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/381537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: With arrays, why is it the case that a[5] == 5[a]? As Joel points out in Stack Overflow podcast #34, in C Programming Language (aka: K & R), there is mention of this property of arrays in C: a[5] == 5[a] Joel says that it's because of pointer arithmetic but I still don't understand. Why does a[5] == 5[a]? A: In C a...
{ "language": "en", "url": "https://stackoverflow.com/questions/381542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1778" }
Q: creation of multiple dataset in Reporting service report I have a SSRS report and using PL/SQL for the dataset creation. My report needs two tables 1 one gives detailed view.(dataset 1) 2 one below that gives a summary table (data should come from the calculations based on the data in 1 table) I am using a tempor...
{ "language": "en", "url": "https://stackoverflow.com/questions/381545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I display a byte array as a String in java's debug detail formatter? I'd like to write a simple detail formatter that displays byte[] data in the form of a String (using String.<init>([B) to do the dirty work). However, I'm not sure how to find the class name for [B to use when creating the formatter. Is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/381546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Are there any design patterns for handling serial port communications? We are working with some new Cutting Tools that can have it's hardware parameters altered through the serial port instead of just a control panel. When the hardware parameters are altered the hardware will take a few seconds to reconfigure itsel...
{ "language": "en", "url": "https://stackoverflow.com/questions/381548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Fixed font size in firefox? I'm wanting to keep the font size of a navigation menu the same size for all browsers. I set the font-size of the navigation menu text to a specific pixel size. In IE this works, but not in FF. The problem is, if a person changes their browser's font size, then it completely ruins the...
{ "language": "en", "url": "https://stackoverflow.com/questions/381552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE's Default CSS Values I have a web application that I'm working on for work and its not very Firefox friendly (design was made 2 years before I started with the company). There are some CSS issues that I am having problems with and I can't use a CSS Reset because the page design is pretty much set in stone and it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Problems installing .NET Services from InstallShield 2009 MSI - Custom Action did not close 1 MSIHANDLEs I am using InstallShield 2009 to generate an MSI for a codebase I have inherited. The code is comprised of VB6, and .NET 2.0 code (C# and C++). I'm developing and installing on Windows XP SP2. I created the Insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/381563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: REST Content-Type: Should it be based on extension or Accept header? Should the representation(html, xml, json) returned by a RESTful web service be determined by the url or by the Accept HTTP header? A: Since you're mentioning a RESTful web service and not any web service, I would strongly go for what is supported...
{ "language": "en", "url": "https://stackoverflow.com/questions/381568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Groovy syntax explanation/resources I started dabbling in groovy yesterday. There's an example on the groovy website that I understand but I would like to know more about why it works the way it does. What's confusing me is who[1..-1]. Is this like saying who[1..who.length()-1]? I can't find any documentation on...
{ "language": "en", "url": "https://stackoverflow.com/questions/381573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting a JSLint warning concerning labels in Javascript In my javascript I have this loopDeLoop: while (foo !== bar) { switch (fubar) { case reallyFubar: if (anotherFoo == anotherBar) { break loopDeLoop; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.Net MVC Routing URL QueryString Is there a way to link to another View that displays search results without having to use a querystring? For example, I know that I can do the following: [AcceptVerbs(HttpVerbs.Post)] public ActionResult Index(string txtOrderNumber) { return RedirectToAction("OrderLookup", ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/381582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: outputting the value of a "Watch" in Eclipse to a log file I have a piece of Java code I can't edit which I want to debug. The issue is that one of my 10,000 records has a data error and is causing the application to crash. I can remote debug the live application and add watch which would pick up the id of the recor...
{ "language": "en", "url": "https://stackoverflow.com/questions/381586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Implementing parser for escape sequences I'm want to parse a custom string format that is persisting an object graphs state. This is ASP.NET scenario and I wanted something easy to use on the client (JavaScript) and server (C#). I have a format something like {Name1|Value1|Value2|...|ValueN}{Name2|Value1|...}{...}...
{ "language": "en", "url": "https://stackoverflow.com/questions/381592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I POST data to a remote URL in Classic ASP? I need to POST data to a url in the middle of a script. * *User fills out form: *Form submits to process.asp: I need to POST data to a 3rd Party integration at this point. *process.asp finishes and directs user to thank you page. A: Most form action pages acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/381596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Good Solutions for Managing Multiple Languages in a project We have a need to manage a large number (approx 20+) languages for our application. For previous projects that required fewer languages (3 - 4) we used a simple excel spreadsheet that we sent to various translators and they filled in the translations for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/381609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Blank pages in some versions of Acrobat I have a PDF that is being generated from HTML source using HTMLDOC. While I am able to view the file fine on my mac, and on every version of Acrobot that I can get my hands on, some end users are showing some pages as completely blank. The blank pages are somewhat unique in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using arrays or std::vectors in C++, what's the performance gap? In our C++ course they suggest not to use C++ arrays on new projects anymore. As far as I know Stroustroup himself suggests not to use arrays. But are there significant performance differences? A: Preamble for micro-optimizer people Remember: "Progra...
{ "language": "en", "url": "https://stackoverflow.com/questions/381621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "248" }
Q: How can I sort an SQL result but keep some results as special? I have a result from an SQL query that I would like to sort alphabetical, but there are a couple of commonly used results that I would like to float to the top. Is there a simple way I can achieve this either by doing clever SQL or by sorting the (asp.n...
{ "language": "en", "url": "https://stackoverflow.com/questions/381622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there any good framework or library for c# snips of design-patterns? We want to build a library of c# snips for .NET. We are looking around to see if there is something similar out there. The library will be open source and free to use and distribute. I see there is a similar question here, but is more theore...
{ "language": "en", "url": "https://stackoverflow.com/questions/381642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gridview HTML row ID incorrectly created All, When my gridview binds to its datasource (set programmatically) and generates the HTML, the row ID's are coming out in the HTML as the same for every row ... i.e. they are not unique. I expect this: <select name="ctl00$ContentHolder$list$ctl03$EquipmentTypeList" id="ctl0...
{ "language": "en", "url": "https://stackoverflow.com/questions/381659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do I sometimes hear the term "lexical variable?" I've seen the term "lexical variable" a few times, mostly in the context of closures. Paul Graham uses the term in his books on Lisp referring to variables defined using the let expression. I understand that lexical scoping is another name for static scoping. Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can I download multiple files to a directory with Flash? In Flash, I can prompt the user for a location to save a file and write a file to that location. In my case, the user wants to download a large set of files. Is there a way to let the user choose a directory once and download a number of files into that dire...
{ "language": "en", "url": "https://stackoverflow.com/questions/381664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can a two-dimensional gradient be created (or faked) in SVG? I'm trying to create a color-picker which must dynamically generate its images and figured it would be a whole lot easier to generate SVG than a raster image. Unfortunately, I can't figure out how to represent the big, two-dimensional gradient which will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Question about Copying vs Publishing website I would appreciate opinions or suggestions. For several years, I have had an html and javascript website that was housed on a shared Apache server hosted by Wild West. Recently I decided to migrate it to .NET 3.5 and put it on a shared Windows IIS7 server also hosted b...
{ "language": "en", "url": "https://stackoverflow.com/questions/381679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C/objC/C++/Java compilers I downloaded NetBeans (for first time) to use Java and found that it can handle C/C++ etc too. Wanted to know following -- 01- Is there any better C++ tool (IDE) other than NetBeans and MS Visual Studio? Better means very mature and popular (and free). 02- What is the difference between G...
{ "language": "en", "url": "https://stackoverflow.com/questions/381680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Non-numerical use cases for functional programming? I just finished reading a book on scala. What strikes me is that every single example in the whole book was numerical in some form or another. Like a lot of programmers, the only math I use is from discrete and combinatorial mathematics, and usually that's not math...
{ "language": "en", "url": "https://stackoverflow.com/questions/381685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How to create foo.com/user in Zend? Well i need to make it so any user can have a foo.com/username in my site where i user a Zend framework. The thing is that i want foo.com/login and other controllers to keep working as they do, so i already validate that no user can be named as one of the controllers im going to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best base type to deal with linear algebra I'm writing a small and inadequate linear algebra library in C++ for a project (I'm sorry). I'm implementing matrices and operations using double precision numbers. I'm doing right? Should I implement a template class instead? Is there a more precise type around? A: I woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/381695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Do you precompile your website and why/why not? I'd like to get the pulse of the community on whether to precompile or not. I know its cold start time is faster, and it hides code. However, there is something dirty about it, IMO. Maybe its the name, compiling a website sounds incorrect. In general how are you dep...
{ "language": "en", "url": "https://stackoverflow.com/questions/381701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Programmatically create Photomosaic Goal: Create Photomosaics programmatically using .NET and C#. Main reason I'd like to do this programatically is to be able to record which image and where it goes myself, so I can create an animated effect of the images coming together to create the photomosaic. It would be grea...
{ "language": "en", "url": "https://stackoverflow.com/questions/381713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Check for pointer definedness in C++ How do I check if a variable, specifically a pointer, is defined in C++? Suppose I have a class: class MyClass { public: MyClass(); ~MyClass() { delete pointer; // if defined! } initializePointer() { pointer = new OtherClass(); } private:...
{ "language": "en", "url": "https://stackoverflow.com/questions/381718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: I want more syntactic sugar in my Java! Syntactic sugar for properties for example in C#: private int x; public int X{ get { return x; } set { x = value; } } or simply public int X{ get; set; } I am missing verbatim strings in java... @"C:\My Documents\" instead of "C:\\My Documents\\" Do you agree Java ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Castle Windsor: How to specify a runtime value as a parameter (E.g. value returned from static function call) I want to perform this CODE equivlant in the castle xml config file. // Foo(string name) IFoo f = new Foo(StaticBarClass.Name); XML Now for the XML, I know everything (e.g. the blah) except for the stuff i...
{ "language": "en", "url": "https://stackoverflow.com/questions/381734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there anyway to change the content type of an XML document, in the XML document? Is there anyway to change the content-type of an XML document, in the XML document? I'm working with a really old system that passes back HTML (and we are trying to make it return XML). I'm retrieving it from XMLHttpRequest, and I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Programmatic Link Scanning I'm looking for a programmatic link scanning solution. There are lots of home use software packages that will scan urls on a search results page and verify that those sites don't have malware on them, but I'm looking for a piece of software that you can do this programmatically. I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Easy way to simulate Invalid Viewstate? Is there an easy way to simulate Invalid Viewstate? A: Sure: just add a simple javascript function to the page to modify the hidden __VIEWSTATE input. A: You can also use fiddler It can simulate a postback very easily and you can modify that post. A: Here's a jQuery way to...
{ "language": "en", "url": "https://stackoverflow.com/questions/381758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SAP .NET Connector: System exception thrown while marshaling .NET type My app sends lots and lots of data to SAP. To di this, it builds up an SAP table object and sends it over. I get this error somewhat regularly, but not reliably: System exception thrown while marshaling .NET type 20081219 to RFCTYPE_BCD at SAP...
{ "language": "en", "url": "https://stackoverflow.com/questions/381760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is Cloud Computing really here? I have been hearing this term quite a lot. I have a bunch of mini questions that I would like to ask. * *Are business really ready for cloud computing? *Do consumers have the appropriate resources to consume services from the cloud? *Is this technology prone to more attacks? *So...
{ "language": "en", "url": "https://stackoverflow.com/questions/381761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flex: How do I access the data in my flex form and submit it to a ColdFusion cfc? I want to submit the values of a flex form to a ColdFusion cfc. If I have a flex form (see below) is the data in the form an object? Or do I have to create an object based on the id's in the form and then pass that new object to the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/381772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XML Schema: Element that can contain elements or text? How would I define an element that can either contain plain text or contain elements? Say I wanted to somehow allow for both of these cases: <xs:element name="field"> <xs:complexType> <xs:sequence> <xs:element ref="subfield" minOccurs="0"...
{ "language": "en", "url": "https://stackoverflow.com/questions/381782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Dynamically instanting classes in Objective-C, possible? My problem is the following. I have a method which simply takes an XML excerpt and an XPath. It then should create me an array of objects for that XML excerpt. Meaning if I get passed the following XML: <user> <name>Bob</name> <age>50</age> </user> My met...
{ "language": "en", "url": "https://stackoverflow.com/questions/381793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to disable right-click context-menu in JavaScript Not that I'm trying to prevent 'View Source' or anything silly like that, but I'm making some custom context menus for certain elements. EDIT: response to answers: I've tried this: <a id="moo" href=''> </a> <script type="text/javascript"> var moo = document....
{ "language": "en", "url": "https://stackoverflow.com/questions/381795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "168" }
Q: Large public datasets? I am looking for some large public datasets, in particular: * *Large sample web server logs that have been anonymized. *Datasets used for database performance benchmarking. Any other links to large public datasets would be appreciated. I already know about Amazon's public datasets at: ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/381806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Merge multiple CVS projects into one I have several related CVS projects, and I'd like to move them into subdirectories of a single new project. Let's assume that everyone using the projects will delete their working copies before I make the change. Is it safe to just go into the repository directory and move the di...
{ "language": "en", "url": "https://stackoverflow.com/questions/381808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can WCF Service have constructors? When I new a WCF service in my solution, can I do the following, have a constructor with parameter to pass in? If yes, how, when and where does the runtime fill in my required IBusinessLogic object? [ServiceContract] public interface IServiceContract { [OperationContract] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Splitting / Modularizing Large ASP.NET Web Application Projects Our company has a fairly large ASP.NET web application. The app is already broken up into distinct 'areas' of business functionality. I'm looking for some strategies we can use to split this web application into separate buildable/versionable modules. P...
{ "language": "en", "url": "https://stackoverflow.com/questions/381844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Preserving values in ASP.NET MVC Background I have a page on my ASP.NET MVC web app for users to enter addresses into their address book. When the user enters in their address and clicks the submit button, the controller action that handles the form post then geocodes the address (retrieves latitude, longitude, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/381857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can you add an extra item to a data bound ItemsControl in XAML? I have an ItemsControl that is data bound to a list of decimals. I need to add one extra control to the ItemsControl (an option to specify the number manually). Is there a way to do this in XAML? I know I can manually add the item in the code behind,...
{ "language": "en", "url": "https://stackoverflow.com/questions/381859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Project Naming As a beginner/intermediate developer one problem I run into as my projects get bigger and more abstracted away as i use more OOP principles I have a problem with naming things. Like when i have multiple projects or class libraries I don't know what to name them. I see things from xxx.Core to xxx.Mai...
{ "language": "en", "url": "https://stackoverflow.com/questions/381864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .Net 3.5 SP1 official update rollout? To the best of my knowledge and googling skills, .Net 3.5 SP1 is still not an "official" release. That is the only way to get the SP1 upgrade is by voluntary download and not through mandatory windows updates. Is there any time frame set for when .Net 3.5 SP1 will be pushed t...
{ "language": "en", "url": "https://stackoverflow.com/questions/381866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rebinding GridView using LinqDataSource I have a gridview that is using a LinqDataSource for it's datasource. I've added a FooterTemplate so users can insert new records. The Add Button has a command name that puts the values in a Dictionary list and then calls the LinqDataSource.Insert() method. This works fine....
{ "language": "en", "url": "https://stackoverflow.com/questions/381873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Converting a MySQL .DMP file to a .SQL File for MS Sql Server 2005 I'm at square one on a project that will need to repeatedly import data from MySQL *.dmp files into an existing Sql Server database. I am looking for guidance in the form of an existing tool, framework, or, barring pre-existing solutions, suggestions...
{ "language": "en", "url": "https://stackoverflow.com/questions/381874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make php nicer to the CPU? I'm running on a shared *NIX server (run by Site5). I have a php script that runs in the background occasionally doing some offline calculations. It uses around 100% CPU while it runs. I've tried nice-ing it, like this: nice -n 19 php script.php but that doesn't seem to make any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/381885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }