text
stringlengths
8
267k
meta
dict
Q: Which .Net collection for adding multiple objects at once and getting notified? Was considering the System.Collections.ObjectModel ObservableCollection<T> class. This one is strange because * *it has an Add Method which takes one item only. No AddRange or equivalent. *the Notification event arguments has a Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/57020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: jQuery and Java applets I'm working on a project where we're using a Java applet for part of the UI (a map, specifically), but building the rest of the UI around the applet in HTML/JavaScript, communicating with the applet through LiveConnect/NPAPI. A little bizarre, I know, but let's presume that setup is not under...
{ "language": "en", "url": "https://stackoverflow.com/questions/57034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What, if any, checksum is used for TNT.com tracking numbers? I am writing some software to identify tracking numbers (in the same way that Google identifies FedEx or UPS numbers when you search for them). Most couriers use a system, such as a "weighted average mod system" which can be used to identify if a number is...
{ "language": "en", "url": "https://stackoverflow.com/questions/57053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to solve call ambiguity between Generic.IList.this[] and IList.this[]? I've got a collection that implements an interface that extends both IList<T> and List. public Interface IMySpecialCollection : IList<MyObject>, IList { ... } That means I have two versions of the indexer. I wish the generic implementatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/57054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Where can I find sample databases with common formatted data that I can use in multiple database engines? Does anybody know of any sample databases I could download, preferably in CSV or some similar easy to import format so that I could get more practice in working with different types of data sets? I know that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/57068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: How do I assign a keyboard shortcut to a VBA macro in Outlook 2007? How can I assign a keyboard shortcut to a VBA macro in Outlook 2007? I know how to create a tool for the macro and put it in a menu with an underscore shortcut. This solution requires me to use a shortcut of Alt + {menu key} + {tool key}. What if I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to position a DIV to fill all available space between a header DIV and a footer DIV? Let's say I have a parent DIV. Inside, there are three child DIVs: header, content and footer. Header is attached to the top of the parent and fills it horizontally. Footer is attached to the bottom of the parent and fills it ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/57091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I programmatically run the ASP.Net Development Server using C#? I have ASP.NET web pages for which I want to build automated tests (using WatiN & MBUnit). How do I start the ASP.Net Development Server from my code? I do not want to use IIS. A: This is what I used that worked: using System; using System.Diag...
{ "language": "en", "url": "https://stackoverflow.com/questions/57094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Embedded java databases I would like to get opinions or suggestions regarding embedded databases in Java. In particular I was looking at H2, HSQLDB and Derby. Have you use any of these in a production project? Do you have comment or recommendations to select one over the others? Thanks Edit: I am currently evaluatin...
{ "language": "en", "url": "https://stackoverflow.com/questions/57102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Rails Binary Stream support I'm going to be starting a project soon that requires support for large-ish binary files. I'd like to use Ruby on Rails for the webapp, but I'm concerned with the BLOB support. In my experience with other languages, frameworks, and databases, BLOBs are often overlooked and thus have poor,...
{ "language": "en", "url": "https://stackoverflow.com/questions/57104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to detect true Windows version? I know I can call the GetVersionEx Win32 API function to retrieve Windows version. In most cases returned value reflects the version of my Windows, but sometimes that is not so. If a user runs my application under the compatibility layer, then GetVersionEx won't be reporting the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/57124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: 403 Forbidden error using Subversion I recently upgraded to Subversion 1.5, and now I cannot commit my code to the repository. I get an error message: "403 Forbidden in response to MKACTIVITY". I know the upgrade worked because my fellow developers are not getting this issue. What's going on? A: We run into the per...
{ "language": "en", "url": "https://stackoverflow.com/questions/57137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Is there any disadvantage to returning this instead of void? Say instead of returning void a method you returned a reference to the class even if it didn't make any particular semantic sense. It seems to me like it would give you more options on how the methods are called, allowing you to use it in a fluent-interfa...
{ "language": "en", "url": "https://stackoverflow.com/questions/57140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Using Small (1-10 Items) Instance-Level Collections in Java While creating classes in Java I often find myself creating instance-level collections that I know ahead of time will be very small - less than 10 items in the collection. But I don't know the number of items ahead of time so I typically opt for a dynamic c...
{ "language": "en", "url": "https://stackoverflow.com/questions/57145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What's the best way to handle one-to-one relationships in SQL? Let's say I've got Alpha things that may or may not be or be related to Bravo or Charlie things. These are one-to-one relationships: No Alpha will relate to more than one Bravo. And no Bravo will relate to more than one Alpha. I've got a few goals: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Problems with migrating Cardspace cards between computers Here's the scenario. I'm using myopenid for, among other things, StackOverflow. When I initially set up my openid account with myopenid, I decided to try out Cardspace because they had support. I later wanted to access Stackoverflow from another machine so I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to copy a row from one SQL Server table to another I have two identical tables and need to copy rows from table to another. What is the best way to do that? (I need to programmatically copy just a few rows, I don't need to use the bulk copy utility). A: Alternative syntax: INSERT tbl (Col1, Col2, ..., ColN) S...
{ "language": "en", "url": "https://stackoverflow.com/questions/57168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: Oracle from .Net with a 64 bit client Has anyone had any luck of using Oracle from .Net on a 64 bit machine, and using the UDT capabilities of Oracle? I've been able to use an x64 ODP.Net client, but cannot find one with any support for UDTs. Thanks Nick [Edit] I've posted an answer below. The latest (as of December...
{ "language": "en", "url": "https://stackoverflow.com/questions/57179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Get CVS history for a particular user How do I get the history of commits that have been made to the repository for a particular user? I am able to access CVS either through the command line or TortioseCVS, so a solution using either method is sufficient. A: As a coder, I am mostly interested in commit changes, (...
{ "language": "en", "url": "https://stackoverflow.com/questions/57183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: FTP Timeout on NLST when directory is empty EDIT: Learned that Webmethods actually uses NLST, not LIST, if that matters Our business uses the WebMethods integration server to handle most of our outbound communications, and its FTP functionality leaves something to be desired. We are having a problem that may be spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/57194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I put a link to a webpage in a JScript Alert dialog box? I would like to put a link to a webpage in an alert dialog box so that I can give a more detailed description of how to fix the error that makes the dialog box get created. How can I make the dialog box show something like this: There was an error. G...
{ "language": "en", "url": "https://stackoverflow.com/questions/57202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ToolStrips in TabPages frequently disappear from Windows Forms designer I have a Windows Form app with a TabControl. One of the TabPages in the TabControl contains a ToolStrip. Frequently, the Windows Form designer will spontaneously set the Visible property of the Toolstrip to False. To get the toolstrip to reappea...
{ "language": "en", "url": "https://stackoverflow.com/questions/57208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What .NET Framework version should I ship with; 2, 3, 3.5? My application uses 2.0. At some point in the future I may want to start using newer features added in later framework versions. Should I wait until then? Or are there advantages to updating to the latest .NET 3.5 now? I suppose by the time I am ready for...
{ "language": "en", "url": "https://stackoverflow.com/questions/57234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Find Missing Javascript Includes in Website Say I have several JavaScript includes in a page: <script type="text/javascript" src="/js/script0.js"></script> <script type="text/javascript" src="/js/script1.js"></script> <script type="text/javascript" src="/js/script2.js"></script> <script type="text/javascript" src="/...
{ "language": "en", "url": "https://stackoverflow.com/questions/57238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Finding missing emails in SQL Server I am trying to do something I've done a million times and it's not working, can anyone tell me why? I have a table for people who sent in resumes, and it has their email address in it... I want to find out if any of these people have NOT signed up on the web site. The aspnet_Memb...
{ "language": "en", "url": "https://stackoverflow.com/questions/57243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting EPG info from DVB-T I'm interested in grabbing the EPG data from DVB-T streams. Does anyone know of any C libraries or an alternative means of getting the data? A: tv_grab_dvb can do this. See the subversion repository for sources. tv_grab_dvb is made to work with the stream grabbed from the DVB-T card usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/57249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to keep ReadDirectoryChangesW from missing file changes There are many posts on the internet about the ReadDirectoryChangesW API function missing files when there is a lot of file activity. Most blame the speed at which the ReadDirectoryChangesW function loop is called. This is an incorrect assumption. The be...
{ "language": "en", "url": "https://stackoverflow.com/questions/57254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to connect to PostgreSQL from .NET using TLS with both client and server authentication? I want to connect a C# .NET application to a PostgreSQL database, using TLS with client and server authentication: in other words, if the certificate from the client can not be verified against the certificate of the server,...
{ "language": "en", "url": "https://stackoverflow.com/questions/57261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SMTP Mail Timeout Issue When I'm creating a user for my web application, an SMTP email (using ASP.NET's SmtpClient) is sent to the user with the automatically generated password. However, sometimes what I notice is that it times out and the new user simply won't receive the email with the password. Alright, so I'll ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.Net RSS feed How do I create an rss feed in ASP.Net? Is there anything built in to support it? If not, what third-party tools are available? I'm thinking webforms, not MVC, though I suppose since this isn't a traditional page the difference may be minimal. A: For built-in, there's nothing stopping you from us...
{ "language": "en", "url": "https://stackoverflow.com/questions/57287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is there a simpler way to deploy to WebSphere? I have seen this question about deploying to WebSphere using the WAS ant tasks. Is there a simpler way to do this? In the past I have deployed to Tomcat by dropping a war file into a directory. I was hoping there would be a similar mechanism for WebSphere that doesn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/57291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Validation framework for business app built on Spring 2.5 What could the best strategy for writing validation layer for mid-enterprise level business application built on Spring 2.5 I know that Spring provides facility where we can implement Validator interface and write validation logic in validate method. But this...
{ "language": "en", "url": "https://stackoverflow.com/questions/57314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an easy way of using the RegularExpressionValidator control while ignoring white space? I can use a custom validator control with Regex and IgnorePatternWhitespace, but it would be good to just have an option in the RegularExpressionValidator control. A: Surround your regex with (?x: ) so "a b c" beco...
{ "language": "en", "url": "https://stackoverflow.com/questions/57322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I stop losing all my IDE window position when pressing the start debugging button? I use Visual Studio 2008. I haven't seen this behavior before and, as far as I know, I didn't change anything in the options. When I press Start debugging all the possibly windows (watch 1 - 4), data sources, properties, regi...
{ "language": "en", "url": "https://stackoverflow.com/questions/57345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I get the current user's Local Settings folder path in C#? I want to point a file dialog at a particular folder in the current user's Local Settings folder on Windows. What is the shortcut to get this path? A: How about this, for example: String appData = Environment.GetFolderPath(Environment.SpecialFo...
{ "language": "en", "url": "https://stackoverflow.com/questions/57350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Const Struct& I'm having a little trouble figuring out exactly how const applies in a specific case. Here's the code I have: struct Widget { Widget():x(0), y(0), z(0){} int x, y, z; }; struct WidgetHolder //Just a simple struct to hold four Widgets. { WidgetHolder(Widget a, Widget b, Widget c, Widget d...
{ "language": "en", "url": "https://stackoverflow.com/questions/57355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I sync between VSS and SVN I am forced to use VSS at work, but use SVN for a personal repository. What is the best way to sync between VSS and sync? A: To get rid of the manual merge step, I could use a separate svn branch (svn://branches/VSS) as follows: * *Create a working copy of svn://branches/VSS *...
{ "language": "en", "url": "https://stackoverflow.com/questions/57372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: web page cache setexpires Will the code below work if the clock on the server is ahead of the clock on the client? Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)) EDIT: the reason I ask is on one of our web apps some users are claiming they are seeing the pages ( account numbers, etc ) from a user that previ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Obout controls in C# .Net Is anyone using the Obout controls in C# .Net? How would you rate these controls, especially the Grid Control? A: I was thoroughly impressed with them. Of all the other control sets out there (infragistics, telerik) this is the only (more than) respectable one I've worked with that was 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/57382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to rethrow InnerException without losing stack trace in C#? I am calling, through reflection, a method which may cause an exception. How can I pass the exception to my caller without the wrapper reflection puts around it? I am rethrowing the InnerException, but this destroys the stack trace. Example code: public...
{ "language": "en", "url": "https://stackoverflow.com/questions/57383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "357" }
Q: Inter-convertability of asymmetric key containers (eg: X.509, PGP, OpenSSH) Are asymmetrical cryptographic keys fundamentally inter-convertible between the major key container formats? For example, can I convert an X.509 key file into a PGP or OpenGPG key file? And--assuming the answer is yes--is it "security neutr...
{ "language": "en", "url": "https://stackoverflow.com/questions/57384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where should interfaces "physically live"? I like the idea of having Interfaces and Implementation separate. But how separate? Are the Interface definitions in a separate .Net assembly? Do you have a single project that defines all Interfaces for a solution? Otherwise are there issues with circular dependencies ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Indexed Views in OLTPs? I'm familiar with SQL Server Indexed Views (or Oracle Materialized Views), we use them in our OLAP applications. They have the really cool feature of being able to usurp an execution plan and remap it to the indexed view w/out having to change existing code. IE. Let's say I had a SPROC that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/57406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I don't get the concept of Visual Studio Projects and Solutions In Eclipse, I have a workspace that contains all of my projects. Each project builds and compiles separately. A project does not interact with another project. How does this relate to Visual Studio and Projects/Solutions there? A: A VS project is it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Ajax and a restricted uri I would like to make an ajax call to a different server (same domain and box, just a different port.) e.g. My page is http://localhost/index.html I would like to make a ajax get request to: http://localhost:7076/?word=foo I am getting this error: Access to restricted URI denied (NS_ERR...
{ "language": "en", "url": "https://stackoverflow.com/questions/57421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sample code for using mac camera in a program? I'd like to use the camera in my Macbook in a program. I'm fairly language agnostic - C, Java, Python etc are all fine. Could anyone suggest the best place to look for documents or "Hello world" type code? A: The ImageKit framework in Leopard has an IKPictureTaker clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/57424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Activator.CreateInstance(string) and Activator.CreateInstance() difference No, this is not a question about generics. I have a Factory pattern with several classes with internal constructors (I don't want them being instantiated if not through the factory). My problem is that CreateInstance fails with a "No paramete...
{ "language": "en", "url": "https://stackoverflow.com/questions/57439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Upgrading from .NET 1.1 to .NET 2.0, what to expect? I'm working on a big .NET 1.1 project, and there exists a wish to upgrade this, majorily to be able to use better tools like Visual Studio 2008, but also because of the new features and smaller amount of bugs in the .NET 2.0 framework. The project consist for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What are some gotchas when retargeting .net 2.0 to 3.5? I am currently working on a project that is moving from .NET 2.0 to 3.5 across the board. I am well aware that 3.5 is basically a set of added functionality (libraries, if you will) on top of what 2.0 offers. Are there any gotchas that I might hit by simply re-...
{ "language": "en", "url": "https://stackoverflow.com/questions/57458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Equivalent of svn's blame for Perforce Is there an equivalent of svn's blame for Perforce on the command line? p4 annotate doesn't display usernames -- only changeset numbers (without ancestor history!). I currently have to track code back through ancestors and compare against the filelog, and there just has to be a...
{ "language": "en", "url": "https://stackoverflow.com/questions/57467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: C# graph traversal - tracking path between any two nodes Looking for a good approach to keep track of a Breadth-First traversal between two nodes, without knowing anything about the graph. Versus Depth-First (where you can throw away the path if it doesn't pan out) you may have quite a few "open" possibilities durin...
{ "language": "en", "url": "https://stackoverflow.com/questions/57471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AJAX dropdowns (HTML Select) in Firefox with jQuery Help! I am using jQuery to make an AJAX call to fill in a drop-down dynamically given the user's previous input (from another drop-down, that is filled server-side). In all other browsers aside from Firefox (IE6/7, Opera, Safari), my append call actually appends th...
{ "language": "en", "url": "https://stackoverflow.com/questions/57479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the differences between a pointer variable and a reference variable? What is the difference between a pointer variable and a reference variable? A: References are very similar to pointers, but they are specifically crafted to be helpful to optimizing compilers. * *References are designed such that it is...
{ "language": "en", "url": "https://stackoverflow.com/questions/57483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3818" }
Q: How do you "OR" criteria together when using a criteria query with hibernate? I'm trying to do a basic "OR" on three fields using a hibernate criteria query. Example class Whatever{ string name; string address; string phoneNumber; } I'd like to build a criteria query where my search string could match "name" or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: .NET Date Const (with Globalization) Does anyone know of a way to declare a date constant that is compatible with international dates? I've tried: ' not international compatible public const ADate as Date = #12/31/04# ' breaking change if you have an optional parameter that defaults to this value ' because it isnt ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: WPF Databind Before Saving In my WPF application, I have a number of databound TextBoxes. The UpdateSourceTrigger for these bindings is LostFocus. The object is saved using the File menu. The problem I have is that it is possible to enter a new value into a TextBox, select Save from the File menu, and never persist ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Recommendation on Tools to migrate from Clearcase to SVN? I'm on the lookout for tools to migrate from ClearCase to SVN. Ideally would like to get all history information, or as much as can be acquired. Incremental merges would be very beneficial but isn't required. A: This looks about the best. Polarion's busine...
{ "language": "en", "url": "https://stackoverflow.com/questions/57494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Users of Gallio, what Advantages and Disadvantages have you experienced using this Tool? For those of you familiar with Gallio, what Advantages and Disadvantages have you experienced using this tool, a so-called Test Automation Platform? A: I tried Gallio as well and it runs much slower than either TDD.Net or the n...
{ "language": "en", "url": "https://stackoverflow.com/questions/57512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is it possible for SelectNodes on an XmlDocument to return null? Is it possible for SelectNodes() called on an XmlDocument to return null? My predicament is that I am trying to reach 100% unit test code coverage; ReSharper tells me that I need to guard against a null return from the SelectNodes() method, but I can s...
{ "language": "en", "url": "https://stackoverflow.com/questions/57518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Javascript array with a mix of literals and arrays I can create the following and reference it using area[0].states[0] area[0].cities[0] var area = [ { "State" : "Texas", "Cities" : ['Austin','Dallas','San Antonio'] }, { "State" :"Arkansas", "Cities"...
{ "language": "en", "url": "https://stackoverflow.com/questions/57522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: parametrization in VBScript/ASP Classic and ADO I'm a bit confused here. Microsoft as far as I can tell claims that parametrization is the best way to protect your database from SQL injection attacks. But I find two conflicting sources of information here: This page says to use the ADO command object. But this pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/57528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Any tool to migrate repo from Vault to Subversion? Are there any tools to facilitate a migration from Sourcegear's Vault to Subversion? I'd really prefer an existing tool or project (I'll buy!). Requirements: * *One-time migration only *Full history with comments Optional: * *Some support for labels/branche...
{ "language": "en", "url": "https://stackoverflow.com/questions/57530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Accessing Tomcat Context Path from Servlet In my Servlet I would like to access the root of the context so that I can do some JavaScript minifying. It would be possible to do the minify as part of the install process but I would like to do it on Servlet startup to reduce the implementation cost. Does anyone know of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What's the best way to embed video in a Windows Mobile 6 application? App needs to run on the .Net Compact Framework v.3.5. Video can be any format, but I do need to be able to know when it's finished playing, so I can start another one. I'm hoping for a method that doesn't involve unmanaged code, if possible. A: Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/57545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IMAP forwarder I'm wondering what is the quickest and most reliable way to forward mail from an IMAP account. My university does not allow our student-mailbox to forward to a private e-mail account (everybody uses either Gmail or Hotmail here). It's a political thing, not technical. We do have IMAP access to the mai...
{ "language": "en", "url": "https://stackoverflow.com/questions/57547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: GPS and Embedded Development - Where to find resources? I'm just starting to design some embedded devices, and am looking for resources. What I want to be able to do is to connect a GPS receiver to a lightweight SBC or mini-ITX, x86-based computer, and track a remote-controlled vehicle's location/progress. Ideally, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AJAX Dropdown Extender Question Ok, so I got my extender working on a default.aspx page on my website and it looks good. I basically copied and pasted the code for it into a user control control.ascx page. When I do this I completely loose the functionality (just shows the target control label and no dropdown, eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/57552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mail Storage Quota Checker in C# We have a requirement to build a tool for users in an Intranet scenario. The tool should check how much percentage of the Mailbox Quota (set in Active Directory) is being used. Currently, they can check their Folder size using Outlook 2003 but this does not show the Quota Limit set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I check that a Windows QFE/patch has been installed from c#? What's the best way in c# to determine is a given QFE/patch has been installed? A: Use WMI and inspect the Win32_QuickFixEngineering enumeration. From TechNet: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel...
{ "language": "en", "url": "https://stackoverflow.com/questions/57560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Handles vs. AddHandler Is there an advantage to dynamically attaching/detaching event handlers? Would manually detaching handlers help ensure that there isn't a reference remaining to a disposed object? A: I'm pretty sure that the Handles clause is just syntactic sugar and inserts an AddHandler statement into your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Secure-Wave and click once applications I have users who are using "secure-wave" security. Evidently it is some sort of white-listing application monitor. With my click-once application, the name of the folders that are used are runtime generated, so the administrators are not able to properly whitelist the appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/57576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I merge XML from distinct DomDocuments What is the easiest way to merge XML from two distinct DOM Documents? Is there a way other than using the Canonical DataReader approach and then messing with the outputted DOM. What I basically want is to AppendChild to XmlElements without getting: The node to be inser...
{ "language": "en", "url": "https://stackoverflow.com/questions/57577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I make a ListView's columns auto-resize programmatically? I've found some examples using the Win32 api or simulating the ^+ button combination (ctrl-+) using SendKeys, but at least with the SendKeys method the listview grabs the cursor and sets it to an hourglass until I hit the start button on my keyboard. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.Net UpdatePanel ImageButton causes "this._postbackSettings.async is null or not an object" I get this error on an update panel within a popupControlExtender which is within a dragPanelExtender. I see that a lot of other people have this issue and have various fixes none of which have worked for me. I would love ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to find (and keep) a tester who is developer I work for a software vendor whose market is developer tools and we have been looking for a QA person for our products. Since we are a small shop the position will be a combination of Support and QA however since we make developer tools, our support consists in large...
{ "language": "en", "url": "https://stackoverflow.com/questions/57587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to calculate age in T-SQL with years, months, and days What would be the best way to calculate someone's age in years, months, and days in T-SQL (SQL Server 2000)? The datediff function doesn't handle year boundaries well, plus getting the months and days separate will be a bear. I know I can do it on the clien...
{ "language": "en", "url": "https://stackoverflow.com/questions/57599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Continue Considered Harmful? Should developers avoid using continue in C# or its equivalent in other languages to force the next iteration of a loop? Would arguments for or against overlap with arguments about Goto? A: I think there should be more use of continue! Too often I come across code like: for (...) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Save registry values in WinCE using a C# app I'm working on a WinCE 6.0 system with a touchscreen that stores its calibration data (x-y location, offset, etc.) in the system registry (HKLM\HARDWARE\TOUCH). Right now, I'm placing the cal values into registry keys that get put into the OS image at build time. That w...
{ "language": "en", "url": "https://stackoverflow.com/questions/57609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to add a Timeout to Console.ReadLine()? I have a console app in which I want to give the user x seconds to respond to the prompt. If no input is made after a certain period of time, program logic should continue. We assume a timeout means empty response. What is the most straightforward way of approaching this...
{ "language": "en", "url": "https://stackoverflow.com/questions/57615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "133" }
Q: PHP Object Oriented or not? I have a start of a webapp that I wrote without using the Object Oriented features of PHP. I don't really know if it is worth it to go back and rewrite the parts I have finished. Is object oriented PHP worth rewriting all or part of a decent working app? A: Typical answer: "It depends." ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do you lock tables in SQL Server 2005, and should I even do it? This one will take some explaining. What I've done is create a specific custom message queue in SQL Server 2005. I have a table with messages that contain timestamps for both acknowledgment and completion. The stored procedure that callers execute t...
{ "language": "en", "url": "https://stackoverflow.com/questions/57625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I get JavaScript to open a popup window on the current monitor Scenario: * *The user has two monitors. *Their browser is open on the secondary monitor. *They click a link in the browser which calls window.open() with a specific top and left window offset. *The popup window always opens on their primary ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How do I expose data in a JSON format through a web service using Rails? Is there an easy way to return data to web service clients in JSON using Rails? A: http://wiki.rubyonrails.org/rails/pages/HowtoGenerateJSON A: Rails monkeypatches most things you'd care about to have a #to_json method. Off the top of my head...
{ "language": "en", "url": "https://stackoverflow.com/questions/57665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you create a process-wide singleton object? I read that the unit of granularity for static fields in .Net are per AppDomain, not per process. Is it possible to create a process-wide singleton object? A: You must use marshalled calls to communicate information across AppDomains. So you need to create the st...
{ "language": "en", "url": "https://stackoverflow.com/questions/57677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I determine why a jQuery ajax $.post request wasn't successful? I'm trying to determine, based on the result of this call, if it was successful. The successFunction doesn't get called, so I'm assuming it was not. How do I know what went wrong? xmlRequest = $.post("/url/file/", { 'id' : object.id }, successFu...
{ "language": "en", "url": "https://stackoverflow.com/questions/57679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SSRS - Sub Totals Customization - Moving Column to beginning of line I Have a request for the TOTAL's and subtotals column to be moved to the top/left of columns it represents, and by default SSRS does it on the bottom or right hand side of the columns being totaled. Is there a way to this? A: I found my own solut...
{ "language": "en", "url": "https://stackoverflow.com/questions/57683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I expose data in a JSON format through a web service using Java? Is there an easy way to return data to web service clients in JSON using java? I'm fine with servlets, spring, etc. A: We have been using Flexjson for converting Java objects to JSON and have found it very easy to use. http://flexjson.sourcefo...
{ "language": "en", "url": "https://stackoverflow.com/questions/57689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: What are the performance characteristics of 'is' reflection in C#? It's shown that 'as' casting is much faster than prefix casting, but what about 'is' reflection? How bad is it? As you can imagine, searching for 'is' on Google isn't terribly effective. A: The way I learned it is that this: if (obj is Foo) { Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/57701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Convert XML/HTML Entities into Unicode String in Python I'm doing some web scraping and sites frequently use HTML entities to represent non ascii characters. Does Python have a utility that takes a string with HTML entities and returns a unicode type? For example: I get back: &#x01ce; which represents an "ǎ" with a...
{ "language": "en", "url": "https://stackoverflow.com/questions/57708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: ASP.NET MVC and IIS 5 What is the best way to get hosting of an ASP.NET MVC application to work on IIS 5 (6 or 7). When I tried to publish my ASP.NET MVC application, all I seemed to get is 404 errors. I've done a bit of googleing and have found a couple of solutions, but neither seem super elegant, and I worry if t...
{ "language": "en", "url": "https://stackoverflow.com/questions/57712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Anyone using the Entity Framework *Well*? Has anyone actually shipped an Entity Framework project that does O/R mapping into conceptual classes that are quite different from the tables in the datastore? I mean collapse junction (M:M) tables into other entities to form Conceptual classes that exist in the business do...
{ "language": "en", "url": "https://stackoverflow.com/questions/57718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How can I display just a portion of an image in HTML/CSS? Let's say I want a way to display just the the center 50x50px of an image that's 250x250px in HTML. How can I do that. Also, is there a way to do this for css:url() references? I'm aware of clip in CSS, but that seems to only work when used with absolute pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/57725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "174" }
Q: Best build process solution to manage build versions I run a rather complex project with several independent applications. These use however a couple of shared components. So I have a source tree looking something like the below. * *My Project * *Application A *Shared1 *Shared2 *Application B *Applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/57730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sporadically Slow Calls From .NET Application To SQL Server I have a table in SQL Server that I inherited from a legacy system thats still in production that is structured according to the code below. I created a SP to query the table as described in the code below the table create statement. My issue is that, spo...
{ "language": "en", "url": "https://stackoverflow.com/questions/57731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best workaround for the ASP.NET forms authentication timeout when using wildcard mapping? My team is working on a crappy old website and most of the pages are still ASP classic. However, we've recently migrated to forms authentication using ASP.NET and wildcard mapping. Everything works surprisingly we...
{ "language": "en", "url": "https://stackoverflow.com/questions/57739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting up Team foundation server I have to setup team foundation server for a company, something that I don't have any experience in. The company will have about 5 or so developers that will be using it. Is this a big task or something that is fairly easy to do (with instructions)? Any helpful tutorials that you ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/57747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Emacs query-replace with textual transformation I want to find any text in a file that matches a regexp of the form t[A-Z]u (i.e., a match t followed by a capital letter and another match u, and transform the matched text so that the capital letter is lowercase. For example, for the regexp x[A-Z]y xAy becomes xay ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? I'm working on an installer (using Wise Installer, older version from like 1999). I'm creating a shortcut in the Programs group to an EXE. I'm also creating a shortcut on the Deskto...
{ "language": "en", "url": "https://stackoverflow.com/questions/57759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Step-By-Step ASP.NET Automated Build/Deploy Seems like there are so many different ways of automating one's build/deployment that it becomes difficult to parse through all the different scenarios that people support in tutorials on the web. So I wanted to present the question to the stackoverflow crowd ... what wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/57762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: BufferedGraphicsContext Error I am getting the below error and call stack at the same time everyday after several hours of application use. Can anyone shed some light on what is happening? System.InvalidOperationException: BufferedGraphicsContext cannot be disposed of because a buffer operation is currently in progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/57766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }