text
string
meta
dict
Q: Why should I use an IDE? In another question, Mark speaks highly of IDEs, saying "some people still just dont know "why" they should use one...". As someone who uses vim for programming, and works in an environment where most/all of my colleagues use either vim or emacs for all of their work, what are the advantage...
{ "language": "en", "url": "https://stackoverflow.com/questions/208193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "397" }
Q: Forcibly rollback an installer in c# setup projects I have created a custom action dll.I just want to check if a product with same name exists(Done).If yes tell the user to uninstall the product by throwing a InstallException.However if the products are installed in same directory the Install state of the prev produ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically page between silverlight controls I have a set of Silverlight controls and I want to create a webpage that will automatically alternate between these controls. Any idea how I go about doing this? The order that they are displayed and the period of time each one is displayed for needs to be configurabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/208218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to use java.util.Preferences under Windows without it using the Registry as the backend? I want to use the java.util.Preferences API but I don't want my program to attempt to read or write to the Windows registry. How would I go about this? A: It is always possible to extend java.util.prefs.AbstractP...
{ "language": "en", "url": "https://stackoverflow.com/questions/208231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to Show/Hide Panels before executing Response.Redirect I have a form that kicks off a Response.Redirect to download a file once complete. I also want to hide the form and show a 'thank you' panel before the redirect takes place, however it seems the asp.net engine just does the redirect without doing the 2 task...
{ "language": "en", "url": "https://stackoverflow.com/questions/208234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Does oracle allow the uncommitted read option? In db2 a query with a 'with ur' clause allows the query to be an uncommitted read and so does the 'with nolock' clause in mysql. Is there such an option in oracle too... If not why?? A: Tom Kyte's answer is correct WRT oracle, there is no such thing as a dirty read due...
{ "language": "en", "url": "https://stackoverflow.com/questions/208236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to automatically remap .html pages to .aspx pages? We have a website; which, till now had only HTML pages. Now we are redeveloping it in ASP .Net. This means that all the .html pages will be changed to .aspx extension. The problem is, there are a lot of external references to these pages, and we dont want to go ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: GWT FileUpload initial path Is there a way to set the initial path for the FileUpload widget in GWT. So the next time the user presses the browse button he is put to the location he has been the last time (if existent). A: OK apparently there is a attribute but which is not supported for various reasons, as we can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: opengl problem under vista I've just started with opengl but I ran into some strange behaviour. Below I posted code that runs well in xp but on vista it renders just black screen. Sorry for posting unusally (as for this board) long code. Is there something very specific to open gl in vista? Thanks. #include<windows....
{ "language": "en", "url": "https://stackoverflow.com/questions/208254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get tomcat 5.5 to run behind apache 2 with mod_rewrite passing through requests to mod_jk and stripping app context? Ok, so I want to get a webapp running in tomcat (5.5) to run behind apache 2 (2.2.3 to be precise) serving from the root of the site (i.e. without the context), with static content being serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/208261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I find all instances of a plugin using jQuery? I've created a jQuery wee plugin for myself which takes care of showing, hiding and submitting a form to give in-place editing. Currently I have several of these on a page which function independently and I am happy. However, I'm thinking that an 'Edit All' might...
{ "language": "en", "url": "https://stackoverflow.com/questions/208262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server 2005 performance issue I have a dev and a UAT environments. Dev is in our place, UAT is in client's place. Our DEV machine is a XEON 4 core @2,33GHz, 4Go RAM with Windows server 2003 The UAT physical machine is quite the same but a virtual machine is used (under VMWare). I don't know the exact parameter...
{ "language": "en", "url": "https://stackoverflow.com/questions/208263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you control what monitor your application opens on? As a two-monitor user at work, I've noticed that applications behave differently with regards to what monitor they open on (primary or secondary monitor, the last monitor the application opened on, and so on). To be honest, some applications annoy me because...
{ "language": "en", "url": "https://stackoverflow.com/questions/208266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Enumerating network shared directories in C++ / MFC I need to get a list of directories shared by the current computer, and their shared names. How do I do this in C++ / MFC? A: You can use NetShareEnum, supplying NULL as the server name. You need to include Lm.h and add Netapi32.lib to the list of libraries linked...
{ "language": "en", "url": "https://stackoverflow.com/questions/208268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Purpose of _never_executed()? I have seen this macro defined before but never really knew its purpose. Can anyone shed light on this? A: This is a compiler intrinsic used for optimization, typically seen in embedded programming. The only time I have seen it used is in the "default" for a switch statement to assert ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to programatically find out what process is locking a file across a network I have a file on a Windows 2003 server which is locked by a process running on another Windows 2003 server. Is it possible to find out which process on which machine is locking this resource. I don't mind which language I us...
{ "language": "en", "url": "https://stackoverflow.com/questions/208283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Looking for pragmatic CMDB solution I need a solution to catalog a number of applications in our company (more than 100 less than 1000). Right now we are using a spreadsheet and for each app we fill in name, short description, contact person and maintainer (internal or vendor). The puspose is to use this list for I...
{ "language": "en", "url": "https://stackoverflow.com/questions/208292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can we configure Oracle ADF Faces to produce valid XHTML? We are using Oracle ADF Faces in a new web project. I am always looking for an unobtrusive user experience with progressive enhancement and valid XHTML output. It seems however that ADF Faces produce ugly, non-validating (table based) HTML output that reminds...
{ "language": "en", "url": "https://stackoverflow.com/questions/208295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Managing the maintenance burden of unit tests Coding test-first, I find that perhaps 3/4 of my code is unit tests; if I were truly extreme, and didn't write a line of code except to fix a failing unit test, this ratio would be even higher. Maintaining all these unit tests adds a huge amount of inertia to code chang...
{ "language": "en", "url": "https://stackoverflow.com/questions/208302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: can i clean stacktrace? i know that i can get stacktrace by using Thread.getAllStackTraces()(it returns Map, but clear does not work). When I run recursion method i can get exception because of stacktrace being too big, is there any way to clear it? A: It's not the stack trace that is causing your problem, it's the...
{ "language": "en", "url": "https://stackoverflow.com/questions/208306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Way to tell if an app is ASP.NET 1.1 or ASP.NET 2.0 How can I tell if an App is ASP.NET 2.0 or ASP.NET 1.1. This is in C# I don't have the source code and I don't have access to IIS Manager. But I can ftp and check the ASPX files. Any Ideas? A: if you can get an error message to show it will tell you at the bottom...
{ "language": "en", "url": "https://stackoverflow.com/questions/208316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Automate Test Orders I need a way to automate test orders on our test and production web sites. I was thinking about using something like iMacro, but I thought there must be a better way. Any ideas? A: Another good FF add-in is Selenium IDE which seems a bit more feature rich than the add-in for iMacros. There are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Deployed Web Part not showing up in 'Web Part Gallery: New Web Parts' I took a wsp file, and did my stsadm -o addsolution like usual. Then I went into central administration->solution management and it showed up just fine. Then I deployed the web part, no problems so far. The problem is when I go to add it to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NoClassDefFoundError when trying to use JMockit Coverage I am trying to use JMockit's code coverage abilities. Using the JVM parameter -javaagent:jmockit.jar=coverage=.*MyClass.java:html:: I am able to run my tests (jmockit.jar and coverage.jar are on the classpath), unfortunately my log file says: Loaded external ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is enumerating installed MSI packages so slow? This is a follow up from this question. I'm using this slightly modified script to enumerate all installed MSI packages: strComputer = "." Set objWMIService = GetObject("winmgmts:" & _ "{impersonationLevel=impersonate}!\\" & _ strComputer & _ "\root\cim...
{ "language": "en", "url": "https://stackoverflow.com/questions/208355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: creating a custom JSP tag I'm trying to create a custom JSP tag that would take an array object and display the elements of the tag in an HTML table. Does anyone have suggestions on how to do this? A: Do you mean something like displayTag? That can form tables out of lists of objects. A: As Phill mentioned, the Di...
{ "language": "en", "url": "https://stackoverflow.com/questions/208367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I change the font used by the FLVPlaybackCaptioning component for subtitles? How can I set the font used by the FLVPlaybackCaptioning component for subtitles? Using the style property of the textarea does nothing, and using a TextFormat makes the text go blank, even though the font had been embedded. A: It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wxWidgets: How to initialize wxApp without using macros and without entering the main application loop? We need to write unit tests for a wxWidgets application using Google Test Framework. The problem is that wxWidgets uses the macro IMPLEMENT_APP(MyApp) to initialize and enter the application main loop. This macro ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How are most AS3 Video Players Created? Are most flash video players created all programmatically? Or they done using static buttons that are referenced in classes? Is it better to create all your buttons on the fly or does it not really matter? A: I've found the easiest way was to use AS3 video components and cust...
{ "language": "en", "url": "https://stackoverflow.com/questions/208380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the difference between anonymous methods (C# 2.0) and lambda expressions (C# 3.0)? What is the difference between anonymous methods of C# 2.0 and lambda expressions of C# 3.0.? A: * *Lambda expressions can be converted to delegates or expression trees (with some restrictions); anonymous methods can only be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: WeakReference Bug? [TestMethod] public void Memory() { var wr = new WeakReference("aaabbb"); Assert.IsTrue(wr.IsAlive); GC.Collect(); GC.Collect(); GC.Collect(); GC.Collect(); GC.Collect(); Assert.IsFalse(wr.IsAlive); //<-- fails here } It's .NET 3.5 SP1 Can anyone can tell me why th...
{ "language": "en", "url": "https://stackoverflow.com/questions/208387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to embed IronPython in a .NET application Is it possible to expose an API in a .NET application by embedding a scripting language like IronPython? How is it done? A: IronPython has a hosting API which can be used to execute IronPython scripts from a C#\VB application. This is a good example of embedding IronPyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/208393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: LoadfromText gives error 2285 (Microsoft Office Access can't create the output file) When importing forms in access using loadfromtext, I continually get a runtime error 2285. Searching the internet shows many people with the same problem, yet no solutions. Does anyone know what causes this bug? Edit: In addition a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hashing data to ensure it wasn't corrupted during transfer (under asp.net enviro) I will be sending data to a central server via a web service, and I want to hash the data to ensure that it didn't get corrupted during transfer. Which hash method should I use? Can I hash when the web service is passing objects? A: I...
{ "language": "en", "url": "https://stackoverflow.com/questions/208399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are C# enums typesafe? Are C# enums typesafe? If not what are the implications? A: For those suggesting to use Enum.IsDefined to do argument validation...don't! Per Brad Abrams (from the Framework Design Guidlines Update on Enum Design): There are really two problems with Enum.IsDefined(). First it loads reflecti...
{ "language": "en", "url": "https://stackoverflow.com/questions/208404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: In Qt, for a context menu item, how to hide the space of the icon I am adding a context menu using QAction for a widget. Now, there is some white space beside the text of the action. I assume this is the space where the QIcon association with the QAction should have been there. Now how do I hide this space. I tried ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Render partial from different folder (not shared) How can I have a view render a partial (user control) from a different folder? With preview 3 I used to call RenderUserControl with the complete path, but whith upgrading to preview 5 this is not possible anymore. Instead we got the RenderPartial method, but it's not...
{ "language": "en", "url": "https://stackoverflow.com/questions/208421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "275" }
Q: How do I write a short literal in C++? Very basic question: how do I write a short literal in C++? I know the following: * *2 is an int *2U is an unsigned int *2L is a long *2LL is a long long *2.0f is a float *2.0 is a double *'\2' is a char. But how would I write a short literal? I tried 2S but that gi...
{ "language": "en", "url": "https://stackoverflow.com/questions/208433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "144" }
Q: Preview theme in drupal I am using drupal for the first time. I have successfully developed my first drupal website to a certain extent. I have used my own custom theme for the front-end and blue marine theme for administrator. Now my client's requirement is that when he clicks on preview button before submitting th...
{ "language": "en", "url": "https://stackoverflow.com/questions/208435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to detect the printer model in Delphi? When I plug my HP Laserjet 3015, Windows detects the correct model and then tries to install the appropriate drivers. How can I detect the model of connected printer(s)? I don't want to use the list of installed printers because a Zebra printer can be installed with a Gener...
{ "language": "en", "url": "https://stackoverflow.com/questions/208436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to summarize view-components/widgets-information in a JAR-File? I would like to use an ajax toolkit/framework like ZK (www.zkoss.org) or GWT. But I don't know whether it's possible to bundle resources in a JAR? Do you know which one support such resource loading? A: Not sure what your goal is, but if its to bun...
{ "language": "en", "url": "https://stackoverflow.com/questions/208440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are the major benefits of scrum as a methodology? I work in the technical department of a design agency. We use XP to manage our department's software development. I have been asked to give a short presentation describing Scrum and whether it would be suitable, in a broader context, for managing client project ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Issues During ASP.NET MVC Upgrade from Preview 5 to Beta? What issues or refactoring did you have to do when you upgraded from ASP.NET MVC Preview 5 to the newly released Beta version? A: I'm about to do this myself. Here's the list of changes from the readme: Changes Made Between CodePlex Preview 5 and Beta * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to tell which RequiredFieldValidator failed I have multiple RequireFieldValidators on my aspx page. On the backend (C#) I want to be able to tell which control specifically wasn't valid so I can apply a style to that control. I use the Page.IsValid method to see if the overall page passed validation but I need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/208469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting jQuery to recognise .change() in IE I'm using jQuery to hide and show elements when a radio button group is altered/clicked. It works fine in browsers like Firefox, but in IE 6 and 7, the action only occurs when the user then clicks somewhere else on the page. To elaborate, when you load the page, everything...
{ "language": "en", "url": "https://stackoverflow.com/questions/208471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Application Settings What is a fairly standard way for storing application settings, mainly for windows but also easy to move over to other platforms. There's basically 4 groups of settings I want to have: * *Global settings, affects all users, and may be moved between machines *Global system settings, affects a...
{ "language": "en", "url": "https://stackoverflow.com/questions/208475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to best update a website from subversion I have a PHP website backed by a MySQL database and a small team of programmers submitting code to subversion. Typically we write code, test it locally, commit to subversion and then copy changed files to a hidden area for online testing. However mistakes can be made. O...
{ "language": "en", "url": "https://stackoverflow.com/questions/208484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: When should the Win32 InterlockedExchange function be used? I came across the function InterlockedExchange and was wondering when I should use this function. In my opinion, setting a 32 Bit value on an x86 processor should always be atomic? In the case where I want to use the function, the new value does not depend...
{ "language": "en", "url": "https://stackoverflow.com/questions/208490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: ASP.net Web Services versus WCF A .net desktop application will send information to a central server, there will be potentially thousands and thousands of deskop apps sending info to my server(s). The data will be small in size. Would .net web services be good for this scenerio or would WCF be better suited? What ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/208492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Search All Fields In All Tables For A Specific Value (Oracle) Is it possible to search every field of every table for a particular value in Oracle? There are hundreds of tables with thousands of rows in some tables so I know this could take a very long time to query. But the only thing I know is that a value for the...
{ "language": "en", "url": "https://stackoverflow.com/questions/208493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "137" }
Q: Struts JSP previous link Does anyone know how I can retrieve the previous JSP URL that a page has come from within a JSP? Can I retrieve this from the session/ request/ response object? Hope this makes sense, Thank you A: Many thanks - apologies for not being able to mark my correct answer as the site seems to hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/208518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pocket PC emulator with network access without Virtual PC? In developing software for the Pocket PC platform, I have been happily using the Pocket PC emulator that Microsoft provides with Visual Studio (and as a free download). It provides for much faster develop/deploy/test cycles. (Of course, I do still final te...
{ "language": "en", "url": "https://stackoverflow.com/questions/208528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why does MSI require the original .msi file to proceed with an uninstall? As most of you probably noticed, when uninstalling an MSI package Windows will ask for the original .msi file. Why is that? I can only see disadvantages to that: * *not resilient to network changes. *not resilient to local disk changes. *...
{ "language": "en", "url": "https://stackoverflow.com/questions/208530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do you convert a DataTable into a generic list? Currently, I'm using: DataTable dt = CreateDataTableInSomeWay(); List<DataRow> list = new List<DataRow>(); foreach (DataRow dr in dt.Rows) { list.Add(dr); } Is there a better/magic way? A: List<Employee> emp = new List<Employee>(); //Maintaining DataTable ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "203" }
Q: IndexOutOfRangeException on Queryable.Single I have an ASP.NET site that has been running perfectly for a long time, nothing's changed recently. From one hour to the next I started receiving an IndexOutOfRangeException in a line where I do a LINQ query like this: var form = SqlDB.GetTable<ORMB.Form, CDB>() .Wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/208533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: what is the difference between using shift-f5 or the red-X on the controlbox for terminating a debug session? is there a difference in the dispose() functions being called ? A: I'll guess that you're asking about closing the debuggee via the X button in the top right, versus stopping debugging via the Stop Debuggin...
{ "language": "en", "url": "https://stackoverflow.com/questions/208554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: browser back button doesnt work in cached environment The back button just causes my page to refresh. Is there a way around this without disabling the cache? A: Try adding this to your HTML header: <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> A: where you clic...
{ "language": "en", "url": "https://stackoverflow.com/questions/208557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to detect when an object is no longer referenced Is there a way to create register a handler that will be called exactly at the time when the last reference to a certain object is released? An example would be an object that is backed by a physical data file and once the object become unreferenced, the file shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/208562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I get the instance value of a property marked with a Attribute? I have a class which is marked with a custom attribute, like this: public class OrderLine : Entity { ... [Parent] public Order Order { get; set; } public Address ShippingAddress{ get; set; } ... } I want to write a generic me...
{ "language": "en", "url": "https://stackoverflow.com/questions/208570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CastleProject *.vm HttpForbiddenHandler not work I try to use HttpForbiddenHandler to block the file without success. The web.config is as follows: <httpHandlers> <add verb="*" path="*.ashx" type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework"/> <add verb="*" path="*.vm" type="Syste...
{ "language": "en", "url": "https://stackoverflow.com/questions/208571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you register a Windows Service during installation? I have built a windows service application in VB.net 2008, and used the Setup Wizard to add an installation process. The installer works, in that it adds the app to add/remove programs and copies all of the files etc, but it's missing the final (required) st...
{ "language": "en", "url": "https://stackoverflow.com/questions/208575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Naming of ID columns in database tables I was wondering peoples opinions on the naming of ID columns in database tables. If I have a table called Invoices with a primary key of an identity column I would call that column InvoiceID so that I would not conflict with other tables and it's obvious what it is. Where I am...
{ "language": "en", "url": "https://stackoverflow.com/questions/208580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "121" }
Q: What services are required by SQL Express/SQL Server? One of our partners recently reported that our software could not contact a remote instance of SQL Express until they started the RPC Locator and SQL Server Browser services. Where would I find a list of services that must be running, on both server and client, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/208587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling versioning for clients when using WCF Desktop clients will be pushing data using WCF to a central server. When the schema changes etc, say 100 computers have the old version of the desktop client while the rest are using the latest build. What do I have to do on the server end to handle both versions? Do I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to cascade rename PK on table, MS SQL 2005 I have successfully been able to rename a table and drop all constraints on that table with foreign key relationships and build they all back up. However, now I am at a point where the PK_tblFoo exists in more than one place (when I transfer the table to another DB). Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/208604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XSD and polymorphism I am kinda repeating this question bit the 1st time it was asked incorrectly. I have this: <xsd:complexType name="A"> <xsd:sequence> <xsd:element name="options" type="options"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="B"> <xsd:complexContent> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you get client DPI in Partial Trust XBAP? Is it possible to get the client's DPI in a Partial Trust XBAP? If so, how? A: First, here is how to get retrieve the client's DPI in WPF: http://blogs.msdn.com/jaimer/archive/2007/03/07/getting-system-dpi-in-wpf-app.aspx However, according to the MSDN documentation...
{ "language": "en", "url": "https://stackoverflow.com/questions/208616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the reasoning for and the basic concepts behind an interstitial loading page? I'm interested in finding out why this is used on some Web sites for processing user-initiated search submissions, how it affects the request and response flow, and programmatically why it would be necessary (or beneficial). In an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sharepoint StateMachine : Handling multiple responses to multiple created tasks I created a StateMachine workflow for sharepoint and at one state, I create multiple tasks using a replicator. The number of tasks created is variable. I need to handle the OnTaskChanged event for all the tasks I created which seems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery: How to stop a helper from being removed if it wasn't successfully dropped I have a draggable with a custom helper. Sometimes the helper is a clone and sometimes it is the original element. The problem is that when the helper is the original element and is not dropped on a valid droppable it gets removed. My...
{ "language": "en", "url": "https://stackoverflow.com/questions/208647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: In SAP SCRIPT, how to add a page break or print the records in a new page I would like to print the records in a new page every time the contract number changes. What is the syntax for new page in the SAP SCRIPT. Kindly let me know if you know how to achieve this. A: Inside of SAPSCRIPT (Transaction SE71) use the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/208648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GUI For Service Methods We have a service that runs methods used for data import/export at specified intervals. To test these methods we have a little application with a single button that, when clicked, instantiates the import/export class and invokes the desired method. Nothing fancy. I would like create a more...
{ "language": "en", "url": "https://stackoverflow.com/questions/208653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looking for simple rules-engine library in .NET Does anyone know of a good .NET library rules library (ideally open-source)? I need something that can do nested logic expressions, e.g., (A AND B) AND (B OR C OR D). I need to do comparisons of object properties, e.g., A.P1 AND B.P1. (Ideally, I could compare any p...
{ "language": "en", "url": "https://stackoverflow.com/questions/208659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: Online Translation I am trying to develop an online translation service (sort of a personal challenge) but I have been looking for any guidelines or any way to see how it should be done and so far I have come up with nothing so. In a nutshell, does anybody knows where to find a service, code or explanation of how on...
{ "language": "en", "url": "https://stackoverflow.com/questions/208665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Two foreign keys instead of primary I was wondering, is there any possibility to create a table without a primary key, but with two foreign keys, where the foreign keys pairs are always different? For example, a STOCK table with item_id and warehouse_id as foreign keys from ITEMS and WAREHOUSES tables. So same item ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Odd .Net serialization problem I had an odd problem today when I was trying to serialize an object. The object was generated via "Add service reference" from a web service (svcutil.exe). The problem was that the below property (agencyId) was not being serialized with the rest of the object. Out of desperation I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Java Media Framework on client side? If I’m writing an applet that shows a video sequence (eg. streaming from a camera, or the applet itself is running the on the camera), do my clients need to download the Java Media Framework libraries inorder to see the sequence? A: They need to install Java Media Framework on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/208672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does a checkbox remain checked in FF3 but not in IE, Chrome or So - I have a checkbox <asp:CheckBox ID="chkOrder" runat="server" Visible='<%#IsCheckBoxVisible() %>' Checked="false" OnCheckedChanged="chkOrder_CheckedChanged" AutoPostBack="true" EnableViewState="false"></asp:CheckBox> the one ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/208682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting a DBGrid column format in Delphi I am using a DBGrid component in Delphi. I wonder how I can set the format of a column. I have real values that I want to be displayed as currency in the grid. Someone knows how? A: * *You can set the DisplayFormat of the Field *You can handle OnGetText event. This appr...
{ "language": "en", "url": "https://stackoverflow.com/questions/208691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ActiveMQ over SSL to a .NET client Does anyone know if it's possible to connect a C# client to an ActiveMQ instance over SSL using the Spring.Messaging.Nms library? Or if not using NMS then some other library? A: If it is possible then Spring.Messaging.Nms is the way, yes. I'm just not sure if the ActiveMQ C# code...
{ "language": "en", "url": "https://stackoverflow.com/questions/208695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# property attributes I have seen the following code: [DefaultValue(100)] [Description("Some descriptive field here")] public int MyProperty{...} The functionality from the above snippit seems clear enough, I have no idea as to how I can use it to do useful things. Im not even sure as to what name to give it! Doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/208703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Design Hints, Payroll System...repost We are designing a Payroll Generation System for a client. The organization we are targeting has a hierarchy as follows: Company -> Cluster -> Business Unit (BU) -> Department -> Employee The salary for an employee is made up of various salary components. Each salary component h...
{ "language": "en", "url": "https://stackoverflow.com/questions/208707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Compile and invoke a generated method I managed to create a class using CodeDom and add a single method to that class. Now, is there a way to, having constructed the CodeCompileUnit instance, compile the code and invoke the generated method? The method invocation has to be done in the same context as the code genera...
{ "language": "en", "url": "https://stackoverflow.com/questions/208711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does anyone know what happened to javaspec.org? javaspec.org should contain a java-related wiki; but it seems down... Is this only temporary or is it down 'forever'? A: The domain was registered in Jan 2008 through GoDaddy, by "DomainByProxy". It sounds like the original owners shut it down and let the domain name ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error when copying a check constraint using DTS I have a DTS package that is raising an error with a "Copy SQL Server Objects" task. The task is copying a table plus data from one SQL Server 2000 SP4 server to another (same version) and is giving the error: - Could not find CHECK constraint for 'dbo.MyTableName', al...
{ "language": "en", "url": "https://stackoverflow.com/questions/208716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it true that WCF are either console apps or run under IIS? Is it true that a WCF either runs as a console application that you have to manually start OR under a more traditional IIS application (like a website or webservice) A: EDIT: No, that is not quite true. Those are two hosting options for WCF. There are...
{ "language": "en", "url": "https://stackoverflow.com/questions/208721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does the .Net TraceSource/TraceListener framework have something similar to log4net's Formatters? I've begun to the the built-in TraceSource and TraceListener classes and I would like to modify the output format of the events independently of the TraceSources and TraceListeners. It seems that the TraceListeners app...
{ "language": "en", "url": "https://stackoverflow.com/questions/208735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Strip whitespace from jsp output How can I strip out extra whitespace from jsp pages' output? Is there a switch I can flip on my web.xml? Is there a Tomcat specific setting? A: The trimDirectiveWhitespaces is only supported by servlet containers that support JSP 2.1 and after, or in the case or Tomcat, Tomcat 6 (...
{ "language": "en", "url": "https://stackoverflow.com/questions/208736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "117" }
Q: Is there a tool to alphabetize CSS definitions in Visual Studio? Eric Meyer's advice to keep individual rules alphabetized in a CSS style definition makes sense - there's no "natural" way to order rules, and this makes it easy in a complex definition to make sure you don't define the same thing twice. div.Foo { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Convert Excel VBA to VB.Net with Selection.ListObject.QueryTable Intact I need to access the Selection.ListObject.QueryTable object in order to preserve the column width. The code is as follows: Range("B9").Select() With Selection.ListObject.QueryTable .RowNumbers = False .FillAdjacentFormulas = False .P...
{ "language": "en", "url": "https://stackoverflow.com/questions/208755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Return value of WaitForObject What is the return value of the WaitForObject() function? I do not mean the type of return value (int). What does it return if the event is signalled and what does it return if the event is not signalled? A: There is no WaitForObject function. I assume that you mean either WaitForSingl...
{ "language": "en", "url": "https://stackoverflow.com/questions/208767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Process text files ftp'ed into a set of directories in a hosted server The situation is as follows: A series of remote workstations collect field data and ftp the collected field data to a server through ftp. The data is sent as a CSV file which is stored in a unique directory for each workstation in the FTP server....
{ "language": "en", "url": "https://stackoverflow.com/questions/208772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Activator.CreateInstance can't find the constructor (MissingMethodException) I have a class which has the following constructor public DelayCompositeDesigner(DelayComposite CompositeObject) { InitializeComponent(); compositeObject = CompositeObject; } along with a default constructor with no parameters. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Minimize CSS length holding style of given HTML constant Suppose A.css styles B.html. What tools/techniques are there to programmatically reduce the size of A.css while holding its styling effects on B.html constant? Here are some techniques I would imagine such a tool using: * *Remove redundancies in A.css. For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ODBC x64 oracle problem I have a workstation with Windows 2008 x64, MS Access 2007 and Oracle 11g x64 I use Access to connect to Oracle via ODBC. I am the administrator (in the administrator group) on the workstation. I run Access as administrator but when I want to make an ODBC call to Oracle it does not work. How ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django @ Google App Engine - Site Map Framework has anybody managed to get Djangos site map framework to run on Google App Engine? I receive the following exception: ImproperlyConfigured at /sitemap.xml You haven't set the DATABASE_ENGINE setting yet. Request Method: GET Request URL: http://127.0.0.1:8080/sitemap.xm...
{ "language": "en", "url": "https://stackoverflow.com/questions/208824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What conventions exist for ordering arguments in methods? A colleague and I are discussing best practices regarding ordering method parameters. The goal is to establish a standard in our organization to improve readability and productivity by giving our methods common signatures. We are merely establishing guideli...
{ "language": "en", "url": "https://stackoverflow.com/questions/208828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Function pointers, Closures, and Lambda I am just now learning about function pointers and, as I was reading the K&R chapter on the subject, the first thing that hit me was, "Hey, this is kinda like a closure." I knew this assumption is fundamentally wrong somehow and after a search online I didn't find really any a...
{ "language": "en", "url": "https://stackoverflow.com/questions/208835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: How can I mount a windows drive in Java? We are working with some legacy code that accesses a shared drive by the letter (f:\ for example). Using the UNC notation is not an option. Our Java wrapper app will run as a service, and as the first step, I would like to map the drive explicitly in the code. Has anyone don...
{ "language": "en", "url": "https://stackoverflow.com/questions/208839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to get pointer from another thread? Let's have the following class definition: CThread::CThread () { this->hThread = NULL; this->hThreadId = 0; this->hMainThread = ::GetCurrentThread (); this->hMainThreadId = ::GetCurrentThreadId (); this->Timeout = 2000; //milliseconds ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }