text
stringlengths
8
267k
meta
dict
Q: How do I increase the allowed decorated name length in VC9 (MSVC 2008)? I have a rather large and complex set of programs to port from VC8 to VC9. One of the modules has a number of layered typedefs, which cause the compiler to generate a C4503 warning (decorated name truncated). The generated LIB file will not prop...
{ "language": "en", "url": "https://stackoverflow.com/questions/178532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does my Delphi 7 Debugger randomly decide to stop accepting certain keyboard input Maybe this is an overarching question as I've seen similar bugs in Firefox and I'd like to know how to avoid coding them. For no apparent reason, the function keys, arrow keys (de-numlocked numpad as well), the 6 keys over the arr...
{ "language": "en", "url": "https://stackoverflow.com/questions/178537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you round a floating point number in Perl? How can I round a decimal number (floating point) to the nearest integer? e.g. 1.2 = 1 1.7 = 2 A: See perldoc/perlfaq: Remember that int() merely truncates toward 0. For rounding to a certain number of digits, sprintf() or printf() is usually the easiest rou...
{ "language": "en", "url": "https://stackoverflow.com/questions/178539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "193" }
Q: Is it possible to include/embed one Java EE application(war file) inside another? I have an application which is a portal application and I want to allow other users add their applications to it. In order to do this I need some way to be able to access their applications in mine. Is this possible? A: You cannot put...
{ "language": "en", "url": "https://stackoverflow.com/questions/178554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to convert VB.net interface with enum to C# I have the following VB.net interface that I need to port to C#. C# does not allow enumerations in interfaces. How can I port this without changing code that uses this interface? Public Interface MyInterface Enum MyEnum Yes = 0 No = 1 May...
{ "language": "en", "url": "https://stackoverflow.com/questions/178561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to determine the order of listeners in web.xml I got a bunch of servlet context listeners in my Java webapp, each of them gathering some information about the environment. Some of them depend on information which is gathered by another listener. But I can't determine the order in which the listeners are register...
{ "language": "en", "url": "https://stackoverflow.com/questions/178562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: What is the best format for a customer number, order number? A large international company deploys a new web and MOTO (Mail Order and Telephone Order) handling system. Among other things you are tasked to design format for both order and customer identification numbers. What would be the best format in your opinion?...
{ "language": "en", "url": "https://stackoverflow.com/questions/178572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: How to disable "Security Alert" window in Webbrowser control I'm using Webbrowser control to login to HTTPS site with "untrusted certificate". but I get popup such standart window "Security Alert" about untrusted certificate: I have to find this window by title and send it Alt+Y to press Yes: int iHandle = NativeWi...
{ "language": "en", "url": "https://stackoverflow.com/questions/178578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: bind Linux to Active Directory using kerberos We are trying to bind a Linux machine (debian 4.0) to W2k3 AD. We have configured kerberos properly so that we can get TGTs. And users authenticate properly. However, PAM seems to be the sticky wicket. For example when we try to SSH to the linux machine as one of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/178580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Microsoft ReportViewer: Session Expired Errors The project is ASP.NET 2.0, I have never been able to reproduce this myself, but I get emails informing me it happens to clients many times a week, often a few times in a row. Here is the full error: Exception Details: Microsoft.Reporting.WebForms.AspNetSessionExpired...
{ "language": "en", "url": "https://stackoverflow.com/questions/178600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Double if condition in Spry Region <div spry:region="ds1" spry:repeatchildren="ds1"> <b spry:if=" '{title}'!='' "> <!-- this is the first if --> <a href="#" spry:if=" '{author}'!='' ">{author} <!-- this is the second if --> </a> </b> </div> I wonder if there is any method as simple as if(x...
{ "language": "en", "url": "https://stackoverflow.com/questions/178601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windsor Container: How to specify a public property should not be filled by the container? When Instantiating a class, Windsor by default treats all public properties of the class as optional dependencies and tries to satisfy them. In my case, this creates a rather complicated circular dependency which causes my ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/178611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: InvalidProgramException in Team Foundation Server Sample Hi I get an System.InvalidProgramException while trying to run the Example Project called "C# Example.WorkItemBrowser". The Exception also apears when I try to execute these lines: TeamFoundationServer tfserver = new TeamFoundationServer("http://localhost:8085...
{ "language": "en", "url": "https://stackoverflow.com/questions/178619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET xsd dataset where do I put it I am trying to convert an ASP.NET website into a web application project. The conversion has gone ok I think apart from previously I had 2 xsd files in the App_Code folder. I believe this folder is not used in web applications projects, so where would I put xsd files now. A: I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Minimum rights required to run a windows service as a domain account Does anyone know what would be the minimum rights I would need to grant to a domain user account in order to run a windows service as that user? For simplicity, assume that the service does nothing over and above starting, stopping, and writing to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Way to discover which internet connection type I'm using on the iPhone I need to know what internet connection is available when my application is running. I checked out the Reachability example from Apple, but this differs only between wifi and carrier network. What I need to know is what carrier network is selecte...
{ "language": "en", "url": "https://stackoverflow.com/questions/178636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How does WCF deserialization instantiate objects without calling a constructor? There is some magic going on with WCF deserialization. How does it instantiate an instance of the data contract type without calling its constructor? For example, consider this data contract: [DataContract] public sealed class CreateMe ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: recommended c# winform controls packs Am looking for commercial/free recommended c# winform controls packs A: DevExpress I've tried ComponentOne, DevExpress and Telerik A: See the following threads: * *.NET Usercontrols telerik devexpress infragistics ComponentOne whos best A: I've used the controls from both...
{ "language": "en", "url": "https://stackoverflow.com/questions/178661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are server-assisted MVC frameworks peaking? I've been developing web apps for over a decade now, all the way from CGI to ASP.Net and Struts+Spring+Hibernate. The prevalent architectural style seems to be server-assisted MVC, e.g. Struts, Ruby on Rails, etc. Recent developments lead me to ask if these are on the decl...
{ "language": "en", "url": "https://stackoverflow.com/questions/178663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does JEditorPane have Charset problems when showing HTML? I have the following code: import javax.swing.JEditorPane; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.ScrollPaneConstants; public class ScratchPad { public static void main(String args[]) throws Exception { St...
{ "language": "en", "url": "https://stackoverflow.com/questions/178667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Flash in a browser to full screen How can i make my flash applications in a browser in full screen mode? I know that the stage can be put in that mode, but when i run the application in any browser this doesn't work. So, this can be done, but how? A: In the HTML including the Flash SWF, add the following parameter ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: asp.net : is it possible to Split large ASP.NET pages into pieces? Is it possible to split large ASP.NET-pages into pieces? JSP has the jsp:include directive. Is there any equivivalent in ASP.NET I'm not interested in reusing the pieces. I just want to organize the HTML/ASP code. Isn't User Controls and Master Pages...
{ "language": "en", "url": "https://stackoverflow.com/questions/178675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unmanaged vc++ static libraries and C# GUI app Basically I have a bunch of unmanaged VC++ static libraries. And the VC++ GUI application which uses those and it is based on MFC. The goal is to replace the GUI app with the one done in C# instead but using all the same static libraries. The question is if this even p...
{ "language": "en", "url": "https://stackoverflow.com/questions/178681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why am I getting this Javascript runtime error? I've got the following JavaScript on my web page... 64 var description = new Array(); 65 description[0] = "..." 66 description[1] = "..." ... 78 function init() { 79 document.getElementById('somedivid').innerHTML = description[0]; 80 } 81 82 wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/178696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Generic, annotation-driven event notification frameworks While simple, interface-driven event notification frameworks in Java have been around since pre-Cambrian times (e.g. java.beans.PropertyChangeSupport), it is becoming increasingly popular for frameworks to use annotation-driven event notification instead. Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/178700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Are unix timestamps the best way to store timestamps? I always use unix timestamps for everything, but am wondering if there is a better way. What do you use to store timestamps and why? A: What era do you need to store and to what resolution? If you need microseconds, or dates in the stone age time_t might not be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: How to find out if a column exists in a DataRow? I am reading an XML file into a DataSet and need to get the data out of the DataSet. Since it is a user-editable config file the fields may or may not be there. To handle missing fields well I'd like to make sure each column in the DataRow exists and is not DBNull. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/178712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Lock Active Directory accounts programmatically I have to lock user accounts in Active Directory programmatically in C#. Unfortunately it doesn't work via the userAccountControl attribute. Every time I set userAccountControl to 528 (=normal account w/ lockout flag), Active Directory won't accept the value and reset...
{ "language": "en", "url": "https://stackoverflow.com/questions/178730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: OnClick in Excel VBA Is there a way to catch a click on a cell in VBA with Excel? I am not referring to the Worksheet_SelectionChange event, as that will not trigger multiple times if the cell is clicked multiple times. BeforeDoubleClick does not solve my problem either, as I do not want to require the user to doubl...
{ "language": "en", "url": "https://stackoverflow.com/questions/178738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Compiler could not choose an overload between interface and exception Trying to use an excpetion class which could provide location reference for XML parsing, found an interesting behavior - compiler could not choose between overload which consumes an interface and one which needs System.Exception when I trying to p...
{ "language": "en", "url": "https://stackoverflow.com/questions/178740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting the whole output of a string that contains chr(0) Here is the sample: Dim TestString As String = "Hello," & Chr(0) & "World" MsgBox(TestString, , "TestString.Length=" & TestString.Length.ToString) Result - Messagebox shows "Hello," with title says TestString.Length=12 I guess the chr(0) is treated ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Object-to-Triple mapping using AllegroGraph RDF store? My project is building a Java web application on top of the AllegroGraph RDF store. I would like to find a good solution to map between the triples that come out of the store and our domain objects. I have looked into Topaz, an Object/Triple mapping API being ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I debug a memory dump of a spiking ASP.NET process? Sorry, I couldn't figure out a good way to phrase my real question. I run a high-traffic ASP.NET site on a 64-bit machine. I have IIS running in 32-bit mode, however, due to some legacy components of the app. I am running this particular web app inside an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is tracing and how should it be done? What is tracing and how should it be done? I have a common utilities library I am including in my projects and I want to be able to get some output from it. I have been using log4net but would rather not have my common utilities library dependent upon log4net. Does that ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/178772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Do I need to set up Kerberos to use Replication in SQL Server 2005? I want to setup replication on three SQL servers and one is not configured for Kerberos. (The SPNs are not setup yet) Do I need Kerberos and Pass-through delegation working to use replication in SQL Server 2005? A: No. But you will need the replica...
{ "language": "en", "url": "https://stackoverflow.com/questions/178797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to graphically represent page flow, as applicable to an action oriented web application? What is the best way to graphically represent page flow, as applicable to an action oriented web application? What model do you use to represent page flows (page flow diagrams) encompassing pages (views), us...
{ "language": "en", "url": "https://stackoverflow.com/questions/178806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Why doesn't this JavaScript display a confirm box? I am trying to fix some bugs in a product I inherited, and I have this snippet of javascript that is supposed to hilight a couple of boxes and pop up a confirm box. What currently happens is I see the boxes change color and there is a 5 or so second delay, then it'...
{ "language": "en", "url": "https://stackoverflow.com/questions/178809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using explicit interfaces to ensure programming against an interface I have seen arguments for using explicit interfaces as a method of locking a classes usage to that interface. The argument seems to be that by forcing others to program to the interface you can ensure better decoupling of the classes and allow eas...
{ "language": "en", "url": "https://stackoverflow.com/questions/178821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the best way to create a Factory Method when using WCF? I have built a complex query mechanism which I want to provide a factory for in order to assist people with common query patterns. My methods are all revealed via WCF as a SOAP web service. What is the best way to ensure that my factory is easy to use a...
{ "language": "en", "url": "https://stackoverflow.com/questions/178822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Only creating a COM object if the DLL that implements it is signed? We've got some code that uses LoadLibrary and GetProcAddress to implement a plugin architecture for one of our products. We ensure that the DLL about to be loaded is signed with our code-signing key. We're changing the plugin architecture to use COM...
{ "language": "en", "url": "https://stackoverflow.com/questions/178824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Math Equation Web Control? Is there any easy web application or user control that allows math equations to be easily created and stored as a text string? Update: An ASP.NET control would be ideal. A: This may be a starting point: http://thornahawk.unitedti.org/equationeditor/equationeditor.php A: There is no short...
{ "language": "en", "url": "https://stackoverflow.com/questions/178827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there technical reasons to prefer using logback instead of log4j? Should new projects use logback instead of log4j as a logging framework ? Or with other words :'Is logback better than log4j (leaving the SLF4J-'feature' of logback beside)?' A: You should use SLF4J+Logback for logging. It provides neat features ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: How can I find repeated letters with a Perl regex? I am looking for a regex that will find repeating letters. So any letter twice or more, for example: booooooot or abbott I won't know the letter I am looking for ahead of time. This is a question I was asked in interviews and then asked in interviews. Not so many ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Dereferencing Variable Size Arrays in Structs Structs seem like a useful way to parse a binary blob of data (ie a file or network packet). This is fine and dandy until you have variable size arrays in the blob. For instance: struct nodeheader{ int flags; int data_size; char data[]; }; This...
{ "language": "en", "url": "https://stackoverflow.com/questions/178838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculate weeknumber from a date value Is there some simple way to calculate a Weeknumber value from a date value stored in XML? It needs to be pure XSLT solution. I cannot use any code :( A: If you can use EXSLT, there are several date functions available. All of them are implemented in Saxon, but if you're using...
{ "language": "en", "url": "https://stackoverflow.com/questions/178845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Visual Studio 2005 Intellisense stopped working after ReSharper installation I installed the ReSharper evaluation version and uninstalled it. Afterwards Visual Studio's Intellisense stopped working. I have restarted computer but I still have this problem. Can anyone please help me here? I am using Visual Studio 200...
{ "language": "en", "url": "https://stackoverflow.com/questions/178846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: oledb/ado.net: Get the command's text, with all parameters replaced Is it possible to get the text of an OleDbCommand with all parameters replaced with their values? E.g. in the code below I'm looking for a way to get the query text SELECT * FROM my_table WHERE c1 = 'hello' and c2 = 'world' after I finished assign...
{ "language": "en", "url": "https://stackoverflow.com/questions/178857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I add an MSAccess connection to CodeIgniter or CakePHP? I'm trying to use a Microsoft Access database for a demo project that I'm thinking of doing in either CodeIgniter or CakePHP. Ignoring the possible folly of using Microsoft Access, I haven't been able to figure out precisely how the connection string cor...
{ "language": "en", "url": "https://stackoverflow.com/questions/178860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Change Theme / CSS based on user I am building a product that we are eventually going to white-label. Right now I am trying to figure out the best way to facilitate these requirements programmatically so the user can update the basic design of the site (ie header color, etc) via their profile/settings form. Require...
{ "language": "en", "url": "https://stackoverflow.com/questions/178863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What happens if I don't use the --Reintegrate option in Subversion 1.5? I thought I had figured out everything I needed to know about Subversion 1.5 and was happily merging between my feature branches and the trunk. Then I realized I've not been doing what I thought I had. I have not been using the --reintegrate par...
{ "language": "en", "url": "https://stackoverflow.com/questions/178867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I create a Database Deadlock test in Nunit? In this asp.net I'm cleaning up it's possible for deadlocks to occur. I want to make sure that the code deals with them properly, so I'm trying to write NUnit tests which trigger a deadlock..... The DAO is split by entity. Each entity has a set of tests which are sur...
{ "language": "en", "url": "https://stackoverflow.com/questions/178876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Changing form opactity without changing opacity of contained controls Is it is possible, with Windows Forms in .NET, to change the opacity of a form without it automatically changing the opacity of the controls within the form? I have a form that is running maximized, that contains a flowlayoutpanel in the centre of...
{ "language": "en", "url": "https://stackoverflow.com/questions/178887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Console window displays at WinForm startup (C#) This is a minor bug (one I'm willing to live with in the interest of go-live, frankly), but I'm wondering if anyone else has ideas to fix it. I have a C# WinForms application. When the app is launched via the executable (not via the debugger), the first thing the user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C# WebBrowser Control System.AccessViolationException I have a program that uses the built in webbrowser control. At some point during the usage of this, I'm not sure at what point, but it appears to be random, I get the following error: System.AccessViolationException FullText = System.AccessViolationException: A...
{ "language": "en", "url": "https://stackoverflow.com/questions/178898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Serializing Lists of Classes to XML I have a collection of classes that I want to serialize out to an XML file. It looks something like this: public class Foo { public List<Bar> BarList { get; set; } } Where a bar is just a wrapper for a collection of properties, like this: public class Bar { public string Prop...
{ "language": "en", "url": "https://stackoverflow.com/questions/178899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: what is this thing in JavaScript? var something = { wtf: null, omg: null }; My JavaScript knowledge is still horribly patchy since I last programmed with it, but I think I've relearned most of it now. Except for this. I don't recall ever seeing this before. What is it? And where can I learn more about it? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: From XML to XSD If i have a complex XML file, is there a cheap or free way to get a rough approximation of an XSD from it? A: A good xml to xsd converter is Trang. It is a command line tool that is very small and does the trick. It can be found on kam's blog - http://www.dotkam.com/2008/05/28/generate-xsd-from-xml/...
{ "language": "en", "url": "https://stackoverflow.com/questions/178907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I draw arrows on my left-docked MenuStrip? I have a C# form into which I've placed a left-docked MenuStrip. This MenuStrip contains some menu items which contain submenus, and some menu items which are effectively buttons (clicking on them results in an action taking place; n.b., I realize this is not a goo...
{ "language": "en", "url": "https://stackoverflow.com/questions/178909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Partition a list of sets by shared elements Here's the jist of the problem: Given a list of sets, such as: [ (1,2,3), (5,2,6), (7,8,9), (6,12,13), (21,8,34), (19,20) ] Return a list of groups of the sets, such that sets that have a shared element are in the same group. [ [ (1,2,3), (5,2,6), (6,12,13) ], [ (7,8,9), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to save picture to iPhone photo library? What do I need to do to save an image my program has generated (possibly from the camera, possibly not) to the system photo library on the iPhone? A: Deprecated in iOS 9.0. There`s much more fast then UIImageWriteToSavedPhotosAlbum way to do it using iOS 4.0+ AssetsLibra...
{ "language": "en", "url": "https://stackoverflow.com/questions/178915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "199" }
Q: How do I create a context menu for the tab header of a TabControlAdv I'd like to have a context menu for my tab headers in a Syncfusion TabControlAdv control, and have a separate menu for the controls inside each tab. The likely menu entries will be "Add Tab", "Delete Tab" and "Clone Tab", and neither of them makes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE 7 redirecting after jQuery ajax calls I have the following code in my file to load a div with HTML from an AJAX call: $('#searchButton').click( function() { $('#inquiry').load('/search.php?pid=' + $('#searchValue').val()); }); This works fine in Firefox and Google Chrome, but whenever I do the search in IE I...
{ "language": "en", "url": "https://stackoverflow.com/questions/178921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Iterators.. why use them? In the STL library some containers have iterators and it is commonly held that they are a superior way of iterating through these containers rather than simple for loops e.g. for ( int i=0; i < vecVector.size(); i++ ) { .. } Can anyone tell me why and in what cases I should use iterators...
{ "language": "en", "url": "https://stackoverflow.com/questions/178934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How can I unzip the newest file in a directory in a BAT file? I am working on a build system. The build system posts the results as a zip file in a directory. Unfortunately I have no easy way to know the name of the zip file, because it is timestamped. For the next operation, I must decompress this zip file to so...
{ "language": "en", "url": "https://stackoverflow.com/questions/178936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Filter "list" of divs with Javascript I have a repeater that outputs divs like the following for every item returned from some method. <div class="editor-area"> <div class="title">the title</div> <div>the description</div> <div class="bottom-bar"> <a href="link">Modify</a> <a href="link2"...
{ "language": "en", "url": "https://stackoverflow.com/questions/178948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Adding floats with gmp gives "correct" results, sort of In the code below I use mpf_add to add the string representation of two floating values. What I don't understand at this point is why 2.2 + 3.2 = 5.39999999999999999999999999999999999999. I would have thought that gmp was smart enough to give 5.4. What am I n...
{ "language": "en", "url": "https://stackoverflow.com/questions/178952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: flex (lexical analyzer) regular expressions - Reusing definitions I have this working definition: IDENTIFIER [a-zA-Z][a-zA-Z0-9]* I don't want to keep repeating the [a-zA-Z] and [0-9], so I made two new definitions DIGIT [0-9] VALID [a-zA-Z] How can I rewrite the IDENTIFIER rule to use the DIGIT and VALID ...
{ "language": "en", "url": "https://stackoverflow.com/questions/178963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: After submitting a POST form open a new window showing the result JavaScript post request like a form submit shows you how to submit a form that you create via POST in JavaScript. Below is my modified code. var form = document.createElement("form"); form.setAttribute("method", "post"); form.setAttribute("action", "...
{ "language": "en", "url": "https://stackoverflow.com/questions/178964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "153" }
Q: How fast is a log4net logging method (Debug, Info, etc)? I'm a big fan of log4net, but recently, some (in my department) have questioned its inclusion in our projects because of the seemingly heaviness of each logging method. I would argue that there are better techniques than others, but that's another question. I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/178973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Sanitizing Database Return Data I am wondering what everyone thinks the best method of handling results from your own database is. Other teams may be involved and there is always the chance the procedure/data could be altered and erroneous results would occur. My question is this. Is it better to let and exception o...
{ "language": "en", "url": "https://stackoverflow.com/questions/178976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using the same asp panel in multiple tabs In the Ajax toolkit you can use a Tab Container and add TabPanels to this. I have some controls that I want to be able to use across all tabs and the tailor the tabs with other controls as neccessary. My question is how do I reuse a panel on multiple tabs? Essentially I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/178977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are some good techniques for logging your applications? Logging can get complicated, quickly. Considering that you have some code, how do you add logging to it? What library(ies) do you use? What are some good code techniques for getting the most out of your logging statements while having minimal impact on yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/178993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What would you do when you are about to add some new features to a large (and dirty) codebase which has virtually *NO* unit-testing code? Martin Fowler says that we should do refactoring before adding new features (given that the original program is not well-structured). So we all want to refactor this dirty codebas...
{ "language": "en", "url": "https://stackoverflow.com/questions/178997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to manage shared libraries? Every time I make a project I develop several generic routines/modules/libraries that I expect I'll be using with other projects. Due to the speed of development I don't spend a lot of time making these modules perfect - just good enough for this project, and well enough documented an...
{ "language": "en", "url": "https://stackoverflow.com/questions/179004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to change envelope from address using PHP mail? I am using PHP with Apache on Linux, with Sendmail. I use the PHP mail function. The email is sent, but the envelope has the Apache_user@localhostname in MAIL FROM (example nobody@conniptin.internal) and some remote mail servers reject this because the domain doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/179014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Adding a JAR to an Eclipse Java library How do you add a JAR file to an already existing Java library in Eclipse? Note that this is not a user library. That is, if you look at the Java Build Path for a Java project and click on the Libraries tab, you will see the list of libraries used by the project. If you expan...
{ "language": "en", "url": "https://stackoverflow.com/questions/179024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: How do I perform an IMAP search in Python (using Gmail and imaplib)? In Gmail, I have a bunch of labeled messages. I'd like to use an IMAP client to get those messages, but I'm not sure what the search incantation is. c = imaplib.IMAP4_SSL('imap.gmail.com') c.list() ('OK', [..., '(\\HasNoChildren) "/" "GM"', ...]) c...
{ "language": "en", "url": "https://stackoverflow.com/questions/179026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Creating a compressed (or zipped) folder Is there a way to programmatically create a compressed folder in Windows? I can't see a way to do this using the FileSystemObject (although there is the 'Compressed' attribute). I've seen zip dll's but I'd prefer to avoid having to re-distribute a dll if possible. Windows XP ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: UTM and MGRS to Latitude/Longitude conversion source-code? What open-source / public domain software is there "out there" for conversion between Latitude/Longitude, UTM (Universal Transform Mercator) and MGRS (Military Grid Reference System)? We're using a VB6 library at the moment and would prefer to use something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there any good or reliable way to figure out where a JavaScript error is using only an Internet Explorer error message? I'm writing an app which for various reasons involves Internet Explorer (IE7, for the record), ActiveX controls, and a heroic amount of JavaScript, which is spread across multiple .js includes. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to store key-value pairs in application settings at runtime? How can dynamic Key-value pairs of objects be stored in app.config in using the application settings api, at runtime? I've been trying to get my head around, and I can't find any meaningful example or documentation. I seems that .Net dictionary classes...
{ "language": "en", "url": "https://stackoverflow.com/questions/179063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Has using the HttpRuntime.Cache changed in ASP.NET MVC? So, I was looking over my standard cache utility when preparing to unit test a controller and thought, hey, is accessing the HttpRuntime.Cache directly considered harmful in MVC? I wrap the cache in a proxy class that implements a cache-like interface (tho much...
{ "language": "en", "url": "https://stackoverflow.com/questions/179072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple Indexes vs Multi-Column Indexes What is the difference between creating one index across multiple columns versus creating multiple indexes, one per column? Are there reasons why one should be used over the other? For example: Create NonClustered Index IX_IndexName On TableName (Column1 Asc, Column2 Asc, Col...
{ "language": "en", "url": "https://stackoverflow.com/questions/179085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "814" }
Q: Where does the Toolbar Metadata live in Visual Studio on the Filesystem My IDE crashes any time I try add a new component to the toolbar. I've already tried Resetting the toolbar. Where does the the information about the toolbar exist on the filesystem to see what may be the offending control? A: Found the locati...
{ "language": "en", "url": "https://stackoverflow.com/questions/179094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Buildprocess for ActiveX / COM / VB6 enterprise projects We have developed a software system using ActiveX/COM (VB6) technology from microsoft. In the last year, i get more and more interested in automated build processes and SCM at a whole. I intensively searched big parts of the web for information about best prac...
{ "language": "en", "url": "https://stackoverflow.com/questions/179099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Getting a System.Type from type's partial name I want to get a System.Type given only the type name in a string. For instance, if I have an object: MyClass abc = new MyClass(); I can then say: System.Type type = abc.GetType(); But what if all I have is: string className = "MyClass"; A: It depends on which assemb...
{ "language": "en", "url": "https://stackoverflow.com/questions/179102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Why shouldn't you use references to smart pointers? I recall reading somewhere that using references to smart pointers can cause memory corruption. Is this simply because of using the reference of the smart pointer after its been destroyed? Or does the reference counting get messed up? Thanks for clarifying A: Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/179105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Need a way to authenticate to Exchange Web Services I'm using Exchange Web Services to Find, Create, Update, and Delete appointments from the calendars for one or more people. The application would be used by a manager to view employees' vacation time, as well as assign appointments based on availability. In order f...
{ "language": "en", "url": "https://stackoverflow.com/questions/179112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Graceful handling of dependent scheduled tasks? Say I've got two scheduled processes: A and B. Given that B should not run until A has completed, how might I gracefully enforce this dependency? Approaches that have been considered: * *Have A schedule B upon completion. This has the downside of B never being sched...
{ "language": "en", "url": "https://stackoverflow.com/questions/179113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prevent Windows XP from stealing my input Ctrl-Space which is meant for Emacs? I am learning and using Emacs. What I found annoying is that Ctrl-Space input will be stolen by Windows XP to switch the language bar instead of setting the mark in Emacs. The "language bar" is the native input languages selectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/179119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to modify existing, unpushed commit messages? I wrote the wrong thing in a commit message. How can I change the message? The commit has not been pushed yet. A: On this question there are a lot of answers, but none of them explains in super detail how to change older commit messages using Vim. I was stuck trying...
{ "language": "en", "url": "https://stackoverflow.com/questions/179123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7651" }
Q: Reading compound documents in c# I'm starting a project which requires reading outlook msg files in c#. I have the specs for compound documents but am having trouble reading them in c#. Any pointers would be greatly appreciated. Thanks. A: Here is my shot. This is an initial translation of this article. namespace...
{ "language": "en", "url": "https://stackoverflow.com/questions/179128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I find out when the Spring.NET root context has loaded? I have a web service running, and it uses Spring.NET for it's IoCness. One of the classes needs to do some stuff when it loads (I'm using AfterPropertiesSet) and "some stuff" involves a call to ContextRegistry.GetContext(). The problem is this code in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I make IEditableObject.EndEdit atomic? If I have an Address class that implements IEditableObject, I might have EndEdit implementation like this: public void EndEdit() { // BeginEdit would have set _editInProgress and save to *Editing fields if (_editInProgress) { _line1 = _line1Editing; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is a DVCS useful for one developer? Or would a conventional client-server VCS be more appropriate? I'm currently using TortoiseSVN, but I'm interested in a DVCS, but I'm not sure if it's even a good idea to try to use something like that solo. A: Yes. A DVCS is, in my opinion, even better suited for solo developme...
{ "language": "en", "url": "https://stackoverflow.com/questions/179161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Hashtable implementation for Delphi 5 Do you know a good and free Hashtable imlementation for Delphi 5 ? I need to organize a huge amount of data in a hastable and I am bit worried about memory leak issues that I found in most available implementations on the web. Tks A: EZDSL is a library of data structures, inclu...
{ "language": "en", "url": "https://stackoverflow.com/questions/179162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Append XML string block to existing XmlDocument I have an XmlDocument that already exists and is read from a file. I would like to add a chunk of Xml to a node in the document. Is there a good way to create and add all the nodes without cluttering my code with many .CreateNote and .AppendChild calls? I would like s...
{ "language": "en", "url": "https://stackoverflow.com/questions/179173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How to create an SQL table and and populate it with Excel spreadsheet data? Is there an easy way to create a table in SQL Server (2005) from an Excel spreadsheet. I'm thinking maybe some tool? Thanks in advance. A: SQL Server 2008R2+ * *Right click the database *Tasks *Import Data *Excel as Source *choose a...
{ "language": "en", "url": "https://stackoverflow.com/questions/179176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Problem with conflict between mysql and math.h The problem is that the compiler says that there is a redefinition of a function between a library that belongs to MySQL and math.h from the std library. I have been over this for two days and I still can't figure it out. Has this ever happened to anyone? This is the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/179186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ #include semantics This is a multiple question for the same pre-processing instruction. 1 - <> or "" ? Apart from the info found in the MSDN: #include Directive (C-C++) 1.a: What are the differences between the two notations? 1.b: Do all compilers implement them the same way? 1.c: When would you use the <>, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }