text
stringlengths
8
267k
meta
dict
Q: Large, Complex Objects as a Web Service Result Hello again ladies and gents! OK, following on from my other question on ASP.NET Web Service Results, Proxy Classes and Type Conversion. I've come to a part in my project where I need to get my thinking cap on. Basically, we have a large, complex custom object that need...
{ "language": "en", "url": "https://stackoverflow.com/questions/17725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: When should assertions stay in production code? There's a discussion going on over at comp.lang.c++.moderated about whether or not assertions, which in C++ only exist in debug builds by default, should be kept in production code or not. Obviously, each project is unique, so my question here is not so much whether as...
{ "language": "en", "url": "https://stackoverflow.com/questions/17732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "189" }
Q: Repository organisation When I first started using revision control systems like CVS and SVN, I didn't really understand the concepts of the "trunk", branching, merging and tagging. I'm now starting to understand these concepts, and really get the importance and power behind them. So, I'm starting to do it properly....
{ "language": "en", "url": "https://stackoverflow.com/questions/17735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Tracking Useful Information What do the clever programmers here do to keep track of handy programming tricks and useful information they pick up over their many years of experience? Things like useful compiler arguments, IDE short-cuts, clever code snippets, etc. I sometimes find myself frustrated when looking up so...
{ "language": "en", "url": "https://stackoverflow.com/questions/17770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Anyone know a quick way to get to custom attributes on an enum value? This is probably best shown with an example. I have an enum with attributes: public enum MyEnum { [CustomInfo("This is a custom attrib")] None = 0, [CustomInfo("This is another attrib")] ValueA, [CustomInfo("This has an extr...
{ "language": "en", "url": "https://stackoverflow.com/questions/17772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What Certificate Authority Software is Available? I am running a number of SSL-encrypted websites, and need to generate certificates to run on these. They are all internal applications, so I don't need to purchase a certificate, I can create my own. I have found it quite tedious to do everything using openssl all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/17781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Default Internet connection on Dual LAN Workstation I know this is not programming directly, but it's regarding a development workstation I'm setting up. I've got a Windows Server 2003 machine that needs to be on two LAN segments at the same time. One of them is a 10.17.x.x LAN and the other is 10.16.x.x The proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/17785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Warning C4341 - 'XX': signed value is out of range for enum constant When compiling my C++ .Net application I get 104 warnings of the type: Warning C4341 - 'XX': signed value is out of range for enum constant Where XX can be * *WCHAR *LONG *BIT *BINARY *GUID *... I can't seem to remove these warnings what...
{ "language": "en", "url": "https://stackoverflow.com/questions/17786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Getting the Remote Name Address (not IP) I wanted to show the users Name Address (see www.ipchicken.com), but the only thing I can find is the IP Address. I tried a reverse lookup, but didn't work either: IPAddress ip = IPAddress.Parse(this.lblIp.Text); string hostName = Dns.GetHostByAddress(ip).HostName; this.lblHo...
{ "language": "en", "url": "https://stackoverflow.com/questions/17795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Warning: Found conflicts between different versions of the same dependent assembly I am currently developing a .NET application, which consists of 20 projects. Some of those projects are compiled using .NET 3.5, some others are still .NET 2.0 projects (so far no problem). The problem is that if I include an external...
{ "language": "en", "url": "https://stackoverflow.com/questions/17806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "350" }
Q: Recommendation for javascript form validation library Any recommendations for a javascript form validation library. I could try and roll my own (but I'm not very good at javascript). Needs to support checking for required fields, and preferably regexp validation of fields. A: I am about to start implementing javasc...
{ "language": "en", "url": "https://stackoverflow.com/questions/17817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: best practice for releasing Microsoft dll's in setup I'm working on a setup which wants to include the Microsoft.Web.Services3 (WSE 3.0) DLL. However, I typically do not like including Microsoft DLL's in our installs except by way of Microsoft's redistributables. There is both a developer and a redist install packag...
{ "language": "en", "url": "https://stackoverflow.com/questions/17825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I learn about parser combinators? I've found a few resources on the subject, but they all require a deep understanding of SmallTalk or Haskell, neither of which I know. A: Here are some parser combinator libraries in more mainstream languages: * *Spirit (C++) *Jparsec (Java) A: There are some great ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/17840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Performance comparison of RDF storage vs traditional database Has someone experiment RDF storage solution like Sesame? I'm looking for performance review of this kind of solution compared to the traditional database solution. A: I've used sesame extensively in my projects at work. I've found it to be speedy and re...
{ "language": "en", "url": "https://stackoverflow.com/questions/17845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Select ..... where .... OR Is there a way to select data where any one of multiple conditions occur on the same field? Example: I would typically write a statement such as: select * from TABLE where field = 1 or field = 2 or field = 3 Is there a way to instead say something like: select * from TABLE where field = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How to encrypt connection string in WinForms 1.1 app.config? Just looking for the first step basic solution here that keeps the honest people out. Thanks, Mike A: This might help you along the way: http://msdn.microsoft.com/en-us/library/aa302403.aspx http://msdn.microsoft.com/en-us/library/aa302406.aspx The articl...
{ "language": "en", "url": "https://stackoverflow.com/questions/17877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Listen for events in another application Suppose I have two applications written in C#. The first is a third party application that raises an event called "OnEmailSent". The second is a custom app that I've written that I would like to somehow subscribe to the "OnEmailSent" even of the first application. Is there an...
{ "language": "en", "url": "https://stackoverflow.com/questions/17878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Mac iWork/Pages Automation There is a rich scripting model for Microsoft Office, but not so with Apple iWork, and specifically the word processor Pages. While there are some AppleScript hooks, it looks like the best approach is to manipulate the underlying XML data. This turns out to be pretty ugly because (for exam...
{ "language": "en", "url": "https://stackoverflow.com/questions/17880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to distribute python command-line tools? My current setup.py script works okay, but it installs tvnamer.py (the tool) as tvnamer.py into site-packages or somewhere similar.. Can I make setup.py install tvnamer.py as tvnamer, and/or is there a better way of installing command-line applications? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/17893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Enabling a button in WPF depending on ListBox.SelectedIndex I have a rather classic UI situation - two ListBoxes named SelectedItems and AvailableItems - the idea being that the items you have already selected live in SelectedItems, while the items that are available for adding to SelectedItems (i.e. every item that...
{ "language": "en", "url": "https://stackoverflow.com/questions/17906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Best Practices for AS3 XML Parsing I've been having some trouble parsing various types of XML within flash (specifically FeedBurner RSS files and YouTube Data API responses). I'm using a URLLoader to load a XML file, and upon Event.COMPLETE creating a new XML object. 75% of the time this work fine, and every now and...
{ "language": "en", "url": "https://stackoverflow.com/questions/17911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any recommendations for lightweight .net Win Forms HTML renderer controls? Trying to avoid the .net WebBrowser control (I don't need to navigate to a url, print rendered html or any of the other inbuilt goodies). Wrapping the IE dll seems a bit heavyweight. I simply require something that can display basic html mar...
{ "language": "en", "url": "https://stackoverflow.com/questions/17922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using an ocx in a console application I want to quickly test an ocx. How do I drop that ocx in a console application. I have found some tutorials in CodeProject and but are incomplete. A: Isn't an OCX an ActiveX User Control? (something that you put onto a form for the user to interact with)? The easiest way I kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/17928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When do you use sIFR? I heard Joel and Jeff talking about sIFR in one of the early podcasts. I've been using it on www.american-data.com and www.chartright.us with some fairly mixed results. Yesterday I was informed that the first line of text on my website appeared upside down in Internet Explorer 6 without flash...
{ "language": "en", "url": "https://stackoverflow.com/questions/17939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to round up the result of integer division? I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java. If I have x items which I want to display in chunks of y per page, how many pages will be needed? A: In need of an extension method: public static int Divi...
{ "language": "en", "url": "https://stackoverflow.com/questions/17944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "386" }
Q: C# Corrupt Memory Error I cant post the code (proprietary issues) but does anyone know what types of things would cause the following error in C#. It is being thrown by a VOIP client that I wrote (using counterpath api) when the call is ended by the other client. The error is: System.AccessViolationException was unh...
{ "language": "en", "url": "https://stackoverflow.com/questions/17947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Automating WSDL.exe in a Custom Build I have a web application written in C# that consumes several internal web services. We have a development tier, a testing tier, and a production tier. Also, we use the WSDL.exe command to generate a Proxies.cs file for a given tier's web services. When we are ready to deploy o...
{ "language": "en", "url": "https://stackoverflow.com/questions/17948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Solution deployment, CM, InstallShield People, We have 4 or 5 utilities that work in conjunction with our application. These utilities are either .bat files, or VB apps, PowerBuilder, etc. I am trying to manage these utils in source control, and am trying to figure out a better way to assign versions to them. Right ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PowerShell App.Config Has anyone worked out how to get PowerShell to use app.config files? I have a couple of .NET DLL's I'd like to use in one of my scripts but they expect their own config sections to be present in app.config/web.config. A: I'm guessing that the settings would have to be in powershell.exe.config ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How to generate a core dump in Linux on a segmentation fault? I have a process in Linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails? A: As explained above the real question being asked here is how to enable core dumps on a system where they are not enabled. That que...
{ "language": "en", "url": "https://stackoverflow.com/questions/17965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "245" }
Q: Add a shortcut to Startup folder with parameters in Adobe AIR I am trying to include a link to my application in the Startup folder with a parameter passed to the program. I think it would work if I created the shortcut locally and then added it to my source. After that I could copy it to the Startup folder on firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/17966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What Comes After The %? I've searched for this a little but I have not gotten a particularly straight answer. In C (and I guess C++), how do you determine what comes after the % when using printf?. For example: double radius = 1.0; double area = 0.0; area = calculateArea( radius ); printf( "%10.1f %10.2\n", radi...
{ "language": "en", "url": "https://stackoverflow.com/questions/17980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: AnkhSVN Cannot Connect Due to Proxy Alright, this might be a bit of a long shot, but I have having problems getting AnkhSVN to connect from Visual Studio 2005 to an external SVN server. There is a network proxy in the way, but I can't seem to find a way in AnkhSVN to configure the proxy and doesn't seem to be detect...
{ "language": "en", "url": "https://stackoverflow.com/questions/17984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Easy way to backport Java 6 code to Java 5? We've been developing a windows based application using Java for a while now, but NOW we want to make a mac port and have to reverse of code from Java 6 and Java 5. Is there any easy way to do this rather than re-coding Java 6 specific code? We'd like to keep our code up...
{ "language": "en", "url": "https://stackoverflow.com/questions/17993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Recommendations for a .NET component to access an email inbox I've been asked to write a Windows service in C# to periodically monitor an email inbox and insert the details of any messages received into a database table. My instinct is to do this via POP3 and sure enough, Googling for ".NET POP3 component" produces ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is AnkhSVN any good? I asked a couple of coworkers about AnkhSVN and neither one of them was happy with it. One of them went as far as saying that AnkhSVN has messed up his devenv several times. What's your experience with AnkhSVN? I really miss having an IDE integrated source control tool. A: I tried version 1, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/18010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How do I create a self signed SSL certificate to use while testing a web app How do I create a self signed SSL certificate for an Apache Server to use while testing a web app? A: How do I create a self-signed SSL Certificate for testing purposes? from http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#selfcert: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Why go 64 bit OS? On these questions: * *Which Vista edition is best for a developer machine? *Vista or XP for Dev Machine People are recommending 64 bit, can you explain why? Is it just so you can have more then 3GB of addressable RAM that 32 bit gives you? And how does Visual Studio benefit from all this extra...
{ "language": "en", "url": "https://stackoverflow.com/questions/18035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Prevent WebBrowser control from swallowing exceptions I'm using the System.Windows.Forms.WebBrowser, to make a view a-la Visual Studio Start Page. However, it seems the control is catching and handling all exceptions by silently sinking them! No need to tell this is a very unfortunate behaviour. void webBrowserNavig...
{ "language": "en", "url": "https://stackoverflow.com/questions/18059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: The best way of checking for -moz-border-radius support I wanted some of those spiffy rounded corners for a web project that I'm currently working on. I thought I'd try to accomplish it using javascript and not CSS in an effort to keep the requests for image files to a minimum (yes, I know that it's possible to comb...
{ "language": "en", "url": "https://stackoverflow.com/questions/18077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Best traffic / performance / usage monitoring module? Are there any open source (or I guess commercial) packages that you can plug into your site for monitoring purposes? I'd like something that we can hook up to our ASP.NET site and use to provide reporting on things like: * *performance over time *current load...
{ "language": "en", "url": "https://stackoverflow.com/questions/18080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Validate decimal numbers in JavaScript - IsNumeric() What's the cleanest, most effective way to validate decimal numbers in JavaScript? Bonus points for: * *Clarity. Solution should be clean and simple. *Cross-platform. Test cases: 01. IsNumeric('-1') => true 02. IsNumeric('-1.5') => true 03. IsNumeric...
{ "language": "en", "url": "https://stackoverflow.com/questions/18082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2543" }
Q: Modifying Cruise Control.NET We are investigating using CruiseControl.NET as both a Continues Integration build provider, as well as automating the first part of our deployment process. Has anyone modified CruiseControl.NET's dashboard to add custom login and user roles (IE, Separate out access to forcing a build to...
{ "language": "en", "url": "https://stackoverflow.com/questions/18093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In C#, do you need to call the base constructor? In C#, if I have an inherited class with a default constructor, do I have to explicitly call the base class' constructor or will it be implicitly called? class BaseClass { public BaseClass() { // ... some code } } class MyClass : BaseClass { pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/18097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: How to keep track of the references to an object? In a world where manual memory allocation and pointers still rule (Borland Delphi) I need a general solution for what I think is a general problem: At a given moment an object can be referenced from multiple places (lists, other objects, ...). Is there a good way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ADO.NET Entity Framework vs NHibernate So the ADO.NET Entity Framework has gotten a little bit of bad press (in the form of blog entries and a petition) but I don't want to rush to judgement. I'm limited in time for experimentation but I was wondering has anyone worked with it yet with more empirical feedback? Fina...
{ "language": "en", "url": "https://stackoverflow.com/questions/18132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: cURL adding whitespace to post content? I am attempting to POST against a vendor's server using PHP 5.2 with cURL. I'm reading in an XML document to post against their server and then reading in a response: $request = trim(file_get_contents('test.xml')); $curlHandle = curl_init($servletURL); curl_setopt($curlHandle,...
{ "language": "en", "url": "https://stackoverflow.com/questions/18166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the ASP.NET Connection String Format for a Linked Server? I've got a database server that I am unable to connect to using the credentials I've been provided. However, on the staging version of the same server, there's a linked server that points to the production database. Both the staging server and the link...
{ "language": "en", "url": "https://stackoverflow.com/questions/18167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Copying Files over an Intermittent Network Connection I am looking for a robust way to copy files over a Windows network share that is tolerant of intermittent connectivity. The application is often used on wireless, mobile workstations in large hospitals, and I'm assuming connectivity can be lost either momentarily...
{ "language": "en", "url": "https://stackoverflow.com/questions/18172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Best way to learn SQL Server So I'm getting a new job working with databases (Microsoft SQL Server to be precise). I know nothing about SQL much less SQL Server. They said they'd train me, but I want to take some initiative to learn about it on my own to be ahead. Where's the best place to start (tutorials, books...
{ "language": "en", "url": "https://stackoverflow.com/questions/18194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you test the usability of your user interfaces How do you test the usability of the user interfaces of your applications - be they web or desktop? Do you just throw it all together and then tweak it based on user experience once the application is live? Or do you pass it to a specific usability team for tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/18197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Query a union table with fields as columns I'm not quite sure if this is possible, or falls into the category of pivot tables, but I figured I'd go to the pros to see. I have three basic tables: Card, Property, and CardProperty. Since cards do not have the same properties, and often multiple values for the same prop...
{ "language": "en", "url": "https://stackoverflow.com/questions/18216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server 2005 insert trigger not inserting enough records I have a table in a SQL Server 2005 database with a trigger that is supposed to add a record to a different table whenever a new record is inserted. It seems to work fine, but if I execute an Insert Into on the master table that uses a subquery as the sourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/18223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Whats the best way to securely publish a site post build? So, in your experience, whats the best way? Is there a secure way that's also scriptable/triggerable in a build automation tool? Edit: I should mention this is windows/.net and I'll be deploying to iis6 A: For some projects I use Capistrano to push out to li...
{ "language": "en", "url": "https://stackoverflow.com/questions/18224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Creation Date of Compiled Executable (VC++ 2005) The creation date of an executable linked in VS2005 is not set to the real creation-date of the .exe file. Only a complete re-build will set the current date, a re-link will not do it. Obviously the file is set to some date, which is taken from one of the project-file...
{ "language": "en", "url": "https://stackoverflow.com/questions/18250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unit testing kernel drivers I'm looking for a testing framework for the Windows kernel environment. So far, I've found cfix. Has any one tried it? Are there alternatives? A: Being the author of cfix, I might be a little biased here -- but as a matter of fact, I am currently not aware of any other unit-testing frame...
{ "language": "en", "url": "https://stackoverflow.com/questions/18253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Getting stack traces on Unix systems, automatically What methods are there for automatically getting a stack trace on Unix systems? I don't mean just getting a core file or attaching interactively with GDB, but having a SIGSEGV handler that dumps a backtrace to a text file. Bonus points for the following optional f...
{ "language": "en", "url": "https://stackoverflow.com/questions/18265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Recommend a tool to manage Extended Properties in SQL server 2005 Server Management Studio tends to be a bit un-intuitive when it comes to managing Extended Properties, so can anyone recommend a decent tool that improves the situation. One thing I would like to do is to have templates that I can apply objects, thus ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best Way to Begin Learning Web Application Design I'm a long time hobbyist programmer interested in getting into web application development. I have a fair amount of personal experience with various non-web languages, but have never really branched over to web applications. I don't usually have any issues learning n...
{ "language": "en", "url": "https://stackoverflow.com/questions/18284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How Do You Secure database.yml? Within Ruby on Rails applications database.yml is a plain text file that stores database credentials. When I deploy my Rails applications I have an after deploy callback in my Capistrano recipe that creates a symbolic link within the application's /config directory to the database.ym...
{ "language": "en", "url": "https://stackoverflow.com/questions/18290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Unit testing in Delphi - how are you doing it? I'm wondering how the few Delphi users here are doing unit testing, if any? Is there anything that integrates with the IDE that you've found works well? If not, what tools are you using and do you have or know of example mini-projects that demonstrate how it all works...
{ "language": "en", "url": "https://stackoverflow.com/questions/18291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: What are some good SSH Servers for windows? Trying to setup an SSH server on Windows Server 2003. What are some good ones? Preferably open source. I plan on using WinSCP as a client so a server which supports the advanced features implemented by that client would be great. A: I agree that cygwin/OpenSSH is the best...
{ "language": "en", "url": "https://stackoverflow.com/questions/18292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: How do I change the title bar icon in Adobe AIR? I cannot figure out how to change the title bar icon (the icon in the furthest top left corner of the application) in Adobe AIR. It is currently displaying the default 'Adobe AIR' red icon. I have been able to change it in the system tray, however. A: Does the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/18298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Web server farms with IIS ? Basic Infos Can somebody point me to a resource that explains how to go about having 2+ IIS web server clustered (or Webfarm not sure what its called) ? All I need is something basic, an overview how and where to start. Can't seem to find anything... A: This MSDN magazine article has a g...
{ "language": "en", "url": "https://stackoverflow.com/questions/18305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Mixing 32 bit and 16 bit code with nasm This is a low-level systems question. I need to mix 32 bit and 16 bit code because I'm trying to return to real-mode from protected mode. As a bit of background information, my code is doing this just after GRUB boots so I don't have any pesky operating system to tell me what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: TCL development: debug environment I like a bit of TiVo hacking in spare time - TiVo uses a Linux variant and TCL. I'd like to write TCL scripts on my Windows laptop, test them and then FTP them over to my TiVo. Can I have a recommendation for a TCL debugging environment for Windows, please? A: Komodo from Activest...
{ "language": "en", "url": "https://stackoverflow.com/questions/18326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: I would like some tips for debugging WCF Web Service exceptions I've created a WCF service and when I browse to the endpoint I get the following fault: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/ws/2005...
{ "language": "en", "url": "https://stackoverflow.com/questions/18348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How would I get started writing my own firewall? There is previous little on the google on this subject other than people asking this very same question. How would I get started writing my own firewall? I'm looking to write one for the windows platform but I would also be interested in this information for other ope...
{ "language": "en", "url": "https://stackoverflow.com/questions/18391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Most succinct way to determine if a variable equals a value from a 'list' of values If I have a variable in C# that needs to be checked to determine if it is equal to one of a set of variables, what is the best way to do this? I'm not looking for a solution that stores the set in an array. I'm more curious to see if...
{ "language": "en", "url": "https://stackoverflow.com/questions/18407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Get a number from a sql string range I have a column of data that contains a percentage range as a string that I'd like to convert to a number so I can do easy comparisons. Possible values in the string: '<5%' '5-10%' '10-15%' ... '95-100%' I'd like to convert this in my select where clause to just the first number...
{ "language": "en", "url": "https://stackoverflow.com/questions/18413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Elegant way to remove items from sequence in Python? When I am writing code in Python, I often need to remove items from a list or other sequence type based on some criteria. I haven't found a solution that is elegant and efficient, as removing items from a list you are currently iterating through is bad. For examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/18418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: How To Get Label Of Combobox to Fade In Flex I've got a combo-box that sits inside of a panel in Flex 3. Basically I want to fade the panel using a Fade effect in ActionScript. I can get the fade to work fine, however the label of the combo-box does not fade. I had this same issue with buttons and found that thei...
{ "language": "en", "url": "https://stackoverflow.com/questions/18419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to bind Windows Forms properties to ApplicationSettings in C#? In a desktop application needing some serious re-factoring, I have several chunks of code that look like this: private void LoadSettings() { WindowState = Properties.Settings.Default.WindowState; Location = Properties.Settings.Default.Wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/18421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: I can share a SQL Server Reporting Services Data SOURCE... what about a Data SET? I am developing a Reporting Services solution for a DOD website. Frequently I'll have a report and want to have as a parameter the Service (in addition to other similar mundane, but repetitive parameters like Fiscal Year, Data Effecti...
{ "language": "en", "url": "https://stackoverflow.com/questions/18432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Encryption in C# Web-Services I'm looking for a simple way to encrypt my soap communication in my C# Web-Service. I was looking into WSE 3.0 but it seems Microsoft dropped support for it, and therefore it's not straightforward to use. It seems WCF could've been an option but I prefer not to upgrade from .NET 2.0 . A...
{ "language": "en", "url": "https://stackoverflow.com/questions/18448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Dealing with PHP server and MySQL server in different time zones For those of us who use standard shared hosting packages, such as GoDaddy or Network Solutions, how do you handle datetime conversions when your hosting server (PHP) and MySQL server are in different time zones? Also, does anybody have some best practi...
{ "language": "en", "url": "https://stackoverflow.com/questions/18449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is Mono ready for prime time? Has anyone used Mono, the open source .NET implementation on a large or medium sized project? I'm wondering if it's ready for real world, production environments. Is it stable, fast, compatible, ... enough to use? Does it take a lot of effort to port projects to the Mono runtime, or is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "314" }
Q: Best practise to authorize all users for just one page What is the best way to authorize all users to one single page in a asp.net website. For except the login page and one other page, I deny all users from viewing pages in the website. How do you make this page accessible to all users? A: I've been using forms a...
{ "language": "en", "url": "https://stackoverflow.com/questions/18460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .Net Parse versus Convert In .Net you can read a string value into another data type using either <datatype>.parse or Convert.To<DataType>. I'm not familiar with the fundamentals of parse versus convert so I am always at a loss when asked which one is better/faster/more appropriate. So - which way is best in what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Sending a mouse click to a button in the taskbar using C# In an application that I am currently working on, a requirement is to bring a window of an external application to the foreground. Making Win32 API calls such as BringWindowToTop and SetForeground window do not work all the time. This is due to some restric...
{ "language": "en", "url": "https://stackoverflow.com/questions/18505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Converting List to List I have a list of integers, List<Integer> and I'd like to convert all the integer objects into Strings, thus finishing up with a new List<String>. Naturally, I could create a new List<String> and loop through the list calling String.valueOf() for each integer, but I was wondering if there was ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "117" }
Q: C#: What Else Do You Use Besides DataSet I've found myself increasingly unsatisfied with the DataSet/DataTable/DataRow paradigm in .Net, mostly because it's often a couple of steps more complicated than what I really want to do. In cases where I'm binding to controls, DataSets are fine. But in other cases, there s...
{ "language": "en", "url": "https://stackoverflow.com/questions/18533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: shortcut for creating a Map from a List in groovy? I'd like some sorthand for this: Map rowToMap(row) { def rowMap = [:]; row.columns.each{ rowMap[it.name] = it.val } return rowMap; } given the way the GDK stuff is, I'd expect to be able to do something like: Map rowToMap(row) { row.columns.collectM...
{ "language": "en", "url": "https://stackoverflow.com/questions/18538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "119" }
Q: Exact age calculation Possible Duplicate: How do I calculate someone's age in C#? Maybe this could be silly but and I don't have issues with my age but sometimes it is good to calculate the exact age of someone, I have introduced my birthdate in my profile (01/12/1975) "dd/mm/yyyy" and it calculated 33 and I'm 32...
{ "language": "en", "url": "https://stackoverflow.com/questions/18584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why can't you bind the Size of a windows form to ApplicationSettings? Update: Solved, with code I got it working, see my answer below for the code... Original Post As Tundey pointed out in his answer to my last question, you can bind nearly everything about a windows forms control to ApplicationSettings pretty effor...
{ "language": "en", "url": "https://stackoverflow.com/questions/18585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best practice for integrating TDD with web application development? Unit testing and ASP.NET web applications are an ambiguous point in my group. More often than not, good testing practices fall through the cracks and web applications end up going live for several years with no tests. The cause of this pain point g...
{ "language": "en", "url": "https://stackoverflow.com/questions/18601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Accessing an Exchange Server without Outlook Is there a method of accessing an Exchange server that does not have IMAP or POP3 enabled without Outlook? It does not appear that Outlook Express supports Exchange (only IMAP and POP3). A: The only way I can think of is if the Exchange server has Outlook Web Access (OWA...
{ "language": "en", "url": "https://stackoverflow.com/questions/18606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is it a bad idea to expose inheritance hierarchy in namespace structure? I've got a group of inter-related classes that are all overridden together to create a particular implementation. I'm wondering if it is a good idea to enclose the interrelated subclasses in a namespace. For example purposes, consider the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/18608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the best way to write a form in ASP.NET MVC? What is the the best way to write a form to submit some data in ASP.NET MVC? Is it as Scott Guthrie demonstrates here? Are there better approaches? Perhaps with less using of strings? A: I don't really like strings in my code, as it isn't possible to refactor. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/18614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses? How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses? A: It may be worth mentioning that running tomcat as a non root user (which you should be doing) will prevent you from usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/18617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: How to monitor a text file in realtime For debugging purposes in a somewhat closed system, I have to output text to a file. Does anyone know of a tool that runs on windows (console based or not) that detects changes to a file and outputs them in real-time? A: Tail is the best answer so far. If you don't use Windows...
{ "language": "en", "url": "https://stackoverflow.com/questions/18632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: Why do we need entity objects? I really need to see some honest, thoughtful debate on the merits of the currently accepted enterprise application design paradigm. I am not convinced that entity objects should exist. By entity objects I mean the typical things we tend to build for our applications, like "Person", "Ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/18655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "141" }
Q: Getting UI text from external app in C# Is it possible to get UI text from an external application in C#. In particular, is there a way to read Unicode text from a label (I assume it's a normal Windows label control) from an external Win32 app that was written by a 3rd party? The text is visible, but not selectable...
{ "language": "en", "url": "https://stackoverflow.com/questions/18661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Quick easy way to migrate SQLite3 to MySQL? Anyone know a quick easy way to migrate a SQLite3 database to MySQL? A: * *http://sqlfairy.sourceforge.net/ *http://search.cpan.org/dist/SQL-Translator/ aptitude install sqlfairy libdbd-sqlite3-perl sqlt -f DBI --dsn dbi:SQLite:../.open-tran/ten-sq.db -t MySQL --add-dr...
{ "language": "en", "url": "https://stackoverflow.com/questions/18671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "254" }
Q: I/O permission settings using .net installer I am creating a program that will be installed using the .net installer project. The program writes to settings files to its directory in the Program Files dir. It believe there are some active directory settings that will prevent the application from righting to that dir...
{ "language": "en", "url": "https://stackoverflow.com/questions/18675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Random integer in VB.NET I need to generate a random integer between 1 and n (where n is a positive whole number) to use for a unit test. I don't need something overly complicated to ensure true randomness - just an old-fashioned random number. How would I do that? A: As has been pointed out many times, the suggest...
{ "language": "en", "url": "https://stackoverflow.com/questions/18676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: How to display "12 minutes ago" etc in a PHP webpage? Can anyone tell me how I can display a status message like "12 seconds ago" or "5 minutes ago" etc in a web page? A: Here is the php code for the same: function time_since($since) { $chunks = array( array(60 * 60 * 24 * 365 , 'year'), array(6...
{ "language": "en", "url": "https://stackoverflow.com/questions/18685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: GUI Automation testing - Window handle questions Our company is currently writing a GUI automation testing tool for compact framework applications. We have initially searched many tools but none of them was right for us. By using the tool you can record test-cases and group them together to test-suites. For every t...
{ "language": "en", "url": "https://stackoverflow.com/questions/18696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Webservice alive forever I often use webservice this way public void CallWebservice() { mywebservice web = new mywebservice(); web.call(); } but sometimes I do this private mywebservice web; public Constructor() { web = new mywebservice(); } public void CallWebservice() { web.call(); } The second...
{ "language": "en", "url": "https://stackoverflow.com/questions/18702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create Projects/Tasks for Project Server 2003 via C#? I need to be able to create basic MS Project items (tasks, projects, resources, etc.) programmatically from my app to my Project Server 2003 install, and haven't found any good examples. Can anyone point me to some good references or have some sample code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }