text
string
meta
dict
Q: How to find all dependencies of a .NET project? Basically, what I need is something like Dependecy Walker, but it should work with .NET applications. Is there anywhere such tool? A: I prefer ILSpy. It's an open-source .NET assembly browser and decompiler. And yes, it shows dependencies. Decent replacement for Refle...
{ "language": "en", "url": "https://stackoverflow.com/questions/197447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Why are Wemf and Google Analytics telling me so different things? The website works with Wemf and Google Analytics, but they are giving me very different results; WEMF counts 10 - 30 % more page views than Google Analytics... Why can this be? Google Analytics works only with JavaScript enabled, yes - but I don't thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/197459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What navigation control would you choose to use in your application? ToolStrip with MenuStrip or RibbonBar? It combines both of the controls. It also have a TabPages navigation, contextual tabs, etc. However the RibbonBar is a very complex control and when you open a new document in for example Word2007 the half o...
{ "language": "en", "url": "https://stackoverflow.com/questions/197460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between "VC++" and "C++"? Someone asked me how familiar I am with VC++ and how familiar I am with C++. What is the difference? A: C++ is the actual language, VC++ is Microsoft's Visual C++, an IDE for C++ development. From stason.org: C++ is the programming language, Visual C++ is Microsoft...
{ "language": "en", "url": "https://stackoverflow.com/questions/197461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: What's a good templating system for PHP? What's the best/easiest to integrate templating system for PHP, and what are the benefits of using one? I currently don't use one at all, and am thinking that it might help to seperate content from presentation a little more. A: To follow up on what Alex said, I suggest tak...
{ "language": "en", "url": "https://stackoverflow.com/questions/197466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does ATL/WTL still require the use of a global _Module variable? I'm just starting up a new ATL/WTL project and I was wondering if the global _Module variable is still required? Back a few years when I started working with WTL it was required (at least for ATL 3.0) that you define a global variable such as: CAppMod...
{ "language": "en", "url": "https://stackoverflow.com/questions/197468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: JPA and Hibernate - Criteria vs. JPQL or HQL What are the pros and cons of using Criteria or HQL? The Criteria API is a nice object-oriented way to express queries in Hibernate, but sometimes Criteria Queries are more difficult to understand/build than HQL. When do you use Criteria and when HQL? What do you prefer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "312" }
Q: When to use a new exception type What are the guidelines for when to create a new exception type instead of using one of the built-in exceptions in .Net? The problem that got me thinking is this. I have a WCF service, which is a basic input-output service. If the service is unable to create an output, because the in...
{ "language": "en", "url": "https://stackoverflow.com/questions/197482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: jQuery drag and drop - how to get at element being dragged I am using the jQuery library to implement drag and drop. How do I get at the element that is being dragged when it is dropped? I want to get the id of the image inside the div. The following element is dragged: <div class="block"> <asp:Image ID="Image9...
{ "language": "en", "url": "https://stackoverflow.com/questions/197489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: How do I determine number of window handles an application is using? What is the best way to determine how many window handles an application is using? Is there a tool or a WMI performance counter that I could use? I would like to run up an app and watch a counter of some sort and see that the number of window hand...
{ "language": "en", "url": "https://stackoverflow.com/questions/197497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: PHPs mime_content_type() fail on windows I know mime_content_type() is deprecated, but it seemed to me the alternative is worse at the moment. Finfo seems to require adding files and changing ini directions on windows; I don't want to require this for the script I am making. I need to find the mimetype of files, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/197508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use Data Access Objects for serialized & relational database data access I am developing a C++ domain model class library which should provide some facilities or a framework (i.e. interface classes etc) for writing/reading class instance data to/from both a binary file and a RDBMS. The basis for this library ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I create a single VB6 OCX with multiple controls? I have inherited a load of VB6 code which has tons of individual OCX files, each of which contain a single control. I have two questions: Firstly, Is it possible to refactor them so that I can have a single OCX file with all the OCX's in it? Secondly, if it is...
{ "language": "en", "url": "https://stackoverflow.com/questions/197518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way of using List and exposing Collection I must implement a web service which expose a list of values (integers, custom classes etc). My working solution returns a List<T>, and according to FxCop it is better to return a Collection<T> or ReadOnlyCollection<T>. If I choose to return a ReadOnlyCollection<T>, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/197521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the simplest way to charge money over the Internet? I have a .Net 2.0/3.5 WebApplication. I want to be able to take money over the internet for my service. Each of my customers will have an AccountNo. I wish to offer several products each of which will have fixed price. I need for my customer to login to my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What real-world projects would you suggest as code examples to study? What real-world projects would you suggest looking through the sources? As I'm learning Java Swing, mucommander seems to be a decent example. The code is excessively commented though. EDIT: No shameless plugs plz :). A: I learned a lot from looki...
{ "language": "en", "url": "https://stackoverflow.com/questions/197571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are best fit patterns to use when developing VSX Package or Isolated Shell Package? When I am developing a bunch of designers/tools, what are some of the best fit patterns that go with a VSX Package and/or VSX Isolated Shell Package? Any samples, links would be great. A: If you're looking for general design pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/197589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Exception handling practices Anyway, I'm a little confused about when to propagate an exception and when to wrap it, and the differences. At the moment, my understanding tells me that wrapping an exception would involve taking an exception like DriveNotFound (in IO) and then wrap it with the general IOException. But...
{ "language": "en", "url": "https://stackoverflow.com/questions/197593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Uploading and Downloading Comparison using WebRequest & Sockets Hiya I am working on an FTP client, can someone tell me the difference in speed and efficiency for using WebRequest and sockets (direct network streams) to download and upload files on the FTP server. (Our files will be video streams.) I am using C#3.5...
{ "language": "en", "url": "https://stackoverflow.com/questions/197603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Turning C# methods into C++ methods I'm exploring various options for mapping common C# code constructs to C++ CUDA code for running on a GPU. The structure of the system is as follows (arrows represent method calls): C# program -> C# GPU lib -> C++ CUDA implementation lib A method in the GPU library could look some...
{ "language": "en", "url": "https://stackoverflow.com/questions/197606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Need help understanding "getbits()" method in Chapter 2 of K&R C In chapter 2, the section on bitwise operators (section 2.9), I'm having trouble understanding how one of the sample methods works. Here's the method provided: unsigned int getbits(unsigned int x, int p, int n) { return (x >> (p + 1 - n)) & ~(~0 <<...
{ "language": "en", "url": "https://stackoverflow.com/questions/197614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How to safely allow web-server to write to its own docroot? As a follow up to an earlier question that attracted a whole zero answers, I'm wondering about the possibilities of allowing a web server (apache) to write to its own document root (Linux), in order to dynamically create meta-redirect files. Of course, this...
{ "language": "en", "url": "https://stackoverflow.com/questions/197621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Commonclipse for Visual Studio? Is there a Visual Studio plugin/tool/snippet for .NET that is similar to commonclipse for the java eclipse platform that automatically generates the ToString(), Equals(), GetHashCode() methods for you? A: Resharper will do it. (not a free tool unfortunately) Here's a blog post about ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP + Quickbook Online Edition (API Integration)? Is it possible to integrate my PHP web-based ecommerce application with Quickbook Online Edition? When I make a sale on my web site, I would like to be able to make the corresponding journal entry in my accounting books. Note, I'm referring to Quickbook Online Editio...
{ "language": "en", "url": "https://stackoverflow.com/questions/197624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Framerate limit for WPF apps? I wonder if there is a way to limit the WPF framerate within a process? i.e. I do not want to limit a single animation's framerate, but the global framerate for my whole application. I think I've seen something like this before but I can't find it anymore. A: How to control the frame ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Microsoft MVC "echo/print/output" etc With ASP.NET's view engine/template aspx/ashx pages the way to spit to screen seems to be: <%= Person.Name %> Which was fine with webforms as alot of model data was bound to controls programatically. But with MVC we are now using this syntax more oftern. The issue I have with...
{ "language": "en", "url": "https://stackoverflow.com/questions/197634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Hibernate @ManyToMany mapping with composite keys I'm trying to map a ManyToMany relationships between 2 tables, both having composite primary keys LSFOCTB which primary key is composed of : LSFOC_CODSOC,LSFOC_CODLSC,LSFOC_CODFOC LSFORTB which primary key is composed of : LSFOR_CODSOC,LSFOR_CODLSC,LSFOC_CODFOR Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/197635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Could not load type..." when upgrading to W2K3 and IIS6 I have a c# .NET 2.0 application that has been running on W2K/IIS5 quite happily for several years. The sysadmin team are currently setting up a W2K3 box for the app, using the same install files, but are running into the dreaded "Could not load type..." error...
{ "language": "en", "url": "https://stackoverflow.com/questions/197639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate center of an ellipse by two points and radius sizes While working on SVG implementation for Internet Explorer to be based on its own VML format I came to a problem of translation of an SVG elliptical arc to an VML elliptical arc. In VML an arc is given by: two angles for two points on ellipse and le...
{ "language": "en", "url": "https://stackoverflow.com/questions/197649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How does delete[] "know" the size of the operand array? Foo* set = new Foo[100]; // ... delete [] set; You don't pass the array's boundaries to delete[]. But where is that information stored? Is it standardised? A: It's defined in the C++ standard to be compiler specific. Which means compiler magic. It can break w...
{ "language": "en", "url": "https://stackoverflow.com/questions/197675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "299" }
Q: Embedded C: what does var = 0xFF; do? I'm working with embedded C for the first time. Although my C is rusty, I can read the code but I don't really have a grasp on why certain lines are the way the are. For example, I want to know if a variable is true or false and send it back to another application. Rather than s...
{ "language": "en", "url": "https://stackoverflow.com/questions/197676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Is there a way for Ruby accessors to return something other than the set variable? I want to do some checking in a writer accessor. My first idea was returning a boolean. class MyClass def var=(var) @var = var # some checking return true end end m = MyClass.new retval = (m.var = 'foo') => "foo" Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/197678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: WCF - What is the difference between Binding.RecieveTimeout and Binding.ReliableSession.InactivityTimeout? In WCF, what is the difference between Binding.RecieveTimeout and Binding.ReliableSession.InactivityTimeout? A: From http://blogs.msdn.com/drnick/archive/2007/06/26/session-lifetime-on-the-server.aspx When usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/197682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ajax keep=alive a good idea? I'm currently working on a simple CRUD application. One requirement is preventing users from editing things concurrently. In order to do this I "lock" records to see if they're being edited, to prevent other users from editing at the same time. I was thinking a good way of implementing t...
{ "language": "en", "url": "https://stackoverflow.com/questions/197695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alternative IDE for Silverlight I want to play around with silverlight without having to buy a Visual Studio 2008 license. I already used my trial time with Visual Studio, so I'm trying to find another solution. Any thing out there? Thanks A: Visual Web Developer Express SP1 is supported with RC0 and later. Install...
{ "language": "en", "url": "https://stackoverflow.com/questions/197703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are the best options for Rich Text Editing in Rails? I'd like to use Rich Text Editing in place on forms in order to let admins change instructions. What are the best options for doing this? [To be more clear - the admins are non-technical but may want to control some formatting without using markup or with a...
{ "language": "en", "url": "https://stackoverflow.com/questions/197708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: JavaScript alert boxes combined with PHP echo "<td><a href='delete.php?id=$row[id]&&category=$a' onclick='return confirm(\'are you sure you wish to delete this record\');'>delete</a></td>"; Above is the code I am trying to use. Every time it does nothing and I cannot see how I can use 'proper' JavaScript methods. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/197712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Making a Table Row clickable I wonder what the best way to make an entire tr clickable would be? The most common (and only?) solution seems to be using JavaScript, by using onclick="javascript:document.location.href('bla.htm');" (not to forget: Setting a proper cursor with onmouseover/onmouseout). While that works, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Instantiating a C++ class in C# using P/Invoke via a pointer I am importing the CreateICeeFileGen() function from the unmanaged DLL mscorpe.dll in a C# application, in order to generate a PE file. This function returns a pointer to an C++ object defined here, is there any way I can access fields from this class via...
{ "language": "en", "url": "https://stackoverflow.com/questions/197720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programmatically Set Browser Proxy Settings in C# I'm writing an winforms app that needs to set internet explorer's proxy settings and then open a new browser window. At the moment, I'm applying the proxy settings by going into the registry: RegistryKey registry = Registry.CurrentUser.OpenSubKey("Software\\Microsoft...
{ "language": "en", "url": "https://stackoverflow.com/questions/197725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: AOP support in Delphi Is it possible to do Aspect Oriented Programming in Delphi? I would be interested in native support as well as third party solutions. I don't have a specific problem I want to solve with AOP, but am simply interested in studying AOP. A: ClassHelpers in the later versions of Delphi allow some v...
{ "language": "en", "url": "https://stackoverflow.com/questions/197731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How can I tune the PHP realpath cache? Recent versions of PHP have a cache of filenames for knowing the real path of files, and require_once() and include_once() can take advantage of it. There's a value you can set in your php.ini to set the size of the cache, but I have no idea how to tell what the size should be....
{ "language": "en", "url": "https://stackoverflow.com/questions/197734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Credit Card processing library that handles many merchant gateways? Looking for a c# library that interfaces to multiple merchant gateways. Should at minimum be able to handle PayPal and authorize. A: I've used dotnetcharge with success. They have support for something like 50 payment processors, plus (most import...
{ "language": "en", "url": "https://stackoverflow.com/questions/197741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Generate a default CRUD UI when using Castle ActiveRecord (.net) Is there any simple way to generate a default crud (given an entity) with activerecord (castle implementation) or something similar for NET? There is something like this for RoR ( it think its called activescaffold) Thanks A: There is a default scaff...
{ "language": "en", "url": "https://stackoverflow.com/questions/197742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I determine when a default printer was set on windows We are trying to trace the time a windows default printer was changed and by who or what. Any ideas? A: I don't think that is tracked anywhere. For past changes, you might be out of luck. For future changes, you could try setting up security auditing (via re...
{ "language": "en", "url": "https://stackoverflow.com/questions/197744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create foreign key relationships with the Entity Framework? I want to create a new row in my database on a table that has a couple of foreign key relationships and I haven't been able to get a handle on what order and what calls need to be made. This is what I have so far: db.Models.Order order = DB.Models.Or...
{ "language": "en", "url": "https://stackoverflow.com/questions/197747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I change the background color with JavaScript? Anyone know a simple method to swap the background color of a webpage using JavaScript? A: You don't need AJAX for this, just some plain java script setting the background-color property of the body element, like this: document.body.style.backgroundColor = "#AA0...
{ "language": "en", "url": "https://stackoverflow.com/questions/197748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "178" }
Q: How to change the value of associated field I have 2 classes with a LINQ association between them i.e.: Table1: Table2: ID ID Name Description ForiegnID The association here is between Table1.ID -> Table2.ForiegnID I need to be able to change the value of Table2.ForiegnID, ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/197753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Printing pointers in C I was trying to understand something with pointers, so I wrote this code: #include <stdio.h> int main(void) { char s[] = "asd"; char **p = &s; printf("The value of s is: %p\n", s); printf("The direction of s is: %p\n", &s); printf("The value of p is: %p\n", p); print...
{ "language": "en", "url": "https://stackoverflow.com/questions/197757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Help with a regex that matches something either before OR after something else I have a bunch of XML that has lines that look like this <_char font_name="/ITC Stone Serif Std Bold" italic="true" /> but sometimes look like this <_char font_size="88175" italic="true" font_name="/ITC Stone Serif Std Bold" /> Here's w...
{ "language": "en", "url": "https://stackoverflow.com/questions/197758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Dealing with a string containing multiple character encodings I'm not exactly sure how to ask this question really, and I'm no where close to finding an answer, so I hope someone can help me. I'm writing a Python app that connects to a remote host and receives back byte data, which I unpack using Python's built-in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Beanstalk like Functionality I'm finally getting my team to embrace source code management now that we're working on projects where more than one dev is touching the same codebase, and I setup a free/trial account on Beanstalk for hosted Subversion so people could get a taste of how it works. That said, we've discus...
{ "language": "en", "url": "https://stackoverflow.com/questions/197760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to see more than 65536 rows in Excel 2007? I have an excel file which has more than 65536 rows. However, I can see only first 65536 of them. Is it possible to see all of them in Excel 2007? A: Here is an interesting blog entry about numbers / limitations of Excel 2007. According to the author the new...
{ "language": "en", "url": "https://stackoverflow.com/questions/197762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: When is JavaScript's eval() not evil? I'm writing some JavaScript code to parse user-entered functions (for spreadsheet-like functionality). Having parsed the formula I could convert it into JavaScript and run eval() on it to yield the result. However, I've always shied away from using eval() if I can avoid it becau...
{ "language": "en", "url": "https://stackoverflow.com/questions/197769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "298" }
Q: Crystal Reports XI hangs when opening a report I am trying to open a report in Crystal Report 11 Designer (product version 11.5.8.826), but it seems to freeze up. This report use to work fine, but today the client could not load the report. I also tried to open the report on another developer's workstation, with the...
{ "language": "en", "url": "https://stackoverflow.com/questions/197782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Transferring files between web applications running in the same Tomcat Instance I have two web applications running in the same Tomcat Instance. In one of these applications the user will have the ability to upload files such as images and pdf files. I would like the uploaded files to be available to the second appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/197784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to connect to host machine from within Virtual PC image I am putting together a SVN demonstration using a WinXP Virtual PC image, and am unable to see my host machine from within the VPC guest OS. This demo will be performed while disconnected from our LAN, so I installed the Microsoft Loopback adapter on my lap...
{ "language": "en", "url": "https://stackoverflow.com/questions/197792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Access function in component directly I'm building my first flex app and am currently bussy splitting it up in multiple components to make it maintainable. I have a screen which holds a list that is displayed and filled after a succesfull login attempt: Part of the main app: <mx:ViewStack id="vsAdmin" height="100%" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extracting Source Code from an MS Access DB I have an Access DB that I would like to extract the source code from so I can put it into Source control. I have tried to extract the data using the Primary Interop Assemblies(PIA), but I am getting issues as it is not picking up all of the modules and forms. There are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .NET Code Security Review Tool I am looking for a utility that can be used against .NET assemblies to validate code against best practices, and most importantly can review the code for Security, Injection, and Cross Site Scripting vulnerabilities. I know that it isn't an exact science, but I'm looking for anyones e...
{ "language": "en", "url": "https://stackoverflow.com/questions/197819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Internet explorer hanging issue I'm currently experiencing an intermediate problem with some inherited client side javascript. Every so often the users' experience a browser hang with the cursor becoming an egg timer and then the browser failing to respond. I'm having real difficulty in determining where the issue ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is wrong when you get an "Unrecognized configuration section runtime" configuration exception In particular from this web.config: <configuration> <configSections> <section name="RStrace" type="Microsoft.ReportingServices.Diagnostics.RSTraceSectionHandler,Microsoft.ReportingServices.Diagnostics" /> </con...
{ "language": "en", "url": "https://stackoverflow.com/questions/197834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get rid of security exception? I start a .Net server side program on my local workstation, but soon it throws a security exception. I searched the web for answers, but no quick fix was found / worked. I just want to run my program. How do I get rid of the exception? I fully trust the program, because its mine...
{ "language": "en", "url": "https://stackoverflow.com/questions/197835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Determine the size of a C++ array programmatically? This question was inspired by a similar question: How does delete[] “know” the size of the operand array? My question is a little different: Is there any way to determine the size of a C++ array programmatically? And if not, why? Every function I've seen that ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/197839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: Scope issue - Controlling a movieclip inside a button with actionscript I'm trying to show/hide a movieclip (or graphic) symbol that is on a layer of a button symbol using actionscript 2. Here's what I tried in the actions for the button: on (release) { this.button_name.movieclip_name._alpha = 0; trace(this.button...
{ "language": "en", "url": "https://stackoverflow.com/questions/197845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: subclipse alternative Possible Duplicate: SVN plugins for Eclipse - Subclipse vs. Subversive I've been using Subclipse (an SVN plugin for Eclipse), for quite a while, but have become increasingly unhappy with it. I notice that Tortoise SVN is available as an Eclipse plugin and am considering using that instead wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/197853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In WPF, has anybody animated a Grid? I have 2 columns in a Grid. When I click a button, I want the first column to animate to the left from it's current position to 0. So, in effect, it collapses and I'm left with just viewing a single column. A: You need to Create a GridLengthAnimation class (code from: http://w...
{ "language": "en", "url": "https://stackoverflow.com/questions/197855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Possible to export FireFox extensions and settings? Want my FireFox at work to be in sync with my FireFox at my home. Is there a way to simply export all extensions and settings? A: Try MozBackup A: Just copy the files from your FireFox/Profiles folder to get the settings/saved passwords etc. That contains settng...
{ "language": "en", "url": "https://stackoverflow.com/questions/197858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to best write an RSpec custom matcher to test access control in a Rails app OK, so instead of writing a whole bunch of access control specs, and duplicating them across many of my spec files, I'm looking to create a custom matcher. So instead of this: describe "access control" do it "should prevent access by n...
{ "language": "en", "url": "https://stackoverflow.com/questions/197864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting Count from Grouped DataTable in VB via Linq I'm running into a mental roadblock here and I'm hoping that I'm missing something obvious. Anyway, assume I have a table that looks like this: ID LookupValue SortOrder ============================================ 1 A ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I uninstall a Windows service if the files do not exist anymore? How do I uninstall a .NET Windows Service if the service files do not exist anymore? I installed a .NET Windows Service using InstallUtil. I have since deleted the files but forgot to run InstallUtil /u first, so the service is still listed in...
{ "language": "en", "url": "https://stackoverflow.com/questions/197876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "611" }
Q: Windows workflow Just want to learn 'Windows workflow' designer in .net right from the basics, can anyone suggest a good link please thanks sandeep A: OdeToCode has several in depth articles on WWF written by Scott Allen, and in particular a good discussion of the instances where you should use a state machine to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/197880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a text wrap function in the java standard library? The Python standard lib comes with the module textwrap which provides a simple text wrapping functionality. Is there something comparable in the java standard library? in Python it is something like this: >>> t = "a really really long string with lots of ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/197891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why an abstract class implementing an interface can miss the declaration/implementation of one of the interface's methods? A curious thing happens in Java when you use an abstract class to implement an interface: some of the interface's methods can be completely missing (i.e. neither an abstract declaration or an ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/197893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "141" }
Q: How to detect application activation I need to perform some action when my application receives focus. I've tried hooking both GotFocus- and Enter-events, but they only trigger when focus changes within my application. Scenario is that my application detects some problem that must be resolved elsewhere, and I woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/197903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I use cygwin behind the corporate firewall I'm in a Microsoft IE environment, but I want to use cygwin for a number of quick scripting tasks. How would I configure it to use my windows proxy information? Ruby gems, ping, etc are all trying to make direct connections. How can I get them to respect the proxy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Component-Information from JAR-File possible? I would like to set up a web application with good modularity and would like to use an AJAX Toolkit/Framework like GWT or ZK for its VIEW. Component information should be load from various modules-JAR. Which AJAX Toolkit/Framework is able to do this? A: Take a look at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What Pros & Cons would there be to saving code more granularly at the file level? What do you think of this kind of code-to-files-mapping? ~/proj/MyClass.ext ~/proj/MyClass:constructors.ext ~/proj/MyClass:properties.ext ~/proj/MyClass:method-one.ext ~/proj/MyClass:method-two:int.ext ~/proj/MyClass:method-two...
{ "language": "en", "url": "https://stackoverflow.com/questions/197929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to clear the screen in Perl? Ideally, something cross-platform. A: From perlfaq8's answer to How do I clear the screen: To clear the screen, you just have to print the special sequence that tells the terminal to clear the screen. Once you have that sequence, output it when you want to clear the...
{ "language": "en", "url": "https://stackoverflow.com/questions/197933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Django with custom, non-SQL service to store models? Can I have a custom service providing the storage of the models I use in Django? That service would not be speaking SQL. I would like to build a web frontend to a system that consists of multiple services linked with a network based IPC, one of which provides an i...
{ "language": "en", "url": "https://stackoverflow.com/questions/197938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Difference between Data Access Layer and Model in MVC I have implemented what I thought was a pretty decent representation of MVC in several web applications but since having joined crackoverflow, I'm finding that perhaps my initial definitions were a bit simplistic and thus I'd really like some clarification on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/197939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What is the best way to display one value and store another on .net comboboxes? I can't seem to find an easy to use, .net native way to get Comboboxes on .net winforms to display one value and return another based on the selection without creating my own helper class, with the knowledge that winforms is going to dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/197940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reduce flicker with GDI+ and C++ I'm using GDI+ in a C++/MFC application and I just can't seem to avoid flickering whenever the window is resized. I have already tried these steps: * *returned TRUE on OnEraseBkGnd(); *returned NULL on OnCtlColor(); *used double buffering according to this code: void vwView::...
{ "language": "en", "url": "https://stackoverflow.com/questions/197948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How can I determine for which platform an executable is compiled? I have a need to work with Windows executables which are made for x86, x64, and IA64. I'd like to programmatically figure out the platform by examining the files themselves. My target language is PowerShell but a C# example will do. Failing either of...
{ "language": "en", "url": "https://stackoverflow.com/questions/197951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Forms and no Cookies - elegant way to submit forms Hoi! I have a form I wish to submit, but I need to add the PHPSESSID, because some clients allow no cookies. There are several javascript functions on my page which displays a list of users (search, sort, open details), the page is generated by PHP. Now I am looking...
{ "language": "en", "url": "https://stackoverflow.com/questions/197957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between the onMouseUp/Down and onPress/Release events in Flash? In Flash, there seem to be two sets of mouse click events: * *onMouseUp, onMouseDown *onPress, onRelease Is there any actual difference between these events? I can't tell from the documentation, and I haven't noticed anythi...
{ "language": "en", "url": "https://stackoverflow.com/questions/197958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Executing multiple commands from a Windows cmd script I'm trying to write a Windows cmd script to perform several tasks in series. However, it always stops after the first command in the script. The command it stops after is a maven build (not sure if that's relevant). How do I make it carry on and run each task in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "140" }
Q: NCover not picking up web application dlls Im using NCover 1.5.8, and its doesn't seem to produce and metrics relating to my website applications. The ncover output indicates the tests relating to the website have been run. Is there anything special I need to do for website dlls? A: NCover requires the PDB files to...
{ "language": "en", "url": "https://stackoverflow.com/questions/197977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a basic example of "low-level" multi-threading in C++? I'm a kinda newbie developer with a few years under my belt. Recently I interviewed at a game company and was asked "have you done any multi-threading?" I told them about having a C# app with a few Threads... and then I said a bit about transactions an...
{ "language": "en", "url": "https://stackoverflow.com/questions/197983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What causes javac to issue the "uses unchecked or unsafe operations" warning For example: javac Foo.java Note: Foo.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. A: I had 2 years old classes and some new classes. I solved it in Android Studio as follows: allprojects { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "344" }
Q: Multiple Interchangeable Views (MFC/C++) I have a main frame with a splitter. On the left I have my (imaginatively named) CAppView_Leftand on the right I have CAppView_Right_1and CAppView_Right_2. Through the following code I initialise the two primary views correctly: if (!m_wndSplitter.CreateStatic(this, 1, 2)) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/197987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need Advice on Implementing a Time-limited Trial I'm developing a shareware desktop application. I'm to the point where I need to implement the trial-use/activation code. How do you approach something like this? I have my own ideas, but I want to see what the stackoverflow community thinks. I'm developing with C++/Q...
{ "language": "en", "url": "https://stackoverflow.com/questions/197999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Timeout when using WCF host on IIS 6 I have a problem regarding hosting of a WCF service on IIS 6. My host is fine, I assume, and I can connect to it from a normal app, and get my stuff done. But now I want to stress test the service and I wanna do it from a web client, normal aspx page calling the wcf service with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need a distributed key-value lookup system I need a way to do key-value lookups across (potentially) hundreds of GB of data. Ideally something based on a distributed hashtable, that works nicely with Java. It should be fault-tolerant, and open source. The store should be persistent, but would ideally cache data in...
{ "language": "en", "url": "https://stackoverflow.com/questions/198006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: PHP function imagettftext() and unicode I'm using the PHP function imagettftext() to convert text into a GIF image. The text I am converting has Unicode characters including Japanese. Everything works fine on my local machine (Ubuntu 7.10), but on my webhost server, the Japanese characters are mangled. What could be...
{ "language": "en", "url": "https://stackoverflow.com/questions/198007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Anything similar to Emacs' buffer/window support for Eclipse? I'm trying to make the switch from Emacs to Eclipse. One thing that seems to be missing is its buffer/window support. I know in Eclipse I can drag an editor's tab title over to split the view, creating the equivalent of a new Emacs window, which is a ste...
{ "language": "en", "url": "https://stackoverflow.com/questions/198016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Tools to help with Internationalization of Strings in JSP Are there any tools to assist with the internationalization of Strings within JSP files? Most IDEs (for example, NetBeans) offer such a feature for Java code. However, in the case of NetBeans, no such feature exists for JSP files. With gettext, for example, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/198023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get radio value inside iframe How do I go about doing this with jQuery? Basically the structure: <form id="myForm"> <iframe> <!-- Normal HTML headers omitted --> <input type=radio name="myRadio" value=1>First <input type=radio name="myRadio" value=2>Second <input type=radio name="myRadio" value=3>T...
{ "language": "en", "url": "https://stackoverflow.com/questions/198024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are there problems with rendering WPF over Remote Desktop under Windows XP? I have heard that WPF primitives will not be supported by remote desktop on windows XP. The implication of this is that if you run a WPF application on a vista machine and display it on an XP machine (via remote desktop) the display will be...
{ "language": "en", "url": "https://stackoverflow.com/questions/198030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: eclipse beakpoint: stop before leaving a Java method Is there a way to tell the debugger to stop just before returning, on whichever statement exits from the method, be it return, exception, or fall out the bottom? I am inspired by the fact that the Java editor shows me all the places that my method can exit - it hi...
{ "language": "en", "url": "https://stackoverflow.com/questions/198041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }