text
stringlengths
8
267k
meta
dict
Q: Integration Testing Http Proxy Server I have written a simple HTTP Proxy server in C# that I would like to integration/functional test. Is there a product already created that I could use to do this? If not, what is the best way to write my own tests for this (I already have unit tests)? A: To test the integratio...
{ "language": "en", "url": "https://stackoverflow.com/questions/104097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When to use Windows Workflow Foundation? Some things are easier to implement just by hand (code), but some are easier through WF. It looks like WF can be used to create (almost) any kind of algorithm. So (theoretically) I can do all my logic in WF, but it's probably a bad idea to do it for all projects. In what situ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "155" }
Q: Lowest cost Windows VPS hosting? For a while, I thought I'd host stuff at home because I can do whatever I want. However, hurricane Ike knocked out my power for a week, and I've finally realized this situation won't work. I have extremely low traffice websites (20 visitors/day), so I don't need tons of CPU or bandw...
{ "language": "en", "url": "https://stackoverflow.com/questions/104106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you increase the maximum heap size for the javac process in Borland JBuilder 2005/2006 In most modern IDEs there is a parameter that you can set to ensure javac gets enough heap memory to do its compilation. For reasons that are not worth going into here, we are tied for the time being to JBuilder 2005/2006,...
{ "language": "en", "url": "https://stackoverflow.com/questions/104115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Maximum # of Results in a Sitecore Droplink field? In Sitecore 6, one of my templates contains a "Droplink" field bound to the results of a particular sitecore query. This query currently returns approximately 200 items. When I look at an item that implements this template in the content editor, I can only see the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/104121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Finding GDI/User resource usage from a crash dump I have a crash dump of an application that is supposedly leaking GDI. The app is running on XP and I have no problems loading it into WinDbg to look at it. Previously we have use the Gdikdx.dll extension to look at Gdi information but this extension is not supporte...
{ "language": "en", "url": "https://stackoverflow.com/questions/104122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using multiple web projects with different languages in Visual Studio I need to combine a VB web project and a C# web project and have them run alongside each other in the same web root. For instance, I need to be able to navigate to localhost:1234/vbProjPage.aspx and then redirect to localhost:1234/cSharpProjPage....
{ "language": "en", "url": "https://stackoverflow.com/questions/104133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is "Best Practice" For Comparing Two Instances of a Reference Type? I came across this recently, up until now I have been happily overriding the equality operator (==) and/or Equals method in order to see if two references types actually contained the same data (i.e. two different instances that look the same)....
{ "language": "en", "url": "https://stackoverflow.com/questions/104158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: How do I embed an image in a .NET HTML Mail Message? I have an HTML Mail template, with a place holder for the image. I am getting the image I need to send out of a database and saving it into a photo directory. I need to embed the image in the HTML Message. I have explored using an AlternateView: AlternateView html...
{ "language": "en", "url": "https://stackoverflow.com/questions/104177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Is it safe to get values from a java.util.HashMap from multiple threads (no modification)? There is a case where a map will be constructed, and once it is initialized, it will never be modified again. It will however, be accessed (via get(key) only) from multiple threads. Is it safe to use a java.util.HashMap in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/104184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "167" }
Q: JPA 1 is not good enough Working in a medium size project during last 4 months - we are using JPA and Spring - I'm quite sure that JPA is not powerfull for projects that requires more than CRUD screen... Query interface is poor, Hibernate doesn't respect JPA spec all the time and lot of times I need to use hibe...
{ "language": "en", "url": "https://stackoverflow.com/questions/104185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove published wmi schema? I've published schema, and no longer have the dll's that contained the wmi provider that the schema was published from. How can I remove the schema? A: If you are talking about the assembly from your other question, you can simply use wbemtest.exe: * *Connect to Root namespac...
{ "language": "en", "url": "https://stackoverflow.com/questions/104188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Benefits of static code analysis What are the benefits of doing static code analysis on your source code? I was playing around with FxCop and I was wondering if there any benefits beyond making sure you are following the coding standards. A: Many classes of memory leaks and common logic errors can be caught static...
{ "language": "en", "url": "https://stackoverflow.com/questions/104196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: cURL in PHP returns different data in _FILE and _RETURNTRANSFER I have noticed that cURL in PHP returns different data when told to output to a file via CURLOPT_FILE as it does when told to send the output to a string via CURLOPT_RETURNTRANSFER. _RETURNTRANSFER seems to strip newlines and extra white space as if par...
{ "language": "en", "url": "https://stackoverflow.com/questions/104223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you troubleshoot WPF UI problems? I'm working on a WPF application that sometimes exhibits odd problems and appears to hang in the UI. It is inconsistent, it happens in different pages, but it happens often enough that it is a big problem. I should mention that it is not a true hang as described below. My f...
{ "language": "en", "url": "https://stackoverflow.com/questions/104224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Has TRUE always had a non-zero value? I have a co-worker that maintains that TRUE used to be defined as 0 and all other values were FALSE. I could swear that every language I've worked with, if you could even get a value for a boolean, that the value for FALSE is 0. Did TRUE used to be 0? If so, when did we switc...
{ "language": "en", "url": "https://stackoverflow.com/questions/104225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: how do I query multiple SQL tables for a specific key-value pair? Situation: A PHP application with multiple installable modules creates a new table in database for each, in the style of mod_A, mod_B, mod_C etc. Each has the column section_id. Now, I am looking for all entries for a specific section_id, and I'm hopi...
{ "language": "en", "url": "https://stackoverflow.com/questions/104230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I use DebugBreak() in C#? What is the syntax and which namespace/class needs to be imported? Give me sample code if possible. It would be of great help. A: https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debugger.break#System_Diagnostics_Debugger_Break #if DEBUG System.Diagnostics.Debugger...
{ "language": "en", "url": "https://stackoverflow.com/questions/104235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How do I match one letter or many in a PHP preg_split style regex I'm having an issue with my regex. I want to capture <% some stuff %> and i need what's inside the <% and the %> This regex works quite well for that. $matches = preg_split("/<%[\s]*(.*?)[\s]*%>/i",$markup,-1,(PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_...
{ "language": "en", "url": "https://stackoverflow.com/questions/104238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible in W3C's XML Schema language (XSD) to allow a series of elements to be in any order but still limit occurrences? I know about all and choice, but they don't account for a case where I do want some elements to be able to occur more than once, such as: <Root> <ThingA/> <ThingB/> <ThingC/> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: java.io.Console support in Eclipse IDE I use the Eclipse IDE to develop, compile, and run my Java projects. Today, I'm trying to use the java.io.Console class to manage output and, more importantly, user input. The problem is that System.console() returns null when an application is run "through" Eclipse. Eclipse ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/104254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "107" }
Q: xul: open a local html file relative to "myapp.xul" in xul browser in short: is there any way to find the current directory full path of a xul application? long explanation: I would like to open some html files in a xul browser application. The path to the html files should be set programmatically from the xul appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/104267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flash vs. Silverlight We are building a training website where we need to track viewers watching videos and store detailed info about the viewing (when they paused, if they watched the whole video etc) What should we consider when deciding between the two technologies? I forgot to add. This is for an in house app. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/104270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Trialware/licensing strategies I wrote a utility for photographers that I plan to sell online pretty cheap ($10). I'd like to allow the user to try the software out for a week or so before asking for a license. Since this is a personal project and the software is not very expensive, I don't think that purchasing the...
{ "language": "en", "url": "https://stackoverflow.com/questions/104291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I change the build directory that MSBuild uses under Team Foundation Build? I'm getting the following error when trying to build my app using Team Foundation Build: C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1682,9): error MSB3554: Cannot write to the output file "obj\Release\Company.Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/104292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I run another web site or web service side by side with Sharepoint? I'm getting a 404 error when trying to run another web service on an IIS 6 server which is also running Sharepoint 2003. I'm pretty sure this is an issue with sharepoint taking over IIS configuration. Is there a way to make a certain web se...
{ "language": "en", "url": "https://stackoverflow.com/questions/104293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Apache module FORM handling in C I'm implementing an Apache 2.0.x module in C, to interface with an existing product we have. I need to handle FORM data, most likely using POST but I want to handle the GET case as well. Nick Kew's Apache Modules book has a section on handling form data. It provides code examples for...
{ "language": "en", "url": "https://stackoverflow.com/questions/104313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you install Boost on MacOS? How do you install Boost on MacOS? Right now I can't find bjam for the Mac. A: Unless your compiler is different than the one supplied with the Mac XCode Dev tools, just follow the instructions in section 5.1 of Getting Started Guide for Unix Variants. The configuration and buildi...
{ "language": "en", "url": "https://stackoverflow.com/questions/104322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "204" }
Q: Use jQuery to replace XMLHttpRequest I am quite new to JavaScript libraries. I wanted to replace my current code with jQuery. My current code looks like this: var req; function createRequest() { var key = document.getElementById("key"); var keypressed = document.getElementById("keypressed"); keypressed.val...
{ "language": "en", "url": "https://stackoverflow.com/questions/104323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Performance of try-catch in php What kind of performance implications are there to consider when using try-catch statements in php 5? I've read some old and seemingly conflicting information on this subject on the web before. A lot of the framework I currently have to work with was created on php 4 and lacks many o...
{ "language": "en", "url": "https://stackoverflow.com/questions/104329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: SQL Query Help: Transforming Dates In A Non-Trivial Way I have a table with a "Date" column, and I would like to do a query that does the following: If the date is a Monday, Tuesday, Wednesday, or Thursday, the displayed date should be shifted up by 1 day, as in DATEADD(day, 1, [Date]) On the other hand, if it is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/104330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Objective-C switch using objects? I'm doing some Objective-C programming that involves parsing an NSXmlDocument and populating an objects properties from the result. First version looked like this: if([elementName compare:@"companyName"] == 0) [character setCorporationName:currentElementText]; else if([elementNa...
{ "language": "en", "url": "https://stackoverflow.com/questions/104339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: URLSCAN question I have uriscan installed on my Win2003 server and it is blocking an older ColdFusion script. The log entry has the following-- 2008-09-19 00:16:57 66.82.162.13 1416208729 GET /Admin/Uploads/Mountain/Wolf%2520Creek%2520gazeebo.jpg Rejected URL+is+double+escaped URL - - How do I get uriscan to allow ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any Metadata driven UI sample code? I am in the process of designing a .net windows forms application that uses metadata to drive the UI. Apart from finding http://msdn.microsoft.com/en-us/library/ms954610.aspx, I have nothing much to look forward to. Anyone here worked on metadata driven User interfaces? What are t...
{ "language": "en", "url": "https://stackoverflow.com/questions/104348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why won't my package upgrade with yum? I'm trying to upgrade a package using yum on Fedora 8. The package is elfutils. Here's what I have installed locally: $ yum info elfutils Installed Packages Name : elfutils Arch : x86_64 Version: 0.130 Release: 3.fc8 Size : 436 k Repo : installed Summary: A collection o...
{ "language": "en", "url": "https://stackoverflow.com/questions/104363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Mac OS X Java Swing Buttons are Disabled for no aparent reason I wrote an application in Java and when it runs on one customer's computer running OS X The Save and Export buttons are disabled. (Everything else works in the application.) Both of these buttons open up a standard save file dialog. Any ideas? A: The fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/104373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Tips on refactoring an outdated database schema Being stuck with a legacy database schema that no longer reflects your data model is every developer's nightmare. Yet with all the talk of refactoring code for maintainability I have not heard much of refactoring outdated database schemas. What are some tips on how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Error accessing Project > References window? In Visual Basic 6, when I attempt to access Project > References, it throws an error: Error accessing system registry I am: * *Logged in as the local computer administrator *running Windows XP Professional and *I can execute regedt32.exe and access all the regist...
{ "language": "en", "url": "https://stackoverflow.com/questions/104383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Information on how to use margins I need some info on how to use margins and how exactly padding works. For example: Should I put a line to occupy the whole width of the page (no matter what resolution is used to display the web page) letting just a small border on each side, how could I achieve this? A: Have a loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/104395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I generate all permutations of a list? How do I generate all the permutations of a list? For example: permutations([]) [] permutations([1]) [1] permutations([1, 2]) [1, 2] [2, 1] permutations([1, 2, 3]) [1, 2, 3] [1, 3, 2] [2, 1, 3] [2, 3, 1] [3, 1, 2] [3, 2, 1] A: One can indeed iterate over the first e...
{ "language": "en", "url": "https://stackoverflow.com/questions/104420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "824" }
Q: How do I download the source for BIRT? The Eclipse projects are all stored in the Eclipse Foundation CVS servers. Using the source is a great way to debug your code and to figure out how to do new things. Unfortunately in a large software project like BIRT, it can be difficult to know which projects and versions...
{ "language": "en", "url": "https://stackoverflow.com/questions/104439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Memory footprint issues with JAVA, JNI, and C application I have a piece of an application that is written in C, it spawns a JVM and uses JNI to interact with a Java application. My memory footprint via Process Explorer gets upto 1GB and runs out of memory. Now as far as I know it should be able to get upto 2GB. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flash - Drag Two Movieclips at Once? I'm trying to create a map application similar to this. Click the SWF Preview tab on the left of the image. Specifically, noticed how you can pan around, and the clickable buttons on the map move with it. Basically, how do they do that? My application has a map that you can click...
{ "language": "en", "url": "https://stackoverflow.com/questions/104448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Applying Styles To ListItems in CheckBoxList How can styles be applied to CheckBoxList ListItems. Unlike other controls, such as the Repeater where you can specify <ItemStyle>, you can't seem to specify a style for each individual control. Is there some sort of work around? A: In addition to Andrew's answer... Dep...
{ "language": "en", "url": "https://stackoverflow.com/questions/104458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: For std::map, how will insert behave if it has to resize the container and the memory is not available? For std::map, how will insert behave if it has to resize the container and the memory is not available? A: STL map does not have to "resize" container. map (just like list) is a node based container; each insert ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way to force a style to a div element which already has a style="" attribute I'm trying to skin HTML output which I don't have control over. One of the elements is a div with a style="overflow: auto" attribute. Is there a way in CSS to force that div to use overflow: hidden;? A: You can add !important to...
{ "language": "en", "url": "https://stackoverflow.com/questions/104485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Mod-rewrites on apache: change all URLs Right now I'm doing something like this: RewriteRule ^/?logout(/)?$ logout.php RewriteRule ^/?config(/)?$ config.php I would much rather have one rules that would do the same thing for each url, so I don't have to keep adding them every time I add a new file. Also, I like to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot store load test results in a TFS 2005 results store I've setup a results store and when I publish results of a load test, I can't view the published test details. From the test run section of the build report I click on the published build and when I choose View Test Results Details from the Test Runs shortc...
{ "language": "en", "url": "https://stackoverflow.com/questions/104494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flash/FLEX 3 Argument Error 2082 Has anyone else experienced this error? Sometimes it pops up at the beginning of loading the application with Argument Error 2082. The only way I can solve it is by rebooting my machine. Restarting the browser doesn't even solve it. I have read about some solutions on the web, but I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best freely available C# wrapper for BITS? BITS, the Windows background intelligent transfer service. Looks like there are a few C# wrappers around that manage the interop to BITS, does anybody have any opinions on the best one? A: I found problems with using the Managed_BITS codeproject article and I fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/104505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Calling PHP functions within HEREDOC strings In PHP, the HEREDOC string declarations are really useful for outputting a block of html. You can have it parse in variables just by prefixing them with $, but for more complicated syntax (like $var[2][3]), you have to put your expression inside {} braces. In PHP 5, it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/104516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: WPF Validation for the whole form I have been seriously disappointed with WPF validation system. Anyway! How can I validate the complete form by clicking the "button"? For some reason everything in WPF is soo complicated! I can do the validation in 1 line of code in ASP.NET which requires like 10-20 lines of code i...
{ "language": "en", "url": "https://stackoverflow.com/questions/104520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Warm SQL Backup We have a warm sql backup. full backup nightly, txn logs shipped every so often during the day and restored. I need to move the data files to another disk. These DB's are in a "warm backup" state (such that I can't unmark them as read-only - "Error 5063: Database '<dbname>' is in warm standby. A w...
{ "language": "en", "url": "https://stackoverflow.com/questions/104525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do I have always use .css files? Are .css files always needed? Or may I have a .css "basic" file and define other style items inside the HTML page? Does padding, borders and so on always have to be defined in a .css file that is stored separately, or may I embed then into an HTML page? A: You can include CSS inside...
{ "language": "en", "url": "https://stackoverflow.com/questions/104550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the best source to learn about database replication mechanisms? What's the widest overview and where are the deepest analysis of different replication methods and problems? A: I would start here: wikipedia's replication article, then read a couple of related papers on general replication techniques such as t...
{ "language": "en", "url": "https://stackoverflow.com/questions/104554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing Greasemonkey metadata from within your script? Is there any way that my script can retrieve metadata values that are declared in its own header? I don't see anything promising in the API, except perhaps GM_getValue(). That would of course involve a special name syntax. I have tried, for example: GM_getValu...
{ "language": "en", "url": "https://stackoverflow.com/questions/104568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: CVS and Visual Studio 2008 - integration options I'd like to increase developers' "comfort level" in our team a bit. We are using Visual Studio 2008 and TortoiseCVS + WinCVS, but no integration as of yet. In your CVS/Visual Studio experience, what is the best integration tool in terms of "supports basic CVS function...
{ "language": "en", "url": "https://stackoverflow.com/questions/104579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does the iPhone SDK allow hardware access to the dock connector? I haven't been able to find any documentation on hardware access via the iPhone SDK so far. I'd like to be able to send signals via the dock connector to an external hardware device but haven't seen any evidence that this is accessible via the SDK (not...
{ "language": "en", "url": "https://stackoverflow.com/questions/104583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to configure ResourceBundleViewResolver in Spring Framework 2.0 Everywhere I look always the same explanation pop ups. Configure the view resolver. <bean id="viewMappings" class="org.springframework.web.servlet.view.ResourceBundleViewResolver"> <property name="basename" value="views" /> </bean> And th...
{ "language": "en", "url": "https://stackoverflow.com/questions/104587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's a good alternative to security questions? From Wired magazine: ...the Palin hack didn't require any real skill. Instead, the hacker simply reset Palin's password using her birthdate, ZIP code and information about where she met her spouse -- the security question on her Yahoo account, which was a...
{ "language": "en", "url": "https://stackoverflow.com/questions/104592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Sort on a string that may contain a number I need to write a Java Comparator class that compares Strings, however with one twist. If the two strings it is comparing are the same at the beginning and end of the string are the same, and the middle part that differs is an integer, then compare based on the numeric val...
{ "language": "en", "url": "https://stackoverflow.com/questions/104599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: Response.Redirect to new window I want to do a Response.Redirect("MyPage.aspx") but have it open in a new browser window. I've done this before without using the JavaScript register script method. I just can't remember how? A: This is not possible with Response.Redirect as it happens on the server side and cannot d...
{ "language": "en", "url": "https://stackoverflow.com/questions/104601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "121" }
Q: Accessing a Collection Through Reflection Is there a way to iterate (through foreach preferably) over a collection using reflection? I'm iterating over the properties in an object using reflection, and when the program gets to a type that is a collection, I'd like it to iterate over the contents of the collection a...
{ "language": "en", "url": "https://stackoverflow.com/questions/104603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Run MySQLDump without Locking Tables I want to copy a live production database into my local development database. Is there a way to do this without locking the production database? I'm currently using: mysqldump -u root --password=xxx -h xxx my_db1 | mysql -u root --password=xxx -h localhost my_db1 But it's locki...
{ "language": "en", "url": "https://stackoverflow.com/questions/104612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "507" }
Q: What is a good tutorial/howto on .net / c# socket programming I'm porting old VB6 code that uses the Winsock control to C#. I haven't done any socket programming and I wonder if anyone has a good reference/tutorial/howto that I can use to start getting up to speed. I'm appealing to the hive mind while I proceed wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/104617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What does -> mean in F#? I've been trying to get into F# on and off for a while but I keep getting put off. Why? Because no matter which 'beginners' resource I try to look at I see very simple examples that start using the operator ->. However, nowhere have I found as yet that provides a clear simple explanation of...
{ "language": "en", "url": "https://stackoverflow.com/questions/104618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Any good SQL Anywhere database schema comparison tools? Are there any good database schema comparison tools out there that support Sybase SQL Anywhere version 10? I've seen a litany of them for SQL Server, a few for MySQL and Oracle, but nothing that supports SQL Anywhere correctly. I tried using DB Solo, but it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I disable the eclipse server startup timeout? By default when using a webapp server in Eclipse Web Tools, the server startup will fail after a timeout of 45 seconds. I can increase this timeout in the server instance properties, but I don't see a way to disable the timeout entirely (useful when debugging ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/104640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: What was the first version of MS Office to officially support Unicode? I am doing some research on Unicode for a white-paper I am writing. Does anyone remember the first version of MS Office on the Windows platform that was fully Unicode compliant? Not having much luck Googling this answer out of the net. A: office...
{ "language": "en", "url": "https://stackoverflow.com/questions/104661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Specific Client Detection based on headers. Firefox extension? I have a website in which I want to be able to detect a certain user based upon a permanent attribute of a specific user. My original plan was to use an ip address but those are difficult to maintain since they can change frequently. Cookie's and Session...
{ "language": "en", "url": "https://stackoverflow.com/questions/104665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why should events in C# take (sender, EventArgs)? It's known that you should declare events that take as parameters (object sender, EventArgs args). Why? A: Because it's a good pattern for any callback mechanism, regardless of language. You want to know who sent the event (the sender) and data that is pertinent to...
{ "language": "en", "url": "https://stackoverflow.com/questions/104674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Are there native compilers for functional programming languages Joel Spolsky praised native-code versions of programs that have no dependencies on runtimes. What native-code compilers are available for functional languages? A: Yeah, also: ocamlc is the bytecode compiler, and ocamlopt is the native code compiler. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Web application to user instant messaging What options are available for receiving instant alerts from web applications? I have a time sensitive web application I need to tend to (approving expediated purchase order requests). I have thought of being notified by e-mail and SMS. Are there any programs to let my web...
{ "language": "en", "url": "https://stackoverflow.com/questions/104733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to determine order for new item? I have a members table in MySQL CREATE TABLE `members` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(65) collate utf8_unicode_ci NOT NULL, `order` tinyint(3) unsigned NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB; And I would like to let us...
{ "language": "en", "url": "https://stackoverflow.com/questions/104747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.net c# and logging ip access on every page and frequency Are there any prebuilt modules for this? Is there an event thats called everytime a page is loaded? I'm just trying to secure one of my more important admin sections. A: As blowdart said, simple IP Address logging is handled by IIS already. Simply right-c...
{ "language": "en", "url": "https://stackoverflow.com/questions/104764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Direct Path Load of TimeStamp Data With SQL*LDR The SQL-LDR documentation states that you need to do a convetional Path Load: When you want to apply SQL functions to data fields. SQL functions are not available during a direct path load I have TimeStamp data stored in a CSV file that I'm loading with SQL-LDR b...
{ "language": "en", "url": "https://stackoverflow.com/questions/104791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF service for receiving image What is the best way to create a webservice for accepting an image. The image might be quite big and I do not want to change the default receive size for the web application. I have written one that accepts a binary image but that I feel that there has to be a better alternative. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why aren't Java Collections remove methods generic? Why isn't Collection.remove(Object o) generic? Seems like Collection<E> could have boolean remove(E o); Then, when you accidentally try to remove (for example) Set<String> instead of each individual String from a Collection<String>, it would be a compile time er...
{ "language": "en", "url": "https://stackoverflow.com/questions/104799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "151" }
Q: How do you create automated tests of a Maven plugin using JUnit? I've got a (mostly) working plugin developed, but since its function is directly related to the project it processes, how do you develop unit and integration tests for the plugin. The best idea I've had is to create an integration test project for the...
{ "language": "en", "url": "https://stackoverflow.com/questions/104803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Reduce startup time of .NET windows form app running off of a networked drive I have a simple .NET 2.0 windows form app that runs off of a networked drive (e.g. \MyServer\MyShare\app.exe). It's very basic, and only loads the bare minimum .NET libraries. However, it still takes ~6-10 seconds to load. People think ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Winform application profiling CPU usage / spikes . I have a winforms application that normally is at about 2-4% CPU. We are seeing some spikes up to 27% of CPU for limited number of times. What is the best profiling tool to determine what is actually causing this spike. We use dottrace but i dont see how to map ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails Sessions over servers I'd like to have some rails apps over different servers sharing the same session. I can do it within the same server but don't know if it is possible to share over different servers. Anyone already did or knows how to do it? Thanks A: Use the Database Session store. The short of it is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/104837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Default Printer in Unmanaged C++ I'm looking for a way to find the name of the Windows default printer using unmanaged C++ (found plenty of .NET examples, but no success unmanaged). Thanks. A: Here is how to get a list of current printers and the default one if there is one set as the default. Also note: getting ze...
{ "language": "en", "url": "https://stackoverflow.com/questions/104844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Test if string is a guid without throwing exceptions? I want to try to convert a string to a Guid, but I don't want to rely on catching exceptions ( * *for performance reasons - exceptions are expensive *for usability reasons - the debugger pops up *for design reasons - the expected is not exceptional In oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/104850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "187" }
Q: "SetPropertiesRule" warning message when starting Tomcat from Eclipse When I start Tomcat (6.0.18) from Eclipse (3.4), I receive this message (first in the log): WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server: (project name)' did not...
{ "language": "en", "url": "https://stackoverflow.com/questions/104854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "111" }
Q: Looking for C# registry class Looking for C# class which wraps calls to do the following: read and write a key value read & write a key entry enumerate the entries in a key. This is important. For example, need to list all entries in: HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources (I scanned through som...
{ "language": "en", "url": "https://stackoverflow.com/questions/104866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PHP :: Emulate , forwarding user to page I'm working on a PHP application that links into the Protx VSP Direct payment gateway. To handle "3D Secure" requests from the credit card processing company, I need to forward the user to a different website, mimicking a form that has been posted. I'm trying to use the cURL ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Automating interaction with a HTML game using C#? There are some HTML based games (ie bootleggers.us) that have a simple login form and after that your entire game experience revolves around submitting various forms and reading information from the website itself. My Question is, what is the best way to go about wri...
{ "language": "en", "url": "https://stackoverflow.com/questions/104878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dealing with the rate of change in software development I am primarily a .NET developer, and in that sphere alone there are at any given time probably close to a dozen fascinating emerging technologies, some of them real game-changers, that I would love to delve into. Sadly, this appears to be beyond the limits of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I remove loadbalancer pollution from my access logs I have a pair of Sun web servers (iws6) sitting behind a load balancer. It likes to know if the web servers are up and continually asks for /alive.html. That is fine but how do I not log that in my access log? Failing that, how could I have the archiver stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/104892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharing binary folders in Visual Studio For a long time i have tried to work out the best way to access certain site files which i don't wish to be apart of a project or to ease integration with multiple developers (and talents, e.g. designers) on a single project. A lot of sites i have created have had folders with...
{ "language": "en", "url": "https://stackoverflow.com/questions/104901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Command Pattern : How to pass parameters to a command? My question is related to the command pattern, where we have the following abstraction (C# code) : public interface ICommand { void Execute(); } Let's take a simple concrete command, which aims to delete an entity from our application. A Person instance, fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/104918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Is there a .NET performance counter to show the rate of p/invoke calls being made? Is there a .NET performance counter to show the rate of p/invoke calls made? I've just noticed that the application I'm debugging was making a call into native code from managed land within a tight loop. The intended implementation ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Web designer for VS.NET ReportViewer Is there any designer for rdl files (visual studio .net reports) that can be used on a web browser? A: The best that I've seen is RsInteract: http://www.rsinteract.com/
{ "language": "en", "url": "https://stackoverflow.com/questions/104951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I want tell the VC++ Compiler to compile all code. Can it be done? I am using VS2005 VC++ for unmanaged C++. I have VSTS and am trying to use the code coverage tool to accomplish two things with regards to unit tests: * *See how much of my referenced code under test is getting executed *See how many methods of m...
{ "language": "en", "url": "https://stackoverflow.com/questions/104952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Position an element relative to its container I'm trying to create a horizontal 100% stacked bar graph using HTML and CSS. I'd like to create the bars using DIVs with background colors and percentage widths depending on the values I want to graph. I also want to have a grid lines to mark an arbitrary position along ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "197" }
Q: Testing Abstract Class Concrete Methods How would I design and organize tests for the concrete methods of an abstract class? Specifically in .NET. A: You have to create a subclass that implements the abstract methods (with empty methods), but none of the concrete ones. This subclass should be for testing only (it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Inspecting STL containers in Visual Studio debugging If I have a std::vector or std::map variable, and I want to see the contents, it's a big pain to see the nth element while debugging. Is there a plugin, or some trick to making it easier to watch STL container variables while debugging (VS2003/2005/2008)? A: To v...
{ "language": "en", "url": "https://stackoverflow.com/questions/104959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Are there any ORM tools for Haskell? What is the best way to interact with a database using Haskell? I'm accustomed to using some sort of ORM (Django's ORM, hibernate, etc.) and something similar would be nice when creating apps with HAppS. Edit: I'd like to be free to choose from Postgresql MySql and SQLite as far...
{ "language": "en", "url": "https://stackoverflow.com/questions/104960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How do I implement a two-pass scanner using Flex? As a pet-project, I'd like to attempt to implement a basic language of my own design that can be used as a web-scripting language. It's trivial to run a C++ program as an Apache CGI, so the real work lies in how to parse an input file containing non-code (HTML/CSS ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/104967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }