text
string
meta
dict
Q: Developing for Sharepoint 2003 using Visual Studio 2008? Does anyone have experience with developing for Sharepoint 2003 using Visual Studio 2008? I need to upgrade to VS2008 because of Vista issues but need to support Sharepoint 2003 webparts. The webparts are all pretty simple. Will I be able to support those webp...
{ "language": "en", "url": "https://stackoverflow.com/questions/243201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I interpret a WSDL with references to a namespace java: on a non-java client? I'm trying to integrate against a SOAP web service, running on Apache Axis. The WSDL specifies a namespace with a URI, that looks like: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:dk.tdc.serviceprov...
{ "language": "en", "url": "https://stackoverflow.com/questions/243206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I fix the VS Debugger trying to connect to unconnected mapped drive When I have an unconnected mapped drive, the VSTS 2008 SP1 IDE debugger takes about 10 seconds to regain control. Needless to say single stepping is painful. Is there some setting to make this go away? I am debugging a mixed( C# / C++ / Web ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/243209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BIRT in a desktop application Did someone ever used a BIRT report in a desktop application. I'm comming from the .NET environment and there you can use Crystal Reports to show reports in desktop apps. Is this possible with BIRT too, without having to set up a server environment? Can you give me some advice how to re...
{ "language": "en", "url": "https://stackoverflow.com/questions/243215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Which coding style you use for ternary operator? I keep it in single line, if it's short. Lately I've been using this style for longer or nested ternary operator expressions. A contrived example: $value = ( $a == $b ) ? 'true value # 1' : ( $a == $c ) ? 'true value # 2' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: Should we declare a public constructor when the class is declared as package private? I think in this case there is no need to declare a public constructor since the class is not accessible outside the package anyway. But is there some hidden impact when the class has only package private constructor? A: If your cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/243218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do the servers for Fogbugz handle load balancing? I remember hearing Joel say he has 2 different locations where the servers are located, each location has 2 front end servers and 1 back end server. * *If a one of the hosting facilities goes down, how can he switch over to the other one? (Or is it just going...
{ "language": "en", "url": "https://stackoverflow.com/questions/243223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET UserControl Does Not Initialize Child Controls Inside my page, I have the following: <aspe:UpdatePanel runat="server" ID="updatePanel"> <ContentTemplate> <local:KeywordSelector runat="server" ID="ksKeywords" /> </ContentTemplate> </aspe:UpdatePanel> The KeywordSelector control is a control I...
{ "language": "en", "url": "https://stackoverflow.com/questions/243232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Save PDF to A SQL Binary (.Net) I am using a ASP/.Net webpage and i want to upload a pdf file into a SQL Database as a binary I am uping the build in upload control, can you please suggest a way of doing this. I also need to no how to read the pdf back and display it in a web browser. I will be using linq to uplo...
{ "language": "en", "url": "https://stackoverflow.com/questions/243237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pointer-to-data-member-of-data-member I had the following piece of code (simplified for this question): struct StyleInfo { int width; int height; }; typedef int (StyleInfo::*StyleInfoMember); void AddStyleInfoMembers(std::vector<StyleInfoMember>& members) { members.push_back(&StyleInfo::width); mem...
{ "language": "en", "url": "https://stackoverflow.com/questions/243242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Application Shutdown and Windows Error Reporting We're attempting to update our application in order to submit it for Vista certification. Part of the requirements are to handle only known exceptions and have Windows Error Reporting deal with all unhandled exceptions. We have a global exception handler in our app...
{ "language": "en", "url": "https://stackoverflow.com/questions/243244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How much more inefficient are text (blobs) than varchar/nvarchar's? We're doing a lot of large, but straightforward forms for a fairly big project (about 600 users using it throughout the day - that's big for me at least ;-) ). The forms have a lot of question/answer type sections, so it's natural for some people to...
{ "language": "en", "url": "https://stackoverflow.com/questions/243252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: E_NOINTERFACE after upgrade of VB6 After upgrading a VB 6 based application exposing a COM interface, COM Clients (in .NET) built against the previous version receive E_NOINTERFACE errors. The error message (translated), Cannot convert COM-object of type AProduct.AClass to interface of type AProduct._AClass ... W...
{ "language": "en", "url": "https://stackoverflow.com/questions/243261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cross Browser dropdown/popup menu over a flash movie I need to make my dropdown menu apprear over the top of a flash movie, how is this done cross browser? It can be done, IBM do it: http://www.ibm.com/us/ so do GE: http://www.ge.com/ Setting the the WMODE to transparent doesn't work for Firefox Putting it into an I...
{ "language": "en", "url": "https://stackoverflow.com/questions/243263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I use custom animations for onOrderOut in Core Animation? Core Animation allows for custom animations by implementing the actionForKey method in your CALayer based class: - (id<CAAction>)actionForKey:(NSString *)key { // Custom animations return [super actionForKey:key]; } I can then create an anima...
{ "language": "en", "url": "https://stackoverflow.com/questions/243266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: compare data in a vb.net dataset with values in an array list I'm looking for an efficient way of searching through a dataset to see if an item exists. I have an arraylist of ~6000 items and I need to determine which of those doesn't exist in the dataset by comparing each item within the arraylist with data in a pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/243267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I get a "busy wheel" on Windows Mobile 6? Windows Mobile pops up a "busy wheel" - a rotating colour disk - when things are happening . I can't find in the documentation how this is done - can someone point me in the right direction? We have a situation where we need to prompt the user to say we're doing stuf...
{ "language": "en", "url": "https://stackoverflow.com/questions/243269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to unit test abstract classes: extend with stubs? I was wondering how to unit test abstract classes, and classes that extend abstract classes. Should I test the abstract class by extending it, stubbing out the abstract methods, and then test all the concrete methods? Then only test the methods I override, and te...
{ "language": "en", "url": "https://stackoverflow.com/questions/243274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "512" }
Q: Aggregate GREATEST in T-SQL My SQL is rusty -- I have a simple requirement to calculate the sum of the greater of two column values: CREATE TABLE [dbo].[Test] ( column1 int NOT NULL, column2 int NOT NULL ); insert into Test (column1, column2) values (2,3) insert into Test (column1, column2) values (6,3) in...
{ "language": "en", "url": "https://stackoverflow.com/questions/243277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can a class have no constructor? A while back I asked about instantiating a HttpContext object. Now that I have learnt what I didn't know, what confuses me is that you cannot say HttpContext ctx = new HttpContext(); because the object does not have a constructor. But doesn't every class need a constructor? In C#...
{ "language": "en", "url": "https://stackoverflow.com/questions/243293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to Force Thread Dump in Eclipse? I'm launching a Weblogic application inside Eclipse via the BEA Weblogic Server v9.2 runtime environment. If this were running straight from the command-line, I'd do a ctrl-BREAK to force a thread dump. Is there a way to do it in Eclipse? A: You can do it when you are in debug m...
{ "language": "en", "url": "https://stackoverflow.com/questions/243298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: How do you format the body of a JMS text message? Does everyone just use XML in the message? Are there any good alternatives to XML? If you do use XML, do you define an XML Schema so clients know how to send messages to your service? A: We use XML, but I think the important thing is to tailor the solution to the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/243306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Save State of a Direct3D Device State should include at least the following: * *All settings set via SetStreamResource() *Indices I have a class whose Draw() function will call SetStreamResource, set Indices and eventually call DrawIndexedPrimitive(). I would like to restore the device state before Draw() retu...
{ "language": "en", "url": "https://stackoverflow.com/questions/243322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET cant access datatable created in Page load from inline coding In my Page_Load event of codebehind file, I am loading data in to a datatable.In my .aspx page I am having some inline coding,I want to display some data from this datatable.But when i am running the program,It is showing an error like "Error 64 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I set a Data Breakpoint in mixed( C#/C++ ) debugging? I launch my program in C#, which then calls some unmanaged C++. When I break on a line in the unmanaged C++, the 'New Data Breakpoint' menu item is grayed out. Is there anyway around this? A: The suggested solution doesn't work all the time. Even when de...
{ "language": "en", "url": "https://stackoverflow.com/questions/243347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Environment.TickCount vs DateTime.Now Is it ever OK to use Environment.TickCountto calculate time spans? int start = Environment.TickCount; // Do stuff int duration = Environment.TickCount - start; Console.WriteLine("That took " + duration " ms"); Because TickCount is signed and will rollover after 25 days (it take...
{ "language": "en", "url": "https://stackoverflow.com/questions/243351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: See which sites are using which IPs in IIS 7 Is there a way to quickly list which sites are on which IP address in IIS 7? If I remember correctly you could sort a view of domains by IP in IIS 6 which was a big help to me in seeing which IPs I had available. A: Take a look at APPCMD . For example, to list all site...
{ "language": "en", "url": "https://stackoverflow.com/questions/243355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Can someone explain the structure of a Pid (Process Identifier) in Erlang? Can someone explain the structure of a Pid in Erlang? Pids looks like this: <A.B.C>, e.g. <0.30.0> , but I would like to know what is the meaning of these three "bits": A, B and C. A seems to be always 0 on a local node, but this value change...
{ "language": "en", "url": "https://stackoverflow.com/questions/243363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: creating objects dynamically in C++ I was just reading this thread and it occurred to me that there is one seemingly-valid use of that pattern the OP is asking about. I know I've used it before to implement dynamic creation of objects. As far as I know, there is no better solution in C++, but I was wondering if an...
{ "language": "en", "url": "https://stackoverflow.com/questions/243365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reset Excel "Find and Replace" dialog box parameters How do I programmatically reset the Excel Find and Replace dialog box parameters to defaults ("Find what", "Replace with", "Within", "Search", "Look in", "Match case", "Match entire cell contents")? I am using Application.FindFormat.Clear and Application.ReplaceFo...
{ "language": "en", "url": "https://stackoverflow.com/questions/243368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Including a dynamic image in a web page using POST? I have written a CGI script that creates an image dynamically using GET data. To include this image in my webpage, I am using the following code: <img src="image.py?text=xxxxxxxxxxxxxx"> The problem is that I expect in the future the "text" field will get very lon...
{ "language": "en", "url": "https://stackoverflow.com/questions/243375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Anything I should know before converting a large C++ program from VS2005 to VS2008? Is there anything I should know before converting a large C++ program from VS2005 to VS2008? A: I'm working on this very problem right now. Running WinMerge to see what I've changed... OK, here is what I had to fix in an huge Win32...
{ "language": "en", "url": "https://stackoverflow.com/questions/243381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why can't C++ be parsed with a LR(1) parser? I was reading about parsers and parser generators and found this statement in wikipedia's LR parsing -page: Many programming languages can be parsed using some variation of an LR parser. One notable exception is C++. Why is it so? What particular property of C++ causes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "158" }
Q: BeanFactory vs ApplicationContext I'm pretty new to the Spring Framework, I've been playing around with it and putting a few samples apps together for the purposes of evaluating Spring MVC for use in an upcoming company project. So far I really like what I see in Spring MVC, seems very easy to use and encourages you...
{ "language": "en", "url": "https://stackoverflow.com/questions/243385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "265" }
Q: What exactly does REST mean? What is it, and why is it getting big now? I understand (I think) the basic idea behind RESTful-ness. Use HTTP methods semantically - GET gets, PUT puts, DELETE deletes, etc... Right? thought I understood the idea behind REST, but I think I'm confusing that with the details of an HTTP i...
{ "language": "en", "url": "https://stackoverflow.com/questions/243388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Why do I get a security warning in visual studio 2008 when creating a project? This is the error, it's basically a security warning Warning message http://img357.imageshack.us/img357/7992/visualstudiowarninggr4.jpg (And here's the text grabbed off the dialog box) Security Warning for WindowsApplication4 ____________...
{ "language": "en", "url": "https://stackoverflow.com/questions/243408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Setting FetchMode in native Hibernate I need to set the fetch mode on my hibernate mappings to be eager in some cases, and lazy in others. I have my default (set through the hbm file) as lazy="true". How do I override this setting in code? MyClass has a set defined of type MyClass2 for which I want to set the FetchM...
{ "language": "en", "url": "https://stackoverflow.com/questions/243409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Problem with NetStream.pause() in ActionScript called from Javascript I am working on a very simple player written in MXML+ActionScript whose functions are exported to be called by a simple Javascript in an HTML page. Both codes are provided below. For the mp3 "path" all is working perfectly for playing, pausing, re...
{ "language": "en", "url": "https://stackoverflow.com/questions/243415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you pass "this" to the constructor for ObjectDataProvider in XAML? How do you pass "this" to the constructor for ObjectDataProvider in XAML. Lets say my presenter class is: public class ApplicationPresenter(IView view){} and that my UserControl implements IView. What do I pass to the ConstructorParameters in...
{ "language": "en", "url": "https://stackoverflow.com/questions/243417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best Way to handle/consolidate multiple Logins? this is the scenario: multiple web systems (mostly lampp/wampp) exist, most of them with separate login information, (some share it). We're considering the benefits/disadvantages of unifying them somehow, or at least making handling the user administration parts easie...
{ "language": "en", "url": "https://stackoverflow.com/questions/243426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I'm getting blank pages instead of error messages using classic ASP, IIS6 and WinServer 2003 R2 We have an old system running on a WinServer2003 R2 - IIS6 and it was written using classic ASP. We need to trap all errors and for that, I configured IIS to redirect 404s and 500s to a custom page (custom errors config) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: UIWebView Expose Objective C to JavaScript How would I expose an Objective-C method within JavaScript when using the iPhone SDK when using the UIWebView? Any help would be appreciated! A: There is an example application in the QuickConnectiPhone framework that shows you how to do this. QuickConnectiPhone also gives...
{ "language": "en", "url": "https://stackoverflow.com/questions/243459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How does the Gaia Flash Framework access the scaffold.as file? In the Gaia Flash Framework, a file called 'Scaffold.as' is used to make each page a scaffold page. This is accessed by the code, new Scaffold(this); But the class itself does not appear to be imported. Am I missing something about the way flash handles...
{ "language": "en", "url": "https://stackoverflow.com/questions/243462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to map Dictionary with Fluent Nhibernate I was mapping a relation using something like the following <map name="Foo" cascade="all-delete-orphan" lazy="false"> <key column="FooId"/> <index column="FooType" type="Domain.Enum.FooType, Domain"/> <element column ="FooStatus" type="Domain.Enum.FooStatus, Domain...
{ "language": "en", "url": "https://stackoverflow.com/questions/243464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Limiting File Attachments to a SQL Server 2005 DB to a value > 8000 bytes I have a .Net app that will allow the users to attach files to a SQL Server 2005 database. I want to limit the filesize to 10MB, so from what I can tell, I have to declare the datatype varbinary(max), since the max size I can actually specify...
{ "language": "en", "url": "https://stackoverflow.com/questions/243469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: windows server 2008 firewall, possible to backup settings? Is it possible to backup the windows server 2008 firewall settings? A: I think this is what you're looking for: http://www.windowsnetworking.com/articles_tutorials/Configure-Windows-2008-Advanced-Firewall-NETSH-CLI.html Export Lets you export all the curren...
{ "language": "en", "url": "https://stackoverflow.com/questions/243487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Decimal Textbox in Windows Forms I am doing an Financial Winforms application and am having some trouble with the controls. My customer needs to insert decimal values all over the place (Prices, Discounts etc) and I'd like to avoid some of the repeating validation. So I immediately tried the MaskedTextBox that would...
{ "language": "en", "url": "https://stackoverflow.com/questions/243489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Profiling VBA code for microsoft word I have some legacy code that uses VBA to parse a word document and build some XML output; Needless to say it runs like a dog but I was interested in profiling it to see where it's breaking down and maybe if there are some options to make it faster. I don't want to try anything ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Capture Keystrokes on Symbian OS? How would one go about capturing users keystrokes in the SMS composer on the Symbian OS, specifically for a Nokia N73 (or any of the symbian supported devices http://en.wikipedia.org/wiki/Symbian_OS#Devices_that_have_used_the_Symbian_OS)? I'm new to symbian development and I'm tryin...
{ "language": "en", "url": "https://stackoverflow.com/questions/243504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Oracle PL/SQL Query Order By issue with Distinct Does anyone know what is wrong with this query? SELECT DISTINCT c.CN as ClaimNumber, a.ItemDate as BillReceivedDate, c.DTN as DocTrackNumber FROM ItemData a, ItemDataPage b, KeyGroupData c WHERE a.ItemTypeNum in (112, 11...
{ "language": "en", "url": "https://stackoverflow.com/questions/243510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Oracle Hierarchical Query Performance We're looking at using Oracle Hierarchical queries to model potentially very large tree structures (potentially infinitely wide, and depth of 30+). My understanding is that hierarchal queries provide a method to write recursively joining SQL but they it does not provide any real...
{ "language": "en", "url": "https://stackoverflow.com/questions/243528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing more than one data provider in a data layer I'm working on a business application which is being developed using DDD philosophy. Database is accessed through NHibernate and data layer is implemented using DAO pattern. The UML class diagram is shown below. UML Class Diagram http://img266.imageshack.us/my.p...
{ "language": "en", "url": "https://stackoverflow.com/questions/243529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: adodb and access changing ® to ® i connecting to a access database with php and adodb. Strings with characters like ® are saved in the database as ® . What can i do to store it correctly? A: Looks like you're passing in a UTF8 string but you're not storing it as UTF8. Change it one way or the other so they matc...
{ "language": "en", "url": "https://stackoverflow.com/questions/243540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Assemblies and when strong naming is not an option? A while back I asked the following question here on Stack Overflow, Assembly Names and Versions. Now I have come to realize I can't sign my assembly with a strong name as one of the 3rd party dependencies is not a strongly named assembly and therefore mine is not s...
{ "language": "en", "url": "https://stackoverflow.com/questions/243547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to reliably get row index in JTable from MouseEvent? How can I find out which row in a JTable the user just clicked? A: Try this: aJTable.rowAtPoint(evt.getPoint()); A: If you only ever care about listening to selections on the JTable: jTable.getSelectionModel().addListSelectionListener(new ListSelectionLi...
{ "language": "en", "url": "https://stackoverflow.com/questions/243553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Rendering strategy for a window system in XNA (RenderTarget performance) I'm currently creating a window system for XNA games from scratch. I'm developing primarily for Windows, but who knows what platforms I might support in the future. Feel free to answer if you know this for native Direct3D, since the performance...
{ "language": "en", "url": "https://stackoverflow.com/questions/243554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove duplicate from a table The database type is PostGres 8.3. If I wrote: SELECT field1, field2, field3, count(*) FROM table1 GROUP BY field1, field2, field3 having count(*) > 1; I have some rows that have a count over 1. How can I take out the duplicate (I do still want 1 row for each of them instead of +1 ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/243567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: CTimeSpan.GetDays() and daylight savings time I found in a bug in an old C++ MFC program we have that calculates an offset (in days) for a given date from a fixed base date. We were seeing results that were off by one for some reason, and I tracked it down to where the original programmer had used the CTimeSpan.Get...
{ "language": "en", "url": "https://stackoverflow.com/questions/243568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: When will my BackgroundWorker instance be garbage collected consider this code block public void ManageInstalledComponentsUpdate() { IUpdateView view = new UpdaterForm(); BackgroundWorker worker = new BackgroundWorker(); Update update = new Update(); worker.Wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/243569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I configure a RollingFileAppender to roll by date and size with log4net? I am configure log4net to use a composite RollingFileAppender so that the current file is always named logfile.log and all subsequent files are named logfile-YYYY.MM.dd.seq.log where seq is the sequence number if a log exceeds a certain ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How to fake a validation error in a MonoRail controller unit-test? I am running on Castle's trunk, and trying to unit-test a controller-action where validation of my DTO is set up. The controller inherits from SmartDispatcherController. The action and DTO look like: [AccessibleThrough(Verb.Post)] public void Regi...
{ "language": "en", "url": "https://stackoverflow.com/questions/243580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Easiest way to copy an entire SQL server Database from a server to local SQL Express I need to copy an entire database from a SQL Server 2005 on my server over to my local SQL Express in order to run my application for a presentation. What is the fastest/easiest way to get this done? EDIT: I have very limited acce...
{ "language": "en", "url": "https://stackoverflow.com/questions/243583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Tortoise SVN marks files as different between branches but no differences exist So my project has a trunk where we make all development changes to. We also have a branch with slightly modified parameters to accommodate another department. We work in batches, and once we are done with a set of changes to the trunk, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/243586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How best to implement user selectable variables in web application I have a Java based web-application and a new requirement to allow Users to place variables into text fields that are replaced when a document or other output is produced. How have others gone about this? I was thinking of having a pre-defined set of...
{ "language": "en", "url": "https://stackoverflow.com/questions/243617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use an app.config file when calling a C# dll from C++ How do I use an app.config file for the .Net part when calling a .Net dll from C++ and the data in the config-file must be read at the .Net runtime startup. If I use have a foo.dll.config that I call from ConfigurationManager.OpenExeConfiguration("foo.dll"...
{ "language": "en", "url": "https://stackoverflow.com/questions/243621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to setup a connection timeout depending of the user login in MySQL I have currently more than 100 connections in Sleep state. Some connection must stay in Sleep state (and don't close) because it's permanent connection but some others (with a different user name) are from some php script and I want them to timeo...
{ "language": "en", "url": "https://stackoverflow.com/questions/243644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to read a PEM RSA private key from .NET I've got an RSA private key in PEM format, is there a straight forward way to read that from .NET and instantiate an RSACryptoServiceProvider to decrypt data encrypted with the corresponding public key? A: Update 03/03/2021 .NET 5 now supports this out of the box. To try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: Display Form non-maximized with borders on Windows Mobile I need to create a status dialog for a Windows Mobile application (C# 2.0) that needs to be updated, so MessageBox is out. I tried to just create a new Form class, change the size and call ShowDialog, but it always comes up full screen (minus the title bar o...
{ "language": "en", "url": "https://stackoverflow.com/questions/243671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does svnserve serve up multiple repositories? I had svnserve configured to look at directory "Foo" for the repository it served. Now I changed the configuration from one repository to multiple repositories, all contained in one directory "Bar". I reconfigured svnserve to look at "Bar", but now my client can't fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/243672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Limitations of using C++/CLI with NUnit This answer to a question about C++ unit test frameworks suggests a possibility that had not occurred to me before: using C++/CLI and NUnit to create unit tests for native C++ code. We use NUnit for our C# tests, so the possibility of using it for C++ as well seems enticing. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/243673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the best way to save iphone app settings? I'd like to allow user to change the setting of app. But I am not sure where shall I save the configuration. Is there any local space allocated for app? A: You should use the NSUserDefaults class for storing settings. It's all documented.
{ "language": "en", "url": "https://stackoverflow.com/questions/243675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# How do I extract the value of a property in a PropertyCollection? How do I extract the value of a property in a PropertyCollection? If I drill down on the 'Properties' in the line below is visual studion I can see the value but how do I read it? foreach (string propertyName in result.Properties.PropertyNames) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The image which UIImagePicker take from UI is truncated on top and bottom I am using UIImagePicker to take photo and save the photo. But appears the photo it takes was truncated on top and bottom, which was top and bottom menu when UIImagePicker taking the photo. I am wondering how to take the whole screen of the ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/243689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WARNING. Duplicate resource in Delphi 7, Infopower 4000 [Error] WARNING. Duplicate resource(s): [Error] Type 2 (BITMAP), ID TWWDBRICHEDITMSWORD: [Error] File C:\Borland\Delphi7\ip4000vcl7\LIB\wwrichsp.RES resource kept; file C:\Borland\Delphi7\ip4000vcl7\LIB\wwrichsp.RES resource discarded. I have searc...
{ "language": "en", "url": "https://stackoverflow.com/questions/243691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Correctly over-loading a stringbuf to replace cout in a MATLAB mex file MathWorks currently doesn't allow you to use cout from a mex file when the MATLAB desktop is open because they have redirected stdout. Their current workaround is providing a function, mexPrintf, that they request you use instead. After googli...
{ "language": "en", "url": "https://stackoverflow.com/questions/243696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Getting started with Mac development How long does it take for an experienced Windows programmer to learn writing simple software for Mac OS X? Where does one start and what tools will be necessary? A: You might want to check this post for info - pretty much a duplicate question to this one. Definitely just go wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/243699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How can I see the SQL ActiveRecord generates? I'd like to check a few queries generated by ActiveRecord, but I don't need to actually run them. Is there a way to get at the query before it returns its result? A: Both of these articles should help you do what you want. http://weblog.jamisbuck.org/2007/1/8/watching-...
{ "language": "en", "url": "https://stackoverflow.com/questions/243701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to Select data from Table from a DSN in T-SQL? How can I get data from a database that I can only access through an ODBC Data Source (DSN) in T-SQL MS SQL Server, any version? A: After reading the following, I decided to create SSIS packages to get data from another data source via DSN. With Linked Servers, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why use hex? Hey! I was looking at this code at http://www.gnu.org/software/m68hc11/examples/primes_8c-source.html I noticed that in some situations they used hex numbers, like in line 134: for (j = 1; val && j <= 0x80; j <<= 1, q++) Now why would they use the 0x80? I am not that good with hex but I found an online...
{ "language": "en", "url": "https://stackoverflow.com/questions/243712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: How do you organize VMware Workstation images? I currently use VMware workstation to create separate workspaces for various clients that I do work for. So for a given client I only install software needed for a specific job, and don't have to worry about software A for client #1 mucking up software B for client #2....
{ "language": "en", "url": "https://stackoverflow.com/questions/243716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: how to disable dtd at runtime in java's xpath? I got dtd in file and I cant remove it. When i try to parse it in Java I get "Caused by: java.net.SocketException: Network is unreachable: connect", because its remote dtd. can I disable somehow dtd checking? A: You should be able to specify your own EntityResolver, or...
{ "language": "en", "url": "https://stackoverflow.com/questions/243728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can I compile a Labview CIN in Visual Studio? I am trying to compile a labview CIN using visual studio 2003. I have followed the tutorial located here to the letter, but am getting the following error: Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step" Does anyone know w...
{ "language": "en", "url": "https://stackoverflow.com/questions/243734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tracking permissions in SharePoint Is there any sort of "out of the box" system within SharePoint (i.e. MOSS 2007) that is useful for tracking/managing permissions. We've got a relatively small installation, but I can easily see special permissions for special users/sites getting out of hand. I'm hoping there's so...
{ "language": "en", "url": "https://stackoverflow.com/questions/243742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Prevent site deletion In our Sharepoint implementation users have been granted site collection admin rights. On a few occasions they've managed to delete a subsite or even the entire site collection. I'd like to be able to block this but not being a developer I'm finding it pretty tricky. I've had a look at the MSIT...
{ "language": "en", "url": "https://stackoverflow.com/questions/243744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How best to do Agile Development with Trac? We use Trac as our bug tracking / development / wiki system and I was wondering if anyone has experience and uses some of the Trac Agile/Scrum plugins or functionalities? Anything you'd recommend? Or would it be better to duplicate Trac tickets as dead-tree user story inde...
{ "language": "en", "url": "https://stackoverflow.com/questions/243749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How can I automate running commands remotely over SSH to multiple servers in parallel? I've searched around a bit for similar questions, but other than running one command or perhaps a few command with items such as: ssh user@host -t sudo su - However, what if I essentially need to run a script on (let's say) 15 se...
{ "language": "en", "url": "https://stackoverflow.com/questions/243750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How do I convert a List(Of T) to an ObservableCollection(Of T) in VB.NET? Is there a way to do this without iterating through the List and adding the items to the ObservableCollection? A: No, there is no way to directly convert the list to an observable collection. You must add each item to the collection. However,...
{ "language": "en", "url": "https://stackoverflow.com/questions/243752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: not strict xpath for java do you know any not strict xpath for java? (I want it to not check dtd and schema) and it would be cool if it dont care about correct xml. A: You don't need to schema valid XML to use XPath. For non-well-formed XML, then I think you have two options: * *generate a valid DOM tree from th...
{ "language": "en", "url": "https://stackoverflow.com/questions/243777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need a row count after SELECT statement: what's the optimal SQL approach? I'm trying to select a column from a single table (no joins) and I need the count of the number of rows, ideally before I begin retrieving the rows. I have come to two approaches that provide the information I need. Approach 1: SELECT COUNT( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Simple Website (Apache/PHP/MySQL + JavaScript) I've been asked to create a fairly straightforward website for a friend. Essentially a user will log in, fill in a set of information, and submit it. This data will then need to written to a database (and read from/presented at a future point). I'm not really a web deve...
{ "language": "en", "url": "https://stackoverflow.com/questions/243788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Assign auto-incrementing value to new column in Oracle I have this table in an Oracle DB which has a primary key defined on 3 of the data columns. I want to drop the primary key constraint to allow rows with duplicate data for those columns, and create a new column, 'id', to contain an auto-incrementing integer ID f...
{ "language": "en", "url": "https://stackoverflow.com/questions/243790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQuery UI Tabs Causing Screen to "Jump" I'm using the latest version of the jQuery UI tabs. I have tabs positioned toward the bottom of the page. Every time I click a tab, the screen jumps toward the top. How can I prevent this from happening? Please see this example: http://5bosses.com/examples/tabs/sample_tabs.ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/243794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: How do you change the address of a document library? I have a site with multiple document libraries in it. One of the site users has full control of the site & at one point, instead of creating a new document library, they renamed the default document library from "Shared Documents" to "Correspondence". Now they'v...
{ "language": "en", "url": "https://stackoverflow.com/questions/243799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why are hidden form elements still read by JAWS? The Situation I have an area of the screen that can be shown and hidden via JavaScript (something like "show/hide advanced search options"). Inside this area there are form elements (select, checkbox, etc). For users using assistive technology like a screen-reader (in...
{ "language": "en", "url": "https://stackoverflow.com/questions/243800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Memory allocation on Windows C code I'd like to know which method is recommended on Windows C programming: using malloc or the Win32 HeapAlloc (maybe VirtualAlloc?) function. I've read the MSDN Memory Management Functions article and the MSDN articles regarding malloc and HeapAlloc, but they do not say which one sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/243802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to convert all html escaped characters in a tidied xhtml string, so it loads in an XmlDocument? In a .net web application I talk to a 3rd party CMS api which gives back html. I need to convert it to well formed xml, so I use an .NET wrapper around HTML tidy. This generates a nice DOM, but things go wrong when ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/243806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When should I use the java 5 method cast of Class? Looking through some code I came across the following code trTuDocPackTypdBd.update(TrTuDocPackTypeDto.class.cast(packDto)); and I'd like to know if casting this way has any advantages over trTuDocPackTypdBd.update((TrTuDocPackTypeDto)packDto); I've asked the dev...
{ "language": "en", "url": "https://stackoverflow.com/questions/243811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Need help configuring IIS to serve 2.0 web services I am attempting to deploy .NET 2.0 web services on IIS that has both 1.0 and 2.0 installed. This web server primarily serves a large .NET 1.0 application. I have copied by .NET 2.0 web service project to the server and have created a virtual directory to point to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/243814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: key down in .net How to validate iscontrolkeys in textbox keydown event in .net? A: This msdn page should do the trick - check the keypresseventsargs returned in the keypress or this keydown page should allow you to query the control keys (using the relevant .Net enum) A: in C#, private void textBox1_KeyDo...
{ "language": "en", "url": "https://stackoverflow.com/questions/243816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.Net MVC JQuery goodness I've been developing a simple website using asp.net MVC and I'm starting to add some JQuery\JSON goodness. My problem is up until now all my 'Views' have been strongly typed and I've been building the view based on data from ViewData.Model.MyViewsData. Now once the view has been render...
{ "language": "en", "url": "https://stackoverflow.com/questions/243822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }