text
stringlengths
8
267k
meta
dict
Q: Static Methods in an Interface/Abstract Class First off, I understand the reasons why an interface or abstract class (in the .NET/C# terminology) cannot have abstract static methods. My question is then more focused on the best design solution. What I want is a set of "helper" classes that all have their own static...
{ "language": "en", "url": "https://stackoverflow.com/questions/14614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to retrieve a file from a server via SFTP? I'm trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this? A: hierynomus/sshj has a complete implementation of SFTP version 3 (what OpenSSH implements) Example code from SFTPUpload.java package net.schmizz.sshj.examples; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "241" }
Q: Multiple choice on WinForms What's the best way of implementing a multiple choice option in Windows Forms? I want to enforce a single selection from a list, starting with a default value. It seems like a ComboBox would be a good choice, but is there a way to specify a non-blank default value? I could just set it in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to automatically make check-outs from any VCS? Let's take a web development environment, where developers checkout a project onto their local machines, work on it, and check in changes to development. These changes are further tested on development and moved live on a regular schedule (eg weekly, mont...
{ "language": "en", "url": "https://stackoverflow.com/questions/14634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add "Project Description" in FogBugz? When I create a new project (or even when I edit the Sample Project) there is no way to add Description to the project. Or am I blind to the obvious? A: You are not crazy. It is used internally and not even stored in the database. I wondered the same thing when I first...
{ "language": "en", "url": "https://stackoverflow.com/questions/14646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can a proxy server cache SSL GETs? If not, would response body encryption suffice? Can a (||any) proxy server cache content that is requested by a client over https? As the proxy server can't see the querystring, or the http headers, I reckon they can't. I'm considering a desktop application, run by a number of peop...
{ "language": "en", "url": "https://stackoverflow.com/questions/14656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Different solutions/project files for Local vs Build environments As part of improvements to our build process, we are currently debating whether we should have separate project/solution files on our CI production environment from our local development environments. The reason this has come about is because of refer...
{ "language": "en", "url": "https://stackoverflow.com/questions/14674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What Url rewriter do you use for ASP.Net? I've looked at several URL rewriters for ASP.Net and IIS and was wondering what everyone else uses, and why. Here are the ones that I have used or looked at: * *ThunderMain URLRewriter: used in a previous project, didn't quite have the flexibility/performance we were loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/14697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to make Pro*C cope with #warning directives? When I try to precompile a *.pc file that contains a #warning directive I recieve the following error: PCC-S-02014, Encountered the symbol "warning" when expecting one of the following: (bla bla bla). Can I somehow convince Pro*C to ignore the thing if it doesn't kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/14698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PowerShell FINDSTR eqivalent? What's the DOS FINDSTR equivalent for PowerShell? I need to search a bunch of log files for "ERROR". A: For example, find all instances of "#include" in the c files in this directory and all sub-directories. gci -r -i *.c | select-string "#include" gci is an alias for get-childitem A...
{ "language": "en", "url": "https://stackoverflow.com/questions/14708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: TortoiseSVN & Putty very slow does anyone have a clue why the TortoiseSVN windows client (in Win32 XP and Vista) is so incredible slow when used with Putty and PAM? It seems it connects for each request since datatransfers (checkout) are not slow at all? Any ideas how to change it? Update: I had no problems with SSH...
{ "language": "en", "url": "https://stackoverflow.com/questions/14712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Identifying SQL Server Performance Problems We're having sporadic, random query timeouts on our SQL Server 2005 cluster. I own a few apps that use it, so I'm helping out in the investigation. When watching the % CPU time in regular ol' Perfmon, you can certainly see it pegging out. However, SQL activity monitor only...
{ "language": "en", "url": "https://stackoverflow.com/questions/14717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: UrlEncode through a console application? Normally I would just use: HttpContext.Current.Server.UrlEncode("url"); But since this is a console application, HttpContext.Current is always going to be null. Is there another method that does the same thing that I could use? A: Try this! Uri.EscapeUriString(url); Or Uri...
{ "language": "en", "url": "https://stackoverflow.com/questions/14731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Printers not available unless shared We are using classic asp to call a C# dll and in the C# dll we are using System.Drawing.Printing.PrinterSettings.InstalledPrinters to get a list of availabe printers. If the printers are not shared they will not show up when a user trys to print. The Local System account can see ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is it possible to disable command input in the toolbar search box? In the Visual Studio toolbar, you can enter commands into the search box by prefixing them with a > symbol. Is there any way to disable this? I've never used the feature, and it's slightly annoying when trying to actually search for something that yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/14760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How best to use File Version and Assembly Version? In .NET there are two version numbers available when building a project, File Version and Assembly Version. How are you using these numbers? Keeping them the same? Auto-incrementing one, but manually changing the other? Also what about the AssemblyInformationalVer...
{ "language": "en", "url": "https://stackoverflow.com/questions/14770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Interview question on C# and VB.net similarities/differences I have been a VB.net developer for a few years now but I am currently applying to a few companies that use C#. I have even been told that at least one of the companies doesn't want VB.net developers. I have been looking online trying to find real differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/14775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is "include file" in shtml the best method to keep non-database changing data We have a website that uses #include file command to roll info into some web pages. The authors can access the text files to update things like the occasional class or contact information for the department. My question is this, I don't s...
{ "language": "en", "url": "https://stackoverflow.com/questions/14791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I override an EJB 3 session bean method with a generic argument - if possible at all? Suppose you have the following EJB 3 interfaces/classes: public interface Repository<E> { public void delete(E entity); } public abstract class AbstractRepository<E> implements Repository<E> { public void delete(E e...
{ "language": "en", "url": "https://stackoverflow.com/questions/14801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Issues with DB after publishing via Database Publishing Wizard from MSFT I work on quite a few DotNetNuke sites, and occasionally (I haven't figured out the common factor yet), when I use the Database Publishing Wizard from Microsoft to create scripts for the site I've created on my Dev server, after running the scr...
{ "language": "en", "url": "https://stackoverflow.com/questions/14828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get started with speech-to-text? I'm really interested in speech-to-text algorithms, but I'm not sure where to start studying up on them. A bunch of searching around led me to this, but it's from 1996 and I'm fairly certain that there have been improvements since then. Does anyone who has any experience with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Mixed C++/CLI TypeLoadException Internal limitation: too many fields On a quest to migrate some new UI into Managed/C# land, I have recently turned on Common Language Runtime Support (/clr) on a large legacy project, which uses MFC in a Shared DLL and relies on about a dozen other projects within our overall solutio...
{ "language": "en", "url": "https://stackoverflow.com/questions/14843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Why does VS 2005 keep giving me the "'x' is ambiguous in the namespace 'y'" error? Bounty: I will send $5 via paypal for an answer that fixes this problem for me. I'm not sure what VS setting I've changed or if it's a web.config setting or what, but I keep getting this error in the error list and yet all solutions b...
{ "language": "en", "url": "https://stackoverflow.com/questions/14857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: [ADO.NET error]: CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file HelloWorld.mdf failed CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file C:\Documents and Settings\..\App_Data\HelloWorld.mdf f...
{ "language": "en", "url": "https://stackoverflow.com/questions/14872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I display database query statistics on Wordpress site? I've noticed that a few Wordpress blogs have query statistics present in their footer that simply state the number of queries and the total time required to process them for the particular page, reading something like: 23 queries. 0.448 seconds I was wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/14873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Drawing a view hierarchy into a specific context in Cocoa For part of my application I have a need to create an image of a certain view and all of its subviews. To do this I'm creating a context that wraps a bitmap with the same-size as the view, but I'm unsure how to draw the view hierarchy into it. I can draw a si...
{ "language": "en", "url": "https://stackoverflow.com/questions/14874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Find the best combination from a given set of multiple sets Say you have a shipment. It needs to go from point A to point B, point B to point C and finally point C to point D. You need it to get there in five days for the least amount of money possible. There are three possible shippers for each leg, each with their...
{ "language": "en", "url": "https://stackoverflow.com/questions/14884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Improving Your Build Process Or, actually establishing a build process when there isn't much of one in place to begin with. Currently, that's pretty much the situation my group faces. We do web-app development primarily (but no desktop development at this time). Software deployments are ugly and unwieldy even with...
{ "language": "en", "url": "https://stackoverflow.com/questions/14893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Tree-Based (vs. HTML-Based) Web Framework? Anyone who writes client-side JavaScript is familiar with the DOM - the tree structure that your browser references in memory, generated from the HTML it got from the server. JavaScript can add, remove and modify nodes on the DOM tree to make changes to the page. I find it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: PDF generation from XHTML in a LAMP environment Can anyone recommend a good server-side PDF generation tool that would work in a Linux environment. I want easy as possible, pass it a XHTML file (with images) and have it generate a PDF from the rendered source. I don't have a massive budget, but anything under $1000 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can I generate ASP.NET MVC routes from a Sitemap? I'm thinking of learning the ASP.NET MVC framework for an upcoming project. Can I use the advanced routing to create long URLs based on the sitemap hierarchy? Example navigation path: Home > Shop > Products > Household > Kitchen > Cookware > Cooksets > Nonstick Typi...
{ "language": "en", "url": "https://stackoverflow.com/questions/14923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Parameter Binding: What happens under the hood? .NET, Java and other high level database API's in various language often provide techniques known as prepared statements and parameter binding as opposed to sending plain text commands to the Database server. What I would like to know is what happens when you execute a...
{ "language": "en", "url": "https://stackoverflow.com/questions/14934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to Disable Alt + F4 closing form? What is the best way to disable Alt + F4 in a c# win form to prevent the user from closing the form? I am using a form as a popup dialog to display a progress bar and I do not want the user to be able to close it. A: This is a hack to disable Alt + F4. private void test_FormClo...
{ "language": "en", "url": "https://stackoverflow.com/questions/14943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: .NET 3.5 Service Pack 1 causes 404 pages on ASP.NET Web App I have a problem with IIS 6.0 ceasing to work for an ASP.NET application after installing Service Pack 1 for .NET 3.5. I have 2 identical virtual dedicated servers. Installing SP1 on the first had no adverse effect. Installing it on the second caused ASP.NE...
{ "language": "en", "url": "https://stackoverflow.com/questions/14963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Are there any suggestions for developing a C# coding standards / best practices document? I'm a recent AI graduate (circa 2 years) working for a modest operation. It has fallen to me (primarily as I'm the first 'adopter' in the department) to create a basic (read useful?) C# coding standards document. I think I sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/14967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "159" }
Q: Executing JavaScript to Render HTML for Server-Side Caching There are lots of widgets provided by sites that are effectively bits of JavaScript that generate HTML through DOM manipulation or document.write(). Rather than slow the browser down even more with additional requests and trust yet another provider to be fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/15007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Web Application Testing for .Net (WatiN Test Recorder) I've been using WatiN as a testing tool for my current project. Besides the minor bugs with the Test Recorder, I've been able to use it and automate a lot of my tests in conjunction with NUnit. Anyone else out there with experience with different tools they migh...
{ "language": "en", "url": "https://stackoverflow.com/questions/15015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to get list of installed BitmapEncoders/Decoders (the WPF world)? In WindowsForms world you can get a list of available image encoders/decoders with System.Drawing.ImageCodecInfo.GetImageDecoders() / GetImageEncoders() My question is, is there a way to do something analogous for the WPF world that would allow m...
{ "language": "en", "url": "https://stackoverflow.com/questions/15023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Tools to help a small shop score higher on the "Joel Test" Questions #1 through #4 on the Joel Test in my opinion are all about the development tools being used and the support system in place for developers: * *Do you use source control? *Can you make a build in one step? *Do you make daily builds? *Do you...
{ "language": "en", "url": "https://stackoverflow.com/questions/15024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Visual Studio Error: The "GenerateResource" task failed unexpectedly When building a VS 2008 solution with 19 projects I sometimes get: The "GenerateResource" task failed unexpectedly. System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.IO.MemoryStream.set_Capacity(I...
{ "language": "en", "url": "https://stackoverflow.com/questions/15034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do you set your LAMP testing server? I am using xampp on Windows, but I would like to use something closer to my server setup. Federico Cargnelutti tutorial explains how to setup LAMP VMWARE appliance; it is a great introduction to VMware appliances, but one of the commands was not working and it doesn't describ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Looking for example of Command pattern for UI I'm working on a WinForm .Net application with the basic UI that includes toolbar buttons, menu items and keystrokes that all initiate the same underlying code. Right now the event handlers for each of these call a common method to perform the function. From what I've re...
{ "language": "en", "url": "https://stackoverflow.com/questions/15047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to get out parameters working in SharePoint workflows I'm trying to create a custom workflow action with an output parameter for error handling. Working from various examples, I can't get Parameter Direction="Out" to work. Everything seems right, but when I try to assign the output to the "error" variable in Sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/15053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Do you have any recommended macros for Microsoft Visual Studio? What are some macros that you have found useful in Visual Studio for code manipulation and automation? A: This is one of the handy ones I use on HTML and XML files: ''''replaceunicodechars.vb Option Strict Off Option Explicit Off Imports EnvDTE Import...
{ "language": "en", "url": "https://stackoverflow.com/questions/15056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: find orphaned methods in codebase I'm sure we've all seen it before...A code base that has been around for a year or two, and as features have been added and bugs fixed, we end up with pieces of code that aren't actually in use anymore. I'm wondering if there is a way (especially in VS.NET with or without a third-p...
{ "language": "en", "url": "https://stackoverflow.com/questions/15057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I do a string replacement in a PowerShell function? How do I convert function input parameters to the right type? I want to return a string that has part of the URL passed into it removed. This works, but it uses a hard-coded string: function CleanUrl($input) { $x = "http://google.com".Replace("http://", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Cycle Button Background Images in C# I have a form in C# that has a button that, when clicked, I want the background image to cycle through a set of images (which I have as resources to the project). The images are named '_1', '_2', etc. and each time I click the button I want its background image to increment to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/15066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Access 2000 connecting to SQL Server 2005 The company I work for has an old Access 2000 application that was using a SQL Server 2000 back-end. We were tasked with moving the back-end to a SQL Server 2005 database on a new server. Unfortunately, the application was not functioning correctly while trying to do any i...
{ "language": "en", "url": "https://stackoverflow.com/questions/15087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Office VSTO Word 2003 project keeps trying to autoconvert to 2007 I am working on a Office Word add-in for Word 2003. When I reopen the project, the VS2008 auto covert dialog box opens and tries to convert it to the Word 2007 format. How can I reopen this file and keep it in the Word 2003 format? A: Got a answer ov...
{ "language": "en", "url": "https://stackoverflow.com/questions/15102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Visual Studio 2005 Setup project install crashes over Terminal Server I have a setup project created by Visual Studio 2005, and consists of both a C# .NET 2.0 project and C++ MFC project, and the C++ run time. It works properly when run from the main console, but when run over a Terminal Server session on a Windows...
{ "language": "en", "url": "https://stackoverflow.com/questions/15109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: .net Job Interview I have a job interview tomorrow for a .NET shop. For the past few years I have been developing in languages other than .NET and figure it is probably a good idea to brush up on what is cool and new in the world of .NET. I've been reading about LINQ and WPF but these are more technologies than tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/15124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Tool in Visual Studio 2008 for helping with Localization Does anyone have any recommendations of tools that can be of assistance with moving literal values into resource files for localization? I've used a resharper plugin called RGreatX but was wondering if there is anything else out there. It's one heck of a long ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Building Standalone Applications in JavaScript With the increased power of JavaScript frameworks like YUI, JQuery, and Prototype, and debugging tools like Firebug, doing an application entirely in browser-side JavaScript looks like a great way to make simple applications like puzzle games and specialized calculators...
{ "language": "en", "url": "https://stackoverflow.com/questions/15139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: What are the pros and cons to keeping SQL in Stored Procs versus Code What are the advantages/disadvantages of keeping SQL in your C# source code or in Stored Procs? I've been discussing this with a friend on an open source project that we're working on (C# ASP.NET Forum). At the moment, most of the database access ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "274" }
Q: Prevent a TreeView from firing events in VB6? In some VB6 code, I have a handler for a TreeView's Collapse event: Private Sub MyTree_Collapse(ByVal Node as MSComCtlLib.Node) This is called whenever a node in the tree is collapsed, whether by the user or programmatically. As it turns out, through some roundabout ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/15163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: User script location linux (debian etch) In the linux file system, where should user scripts be placed? I'm thinking specifically python scripts to be called by cron. A: For whom it interests, the Filesystem Hierarchy Standard (FHS) is a standards document and still a very good read. I describes the foundation for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How to gauge the quality of a software product I have a product, X, which we deliver to a client, C every month, including bugfixes, enhancements, new development etc.) Each month, I am asked to err "guarantee" the quality of the product. For this we use a number of statistics garnered from the tests that we do, suc...
{ "language": "en", "url": "https://stackoverflow.com/questions/15176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Writing Emacs extensions in languages other than Lisp I'd like to take an existing application (written in OCaml) and create an Emacs "interface" for it (like, for example, the Emacs GDB mode). I would prefer to do this without writing a ton of Lisp code. In MVC terms, I'd like for the View to be Emacs, but for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Changing CURRENT save/default directory in Delphi 2007 without using Save-As I have a project group that contains a project I'm working on as well as some related component and packages. I prefer to keep the database links active during design-time. I know how to write the code which would change the database file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best way to deploy subversion (SVN) in a multisite windows environment We are planning on moving for MS Source Safe (ouch) to SVN. We are working mostly in a Microsoft environment (windows, Visual Studio, .NET) and we have developers in multiple sites. I heard about VisualSVN and integration with visual studio. On t...
{ "language": "en", "url": "https://stackoverflow.com/questions/15203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the best way to iterate through a strongly-typed generic List? What is the best way to iterate through a strongly-typed generic List in C#.NET and VB.NET? A: C# myList<string>().ForEach( delegate(string name) { Console.WriteLine(name); }); Anonymous delegates are not currently implement...
{ "language": "en", "url": "https://stackoverflow.com/questions/15204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Subversion Management Tools we have a lot of users running in different shared and solo-owned repositories in Subversion. As part of our work, we do project-shared code and individual work, and we need to control access, ideally on a group basis. Currenly, we use SVNManager to allow users to manage access and crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/15211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: UltraWebGrid: How to use a drop-down list in a column I'm using the Infragistics grid and I'm having a difficult time using a drop-down list as the value selector for one of my columns. I tried reading the documentation but Infragistics' documentation is not so good. I've also taken a look at this discussion with no...
{ "language": "en", "url": "https://stackoverflow.com/questions/15219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Setting an ASP.NET Master Page at runtime I'm working on a site which needs to be able to support two or more looks, changable at runtime. I'd hoped to be able to handle the change with a CSS switch, but it looks like I'll need to use a different masterpage for each design. So, what's the best way to set the masterp...
{ "language": "en", "url": "https://stackoverflow.com/questions/15228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do you create a debug only function that takes a variable argument list? Like printf() I'd like to make a debug logging function with the same parameters as printf. But one that can be removed by the pre-processor during optimized builds. For example: Debug_Print("Warning: value %d > 3!\n", value); I've looked...
{ "language": "en", "url": "https://stackoverflow.com/questions/15240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Does anyone have any real-world experience of CSLA? The main web application of my company is crying out for a nifty set of libraries to make it in some way maintainable and scalable, and one of my colleagues has suggested CSLA. So I've bought the book but as : programmers don't read books anymore I wanted to gaug...
{ "language": "en", "url": "https://stackoverflow.com/questions/15241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Simplest way to make a Google Map mashup? Given a list of locations such as <td>El Cerrito, CA</td> <td>Corvallis, OR</td> <td>Morganton, NC</td> <td>New York, NY</td> <td>San Diego, CA</td> What's the easiest way to generate a Google Map with pushpins for each location? A: Check out the Google...
{ "language": "en", "url": "https://stackoverflow.com/questions/15247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can placement new for arrays be used in a portable way? Is it possible to actually make use of placement new in portable code when using it for arrays? It appears that the pointer you get back from new[] is not always the same as the address you pass in (5.3.4, note 12 in the standard seems to confirm that this is c...
{ "language": "en", "url": "https://stackoverflow.com/questions/15254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Objective-C/Cocoa: How do I accept a bad server certificate? Using NSURLRequest, I am trying to access a web site that has an expired certificate. When I send the request, my connection:didFailWithError delegate method is invoked with the following info: -1203, NSURLErrorDomain, bad server certificate My searches h...
{ "language": "en", "url": "https://stackoverflow.com/questions/15266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Aging Data Structure in C# I want a data structure that will allow querying how many items in last X minutes. An item may just be a simple identifier or a more complex data structure, preferably the timestamp of the item will be in the item, rather than stored outside (as a hash or similar, wouldn't want to have pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/15272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What do the getUTC* methods on the date object do? What does it mean when you get or create a date in UTC format in JavaScript? A: A date represents a specific point in time. This point in time will be called differently in different places. As I write this, it's 00:27 on Tuesday in Germany, 23:27 on Monday in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/15302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: JNI and Java: ant calling make or make calling ant? I'm just about to make my first trip into the world of JNI (Java Native Interface) to provide file system change notifications from platform specific C/C++ code to Java. That is unless someone suggest some brilliant library for doing this that I've missed. Being ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/15305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Optimizing the PDF Export of Huge Reports in Sql Reporting Services 2005 First off I understand that it is a horrible idea to run extremely large/long running reports. I am aware that Microsoft has a rule of thumb stating that a SSRS report should take no longer than 30 seconds to execute. However sometimes gargant...
{ "language": "en", "url": "https://stackoverflow.com/questions/15310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a method for handling errors from COM objects in RDML? Is there a method for handling errors from COM objects in RDML? For instance, when calling Word VBA methods like PasteSpecial, an error is returned and the LANSA application crashes. I cannot find anything in the documentation to allow handling of these...
{ "language": "en", "url": "https://stackoverflow.com/questions/15315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IE7 HTML/CSS margin-bottom bug Here is the scenario: I have a table with a margin-bottom of 19px. Below that I have a form that contains some fieldsets. One of them is floated right. The problem is that the margin-bottom is not getting the full 19px in IE7. I've gone through all of the IE7 css/margin/float bugs tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/15326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to create short snippets in Vim? I have recently started using Vim as my text editor and am currently working on my own customizations. I suppose keyboard mappings can do pretty much anything, but for the time being I'm using them as a sort of snippets facility almost exclusively. So, for example, if I type def{...
{ "language": "en", "url": "https://stackoverflow.com/questions/15334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Which scripting language to support in an existing codebase? I'm looking at adding scripting functionality to an existing codebase and am weighing up the pros/cons of various packages. Lua is probably the most obvious choice, but I was wondering if people have any other suggestions based on their experience. Scripts...
{ "language": "en", "url": "https://stackoverflow.com/questions/15349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Requirements, Specs, and Managing Up in an Agile Environment My company has tried to adopt the scrum methodology with mixed success. Theses are some areas where we've had issues. How do you handle these? * *Tracking requirements from Product Marketing through to product. We're trying out JIRA to track all req...
{ "language": "en", "url": "https://stackoverflow.com/questions/15365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Only accepting certain ajax requests from authenticated users What's the best practice for making sure that certain ajax calls to certain pages are only accepted from authenticated users? For example: Let's say that I have a main page called blog.php (I know, creativity abounds). Let's also say that there is a page...
{ "language": "en", "url": "https://stackoverflow.com/questions/15366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What's the best UML diagramming tool? I'm trying to choose a tool for creating UML diagrams of all flavours. Usability is a major criteria for me, but I'd still take more power with a steeper learning curve and be happy. Free (as in beer) would be nice, but I'd be willing to pay if the tool's worth it. What should I...
{ "language": "en", "url": "https://stackoverflow.com/questions/15376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "488" }
Q: Best practices for managing and deploying large JavaScript apps What are some standard practices for managing a medium-large JavaScript application? My concerns are both speed for browser download and ease and maintainability of development. Our JavaScript code is roughly "namespaced" as: var Client = { var1: '',...
{ "language": "en", "url": "https://stackoverflow.com/questions/15390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: SQL Server 2008 vs 2005 Linq integration Linq To SQL or Entity framework both integrate nicely with SQL Server 2005. The SQL Server 2008 spec sheet promises even better integration - but I can't see it. What are some examples of what you can do Linq-wise when talking to a 2008 server that you can't when talking to S...
{ "language": "en", "url": "https://stackoverflow.com/questions/15395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: DLL plugin that creates a parented window doesn't handle messages correctly I'm creating a plugin framework, where my application loads a series of plugin DLL's, then creates a new window and pass this new window's handle to the plugin. The plugin can, then, use this handle to create their own GUI. Everything seems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL With A Safety Net My firm have a talented and smart operations staff who are working very hard. I'd like to give them a SQL-execution tool that helps them avoid common, easily-detected SQL mistakes that are easy to make when they are in a hurry. Can anyone suggest such a tool? Details follow. Part of the operati...
{ "language": "en", "url": "https://stackoverflow.com/questions/15399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is Single Responsibility Principle a rule of OOP? An answer to a Stack Overflow question stated that a particular framework violated a plain and simple OOP rule: Single Responsibility Principle (SRP). Is the Single Responsibility Principle really a rule of OOP? My understanding of the definition of Object Orientated...
{ "language": "en", "url": "https://stackoverflow.com/questions/15412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Is it possible to coax Visual Studio 2008 into using italics for comments? I'm quite used to my IDE setup in Delphi 7, where I have my comments rendered in italics. This doesn't appear to be possible in VS2008. There's only an option for bold font, not italics. Is there some kind of registry hack or font magic I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/15414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to change the icon of .bat file programmatically? I'd like to know what's the way to actually set the icon of a .bat file to an arbitrary icon. How would I go about doing that programmatically, independently of the language I may be using. A: The icon displayed by the Shell (Explorer) for batch files is determi...
{ "language": "en", "url": "https://stackoverflow.com/questions/15423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How do I get rid of Home in ASP.Net MVC? I know this site is written using ASP.Net MVC and I do not see "/Home" in the url. This proves to me that it can be done. What special route and do I need? A: If you're running on IIS 7, you can simply delete the Default.aspx file that comes with ASP.NET MVC (assuming you'...
{ "language": "en", "url": "https://stackoverflow.com/questions/15470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: .Net drawing clipping bug GDI+ DrawLines function has a clipping bug that can be reproduced by running the following c# code. When running the code, two line paths appear, that should be identical, because both of them are inside the clipping region. But when the clipping region is set, one of the line segment is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/15478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java Coding standard / best practices - naming convention for break/continue labels Sometimes a labeled break or continue can make code a lot more readable. OUTERLOOP: for ( ;/*stuff*/; ) { //...lots of code if ( isEnough() ) break OUTERLOOP; //...more code } I was wondering what the common convention...
{ "language": "en", "url": "https://stackoverflow.com/questions/15481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Sorting an IList in C# So I came across an interesting problem today. We have a WCF web service that returns an IList. Not really a big deal until I wanted to sort it. Turns out the IList interface doesn't have a sort method built in. I ended up using the ArrayList.Adapter(list).Sort(new MyComparer()) method to sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/15486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "95" }
Q: Hidden Features of Java After reading Hidden Features of C# I wondered, What are some of the hidden features of Java? A: My favorite: dump all thread stack traces to standard out. windows: CTRL-Break in your java cmd/console window unix: kill -3 PID A: How about Properties files in your choice of encodings? Used...
{ "language": "en", "url": "https://stackoverflow.com/questions/15496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "295" }
Q: Use SVN instead of CVS on SourceForge I've just setup a new project on SourceForge and the admins set it up with CVS as the SCM, however, I want to use SVN. There is NO code in this project yet - empty directory. How do I change this project from using CVS to SVN? A: It's under the options.
{ "language": "en", "url": "https://stackoverflow.com/questions/15504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I track down performance problems with page rendering? I've been tasked with improving the performance of an ASP.NET 2.0 application. The page I'm currently focused on has many problems but one that I'm having trouble digging into is the render time of the page. Using Trace.axd the duration between Begin Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/15513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there anyway to disable the client-side validation for dojo date text box? In my example below I'm using a dijit.form.DateTextBox: <input type="text" name="startDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'MM/dd/yyyy'}" value='<c:out value="${sessionScope.adminMessageForm.startDate}"/>' /> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I generate ASCII codes 2 and 3 in a Bash command line? If I press Ctrl+B that ought to give me ASCII code 2, but Ctrl+C is going to be interpreted as a Break. So I figure I've got to redirect a file in. How do I get these characters into a file? A: echo $'\002\003' > ./myfile A: perl -e 'print "\xFF"' wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/15537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Choosing a new development machine I'm not sure how this question will be recieved here but lets give it a shot... It's time for me to get a new dev PC. What's the best choice these days? I typically have 2-3 Visual Studios open along with mail and all that stuff. Ideally I would imagine 2+ GB of RAM would be nice a...
{ "language": "en", "url": "https://stackoverflow.com/questions/15573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the correct stencils for object relational diagramming in visio? All of my Visio experience is with LAN/WAN documentation. I recently had a desire to visualize the relationship between objects in the Nagios configuration and I realized I didn't know how to do it properly and moved on to something more impo...
{ "language": "en", "url": "https://stackoverflow.com/questions/15583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Practical use of System.WeakReference I understand what System.WeakReference does, but what I can't seem to grasp is a practical example of what it might be useful for. The class itself seems to me to be, well, a hack. It seems to me that there are other, better means of solving a problem where a WeakReference is u...
{ "language": "en", "url": "https://stackoverflow.com/questions/15593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Best way to structure a repository in Subversion for Visual Studio projects? I have a few C# .dll projects which are common to many applications. Currently, I have one big repository. I have each DLL stored as a separate project within the repository and every application project stored as a project within the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/15621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }