text
string
meta
dict
Q: What is the best tool for build automation for a one-man software shop? I am building Windows apps for a few clients. I read Joel on Software and took the Joel Test and realized I don't quite measure up. One place I am lacking is automated builds. What should I use to have automated builds? I have Windows apps t...
{ "language": "en", "url": "https://stackoverflow.com/questions/226530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Migrating Java UNO code from OpenOffice 2.4 to 3.0 I had a nifty small tool written to convert spreadsheets to plain text. Since it was my private hacker tool, it relied on OpenOffice 2.x to read the files. But when I installed OpenOffice 3 and tried to get it get it to run, I failed miserably, because I'm either mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/226550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C#: Partial Classes & Web Services: Separating form and functionality I am dabbling in the world of web services and I've been making a simple web service which mimics mathematical operations. Firstly it was simple, passing in two integers and then a binary operator would be applied to these (plus, minus etc) depend...
{ "language": "en", "url": "https://stackoverflow.com/questions/226554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: After Animation, View position resets I am trying to make a view slide from top to bottom. This is not a big deal, I used CABasicAnimation for this. The problem is when I want to remove the view. I use this animation. CABasicAnimation *animation; animation = [CABasicAnimation animationWithKeyPath:@"position"]; [anim...
{ "language": "en", "url": "https://stackoverflow.com/questions/226555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Turn off auto-collapsing for VB.NET in Visual Studio? The auto-collapse feature for code properties is neat AFTER you've got your properties all worked out, but while you're still editing them I find the feature to be REALLY annoying. How can you disable it? (I'm in VS2008 if it makes a difference) Edit: I'm not tal...
{ "language": "en", "url": "https://stackoverflow.com/questions/226561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I remove an entire HTML tag (and its contents) by its class using a regex? I am not very good with Regex but I am learning. I would like to remove some html tag by the class name. This is what I have so far : <div class="footer".*?>(.*?)</div> The first .*? is because it might contain other attribute and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/226562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is it possible to point a local instance IIS to a shared windows file server as the home directory? I'm just beginning work with IIS, .NET, etc. so I apologize if any of this is unclear. I recently installed a local instance of IIS and it's up and running just fine. I'm wondering if it's possible to point IIS to a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/226564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Alternative IDE for VB6 and VBA I've been spoiled by Visual studio 2008 and Eclipse and have to do a little maintainence work on a VB6 app. Does anyone know of an alternative/ updated IDE for VB6? A rewrite is not an option I'm just fixing a couple of bugs and it's a big codebase. A: Some time ago I did some resear...
{ "language": "en", "url": "https://stackoverflow.com/questions/226565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: XPath in C# code behind of WPF You can use XPath if you're binding the XML document in the XAML, but what if you're loading the XML document dynamically in the code behind? Is there any XPath methods available in the C# code behind? (using .NET 3.5 SP1) A: Load the XML into a XPathDocument in your code behind, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/226572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Strange program hang, what does this mean in debug? Strange program hang, what does this mean in debug? After attaching windbg I found the following: (1714.258): Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and han...
{ "language": "en", "url": "https://stackoverflow.com/questions/226577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Update a dll without stopping the service I would like to update a dll for a server process without stopping the service. How do I do that? A bit like how asp.net automatically picks up new dlls placed in the bin folder. A: Asp.Net uses a technique called shadow copy If you copy an updated dll into an application’s...
{ "language": "en", "url": "https://stackoverflow.com/questions/226581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: .NET SOAP Extension is throwing NullReferenceException inside MethodInfo? NOTE: Using .NET 2.0, and VS2005 as IDE Hello all, I'm working on logging webservice calls to our database, and finally got the SoapExtension configured and running using a very stripped-down implementation that was ported over from another pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/226587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PowerShell array initialization What's the best way to initialize an array in PowerShell? For example, the code $array = @() for($i=0; $i -lt 5;$i++) { $array[$i] = $FALSE } generates the error Array assignment failed because index '0' was out of range. At H:\Software\PowerShell\TestArray.ps1:4 char:10 + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: Deserializing XML to Objects in C# So I have xml that looks like this: <todo-list> <id type="integer">#{id}</id> <name>#{name}</name> <description>#{description}</description> <project-id type="integer">#{project_id}</project-id> <milestone-id type="integer">#{milestone_id}</milestone-id> <position type...
{ "language": "en", "url": "https://stackoverflow.com/questions/226599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: How do I perform automated unit testing in SSIS packages? How can I unit test SSIS packages? I want to be able to create and maintain unit tests for various components such as the workflow tasks, data flow tasks, event handlers, etc. Are there any existing techniques, frameworks, and/or tools that can be used? A: N...
{ "language": "en", "url": "https://stackoverflow.com/questions/226605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Can you reference appSettings in an SSRS report? Using SSRS2005, can you pull in values specified in the SSRS Web.Config file (think appSettings)? I'm needing to build up a dynamic hyperlink in a series of reports and would like this to be based on a value set in a config file. At present, it seems my only option...
{ "language": "en", "url": "https://stackoverflow.com/questions/226607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to transform a time value into YYYY-MM-DD format in Java? How can I transform a time value into YYYY-MM-DD format in Java? long lastmodified = file.lastModified(); String lasmod = /*TODO: Transform it to this format YYYY-MM-DD*/ A: final Date modDate = new Date(lastmodified); final SimpleDateFormat f = new Si...
{ "language": "en", "url": "https://stackoverflow.com/questions/226618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: possible javascript exploits from exposed link? On a page from a website (one of ours) I can enter in the url the following code: javascript:createNewWindow('Something', 100, 100, 'Text') Is there a way someone can exploit this? function createNewWindow(url, widthIn, heightIn, title) { var strO...
{ "language": "en", "url": "https://stackoverflow.com/questions/226637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sharing labels in TFS? If I've created a label in TFS, assigning it to several files, my coworkers cannot change the versions of files (nor add other files) to that label. We get this error: TF14077: The owner of a label cannot be changed. Researching the problem, I found this article, which states: It is possibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/226643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting up SMTP under IIS 7 on Windows Server 2008 Website started life originally under IIS 6 and the site worked great there. Now after relocating to a new server running W2K8S, everything but mail delivery from the website now works great under IIS 7. Researched briefly on the Web to see if anybody had a good res...
{ "language": "en", "url": "https://stackoverflow.com/questions/226655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Parse RSS with jQuery I want to use jQuery to parse RSS feeds. Can this be done with the base jQuery library out of the box or will I need to use a plugin? A: Use Google AJAX Feed API unless your RSS data is private. It's fast, of course. https://developers.google.com/feed/ A: UPDATE [4/25/2016] Now better writte...
{ "language": "en", "url": "https://stackoverflow.com/questions/226663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "194" }
Q: What fields can a nested class access of the class it's nested in? I have a web service in C# and would like to have a nested inner class, that abstracts away the session collection, something like this: public class Service : System.Web.Services.WebService { [WebMethod] public string Foo(string ticket) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery Tabs - issue with nested tabs - Activating sub tab on initial load I have an issue with nested jquery tabs and needs some help/pointer. Currently I have 5 Parent tabs and have few sub tabs under each parent tabs. When page gets loaded I want to show a particular Parent tab and one of its child tab active. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the system HTTP proxy configuration in Java Is it possible to get the system proxy configuration in Java? In the Java Control Panel, you can set a proxy configuration. How can I access to that proxy configuration in order to open URL connections behind a proxy? A: oh, just look at that question. there wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/226677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: db4o client/server appears to only be able to process one query at a time? We're evaluating db4o (an OO-DBMS from http://www.db4o.com). We've put together a performance test for client/server mode, where we spin up a server, then hammer it with several clients at once. It seems like the server can only process one...
{ "language": "en", "url": "https://stackoverflow.com/questions/226681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: ant filtering - fail if property not set I've got a ant build.xml that uses the <copy> task to copy a variety of xml files. It uses filtering to merge in properties from a build.properties file. Each environment (dev, stage, prod) has a different build.properties that stores configuration for that environment. Som...
{ "language": "en", "url": "https://stackoverflow.com/questions/226683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Unique element ID, even if element doesn't have one I'm writing a GreaseMonkey script where I'm iterating through a bunch of elements. For each element, I need a string ID that I can use to reference that element later. The element itself doesn't have an id attribute, and I can't modify the original document to give...
{ "language": "en", "url": "https://stackoverflow.com/questions/226689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Create an Excel workbook on a x64 system I have a requirement to export the results of a SQL query to excel. I am currently exporting it into 2007 format, but everything I have found will only run in a x86 enviroment. The web site where the export is to take place is running on a x64 version of IIS. Changing IIS to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python Disk-Based Dictionary I was running some dynamic programming code (trying to brute-force disprove the Collatz conjecture =P) and I was using a dict to store the lengths of the chains I had already computed. Obviously, it ran out of memory at some point. Is there any easy way to use some variant of a dict whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/226693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: What do you think when a Boolean "if" has three resulting code paths? QA tester was reading HTML/JS code to write a functional test of a web form, and saw: if (form_field == empty) { ...do stuff for empty field } else if (form_field != empty) { ...do stuff for non-empty field } else { ...do stuff that will never be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I prompt for Yes/No/Cancel input in a Linux shell script? I want to pause input in a shell script, and prompt the user for choices. The standard Yes, No, or Cancel type question. How do I accomplish this in a typical bash prompt? A: Lots of good answers to this question, but from what I can see none of them ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1809" }
Q: Email message recall does it actually work? I was asked to recall a message I sent out to remove some personal info from it and replace it with a generic made up person as an example. Does message recall really work? It's my opinion because you get told a message has been recalled it just causes you to want to find...
{ "language": "en", "url": "https://stackoverflow.com/questions/226704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can we display a "step" inside Visual Studio build process? When you are monitoring the TFS build from Visual Studio (2008 or 2005), you can see where it is up to. The issue is that I have some Post-Build custom steps I would like the developer to be able to see directly throught the UI. Those steps take some ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/226717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Creating friendly urls to dynamic resources in struts2 I have a struts2 application with a single page that may show one of a number of values stored in a database. The application is for a school with many departments and each department has many programs. The department page is accessed using a url like this depar...
{ "language": "en", "url": "https://stackoverflow.com/questions/226721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .net webbrowser control I am using the webbrowser control in visual studio. I think it is a wrapper around internet explorer. Anyway all is going well I am using it in edit mode however I can't get he document's keydown event to fire (in order to catch ctrl+v) anyone had similar problems with it? Anyone have a solut...
{ "language": "en", "url": "https://stackoverflow.com/questions/226743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does Convert.ToDouble(string) round? For example, Convert.ToDouble("0.1234567890123456789") = 0.123456789012346 What is the maximum number of significant figures? Couldn't find it in the docs. A: Of course there's a maximum precision. It's the maximum that you can express with the bits used to store the doubl...
{ "language": "en", "url": "https://stackoverflow.com/questions/226750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I get a notification when user creates a mount point? First off, here are the constraints: * *Must run on XP *Must notify of both drive letter assignments and mounting a volume to a folder *Must not 'wake' a drive if it is sleeping. *I'd really rather not polling the drive. What I've tried: * *Goog...
{ "language": "en", "url": "https://stackoverflow.com/questions/226758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Silverlight 2 UI pattern I have to build small (for now) admin app in Silverlight2, and would like to use some pattern for binding UI with my BL/DAL. I found view-model-viewmodel and mvp/mvc patterns, where first one (V/M/VM) is specially suited for WPF apps, because it uses rich capabilities of WPF data-binding opt...
{ "language": "en", "url": "https://stackoverflow.com/questions/226760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a simple proxy in C#? I have downloaded Privoxy few weeks ago and for the fun I was curious to know how a simple version of it can be done. I understand that I need to configure the browser (client) to send request to the proxy. The proxy send the request to the web (let say it's a http proxy). The pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/226784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "151" }
Q: Netbeans, generated code, and svn We have a netbeans project that has an xsd that we use to create a wsdl and we use the wsdl to create a webservice. Since we are using types in our xsd jaxb is used and one of our webservice methods looks like this: public void someMethod( org.netbeans.xml.schema.line.Line x )....
{ "language": "en", "url": "https://stackoverflow.com/questions/226785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error when compiling with Windows DDK Forgive me for being a complete newbie with Windows DDK. I have create a simple file named test.cpp: #include <windows.h> #define BAD_ADDRESS 0xBAADF00D int __cdecl main(int argc, char* args[]) { char* p =(char*)BAD_ADDRESS; *p='A'; return 0; } In the same directo...
{ "language": "en", "url": "https://stackoverflow.com/questions/226790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to create a tableA HABTM tableA relationship for a CakePHP application? I have the need to create the functionality to allow my registered users to associate themselves with other uses and create a family. My database tables look something like this: db.persons - (Bob, Jane, Timmy, etc) * *id...
{ "language": "en", "url": "https://stackoverflow.com/questions/226805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Debugging Visual Studio 2008 Web Application takes long to launch When debugging an asp.net web application in VS2008 IDE, i feel it takes 'long' to launch the application because it my app is not big (about six pages). I am not using the in-built VS web-server, I'm using the standard IIS web-server on my developmen...
{ "language": "en", "url": "https://stackoverflow.com/questions/226807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server 2005 - Granting permission to create stored procedures (but no other objects) I want to grant a user permission to create, alter, and execute stored procedures, but without the ability to create other database objects. I excluded them from the role db_ddladmin, but explicitly granted the permissions "Cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/226811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you compile flex in Visual Studio 2005/2008? I can't figure this one out. I can download a win32 binary of flex 2.5.4a from gnuwin32, but I'd like to build the latest version (2.5.35) using Visual Studio 2005. I suppose I could build in in cygwin, but where is the fun in that? A: Note that Flex is seriousl...
{ "language": "en", "url": "https://stackoverflow.com/questions/226820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Icon Background on IE6 I'm developing a website (using asp.net by the way) and I'm having a problem with IE6. When I use some icons near links, using background-image and padding-left on the links, the icons display nice on FF and Chrome but in IE6 they take a kind of "gray" background, and sometimes the flash stran...
{ "language": "en", "url": "https://stackoverflow.com/questions/226823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C++ constructs replacing C constructs After discussing with a newly arrived developer in my team, I realized that there are still, in C++, habits of using C constructs because they are supposed to be better (i.e. faster, leaner, prettier, pick your reason). What are the examples worth sharing, showing a C constructs...
{ "language": "en", "url": "https://stackoverflow.com/questions/226828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: HTML anchor with name attribute in ASP.NET I'd like to make anchors to every post in my asp.net forum. Every forum's post is rendered using repeater control. How can I render <a name="anchor_name"></a> in asp.net? A: <a name='<%# Eval("PostId") %>' /> where PostId is the name of the property you want to appear in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Test prettyprinter with poorly formatted C++ code I'm working on a C++ prettyprinter and would like to show the results of the prettyprinter by comparing code before and after running it. Does anyone know where I can find some ugly C++ code to run through the prettypretty? Ideally the code would come from some ope...
{ "language": "en", "url": "https://stackoverflow.com/questions/226834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Ad Management Software for ASP.NET Can anyone recommend any Ad Management components for .NET? I have a customer who would like to sell his own advertising through his own site. This rules out using packaged ad providers such as Google Ads. I've googled several packages, but I'd like to see if anyone has any first...
{ "language": "en", "url": "https://stackoverflow.com/questions/226836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best JavaScript code to create an img element I want to create a simple bit of JS code that creates an image element in the background and doesn't display anything. The image element will call a tracking URL (such as Omniture) and needs to be simple and robust and work in IE 6 =< only. Here is the code...
{ "language": "en", "url": "https://stackoverflow.com/questions/226847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "127" }
Q: Disadvantage of stored procedures Would like to get a list of advantages and disadvantages of using Stored Procedures. The main advantage of SPs seems to be precompiled and an abstraction of data from the application. Give me your thoughts.... A: Disadvantages * *Refactoring is harder. Renaming or changing wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/226859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Remove or change Default Route post Global.asax I'm building a CMS in ASP.NET MVC and want to allow users to pick which page they want to be displayed by default when the user first visits the site. I set my default route in Global.asax, like so (for example): routes.MapRoute( "Default", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you copy a file in PHP without overwriting an existing file? When you use the PHP copy function, the operation blindly copies over the destination file, even if it already exists. How do you copy a file safely, only performing the copy if there is no existing file? A: The obvious solution would be to call f...
{ "language": "en", "url": "https://stackoverflow.com/questions/226894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: ExceptProc not being called in Windows I am currently trying to create an Exception handler built into my windows service that, on an unhandled exception, sends a message to another program. I have built the method and gotten the communication working, but it seems that every time my program throws the error, (I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/226896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to run a very large query (SQL Server and ColdFusion) I've got a reasonably simple query (this time) that I need ALL the results back from (I'm storing them in an Excel spreadsheet). The query itself times out the server, so how do I go about running it without that happening? A: You can increase the request t...
{ "language": "en", "url": "https://stackoverflow.com/questions/226899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does the Internet explorer web developer toolbar work with popups? I cannot get the internet explorer web developer tool bar to work with a pop-up, it won't render at the bottom of the pop-up. Any suggestions? A: There's a very specific way to do this: * *open the developer tools (via F12 or whatever) in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to sanity check a date in Java I find it curious that the most obvious way to create Date objects in Java has been deprecated and appears to have been "substituted" with a not so obvious to use lenient calendar. How do you check that a date, given as a combination of day, month, and year, is a valid date? For in...
{ "language": "en", "url": "https://stackoverflow.com/questions/226910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "90" }
Q: Is there an application to generate Winform Code? I need a simple app to edit database tables. Are there any code generators that will generate winforms in c#? I have CodeSmith, are there any templates around that would help in doing this? A: I think NConstruct might suit your needs - it generates Winforms (optio...
{ "language": "en", "url": "https://stackoverflow.com/questions/226924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Catching window.print() from SWT Browser I 'm exploring for a browser solution / API that has the following features: * *Must support the nowadays default web technologies *Must support client side XSLT *Must support executing arbitrary Javascript on the pages it loads *Must be able to catch events from the we...
{ "language": "en", "url": "https://stackoverflow.com/questions/226929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to map classes in NHibernate using Roles or Composition I believe this is a common question / problem but have not been able to find a good clean concise answer. The Problem How to map entities that appear to have an inheritance relationship: Company Supplier Manufacturer Customer However, a Supplier can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Java Timestamp valueOf I came across a code snippet like this: Timestamp expiryDate = Timestamp.valueOf(dateStr + " " + "23:59:59.000"); Here dateStr is a string entered by the user in a form, in the format yyyy-mm-dd. Now the behavior of Timestamp.valueOf is such that it converts non-existent dates into appropriat...
{ "language": "en", "url": "https://stackoverflow.com/questions/226935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Code Synthesis doesn't seem to generate a "valid" xml tree I've been working with code synthesis xsd to generate an xml tree to ensure constinency of the xml output to the original xsd. After initial testing, everything looked ok but when I tried entering invalid values (correct type, but outside the defined range),...
{ "language": "en", "url": "https://stackoverflow.com/questions/226939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Master Pages fail to recognize new controls So, from my experience, masterpages sometimes can lag when you do updates. This is not a new occurance, you make a change, you build, you go to test and the MasterPage is still looking for the old control. Anyone have any tips/tricks they use when this happens? Usually it...
{ "language": "en", "url": "https://stackoverflow.com/questions/226944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: WCF and confirmations - do I need to send back a 'OK got it' to client? If I have hundreds/thousands of client computers WCP'ing to my server, should I respond with a '200 OK' type message stating that I received the data and stored it in the db successfully? Is this already built-into WCF? A: Be default your servi...
{ "language": "en", "url": "https://stackoverflow.com/questions/226953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Client Customizations We have a product with an install base of about 50, over 50% of these installs have customizations in the code for the business logic, and that is currently done by huge IF and Switch statements. We are currently in the process of updating the code to .NET 3.5 and would like to handle the cust...
{ "language": "en", "url": "https://stackoverflow.com/questions/226962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: autocomplete algorithms, papers, strategies, etc I'm wondering if anyone has good resources to read or code to experiment for "autcomplete" I would like to know what's the theory behind autocompletion, where to start what are the commonn mistakes etc. I found fascinating the way products like Enso, Launchy, Google...
{ "language": "en", "url": "https://stackoverflow.com/questions/226963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Good articles for Sharepoint Web Part creation? Does anyone know of any good basic articles for creating Sharepoint Web Parts. I have found a couple, but most of them jumped in a little quick. Thanks. A: MSDN: Developing Web Parts in Windows SharePoint Services Write Custom WebParts for SharePoint 2007 Writing Cust...
{ "language": "en", "url": "https://stackoverflow.com/questions/226966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Compiling .cs from .Net Applications Is there a managed API to compile C# applications (to memory or disk)? I assume one exists because SharePoint compiles ASP.NET pages in memory. We want to use it to, at runtime, generate Linq DataContexts and compile those against various projects. A: Take a look at the Micr...
{ "language": "en", "url": "https://stackoverflow.com/questions/226967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the best open source game to learn from? This question has been preserved for historical reasons, but it is not considered on-topic, so don't use it as an excuse to post something similar. More info at https://stackoverflow.com/faq. For me to read code and learn, not to play... ...of course ;-) A: My...
{ "language": "en", "url": "https://stackoverflow.com/questions/226970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: How to edit EXIF data in .NET I am writing a photo gallery/sharing website and want to (1) write EXIF data to the JPEGs stored on server, and (2) strip that EXIF data prior to writing to the output stream for display. Is anyone aware of a dotNet library -- preferably open source -- that allows the editing (the key h...
{ "language": "en", "url": "https://stackoverflow.com/questions/226973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How can I know if a branch has been already merged into master? I have a git repository with multiple branches. How can I know which branches are already merged into the master branch? A: To check whether a source branch has been merged into the master branch, the following bash command can be used: git merge-base...
{ "language": "en", "url": "https://stackoverflow.com/questions/226976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1408" }
Q: What is "loose coupling?" Please provide examples I can't seem to grok the concept of "loose coupling." I suppose it doesn't help that the word "loose" usually has a negative connotation, so I always forget that loose coupling is a good thing. Will somebody please show some "before" and "after" code (or pseudocode) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "188" }
Q: syncing two lists with VBA What is the best way to sync up two lists each of which may contain items not in the other? As shown the lists are not sorted - although if necessary sorting them first would not be an issue. List 1 = a,b,c,e List 2 = b,e,c,d Using the lists above, I'm looking for a solution that will wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/226978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Google Maps API - GMarker.openInfoWindowHtml() stopped working I have a Google Map that suddenly stopped working for no apparent reason (I hadn't touched the code for months, but the wrapper code from our CMS may have changed without Corporate telling me). http://www.democratandchronicle.com/section/builder (sorry a...
{ "language": "en", "url": "https://stackoverflow.com/questions/226980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to sort an IList in .Net 2.0? I have an IList<T> that I need to sort, and I would rather not copy the list if possible. I've noticed that ArrayList has an Adapter static method that wraps the passed list without copying it, but this takes an IList and I have an IList<T>. Is it safe to cast fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/226981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How Can I Launch The Appstore App Directly from my Application I've used several apps now that launch the itunes store directly from the app. I'm even using some on my 2.1 iPod 2G. I know there's a bug in 2.1 that prevents appstore links from working in safari, but somehow people are launching the appstore directly,...
{ "language": "en", "url": "https://stackoverflow.com/questions/226986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Best method to determine changed data in C++ I need to write a tool in C++ to determine the changed bits in a file compared against another file for replication. What would be the best method of accomplishing this? I don't have a specific OS or library in mind, I'm open to suggestions. My primary goal is reducing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/227001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Manually drawing a gradient in iPhone apps? If I have two UIColors, what's the best way to draw an even gradient between them over an arbitrarily-sized area? I am guessing you would create a UIView subclass and use the CG drawing methods in the drawRect method. I just don't know which ones, or if there are any pitfa...
{ "language": "en", "url": "https://stackoverflow.com/questions/227005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Resetting the time part of a timestamp in Java In Java, given a timestamp, how to reset the time part alone to 00:00:00 so that the timestamp represents the midnight of that particular day ? In T-SQL, this query will do to achieve the same, but I don't know how to do this in Java. SELECT CAST( FLOOR( CAST(GETDATE() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/227007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Databases which can handle semi-structured data? Other than CouchDB and Native XML Databases (such as eXist), which databases can store and query un- and semi-structured data? I've been handed lots of data in different formats (XML, JSON, YAML, CSV, some custom formats), which I need to merge and work with, but deve...
{ "language": "en", "url": "https://stackoverflow.com/questions/227017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there an offline version of JSLint for Windows? I would like to check my JavaScript files without going to JSLint web site. Is there a desktop version of this tool for Windows? A: You can also use JavaScript Lint on your machine, get it from here JavaScript Lint There are instructions on how to integrate it into...
{ "language": "en", "url": "https://stackoverflow.com/questions/227022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How do I use a state specific proxy? I need to hit a website through a state specific IP Address. Any suggestions on how to do this? A: (I'm assuming that you are trying to access a website which is distributed across multiple hosts w/ different IP addresses and you want to access a specific one of those hosts) If...
{ "language": "en", "url": "https://stackoverflow.com/questions/227028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it acceptable to "borrow" dependency properties from unrelated classes? I'm writing a class that renders some content in WPF, and I want to give the user control over how the content is rendered. The rendering is mostly stroking lines, so I decided to look to the System.Windows.Forms.Shapes.Line class to get an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/227030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I get better performance using a JOIN or using EXISTS? I have two tables Institutions and Results and I want to see if there are any results for institutions that way I can exclude the ones that don't have results. Can I get better performance using a JOIN or using EXISTS? Thank you, -Nimesh A: I'd say a JOIN i...
{ "language": "en", "url": "https://stackoverflow.com/questions/227037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How do you use debugging to step into a class in a web application from a test project in the same solution? When using NUnit and the test project, we haven't been able to find a way to step into the class we are testing in a web application. We are using TestDriven.NET add-in for Visual Studio 2008. We are able to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/227048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best Server Control for surrounding blocks I am wondering what server control people generally use for surrounding and separating blocks of related controls and content in a Web Forms scenario. Often times I need to surround a block of HTML and related Server controls with a 'panel' that I can show or hide based up...
{ "language": "en", "url": "https://stackoverflow.com/questions/227064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Extensions I typically use extension methods very sparingly. When I do feel compelled to write an extension method, I sometimes want to overload the method. My question is, what are your thoughts on extension methods calling other extension methods? Bad practice? It feels wrong, but I can't really define why. For...
{ "language": "en", "url": "https://stackoverflow.com/questions/227066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Continuous integration tools with "pipeline" support? Our automated builds and tests are taking an increasing amount of resources, especially since we support many platforms and test in both debug and optimized. So, I'm looking for some tool support that would allow a more incremental "pipeline" approach so we coul...
{ "language": "en", "url": "https://stackoverflow.com/questions/227069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Optimal Rectangle hatching algorithm I am looking for an algorithm to hatch a rectangle with shortest overall line length, so that an object of given area can be passed through the hatching. For example given a rectangle of 5x3 cm, and I hatch using parallel lines 1cm across, the biggest object I can pass through th...
{ "language": "en", "url": "https://stackoverflow.com/questions/227071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a left-arrow button (like UINavigationBar's "back" style) on a UIToolbar I'd love to create a "back" left-arrow-bezel button in a UIToolbar. As far as I can tell, the only way to get one of these is to leave UINavigationController at default settings and it uses one for the left bar item. But there's no way...
{ "language": "en", "url": "https://stackoverflow.com/questions/227078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "293" }
Q: ElementName Binding Broken in a ControlTemplate I have ListView with Grouping Items. Grouping uses custom GroupStyle (Expander). I would like to have check box which will Expand and collapse all groups when. It works fine untill I click manually on the group header and expand or collapse that group. After clicki...
{ "language": "en", "url": "https://stackoverflow.com/questions/227081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert Byte Array to Integer In VB.Net I'm wonder what the best way to convert a byte array (length 4) to an integer is in vb.net? I'm aware of BitConverter, but it seems like quite a waste to do a function call to do something that should be able to be done by copying 4 bytes of memory. Along the same lines, what...
{ "language": "en", "url": "https://stackoverflow.com/questions/227083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: DTS Packages & a Connection to Access Using DTS I'm dynamically creating an access database. After the file is created (which works at this point) I'm having the DTS package post it via HTTP to another site. (This HTTP is just how it has to be done -- part of the spec.) But when the package posts the file, the poste...
{ "language": "en", "url": "https://stackoverflow.com/questions/227089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I block search crawlers for every site on an Apache web server? I have somewhat of a staging server on the public internet running copies of the production code for a few websites. I'd really not like it if the staging sites get indexed. Is there a way I can modify my httpd.conf on the staging server to block ...
{ "language": "en", "url": "https://stackoverflow.com/questions/227101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: File Transfer Protocol options? I am looking for a good way to transfer non-trivial (10G > x >10MB) amounts of data from one machine to another, potentially over multiple sessions. I have looked briefly at * **ftp (sftp, tftp, ftp) *http *torrents (out because I will not have a seed network in general) *rsync ...
{ "language": "en", "url": "https://stackoverflow.com/questions/227117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Casting a UserControl as a specific type of user control Is there a way to cast a user control as a specific user control so I have access to it's public properties? Basicly I'm foreaching through a placeholder's controls collection and I'm trying to access the user control's public properties. foreach(UserControl u...
{ "language": "en", "url": "https://stackoverflow.com/questions/227121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: .load in jQuery not loading cfcharts in IE6 I am trying to dynamically load the contents of a div tag with a .cfm page that contains a cfchart in png format. When the user clicks on a link, I am using the load function to put the .cfm page into the div. $("#bank").bind("click", function(){ $("#chartx").load("ban...
{ "language": "en", "url": "https://stackoverflow.com/questions/227129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hibernate returns invalid results with composite key I'm getting the strangest results. I have a class with a composite key. If i do the following query: from LOVEJB l order by l.canonicalId desc my results are not ordered by the 'canonicalId' column I asked for. Instead, the canonical id result is like: 823 82...
{ "language": "en", "url": "https://stackoverflow.com/questions/227130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using aspx Rendering Engine to Generate Non-HTML Is it possible to use the asp templating engine (With the partial code-behind class, dynamic <% ... %> blocks and such) to generate non HTML? I want to have a clean and maintainable way to generate code dynamically. (Specifically, I want to generate LaTeX code populat...
{ "language": "en", "url": "https://stackoverflow.com/questions/227132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }