text
stringlengths
8
267k
meta
dict
Q: How do I access information about a cascading dynamic prompt via Crystal Report API? I am using the CR 2008 RAS API (but could also use an older API if needed). Any idea how to access information about the settings for dynamic prompts in a report? I can access the PromptField objects with dataDefController.Paramete...
{ "language": "en", "url": "https://stackoverflow.com/questions/443079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select a set of cells in one column based on value in another I have a big set of data in excel of the following form A B 1 stuff1 6 stuff2 3 stuff3 1 stuff4 1 stuff5 7 stuff6 3 stuff7 2 stuff8 . . . . . . 5 stuffn and what i would like is some vba code that will select all the cells in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: _lsprof.c profiler behaviour towards python multi-threading This is a question about Python native c file _lsprof. How does _lsprof.profile() profiler counts total time spent on a function f in a multi-threaded program if the execution of f is interrupted by another thread? For example: def f(): linef1 linef2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex4 (codename Gumbo) SWF Filesize Speculations I've heard that the components in the upcoming Flex 4 framework will be more loosely coupled possibly allowing for smaller filesizes for projects that use relatively few components. It this true? Or will the entire Flex framework still get bundled into each SWF that u...
{ "language": "en", "url": "https://stackoverflow.com/questions/443083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: opengl topdown<->bottomup textures? When i load an image via FreeImage, the bits are bottom to top. My GL code expects all images to be topdown. Whats the best way to flip the image when i copy the bits to the texture? A: You could use the texture matrix to effectively flip texcoords. I think this would work: glMa...
{ "language": "en", "url": "https://stackoverflow.com/questions/443086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the major differences between C and C++ and when would you choose one over the other? For those of you with experience with both, what are the major differences? For a newcomer to either, which would be better to learn? Are there situations where you might choose C but then other situations where you woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/443090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to monitor applications status using .NET? I have to develop a system that monitors applications runnig in a network. It should collects informations about the status of applications as well as sends alerts in case of problems. I choose to develop this application on .NET. Please indicates me if there is any AP...
{ "language": "en", "url": "https://stackoverflow.com/questions/443092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Questions about COM/ActiveX objects I have good knowledge on the working of a "traditional" .dll. Also the differences between dynamic loading and static loading, etc. But I have the following doubts about the working of COM objects, * *Is it mandatory to register COM objects with regsvr32? *can I have two versi...
{ "language": "en", "url": "https://stackoverflow.com/questions/443095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is my WCF using the correct Binding? My wcf service's web.config looks like this: How can I confirm that it is using the settings correctly? I still get this timeout error sometimes even though I have configured the binding to use: SendTimeout = 10 minutes etc. ? <system.serviceModel> <services> <service ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there (free) tools or libraries for 3D WPF objects? I wanted to play around with some 3D controls in WPF, but was mildly surprised to find that there were no primitive solid controls in WPF - I just wanted to plop a few spheres and cubes in a scene, but didn't realize I had to render them using meshes. Surely so...
{ "language": "en", "url": "https://stackoverflow.com/questions/443106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: InstallShield: Delete installed files on uninstall On install I copy some files in 'System32' folder. When uninstalling these files are not deleted. Why? A: MSI Installations are supposed to be declarative rather than procedural. You declare what files should be copied and they get copied by windows installer. When...
{ "language": "en", "url": "https://stackoverflow.com/questions/443109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I match quoted text excluding leading and trailing whitespaces? I.e. the match of He said, "For my part, it was Greek to me. " should be For my part, it was Greek to me. Without the trailing space. I've tried \"\s*([^\"]*)\s*\" but it's always matching trailing whitespaces in the group. A: try: \"\s*([...
{ "language": "en", "url": "https://stackoverflow.com/questions/443111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate statistics on different machine and combine them again? I have two backend applications which provide the same functions and they are located on two separate machines (actually this is to make a load balance). So they handle the client frontend requests using the same manner. I want to collect some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does unblocking connect to socket cause a context switch? I'm using winsock and calling connect on a non-blocking socket. I occasionally see some delay (up to 200ms) before the function returns when the CPU is hogged by other processes. From what I know, a connect on a non-blocking socket should return immediately, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Linux, how do I know if an ACK is received to a certain TCP packet? Long story short: in Linux, how do I ensure that an ACK message is received for a certain TCP packet? Full story: I'm debugging an Asterisk/OpenH323 <-> Panasonic IP-GW16 issue. An H323 connection involves two sessions: H225.0 and H245. These are...
{ "language": "en", "url": "https://stackoverflow.com/questions/443134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Insert row in table for each id in another table I tried searching here for a similar solution but didn't see one so I was wondering what is the best way to accomplish the following. I have a table with 17 million + rows all have a unique ID. We have recently created a new table that will be used in conjunction wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/443140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Visual Studio 6 VC++ Project version - how do I increment it? I am making changes to an old program written in VC++6. the project resources include a 'version' set which include the following: Block Header Comments Company Name File Version Product Version Both FileVersion and ProductVersion are at 1.0.0.97 (where t...
{ "language": "en", "url": "https://stackoverflow.com/questions/443141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Restricting access to method calls on read-only properties I have a class that defines a read-only property that effectively exposes a private field, something like this: public class Container { private List<int> _myList; public List<int> MyList { get { return _myList;} } public Contai...
{ "language": "en", "url": "https://stackoverflow.com/questions/443144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C++ mix new/delete between libs? If I use the new keyword in my library (which is built differently than my main app), when I delete it in my main app with delete, is there a chance that I may get a crash/error? A: Yes, you will. A simple solution is to provide Create and Delete functions in your library that can b...
{ "language": "en", "url": "https://stackoverflow.com/questions/443147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Dazed and confused by Java Security & BouncyCastle APIs I've been trying to make sense of the BouncyCastle cryptography APIs for Java. Unfortunately, I'm finding Java cryptography in general to be so obscured by service provider interfaces and jargon that I can't wrap my head around what anything actually does. I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/443151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What's the best strategy for get/setting metadata on Ruby methods at runtime? I have a class with some methods. It's supersekret but I've reproduced what I can here. Class RayGun # flashes red light # requires confirmation # makes "zowowowowowow" sound def stun! # ... end # flashes blue light # do...
{ "language": "en", "url": "https://stackoverflow.com/questions/443152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server 2005 Performance and white space I have been told and I'm not sure I believe this: Removing white space from my stored procedures in sql server 2005, before I submit them, will make them run faster and improve performance. I am wondering what everyone else thinks? Thanks, Scott A: I can't see how this w...
{ "language": "en", "url": "https://stackoverflow.com/questions/443153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling Javascript on a page programmatically (in c#) and then submitting it back to the server I need to request a page (I'm using httpwebrequest at the moment), call some javascript ( e.g function selected(id) { document.getElementById("selected").value = id; } and then submit that back to the server...
{ "language": "en", "url": "https://stackoverflow.com/questions/443163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Exclude folders from Eclipse search Is there a way to exclude certain folders (and all their subfolders) from searching within Eclipse? A: I could imagine that marking resources derived might cause problems in other areas. Instead, create a working set with the folders you want to include in the search: * *Open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "276" }
Q: MethodInfo for EntityCollection instead of Queryable I am manually creating the equivalent lambda: var function = p => p.Child.Any(c => c.Field == "value"); I have a MethodInfo reference to the "Any" method used with Expressions built in code. MethodInfo method = typeof(Queryable).GetMethods() .Where(m => m...
{ "language": "en", "url": "https://stackoverflow.com/questions/443170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash text parsing golf I am writing a shell script to, among other things, determine the last time a branch was made in a subversion repository. The following code works: DEV='http://some/svn/server/' BRANCH='some/repos/branches/' LAST_UPDATE=`svn list http://$DEV$BRANCH | sort -r` ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running Apple Store Apps on iPhone simulator? Can i run download applications from Apple Store on iPhone simulator? A: No, you cannot, because the App Store apps are compiled for the iPhone (ARM), not the simulator (x86). Sorry.
{ "language": "en", "url": "https://stackoverflow.com/questions/443186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Using memcached in Rails app with Single Table Inheritance? I have a Rails app that uses STI to handle different types of Users, such as: class Admin < User ... end I want to use memcached, but I keep getting the dreaded "unknown class/module" error. I've tried pre-loading all of my ActiveRecord models to no avai...
{ "language": "en", "url": "https://stackoverflow.com/questions/443187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MSBuild Task to read version of dll I am looking for a MSBuild task that will tell me the version of a specific dll. Is there a task available for this? In my case the dll is a .Net assembly, so I'm actually looking for Assembly.FullName. A: GetAssemblyIdentity is your man. This task outputs contain item metadat...
{ "language": "en", "url": "https://stackoverflow.com/questions/443188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How much logic is allowed in ASP.NET MVC views? In looking at samples of ASP.NET MVC sites, I'm seeing quite a bit of examples with embedded logic in the views, e.g.: <% if (customerIsAllowed) { %> <p>nnn</p> <p>nnn</p> <p>nnn</p> <p>nnn</p> <p>nnn</p> <% } else {%> <p>nnn</p> <p>nnn</p> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Import multiline csv files into Excel internationally There is a .csv file we would like to distribute to our customers, it contains multiline entries (i.e. entries with newlines). Depending on the language settings of the customers, the file may or may not be correctly imported into Excel. Normally, we would sugges...
{ "language": "en", "url": "https://stackoverflow.com/questions/443204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: To use MSMQ or WCF - VS 2008 This is my situation: 1. have an existing application which relies on XML being fed via FTP. Based on the XML, the application performs tasks. *Now i want to download files, path being an element of the XML file, using BITS *I want to create a BITS application and that should work on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conversion between different units of measurement in SQL (in Access) I'm trying to program an access database but I'm using SQL for all my querying. I've got the database almost complete but I have one query that has me stumped. It is a database which contains recipes. I have a table in which I have all the conve...
{ "language": "en", "url": "https://stackoverflow.com/questions/443210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: caching common lookup data - strategies Looking at implementing caching for some common lookup data in an asp.net web application. In the past, I've created a singleton that creates a bunch of hashtables, which have public accessors. This works pretty well for read-only data that never changes. I've done a bit of l...
{ "language": "en", "url": "https://stackoverflow.com/questions/443217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What MS SQL Server types map to Types.VARCHAR I'm working on a statement scanner for our updater (looking for statements that will cause problems with synchronized data) and I need to know which TSQL data types get resolved as Types.VARCHAR and which ones resolve to Types.LONGVARCHAR when you invoke DatabaseMetaData...
{ "language": "en", "url": "https://stackoverflow.com/questions/443222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data Store for a Mac/iPhone Hybrid App I've been doing iPhone development for the last 5 months or so, and have been using Gus Mueller's FMDB for database interaction. My next project will have both a Mac and an iPhone application, and they will share data between them, although in the end, the iPhone will be mostly...
{ "language": "en", "url": "https://stackoverflow.com/questions/443223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jython, Query multiple columns dynamically I am working with a oracle database and Jython. I can get data pulled from the database no problem. results = statement.executeQuery("select %s from %s where column_id = '%s'", % (column, table, id)) This works fine if I want to pull one column of data. Say I wanted to loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/443224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Including Delphi Type Libraries in repository (SVN)? What is the best way to save a Delphi Type Library in SVN. The file changes every time you compile the Application The file is not saved in a readable form of AscII It is very difficult to work out what changes have been made from one version to the next This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I find out if my application is running on x86 or x64 Windows? I want to know, at run time, whether I'm running on 32 bit or 64 bit windows. The OSVERSIONINFOEX structure tells me the major and minor version, but I'm guessing I need the build numbers. Anyone know what they are? A: If your application is co...
{ "language": "en", "url": "https://stackoverflow.com/questions/443227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to provoke a timer trigger in glassfish? We need some consistency in our functional test cases. The best we can do currently is to wait for an estimated time before the Java EE timers in the product should have been triggered. It would be much more predictable if the test cases could trigger the timers programma...
{ "language": "en", "url": "https://stackoverflow.com/questions/443230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET 3.5 - Configuration system failed to initialize exception In my winform app, I am trying to add a userSetting, although the error is occuring with appSettings too. When the setting is added I get an exeption thrown that says: "Configuration system failed to initialize" with a Inner Exception "Unrecognized confi...
{ "language": "en", "url": "https://stackoverflow.com/questions/443235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to determine SQL that corresponds to SQL Server's sp_unprepare call? This is probably quite basic, so bear with me (on the other hand there's probably a nice shiny cut-and-dried answer!). I'm diagnosing a deadlocking problem at the moment, and indeed I can see that one of my sessions is being blocked by another....
{ "language": "en", "url": "https://stackoverflow.com/questions/443237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interface implementation through different JVMs Lets say you have interface definition. That interface can be Operation. Then you have two applications running in different JVMs and communicating somehow remotely by exchanging Operation instances. Lets call them application A and application B. If application A imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/443239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting authentication timeout in handler and redirecting entire page to login page I am writing an application where by someone can edit paragraphs on a web page. jQuery is used to send and receive the edited paragraph data to a handler, which saves it or reads it from a database. The problem is that if the for...
{ "language": "en", "url": "https://stackoverflow.com/questions/443243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Hook windows logon/logoff events I am having a service which would be running at SYSTEM level. Now, i want to track the logged on user in it. Earlier i was trying to get the logged in user name from GetUserName api but in my case it returns "SYSTEM" every time. Is there anyway to get logged on username in my case? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get the workbench window to open a modal dialog in an Eclipse based project? In order to open a modal dialog, you need to pass a parent window, and pass the necessary flags for the dialog to be modal of course. Depending on where you are in the eclipse infrastructure, finding this parent window is not alway...
{ "language": "en", "url": "https://stackoverflow.com/questions/443245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Creating a specific XML document using namespaces in C# We were given a sample document, and need to be able to reproduce the structure of the document exactly for a vendor. However, I'm a little lost with how C# handles namespaces. Here's a sample of the document: <?xml version="1.0" encoding="UTF-8"?> <Doc1 xmln...
{ "language": "en", "url": "https://stackoverflow.com/questions/443250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Automatically generate MD5 and display On a page that automatically lists several small files (~100-500kb) that are contained in a specific folder, is there a way using VBScript to automatically generate MD5 hashes of each file and display it on the page? Cliff notes: Can I generate an MD5 hash of a file on the serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/443253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why don't my Rails server render times add up? I'm having some trouble with my Rails app being very slow on my staging server. What is most confusing is that the final line of the log output for each request. It seems the View and Database times aren't even close to the entire render time. On one page it is as bad a...
{ "language": "en", "url": "https://stackoverflow.com/questions/443255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Does anyone know how succesfully use preprocessing on J2ME? I'll try to better explain my problem. Using Eclipse and MTJ (Mobile Tools for Java) plugin you can set some directives for the preprocessor in order to create different builds of your code, like in C/C++. My problem is that i'm unable to use this feature. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Has anyone succesfully loaded a YAML file using SnakeYAML from a local Maven repo? If I reference the SnakeYAML jar directly from a test program (see bottom), everything works. If I'm inside my Maven-created project, I get the following output from my unit tests: java.lang.NoSuchMethodError: java.util.LinkedList.pus...
{ "language": "en", "url": "https://stackoverflow.com/questions/443264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where can I find a bit shifting guide for C? I have looked at What are bitwise shift (bit-shift) operators and how do they work?, but I still find the concept of bit shifting difficult to understand. Can someone point me in the direction of a more basic guide to bit shifting in C? I expect it will be something reall...
{ "language": "en", "url": "https://stackoverflow.com/questions/443265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What could affect the lifespan of a NSString returned by stringWithContentsOfFile"? Consider the 2 following methods of reading a string from a file: NSString *path = [[NSBundle mainBundle] pathForResource:@"foo" ofType:@"txt"]; NSString *string = [NSString stringWithContentsOfFile:path encoding:NSASCIIStringEncodin...
{ "language": "en", "url": "https://stackoverflow.com/questions/443268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: submit a form via Ajax using prototype and update a result div I'm wondering how can I submit a form via Ajax (using prototype framework) and display the server response in a "result" div. The html looks like this : <form id="myForm" action="/getResults"> [...] <input type="submit" value="submit" /> </form> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is there a way to name columns in an INSERT statement? When I do SELECT statements in PHP code I always select named columns, like: SELECT id, name from users; rather than using: SELECT * from users; This has the advantage of being more informative and readable, and also avoids problems later if new columns are ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/443280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to work with referenced projects in eclipse Ok maybe everybody knows how to do this, but I've never try it beacause I've never needed it so, how do you work with multiple referenced projects in eclipse? I have a couple of Struts 1 web applications that must use another struts 1 "library" project and right now I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/443286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Restoring Team Foundation Server We are thinking of moving from Subversion to Team Foundation Server for our source control requirements. The reasoning behind this being that our project teams are getting bigger and management feel more comfortable using a M'soft product rather than an open sourced solution (I know...
{ "language": "en", "url": "https://stackoverflow.com/questions/443294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Caching policies and techniques for matrices as explained before, I'm currently working on a small linear algebra library to use in a personal project. Matrices are implemented as C++ vectors and element assignment ( a(i,j) = v; ) is delegated to the assignment to the vector's elements. For my project I'll need to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/443295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Emacs: how to compile (run make) without pressing enter for the compile command query? with (x)emacs, how could I run the 'compile' command without separately pressing enter to accept the default command? (I can bind the 'compile' to a key but I'd like the whole thing to happen without separate pressing of enter) Of...
{ "language": "en", "url": "https://stackoverflow.com/questions/443302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Tool to Audit Code Moves to production Web Servers? My team recently received the results of an External Audit and we must correct one item. They want us to change the way we move code to our production environment. We currently use source control and a ticketing system for all code changes and move requests etc.. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/443303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Producing valid XML with Java and UTF-8 encoding I am using JAXP to generate and parse an XML document from which some fields are loaded from a database. Code to serialize the XML: DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.newDocument(); Element root ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Is it impossible to perform initialization before calling a superclass's constructor? I'd like for a subclass of a certain superclass with certain constructor parameters to load an XML file containing information that I'd then like to pass to the superconstructor. Is this impossible to achieve? A: You can call a st...
{ "language": "en", "url": "https://stackoverflow.com/questions/443310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: overloading delete, pure virtual func call So i want to overload delete of a abstract virtual class. This will call deleteMe() in the derived class which is in another lib. This is to prevent error/crashes mention here C++ mix new/delete between libs? when i call delete me from delete in my base class, i get the err...
{ "language": "en", "url": "https://stackoverflow.com/questions/443315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I place a UIWebView in a table view cell and maintain its scroll bars? How can I place a UIWebView in a table view cell, yet maintain the UIWebView's scrollbars? My table view does have multiple cells and a header frame as well, and I do need it to be scrollable because it has many rows. The text displays pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/443333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to generate java classes from MS-Dataset XSD files? Given a Dataset XSD file, is it possible to generate java classes, that don't make use of System.Data? I've tried running a test using JAXB's XJC tool, but it doesn't produce anything terribly useful. Update: I've tried XmlBeans also, following Ferna...
{ "language": "en", "url": "https://stackoverflow.com/questions/443356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to escape command line arguments on PowerShell? It appears that I can escape command line arguments using single or double quotes: PS C:\> echo Hello World Hello World PS C:\> echo 'Hello World' Hello World PS C:\> echo "Hello World" Hello World But there's still something I can't figure out, which is when you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Return String from a webmethod instead of a dataset. How would I refactor this to get it to return a string not a dataset? [WebMethod] public DataSet GetPONumber(string Database) { SqlConnection sqlConn = new SqlConnection(); sqlConn.ConnectionString = GetConnString(Database); // build query ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What could cause a VB.NET application to crash before running any code? My VB.NET application compiles, installs and works fine on the development PC. However, when I take the install package elsewhere, it installs ok but crashes before any code is executed. The error is " has encountered a problem and needs to clos...
{ "language": "en", "url": "https://stackoverflow.com/questions/443384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mouse coordinates in Internet Explorer I have a map for my game, I have a script that on a click displays an alert of the mouse coordinates on the map. The map scale is 1 map unit to 2.5 pixels and the map starts at -600, 600 and goes down to 600, 1700. Thus I can't simply throw out the pixels of the mouse. I got it...
{ "language": "en", "url": "https://stackoverflow.com/questions/443385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does Paramiko hang if you use it while loading a module? Put the following into a file hello.py (and easy_install paramiko if you haven't got it): hostname,username,password='fill','these','in' import paramiko c = paramiko.SSHClient() c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) c.connect(hostname=hos...
{ "language": "en", "url": "https://stackoverflow.com/questions/443387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: The macros in this project have been disabled When opening a Word document a macro should start and it did for a while. But then I saved the document when the macro was activated and after that I get the error message: The macros in this project have been disabled when I open the document. I have tried different s...
{ "language": "en", "url": "https://stackoverflow.com/questions/443389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Delphi Printing Techniques Where can I find a good resource for adding print capabilities to my program? I found this page: http://efg2.com/Lab/Library/Delphi/Printing/index.html but it hasn't been updated in 5 years, and I'd like to know if, with Delphi 2009, StretchDIBits is still preferred to StretchDrawMap, how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Extract a specific XML message from a log file i have a log file which contains hundreds/thousands of seperate XML messages and need to find a way to extract a complete xml message depending on the parameters given (values of nodes). My biggest problem is that even though i program a fair amount i have had very litt...
{ "language": "en", "url": "https://stackoverflow.com/questions/443403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ilk target directory If incremental linking is enabled, Visual C++ generates the *.ilk file in $(TargetDir), can I override this behavior and redirect it to another directory? (without using a post-build step) A: In Visual C++ 6.0 and Visual C++ 2008 is not possible to select a different dir for the ilk file. Valid...
{ "language": "en", "url": "https://stackoverflow.com/questions/443408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is it possible to mark a property shown in a property grid as a password field I'm using C# and have a windows form containing a property grid control. I have assigned the SelectedObject of the propertygrid to a settings file, which displays and lets me edit the settings. However one of the settings is a password -...
{ "language": "en", "url": "https://stackoverflow.com/questions/443411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: SQL 2005 - quick way to quickly duplicate a database + data I have my development database, I want to spin off a duplicate for testing. I want to do this often. What's the fastest and easiest way to do this often? I can get the job done by generating scripts w/ data included but I feel like there must be a better ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: In Complexity Analysis why is ++ considered to be 2 operations? In my Computer Science II class, the professor considers ++,--,*=, etc. to be 2 operations. However, at the Assembly level this is not really two operations. Can someone explain or is this just for the sake of simplicity? A: I'd actually consider it to...
{ "language": "en", "url": "https://stackoverflow.com/questions/443423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I get greasemonkey to call a function on a page after it loads I have a very simple greasemonkey script that I want to call an already existing javascript function on the page. I've read the documentation and nothing seems to work window.setTimeout(function() { alert('test') // This alert works, but not...
{ "language": "en", "url": "https://stackoverflow.com/questions/443430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: sql server 2000 backup directly to a separate server SQL Server 2000 on Windows Server 2003. I am trying to run a backup, from within EM, directly over to another server, as follows: backup database AbraEmployeeSelfService to disk = '\\servername\f$\Backup\myDB_backup.bak' I get this error: Cannot open backup devic...
{ "language": "en", "url": "https://stackoverflow.com/questions/443432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Lambda variable names - to short name, or not to short name? Typically, when I use lambdas, I just use "a, b, c, d..." as variable names as the types are easily inferred, and I find short names to be easier to read. Here is an example: var someEnumerable = GetSomeEnumerable(); var somethingElseList = someEnumerable...
{ "language": "en", "url": "https://stackoverflow.com/questions/443466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Join to a table only when column value is true I am using SQL Server 2005. I am trying to join 2 tables together, but only when a column value in the main table is true. Like this: select * from T1 join T2 on T1.value = T2.value where T2.value2 = 'variable2' and T2.value3 = 'variable3' There is a column value in T1...
{ "language": "en", "url": "https://stackoverflow.com/questions/443467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Changing default font in Windows messes up my Win Forms buttons We have a collection of C# (.NET 2.0) applications that have custom dialog windows. When the user changes the default font size and resolution etc in Windows the edges of the form lose controls (they get pushed off the visible portion of the form) typic...
{ "language": "en", "url": "https://stackoverflow.com/questions/443478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server and asp.net application security models / best practice For my asp.net web applications against sql server(at least the ones that require a logon to access) I generally implement security as follows: I generally roll my own user signup, user login pages and keep a userid and an encrypted password in an sq...
{ "language": "en", "url": "https://stackoverflow.com/questions/443487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where does SQL Server store the DTS packages? I have created a few DTS packages and saved them on the server. where I can edit these DTS packages on the server? A: you should connect to integration services... and then in the MSDB folder or in the FileSystem folder, it depends how did you save them A: As you proba...
{ "language": "en", "url": "https://stackoverflow.com/questions/443491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What can make Class::Loader fail where "use" and "new" do not? I'm working on a very large CGI application that uses Crypt::RSA, which is properly installed. I get a "attempted to call a null reference as a function" type of error (I can't go back to get the exact error right now because we had to rollback for a re...
{ "language": "en", "url": "https://stackoverflow.com/questions/443493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SharePoint Edit Tasklist Task I have SharePoint setup, and for a test I added a Task List, added a few columns, and tested it out. I wanted to modify the task list task page, not the task list page. I can edit the task list page, but I cannot edit the task list task page. I am missing the Edit Page button from si...
{ "language": "en", "url": "https://stackoverflow.com/questions/443495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert JSON to Map What is the best way to convert a JSON code as this: { "data" : { "field1" : "value1", "field2" : "value2" } } in a Java Map in which one the keys are (field1, field2) and the values for those fields are (value1, value2). Any ideas? Should I use Json-lib for that?...
{ "language": "en", "url": "https://stackoverflow.com/questions/443499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "240" }
Q: Are incrementers / decrementers (var++, var--) etc thread safe? Inspired by this question: In Complexity Analysis why is ++ considered to be 2 operations? Take the following psuedo code: class test { int _counter; void Increment() { _counter++; } } Would this be considered thread safe on an x86 ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/443500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Using __arglist with a varying set of named parameters in my application I have 2 layers. The first layer is a C legacy exposing cdecl functions that use the "..." syntax for a varying parameter list. The only way I found to call these functions from my .Net layer (the second one) is using the DllImport technics. Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/443516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How many variables are too much for a class? I want to see if anyone has a better design for a class (class as in OOP) I am writing. We have a script that puts shared folder stats in a CSV file. I am reading that in and putting it in a Share class. My boss wants to know information like: * *Total Number of Files ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to pass a (byte[] lpData) with integer value to RegSetValueExW P/Invoke I have this P/Invoke RegSetValueExW that sets the value to the registry key. in C# [DllImport("coredll.dll", EntryPoint = "RegSetValueExW")] public static extern int RegSetValueExW(uint hKey, string lpValueName, uint lpReserved, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL 2005: NOLOCK hint dramatically increases reads. WTF? I have a stored procedure that does a lot more reads when the NOLOCK hint is added to the query. I'm baffled - does anyone know why, please? Details: The query is: SELECT * FROM dbo.<table-name> WITH (NOLOCK). It was doing 40,000 reads and there are less tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/443531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: If all my sql server database access is done thru stored procedures If all my sql server database access is done thru stored procedures, and I plan on continuing that practice, is using linq2sql and/or the entity framework for future projects an unnecessary layer of complexity that doesn't add much value? Related qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/443532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I use SortField to sort my data numerically in Flex/ActionScript? From the documentation: SortField () constructor public function SortField(name:String = null, caseInsensitive:Boolean = false, descending:Boolean = false, numeric:Object = null) I'm confused on the last part - numeric:Object = null. Here is m...
{ "language": "en", "url": "https://stackoverflow.com/questions/443542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Quick and dirty solution for communication between processes in different machines I have two processes written in java in two machines within my network that should pass simple chunks of data to each other. I'm looking for a quick and dirty way (without resorting to writing files and polling for changes on networ...
{ "language": "en", "url": "https://stackoverflow.com/questions/443543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Easy way to store and retrieve objects in Java without using a relational DB? Do you know of an "easy" way to store and retrieve objects in Java without using a relational DB / ORM like Hibernate? [Note that I am not considering serialization as-is for this purpose, as it won't allow to retrieve arbitrary objects in...
{ "language": "en", "url": "https://stackoverflow.com/questions/443558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How does wininet handle cookies I have a .NET client application that needs to communicate with a server using two distinct user credentials. Lets say that the application runs two threads. When start running, every thread sends the user & password to authenticate and the server in return stores a cookie on the http...
{ "language": "en", "url": "https://stackoverflow.com/questions/443567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using the AutoComplete feature of ComboBox, while limiting values to those in the list? In WinForms 2.0, a ComboBox has an Auto-Complete feature, that displays a custom Drop-Down list with only the values that start with the entered text. However, if I want to limit valid values to only those that appear in the Comb...
{ "language": "en", "url": "https://stackoverflow.com/questions/443569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What measurement do you use in your development process to determine *Doneness* of your software? I just finished listening to a very eye-opening podcast on Hanselminutes about the definition of "Done". So my question to everyone is "When do you consider a piece of software to be "Done"? Is it when it's fully unit t...
{ "language": "en", "url": "https://stackoverflow.com/questions/443575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Decode/extract smime.p7m file contents (email with embedded files) with OpenSSL? We have an old process (VBScript) that reads a common mailbox and processes certain emails into a database. New regulations have all messages with attachments now being digitally signed. The process now only extracts one file (smime.p7m...
{ "language": "en", "url": "https://stackoverflow.com/questions/443580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }