text
stringlengths
8
267k
meta
dict
Q: Tips on Speeding up JDBC writes? I am writing a program that does a lot of writes to a Postgres database. In a typical scenario I would be writing say 100,000 rows to a table that's well normalized (three foreign integer keys, the combination of which is the primary key and the index of the table). I am using Prep...
{ "language": "en", "url": "https://stackoverflow.com/questions/368736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: c++ deduction of "non type pointer to function" class template parameters Consider a template class like: template<typename ReturnType, ReturnType Fn()> class Proxy { void run() { ReturnType ret = Fn(); // ... do something ... } }; // and a functions int fn1() { return 5; } float fn2() {...
{ "language": "en", "url": "https://stackoverflow.com/questions/368737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Throwing ArgumentNullException Suppose I have a method that takes an object of some kind as an argument. Now say that if this method is passed a null argument, it's a fatal error and an exception should be thrown. Is it worth it for me to code something like this (keeping in mind this is a trivial example): void ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: Shell scripting: die on any error Suppose a shell script (/bin/sh or /bin/bash) contained several commands. How can I cleanly make the script terminate if any of the commands has a failing exit status? Obviously, one can use if blocks and/or callbacks, but is there a cleaner, more concise way? Using && is not rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/368744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Some (anti-)patterns on using assert (Java, and others) Finally, I have a question to ask on Stack Overflow! :-) The main target is for Java but I believe it is mostly language agnostic: if you don't have native assert, you can always simulate it. I work for a company selling a suite of softwares written in Java. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/368750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What's the best way to start and stop SQL Server from the command line? I need to start and stop SQL Server from the command line. I am willing to write a small C# program if necessary, but I suspect that there's something (PowerShell, maybe?) that currently exists that does this gracefully. Thank you. A: net start...
{ "language": "en", "url": "https://stackoverflow.com/questions/368761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Delphi(2006) Loop Help So What I'm essentially trying to do is have something happen 70% of the time, another few things happen 10% of the time each if that makes sense but my app doesn't seem to do any of the actions I'm guessing I'm misunderstanding the loop syntax or something, anyway if anyone could take a look ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass parameters to SSRS report programmatically I'm looking for a little help on programmatically passing parameters to a SSRS report via VB.NET and ASP.NET. This seems like it should be a relatively simple thing to do, but I haven't had much luck finding help on this. Does anyone have any suggestions on whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/368766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to post a form with MVC controller? How do I post a form to an external site using an ASP.NET MVC controller? EDIT: Ok... I have a view with some data on it. After the user completes the form I need to do a postback with a specified form format to an external site (like for paypal). After I posted the constructe...
{ "language": "en", "url": "https://stackoverflow.com/questions/368771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The mystery of the twin exceptions Here's an interesting question. I have a system that attempts to run some initialization code. If it fails, we call the deinitializer to clean everything up. Because we call the deinitializer in exception handling, we run the risk that both initialize and deinitialize will fail, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/368786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Xaml FlowDocument table - how to get the header on each page on a multi-page table? I've got a XAML FlowDocument containing a table with a lot of rows, spanning multiple pages, and I'm converting this FlowDocument to XPS. Now I'm looking for a way to repeat the header of the table on each page. I see two possible ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/368789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamic Graph Filtering I am working on a graph in WPF, in each section there are thousands of points to draw. The performance for rendering this graph is horrible. Does anyone have any experience with a filter that will represent the graph with much fewer points - similar to the way a stock graph draws itself when...
{ "language": "en", "url": "https://stackoverflow.com/questions/368790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Securing MBeans operations I've got some MBean operations that I need to secure. I would like the users to be required to log in as the server admin and I would like this to be setup programmaticly or, preferably by a config file in the WAR, when the app is deployed. I want to avoid requiring the admin to set this u...
{ "language": "en", "url": "https://stackoverflow.com/questions/368792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I call a method in an object from outside the JVM? I have a really simple Java class that effectively decorates a Map with input validation, with the obvious void set() and String get() methods. I'd like to be able to effectively call those methods and handle return values and exceptions from outside the JVM...
{ "language": "en", "url": "https://stackoverflow.com/questions/368802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how can I find the location of the solution/project on my harddrive in Visual Studio? I want to know where the solution/project is stored on my hard drive. I would have thought right clicking on the project from within Visual Studio would have the information on where it is stored on my hard drive, but it doesn't. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Python UnicodeDecodeError - Am I misunderstanding encode? Any thoughts on why this isn't working? I really thought 'ignore' would do the right thing. >>> 'add \x93Monitoring\x93 to list '.encode('latin-1','ignore') Traceback (most recent call last): File "<interactive input>", line 1, in ? UnicodeDecodeError: 'as...
{ "language": "en", "url": "https://stackoverflow.com/questions/368805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Classes that have no member data What do you do with classes that have no member data, only methods? Do you make them static? In my case it is an repository class that executes queries against the database. Maybe I got the repository pattern wrong... (It does implement an interface) A: Inherit from an Interface mea...
{ "language": "en", "url": "https://stackoverflow.com/questions/368806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jquery show()/hide() problem in Internet Explorer? The following html code works in Firefox, but for some reason fails in IE (Label2 is not shown). Is that a bug or I miss something? Any help would be appreciated. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/368807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: xsl grouping sort problem I have the following xsl template that I'm using to group my xsl. The problem I have is that I need to uppercase the @Title as currently my grouping is seeing upper and lowercase as seperate groups. <xsl:key name="rows-by-title" match="Row" use="substring(@Title,1,1)" /> <xsl:templat...
{ "language": "en", "url": "https://stackoverflow.com/questions/368808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HTML form readonly SELECT tag/input According to HTML specs, the select tag in HTML doesn't have a readonly attribute, only a disabled attribute. So if you want to keep the user from changing the dropdown, you have to use disabled. The only problem is that disabled HTML form inputs don't get included in the POST / G...
{ "language": "en", "url": "https://stackoverflow.com/questions/368813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "732" }
Q: Reading from compressed archives I want to place all my programs content in a compressed archive file as its starting to get quite large. I know theres a few libraries around like zlib but i dont know how to make them do what I want to do: * *Be able to load textures/models etc from the file, curretly im using d3...
{ "language": "en", "url": "https://stackoverflow.com/questions/368819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to quickly determine whether a user account is a member of an AD group? I currently have some code that pulls down a list of users in a group and then iterates through that group to determine if a given account exists, but it seems like there ought to be a more concise (and perhaps faster) way to accomplish...
{ "language": "en", "url": "https://stackoverflow.com/questions/368830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to write a profiler? i would to know how to write a profiler? What books and / or articles recommended? Can anyone help me please? Someone has already done something like this? A: I wrote one once, mainly as an attempt to make "deep sampling" more user-friendly. When you do the method manually, it is explained ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Character encoding problem - PHP output, read by .NET, via HttpWebRequest I have a PHP script (running on a Linux server) that ouputs the names of some files on the server. It outputs these file names in a simple text-only format. This output is read from a VB.NET program by using HttpWebRequest, HttpWebResponse, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/368832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add LDAP entry to Active Directory via ext/ldap Using ext/ldap I'm trying to add entries to an Active Directory. As long as I only use one single structural objectClass everything works as expected, but as soon as I try to add an entry with a second auxiliary objectClass, the server reports an error: Server is unwi...
{ "language": "en", "url": "https://stackoverflow.com/questions/368844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linq2Sql Many:Many question, How would you do this? I know many:many isn't supported in Linq2Sql but I am working on a workaround I am working with my little SO clone and I have a table with Questions and a table with Tags and a linking table QuestionTag so I have a classic many:many relationship between Questions a...
{ "language": "en", "url": "https://stackoverflow.com/questions/368854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Hidden Features of MySQL I've been working with Microsoft SQL Server with many years now but have only just recently started to use MySQL with my web applications, and I'm hungry for knowledge. To continue with the long line of "hidden feature" questions, I would like to know any hidden or handy features of MySQL wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/368858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: Castle Windsor: How to programatically pass a list parameter to the container? Is it possible to pass a list constructor parameter when resolving a type? I want to use a programmatic configuration if possible. I've been playing around with the Parameters method as shown below, but I've not yet stumbled upon the answ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the most appropriate .NET exception to throw upon failing to load an expected registry setting? I have an application which tries to load some expected registry settings within its constructor. What is the most appropriate .NET Exception from the BCL to throw if these (essential, non-defaultable) registry se...
{ "language": "en", "url": "https://stackoverflow.com/questions/368879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Does Sql Query Notification work for clr stored procedures? Trying to set up caching on our datasets - we're using clr stored procedures - The database doesn't seem to notify the application of data changes A: After much testing, the answer seems to be no... it doesn't seem to work for CLR stored procedures.
{ "language": "en", "url": "https://stackoverflow.com/questions/368889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing resources Does anyone know any resources (books/websites/whatever) related to parsing. I'm not so much interested in specific technologies such as yacc, XML or regular expressions, but something more general about best practices, stream vs. pull, error reporting and recovery, gotchas to look out for etc. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/368895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC Access Application Property from Model my global.asax looks like this Imports Castle.Windsor Imports Castle.Windsor.Configuration.Interpreters Public Class MvcApplication Inherits System.Web.HttpApplication Implements IContainerAccessor Private Shared IoC As IWindsorContainer Shared Su...
{ "language": "en", "url": "https://stackoverflow.com/questions/368902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Best Practices for controlling access to form fields I have a classic 3-tier ASP.Net 3.5 web application with forms that display business objects and allow them to be edited. Controls on the form correspond to a property of the underlying business object. The user will have read/write, readonly, or no access to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Removing an optional value type element from a SOAP message sent via a WCF proxy We have a wsdl specifying a datetime element. It is nullable, in the sense that minOccurs=0. However, using svcutil to generate a proxy class does not give us a .net nullable DateTime property, so how best can we make the proxy class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's a good way to serialize Delphi object tree to XML--using RTTI and not custom code? What's a good way to serialize a Delphi object tree to XML--using RTTI and not custom code? I would have loved to find that this feature is already built into Delphi, but it doesn't seem to be. I've found a few components (post...
{ "language": "en", "url": "https://stackoverflow.com/questions/368913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Access LINQ-2-SQL DataContext in entity class Is there any simple way to access the DataContext in a linq2sql entity class. I'm trying to create something like EntitySet but I cannot figure out how the EntitySet has access to the context that created the entity object in the first place. I want to have a regular lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/368924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I determine if a WPF window is modal? What's the easiest way to figure out if a window is opened modally or not? CLARIFICATION: I open a window calling myWindow.ShowDialog(); I have a footer with an "OK" & "Cancel" button that I only want to show if the window is opened modally. Now I realize I can set a pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/368926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: call a function when the program is finished with ctrl c I am working in the Linux environment, and I have a C++ program, what I want is when I cancel the program with ctrl+c I would like that the program executes a function, to close some files and print some sutff, is there any way to do this?. Thank you. A: For...
{ "language": "en", "url": "https://stackoverflow.com/questions/368927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: DB Design: more tables vs less tables Say I want to design a database for a community site with blogs, photos, forums etc., one way to do this is to single out the concept of a "post", as a blog entry, a blog comment, a photo, a photo comment, a forum post all can be thought as a post. So, I could potentially have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I get ASP.Net CompositeScript to cache in the browser? I have been trying to improve the performance of a web page that references several separate JavaScript files. I found the new CompositeScript feature in .Net 3.5 SP1 that allows you to combine scripts at runtime through the ScriptManager and it works gr...
{ "language": "en", "url": "https://stackoverflow.com/questions/368932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delphi Profiling tools I am having some performance problems with my Delphi 2006 app. Can you Suggest any profiling tools that will help me find the bottle neck i.e. A tool like turbo Profiler A: I have used http://www.prodelphi.de with success on Delphi 7 project in the past. Cheap and works. Don't let the bus...
{ "language": "en", "url": "https://stackoverflow.com/questions/368938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: When to separate certain entities into different repositories? I generally try and keep all related entities in the same repository. The following are entities that have a relationship between the two (marked with indentation): * *User * *UserPreference So they make sense to go into a user repository. Howev...
{ "language": "en", "url": "https://stackoverflow.com/questions/368940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jQuery How do I get the div in this code? How do I get the div from within this (the last) list item? Currently I have this, which is just plain ugly...any suggestions on a cleaner selector/ solution? var div = ul.append("<li><div></div></li>").contents("li:last-child")[0].children[0]; Thanks! A: You could go abou...
{ "language": "en", "url": "https://stackoverflow.com/questions/368943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SSIS package works with windows account, fails with sqlserver sa account Having some SSIS permissions issue. I am calling the SSIS package in my .net console application with: Package pkg = app.LoadFromSqlServer(packagePath, serverName, serverUsername, serverPassword, dtsEvents); It is working when manually running...
{ "language": "en", "url": "https://stackoverflow.com/questions/368945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Error thrown by AjaxToolKit in .NET only on some machines We have a button that saves asynchronously using AjaxToolKit/C#/.NET. I'm getting this in my Error Console: Error: [Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown...
{ "language": "en", "url": "https://stackoverflow.com/questions/368947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flex: Is there anyway to disable the textfield in the NumericStepper and force the user to change the value only by using the up/down buttons? Probably not much more to elaborate on here - I'm using a NumericStepper control and I want the user to use the buttons only to change the value in the NS, not by typing into...
{ "language": "en", "url": "https://stackoverflow.com/questions/368954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC and Paging - Search & Result Scenario I have forms in my page a get and a post and i want add pager on my get form .. so i cant page through the results.. The problem that i am having is when i move to the second page it does not display anything.. I am using this library for paging .. http://stephenwal...
{ "language": "en", "url": "https://stackoverflow.com/questions/368956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Source Control Server I there a PHP based source control 'server' that is compatible with SVN clients? I'd like to host my SVN on my hosting servers, however the current host will not allow me to start any process or install any software A: You could try: http://sourceforge.net/projects/deltaweb A: You can hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/368958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Symbian C++ - Persistent storage of a single variable I wish to store a single variable in my application that will be saved between runs. This will be a version number that will be used to trigger an update option and so will change only rarely. Does anyone have suggestions on the best way of implementing this? Con...
{ "language": "en", "url": "https://stackoverflow.com/questions/368963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to reuse a Criteria object with hibernate? I'm trying to do query result pagination with hibernate and displaytag, and Hibernate DetachedCriteria objects are doing their best to stand in the way. Let me explain... The easiest way to do pagination with displaytag seems to be implementing the PaginatedList interfa...
{ "language": "en", "url": "https://stackoverflow.com/questions/368966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Writing AVI files in OpenCV There example on the net and code given in Learn OpenCv,Orielly. After many attempts the out.avi file is written with 0 bytes. I wonder where i went wrong. The following are the code i used... int main(int argc, char* argv[]) { CvCapture* input = cvCaptureFromFile(argv[1]); IplIma...
{ "language": "en", "url": "https://stackoverflow.com/questions/368967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to allocate memory to an array of instances using an abstract class? I have an abstract class defining a pure virtual method in c++: class Base { Base(); ~Base(); virtual bool Test() = 0; }; I have subclassed this with a number of other classes (which provide an implementation for Test()), which I'll refer to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing a Python array to a C++ vector using Swig I have an array of objects in Python [obj1, obj2, obj3] and I want to pass them to off to a C++ function to perform some computation. I'm using SWIG to write my interface. The class type of the passed object is already defined in C++. What's the best way to do thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/368980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PHP get rid of slashes full path I have a full path which I would like to remove certain levels of it. So for instance, /home/john/smith/web/test/testing/nothing/ I would like to get rid of 4 levels, so I get /test/testing/nothing/ What would be a good of doing this? Thanks A: A simple solution is to slice the pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/368981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Sorting Datagrid column by date I have a column that contains dates, when I click the column header the column is sorted numerically and not by date. How would I sort this by date? The date is in the format dd/mm/yy. Example (sorted oldest first): 10/12/08 <--December 10/09/08 <--September 12/12/08 <--December Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/368997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I debug an Atompub POST sent via cURL to Wordpress on XP + Apache 2.2 + XDebug I've been using NetBeans as the XDebug interactive debugging client. But seems like it only supports attaching debuggers to scripts that are invoked via Firefox. I want to step through the request parse script when it's invoked via...
{ "language": "en", "url": "https://stackoverflow.com/questions/369007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reading an Oracle Lite ODB file without Oracle Lite Is there a way to extract the data from an Oracle Lite ODB file without installing Oracle Lite? Is there a reader out there which will let me browse and copy the data? A: You should be able to export the data using the OLLOAD utility, which is part of, but should...
{ "language": "en", "url": "https://stackoverflow.com/questions/369010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Keep a Silverlight Combobox DropDown open after losing focus Is it possible to avoid the automatic collapse of a Silverlight ComboBox after LostFocus? A: Well, looking at the disassembled code it looks like protected override void OnLostFocus(RoutedEventArgs e) { base.OnLostFocus(e); this.Focu...
{ "language": "en", "url": "https://stackoverflow.com/questions/369011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AJAX form editing and design I want to build into mt ASP.NET application the ability for users to fill up forms, but the forms are not something I can hard-code into my (Enterprise) software. So I need one screen that lets end users create the forms. Doing it the 2.0 way, I just love what PollDaddy did in their surv...
{ "language": "en", "url": "https://stackoverflow.com/questions/369016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use Tomcat to serve a directory? I have a directory on a linux box that I want to make publicly readable using Tomcat (5.5). I think this is easy to set up but can't find the appropriate documentation. Is there a simple way to accomplish this? A: It is possible by defining that directory as an web application, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/369023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: listview item cut style in .NET? How do I achieve the equivalent of the LVIS_CUT style for a listview item? It looks like it's not exposed by the framework? Should I P/Invoke? Edit: LVIS_CUT is a Win32 style that affects the look of the item: It grays the item image. You can see it in action in Windows Explorer: Sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/369024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting focus to iframe contents I have a page with a document.onkeydown event handler, and I'm loading it inside an iframe in another page. I have to click inside the iframe to get the content page to start "listening". Is there some way I can use JavaScript in the outer page to set the focus to the inner page so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Monitoring load on ASP.NET Application I am looking for ways to keep track of simultaneous users within an application. I cannot use IIS logs due to a load balancer that abstracts the users IP address. I am looking for a .NET code based solution or a configuration item, possibly with health monitoring to be able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/369040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: UnitTesting on iPhone doesn't build I am trying to perform some unit testing on the iphone but for some reason I cannot get it to build the executable I have downloaded TestMyApp from the Standford lecture slides and that compiles and runs perfectly. I have created a test project and even gone as far as to use the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/369041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Repeater control to aggregate data? I have a table with doctor offices and doctors in those offices that I'm populating to a repeater control. The data coming back is not aggregated. So, if there are 2 doctors in 1 office, there are 2 rows, same office, different doctor. Is there a way to aggregate the data so the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically focusing parts of a ListBoxItem on selection I have a ListBox which is populated from a collection of ViewModels, which uses in place editing, which I do by having a couple of styles which I can apply to parts of the DataTemplate which make them visible/collapsed as required. These look something like:...
{ "language": "en", "url": "https://stackoverflow.com/questions/369045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .htaccess for Zend Debugger, Eclipse and Zend Framework I want to debug my project in Zend Framework in Eclipse. Zend Debugger is already running bud now I have problem with Debug tool in Eclipse. It give an extra GET parametrs and the project in Zend don't like it. I tried to google it and found this I modifed the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Webservices - Java or .NET? I need to implement webservices in an upcoming project and wanted to know what are the main points to base the decision on whether to implement using java or .NET I'm a C++er... A: If you're a Java shop use Java. If you're a .NET shop use .NET. There really is no difference that makes o...
{ "language": "en", "url": "https://stackoverflow.com/questions/369059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Help me convince higher-ups to allow switching to .Net 3.5 (from 2.0) I have been sold on the fun of using linq in areas other than pure database interaction. (See Calling fellow code nerds - Alternatives to Nested Loops?). We are stuck on 2.0. I have told the powers that be about the ease of updating to 3.5 (we hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/369063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How difficult is it to develop an ASP.Net web application that runs under Mono and Windows? We are about to develop a web app from scratch using ASP.Net, and would like it to be as platform-agnostic as possible. As far as I know, the only two options for this are IIS on windows, and Mono (via Apache) on Linux. The a...
{ "language": "en", "url": "https://stackoverflow.com/questions/369064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Offline source control I'm about to start a project where programmers will be contributing from their homes (much like stackoverflow was built) I want to use some centralized source control, but I don't want it to require the programmers to be online, and the server may come offline from time to time (as at first it...
{ "language": "en", "url": "https://stackoverflow.com/questions/369065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: iFrame causes scriptaculous dragging issues in IE7 (full code included)? When I drag a link that is inside a draggable div over an iframe in IE7, I get very strange results. Try the code below and let me know if you have any suggestions about how to fix this. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiona...
{ "language": "en", "url": "https://stackoverflow.com/questions/369090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using a strongly typed ActionLink when the action method doesn't take a primitive type Does anyone know how I could go about doing something like : Html.ActionLink(c => c.SomeAction(new MessageObject { Id = 1 } )) This should output a link with the url of "/Controller/SomeAction/1", pointing at an ActionMethod along...
{ "language": "en", "url": "https://stackoverflow.com/questions/369102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CVS Automation: How do I detect a local file has been deleted so as to trigger a cvs remove? I'm looking to automate the backup of a Windows XP file structure (a wiki) into CVS. Through repeated calls to cvs commit and cvs add I can identify and commit changed files and newly added files, but I can't see a cvs comma...
{ "language": "en", "url": "https://stackoverflow.com/questions/369104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change default XML comment snippet in Visual Studio When I hit /// in Visual Studio, is it possible to change the resulting snippet from this: /// <summary> /// /// </summary> to this?: /// <summary></summary> A: It appears to me that what the /// generates is coded in: Macros.Samples.Utilities.InsertDocComments...
{ "language": "en", "url": "https://stackoverflow.com/questions/369116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: MySQL procedure? Function? I need to have a routine/function/stored proc/whatever to archive particular accounts from our 'active' table, to an inactive table. I can write this out as a group of queries, all executed in order by PHP one at a time, but I'm looking to offload most of the work to mysql because it's not...
{ "language": "en", "url": "https://stackoverflow.com/questions/369119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does mx:states have trouble being resolved to a component implementation? Every now and then I get an error when I set up states in an MXML file. The error I get says that mx:states could not be resolved to a component implementation. I read, at the following url, that this issue is caused by extending componen...
{ "language": "en", "url": "https://stackoverflow.com/questions/369120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: "Don't know how to create ISeq from: Symbol" error in Clojure I have the following Clojure code and I'm not sure why it's not working: (defn match (x y &optional binds) (cond ((eql x y) (values binds t)) ((assoc x binds) (match (binding x binds) y binds)) ((assoc y binds) (match x (binding y binds) binds)...
{ "language": "en", "url": "https://stackoverflow.com/questions/369122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Tab Bar Application With Navigation Controller I have a simple iPhone app that has a tab bar and 3 tabs. Each tab loads as a separate nib with a corresponding controller. Each nib contains a tableview with some other controls for searching/filtering etc. What I would like (and cant seem to find an example of) is add...
{ "language": "en", "url": "https://stackoverflow.com/questions/369128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: wcf max message size I have two services and am sending pretty chunky messages between them (~100kb). Though the previously mentioned value is typical of the size of the message, it is possible for it to fluctuate greatly (in both positive and negative directions). Thus, to deal with such situations where i have to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you manage and organize your game components? in my spare time I'm engaged with writing a little game using Microsofts XNA framework. Reviewing the very first prototype which I wrote to get aquainted with XNA, I found it annoying that there is no possibility to structure my (drawable) game components in a hie...
{ "language": "en", "url": "https://stackoverflow.com/questions/369141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to assign a glob expression to a variable in a Bash script? When the following two lines of code are executed in a bash script, "ls" complains that the files don't exist: dirs=/content/{dev01,dev02} ls -l $dirs When I run the script with the -x option, it appears to be passing the variable within single quotes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: javascript regex to extract anchor text and URL from anchor tags I have a paragraph of text in a javascript variable called 'input_content' and that text contains multiple anchor tags/links. I would like to match all of the anchor tags and extract anchor text and URL, and put it into an array like (or similar to) th...
{ "language": "en", "url": "https://stackoverflow.com/questions/369147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to make php5 on a machine running php4, without breaking anything I know with python and a couple other languages there is a way to safely make install a newer generational version of a language onto a machine, but after digging through PHP5's configure & makefile the only thing I've seen is the prefix dir optio...
{ "language": "en", "url": "https://stackoverflow.com/questions/369150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error in retrieving and binding to a datagridview from a mysql stored procedure with concat() Everytime i retrieve data from a mysql stored procedure with a concat function an error will occur after binding the datagridview to the datatable that holds the returned rows. A: select CAST(concat(column1, column2)AS CHA...
{ "language": "en", "url": "https://stackoverflow.com/questions/369151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connecting to WMI: 0x800706ba errors on some machines (but not all) When I try to connect to WMI from Powershell, ConfigMgr, or WMI explorer, I can talk to the majority of my computers, but some (maybe 30%?) return an 0x800706ba (RPC server is unavailable). If I turn the firewall off on the remote machine, the queri...
{ "language": "en", "url": "https://stackoverflow.com/questions/369177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: If I wanted to work using dates and time going millions of years into the past/future how would I do it? If I wanted to work using dates and time going millions of years into the past/future how would I do it in C/C++/C#? For example say I was working on an algorithm to see if a comet was going to hit the earth? Ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/369180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: BDE vs ADO in Delphi Please note the Edit below for a lot more information, and a possible solution We recently modified a large Delphi application to use ADO connections and queries instead of BDE connections and queries. Since that change, performance has become terrible. I've profiled the application and the bot...
{ "language": "en", "url": "https://stackoverflow.com/questions/369187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to add and relate a node within the parent nodes add form in Drupal I want to accomplish the following scenario in Drupal: You have 2 content-types. Lets say, an application-form for a lisence, and a content-type for persons. Then when you go to add a lisence in the "node/add" submission form in Drupal, i would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why can C# do this and C++/CLI cannot? .NET Framework 3.5 comes with all the LINQ goodies, and also includes predefined generic Func and Action delegates. They are generic for up to 4 arguments. I am writing a C++/CLI project that (unfortunately) uses VS 2005 and must only rely on the standard 2.0 assembly set (so n...
{ "language": "en", "url": "https://stackoverflow.com/questions/369191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to customize the tool tip of a custom object in the VS Debugger? Say you have a custom class call it Foo. When you then have an instance of this class, during debugging, if you mouse over this object, you'll either see the fully qualified namespace name of the type, or if you override ToString in this...
{ "language": "en", "url": "https://stackoverflow.com/questions/369192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: multiple dimension restrictions in a MDX where clause I have the following problem. If I query values with a keyfigure which is a function I can't specify multiple values of the same dimension restriction, but if it is not a function it works. So this works: SELECT {[Measures].[Netto]} on columns FROM TDC where ({No...
{ "language": "en", "url": "https://stackoverflow.com/questions/369198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I use Module::Install or Module::Build? I'm writing a programmer's text editor (yes another one) in Perl called Kephra, which is also a CPAN module of course and bundled with Module::Install. Recently I saw that Module::Build has gone into core, so if I switch I could reduce dependencies. Is there any other r...
{ "language": "en", "url": "https://stackoverflow.com/questions/369209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What function in the std library is there to binary search a vector and find an element? I've got a node struct struct Node{CString text, int id;}; in a sorted vector. I'm wondering if there's a function in algorithm that will do a binary search of the vector and find an element. A: Yes, there's a function calle...
{ "language": "en", "url": "https://stackoverflow.com/questions/369211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SQL database problems with addressbook table design I am writing a addressbook module for my software right now. I have the database set up so far that it supports a very flexible address-book configuration. I can create n-entries for every type I want. Type means here data like 'email', 'address', 'telephone' etc. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why should you not use Number as a constructor? I entered this statement in JSLint: var number = new Number(3); And received the following message: Do not use Number as a constructor. Why is that? The statement is creating a number object, not a primitive value, so I don't see why using new is a problem. EDIT: Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/369220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: receiving xml from another website's call to ServerXMLHTTP post in classic asp I am writing both sides of an ASP-webpage to ASP-webpage conversation in which the originating webpage pushes information to the receiving webpage which then processes it and sends back a response. The originating webpage must use the cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/369226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to serialize a ModelForm object in Django? I am using Django and the Google Web Toolkit (GWT) for my current project. I would like to pass a ModelForm instance to GWT via an Http response so that I can "chop" it up and render it as I please. My goal is to keep the form in sync with changes to my...
{ "language": "en", "url": "https://stackoverflow.com/questions/369230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I convert C# characters to their hexadecimal code representation What I need to do is convert a C# character to an escaped unicode string: So, 'A' - > "\x0041". Is there a better way to do this than: char ch = 'A'; string strOut = String.Format("\\x{0}", Convert.ToUInt16(ch).ToString("x4")); A: Cast and use...
{ "language": "en", "url": "https://stackoverflow.com/questions/369241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: vbscript : fso.opentextfile permission denied In my code segment, when I script the file name, it gives me a permission denied on the following line: Set objTextFile = objFSO.OpenTextFile(strDirectory & strFile, ForAppending, True) Here is the script 'output log info Function OutputToLog (strToAdd) Dim str...
{ "language": "en", "url": "https://stackoverflow.com/questions/369242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }