text
stringlengths
8
267k
meta
dict
Q: What's a good f/oss GDI+ (System.Drawing) based graphing and charting component for .NET? I want to create basic line, bar, pie and area charts for .NET 3.5 WinForms and I'm interested in finding a free, mature, open-source .NET (preferably C# based) project to help me accomplish that. I would consider a WPF based ...
{ "language": "en", "url": "https://stackoverflow.com/questions/99869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Selenium Critique I just wanted some opinions from people that have run Selenium (http://selenium.openqa.org) I have had a lot of experience with WaTiN and even wrote a recording suite for it. I had it producing some well-structured code but being only maintained by me it seems my company all but abandoned it. If y...
{ "language": "en", "url": "https://stackoverflow.com/questions/99876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Generating a unique machine id I need to write a function that generates an id that is unique for a given machine running a Windows OS. Currently, I'm using WMI to query various hardware parameters and concatenate them together and hash them to derive the unique id. My question is, what are the suggested parameters ...
{ "language": "en", "url": "https://stackoverflow.com/questions/99880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: Reading a COBOL DAT file I have been given a set of COBOL DAT, IDX and KEY files and I need to read the data in them and export it into Access, XLS, CSV, etc. I do not know the version, vendor of the COBOL code as I only have the windows executable that created the files. I have tried Easysoft and Parkway ODBC drive...
{ "language": "en", "url": "https://stackoverflow.com/questions/99897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Count image similarity on GPU [OpenGL/OcclusionQuery] OpenGL. Let's say I've drawn one image and then the second one using XOR. Now I've got black buffer with non-black pixels somewhere, I've read that I can use shaders to count black [ rgb(0,0,0) ] pixels ON GPU? I've also read that it has to do something with Occ...
{ "language": "en", "url": "https://stackoverflow.com/questions/99906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Minimal latency objects pooling technique in multithread application * *In the application we have something about 30 types of objects that are created repeatedly. *Some of them have long life (hours) some have short (milliseconds). *Objects could be created in one thread and destroyed in another. Does anybo...
{ "language": "en", "url": "https://stackoverflow.com/questions/99907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VB.Net "There is a naming violation" Error with open ldap for creating user I am trying to use directory services to add a directory entry to an openldap server. The examples I have seen look pretty simple, but I keep getting the error "There is an naming violation". What does this message mean? How do I resolve it...
{ "language": "en", "url": "https://stackoverflow.com/questions/99912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I chain my own JavaScript into the client side without losing PostBack functionality So I was reading these Asp.Net interview questions at Scott Hanselman's blog and I came across this question. Can anyone shed some light of what he's talking about. A: <asp:LinkButton ID="lbEdit" CssClass="button" OnCli...
{ "language": "en", "url": "https://stackoverflow.com/questions/99917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OO Javascript : Definitive explanation of variable scope Can someone provide an explanation of variable scope in JS as it applies to objects, functions and closures? A: Variables not declared with var are global in scope. Functions introduce a scope, but note that if blocks and other blocks do not introduce a sco...
{ "language": "en", "url": "https://stackoverflow.com/questions/99927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: General Binary Data Viewer for Windows Vista I'm looking for recommendations for a good program for 32-bit Windows Vista that will load any arbitrary binary file and display textual information or graphical visualization relevant to identifying what actual data the bits are supposed to represent. Is ther anything be...
{ "language": "en", "url": "https://stackoverflow.com/questions/99934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What tools do you use to implement SOA/Messaging? NServiceBus and MassTransit are two tools that can be used to implement messaging with MSMQ and other message queues. I find that once you start using messaging to have applications talk to each other, you don't really want to go back to the old RPC style. My questio...
{ "language": "en", "url": "https://stackoverflow.com/questions/99980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Self validating binaries? My question is pretty straightforward: You are an executable file that outputs "Access granted" or "Access denied" and evil persons try to understand your algorithm or patch your innards in order to make you say "Access granted" all the time. After this introduction, you might be heavily ...
{ "language": "en", "url": "https://stackoverflow.com/questions/99999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: MVC or event-driven component-oriented web frameworks? This question intends to be technology-agnostic. Which kind of web framework do you prefer, and when: Pure MVC or event-driven component-oriented? Just to make the point in "technology-agnosticism", here I name a few MVC vs. component web frameworks, in diverse ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are metaclasses in Python? What are metaclasses? What are they used for? A: Role of a metaclass' __call__() method when creating a class instance If you've done Python programming for more than a few months you'll eventually stumble upon code that looks like this: # define a class class SomeClass(object): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7144" }
Q: Logging Application Block - Logging the caller When logging with Log4Net it's very easy to put class that called the log into the log file. I've found in the past that this makes it very easy to trace through the code and see the flow through the classes. In Log4Net I use the %logger property in the conversion pat...
{ "language": "en", "url": "https://stackoverflow.com/questions/100007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Facebook RSS application How can I make a Facebook RSS application that autoupdates from the provided RSS feeds. Of course doing this is trivial for canvas applications, but I need this for showing on the Facebook Page. All the RSS apps I've taken a look at either dont update or dont work on Facebook Pages. Especi...
{ "language": "en", "url": "https://stackoverflow.com/questions/100038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regular expressions in C# for file name validation What is a good regular expression that can validate a text string to make sure it is a valid Windows filename? (AKA not have \/:*?"<>| characters). I'd like to use it like the following: // Return true if string is invalid. if (Regex.IsMatch(szFileName, "<your regex...
{ "language": "en", "url": "https://stackoverflow.com/questions/100045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: I need to join two lists, sort them and remove duplicates. Is there a better way to do this? I have two unsorted lists and I need to produce another list which is sorted and where all the elements are unique. The elements can occur multiple times in both lists and they are originally unsorted. My function looks like...
{ "language": "en", "url": "https://stackoverflow.com/questions/100048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: WCF - Overhead of throwing FaultExceptions within your service I posted a question about using Messages versus Fault Exceptions to communicate business rules between services. I was under the impression it carried overhead to throw this exception over the wire, but considering it's just a message that get serialized...
{ "language": "en", "url": "https://stackoverflow.com/questions/100053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you test your web UI to see if it renders uniformly across different browsers? Tools like Selenium are good for testing user interactions on the web UI. However, I was curious what are people approaches for strictly testing and verifying that web pages are rendered correctly across a set of browsers? Is this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: LINQ to SQL insert-if-non-existent I'd like to know if there's an easier way to insert a record if it doesn't already exist in a table. I'm still trying to build my LINQ to SQL skills. Here's what I've got, but it seems like there should be an easier way. public static TEntity InsertIfNotExists<TEntity> ( DataC...
{ "language": "en", "url": "https://stackoverflow.com/questions/100068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Why can't I delete a file in %ProgramFiles% from a Unit Test via Resharper's Test Runner Unit Test? I am trying to write a test which, in it's fixtures Setup, it backs up a file and deletes the original, runs the test without the original present, then in the teardown, restores the original from the backup. The fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/100070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Winsock - 10038 Error - Win2K3 Server - baffling behaviour Attempt to send a message through a socket failed with WinSock error 10038. After around 40 seconds, messages are received successfully from the same socket and subsequently the send() is also succeeding in the same socket. This behaviour has been witnessed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's a good threadsafe singleton generic template pattern in C# I have the following C# singleton pattern, is there any way of improving it? public class Singleton<T> where T : class, new() { private static object _syncobj = new object(); private static volatile T _instance = null; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: What do you consider the best CMS in Java Which CMS are you using in Java and what is your experience with it (in terms of extensibility, usage comfort, framework API, memory usage, performance etc.). I am looking for suggestions. Specifically any one that supports a search engine(probably lucene or similar). A: We...
{ "language": "en", "url": "https://stackoverflow.com/questions/100089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to have silverlight get its data from MySQL I've written a small hello world test app in Silverlight which i want to host on a Linux/Apache2 server. I want the data to come from MySQL (or some other linux compatible db) so that I can databind to things in the db. I've managed to get it working by using the MySQL...
{ "language": "en", "url": "https://stackoverflow.com/questions/100104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Obfuscation Puzzle: Can you figure out what this Perl function does? sub foo {[$#{$_[!$||$|]}*@{$_[!!$_^!$_]}?@{$_[!$..!!$.]}[$_[@--@+]% @{$_[$==~/(?=)//!$`]}..$#{$_[$??!!$?:!$?]},($)?!$):!!$))..$_[$--$-]%@{ $_[$]/$]]}-(!!$++!$+)]:@{$_[!!$^^^!$^^]}]} update: I thought the word "puzzle" would imply this, but: I know...
{ "language": "en", "url": "https://stackoverflow.com/questions/100106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Causes of getting a java.lang.VerifyError I'm investigating the following java.lang.VerifyError java.lang.VerifyError: (class: be/post/ehr/wfm/application/serviceorganization/report/DisplayReportServlet, method: getMonthData signature: (IILjava/util/Collection;Ljava/util/Collection;Ljava/util/HashMap;Ljava/util/Coll...
{ "language": "en", "url": "https://stackoverflow.com/questions/100107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "206" }
Q: Application wide keyboard shortcut - Java Swing I would like to create an application wide keyboard shortcut for a Java Swing application. Looping over all components and adding the shortcut on each, has focus related side effects, and seems like a brute force solution. Anyone has a cleaner solution? A: When you ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/100123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Is Eclipse 3.4 (Ganymede) memory usage significantly higher than 3.2? I was happily using Eclipse 3.2 (or as happy as one can be using Eclipse) when for a forgotten reason I decided to upgrade to 3.4. I'm primarily using PyDev, Aptana, and Subclipse, very little Java development. I've noticed 3.4 tends to really giv...
{ "language": "en", "url": "https://stackoverflow.com/questions/100161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way to check if there are symbolic links pointing to a directory? I have a folder on my server to which I had a number of symbolic links pointing. I've since created a new folder and I want to change all those symbolic links to point to the new folder. I'd considered replacing the original folder with a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/100170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "74" }
Q: What tool/format do you use for writing your specifications? I would like to know what kind of tool you use for writing your specifications. I think it's essential to use a tool that supports some kind of plain text format so that one can control the specification with a source control system like SVN. For the speci...
{ "language": "en", "url": "https://stackoverflow.com/questions/100174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best practice for application-icon in windows So far I had "designed" my app-icon in the Visual-Studio-Editor. 16-Colors, 4kB. Now someone created a more sophisticated and up-to-date app-icon for me, which results in a filesize of about 250kB. Problem: A user reported, that win2000 is complaining, because it is not...
{ "language": "en", "url": "https://stackoverflow.com/questions/100177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Adding a classic ASP webapplication to VS 2008 is there a way to add an existing classic ASP webapp into a solution in VS? The application is around 4000 files large and currently maintained outisde Visual Studio. A: The best way to do this IMO is:- In VS 2008 File | Open | Web Site... In the dialog ensure File Sys...
{ "language": "en", "url": "https://stackoverflow.com/questions/100187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET List Concat vs AddRange What is the difference between the AddRange and Concat functions on a generic List? Is one recommended over the other? A: The big difference is that AddRange mutates that list against which it is called whereas Concat creates a new List. Hence they have different uses. Also Concat is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/100196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "114" }
Q: How can I do offline reasoning with Pellet? I have an OWL ontology and I am using Pellet to do reasoning over it. Like most ontologies it starts by including various standard ontologies: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:r...
{ "language": "en", "url": "https://stackoverflow.com/questions/100209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the standard way to add N seconds to datetime.time in Python? Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to it, so that 11:34:59 + 3 = 11:35:02, for example? These obvious ideas don't work: >>> datetime.time(11, 34, 59) + 3 TypeError: unsupported operan...
{ "language": "en", "url": "https://stackoverflow.com/questions/100210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "497" }
Q: How to retrieve params from GET HTTP method using javax.ws.rs.* and Glassfish? I just installed Glassfish V2 on my local machine just to play around with it. I was wondering if there is a way to retrieve a param passed in by the GET HTTP method. For instance, http://localhost:8080/HelloWorld/resources/helloWorld?nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/100211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Start seleniumRC from Fitnesse I'm trying to integrate running Fitnesse tests from MSBuild im my nightly build on TFS. In an attempt to make it self contained I would like to start the seleniumRC server only when it's needed from fitness. I've seen that there is a "Command Line Fixture" but it's written in java can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tools for finding unused function declarations? Whilst refactoring some old code I realised that a particular header file was full of function declarations for functions long since removed from the .cpp file. Does anyone know of a tool that could find (and strip) these automatically? A: You could if possible make ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XML schema construct for "any one or more of these elements but must be at least one" I'm trying to set up part of a schema that's like a "Sequence" where all child elements are optional, but at least one of the elements must be present, and there could be more than one of them. I tried doing the following, but XMLS...
{ "language": "en", "url": "https://stackoverflow.com/questions/100228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Looking for a simple standalone persistent dictionary implementation in C# For an open source project I am looking for a good, simple implementation of a Dictionary that is backed by a file. Meaning, if an application crashes or restarts the dictionary will keep its state. I would like it to update the underlying fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/100235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: C# String ASCII representation How can I insert ASCII special characters (e.g. with the ASCII value 0x01) into a string? I ask because I am using the following: str.Replace( "<TAG1>", Convert.ToChar(0x01).ToString() ); and I feel that there must be a better way than this. Any Ideas? Update: Also If I use this metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/100236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I create a "select folder OR file dialog window" in REALbasic? You can use SelectFolder() to get a folder or GetOpenFolderitem(filter as string) to get files but can you select either a folder or file? ( or for that matter selecting multiple files ) A: The MonkeyBread plugin allows this in the OpenDialogMB...
{ "language": "en", "url": "https://stackoverflow.com/questions/100242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java Frameworks War: Spring and Hibernate My developers are waging a civil war. In one camp, they've embraced Hibernate and Spring. In the other camp, they've denounced frameworks - they're considering Hibernate though. The question is: Are there any nasty surprises, weaknesses or pit-falls that newbie Hibernate-Spr...
{ "language": "en", "url": "https://stackoverflow.com/questions/100243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Test planning/documentation/management tools I'm looking for a good, preferably free, test planning and documentation tool. Ideally something that will keep track of which tests have been run against which software version, with reporting ability. There's a whole bunch of tools listed here but are there any others, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Reading a PNG image file in .Net 2.0 I'm using C# in .Net 2.0, and I want to read in a PNG image file and check for the first row and first column that has non-transparent pixels. What assembly and/or class should I use? A: Bitmap class from System.Drawing.dll assembly: Bitmap bitmap = new Bitmap(@"C:\image.png");...
{ "language": "en", "url": "https://stackoverflow.com/questions/100247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Where can I get good answers to my Perl-related questions? AFAIK one of the objectives of Stack Overflow is to make sure anyone can come here and find good answers to her Perl related questions. Certainly beginners would ask what is the best online source to learn Perl but others might just want to ask a question. P...
{ "language": "en", "url": "https://stackoverflow.com/questions/100248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Is there an OpenFileOrFolderDialog object in .NET? Is it possible to use the OpenFileDialog class select a file OR folder? It appears only to allow the selection of a file, if you select a folder and then choose open it will navigate to that folder. If the OpenFileDialog can not be used for this is there another ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/100264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Connecting to IMDB Has any one done this before? It would seem to me that there should be a webservice but i can't find one. I am writing an application for personal use that would just show basic info from IMDB. A: The only "API" the IMDb publishes is a set of plain-text data files containing formatted lists of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/100280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How do I check if the scanner is plugged in (C#, .NET TWAIN) I'm using the .NET TWAIN code from http://www.codeproject.com/KB/dotnet/twaindotnet.aspx?msg=1007385#xx1007385xx in my application. When I try to scan an image when the scanner is not plugged in, the application freezes. How can I check if the device is p...
{ "language": "en", "url": "https://stackoverflow.com/questions/100284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Mashups and SharePoint Can somebody in SO please provide me with a list of resources about Enterprise Mashups and technologies related to SharePoint platform? Update (as per suggestion of @Spoon16 in the comments):- The mashup application may typically retrieve a list of contacts from a SharePoint site and display t...
{ "language": "en", "url": "https://stackoverflow.com/questions/100290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Speed up loop using multithreading in C# (Question) Imagine I have an function which goes through one million/billion strings and checks smth in them. f.ex: foreach (String item in ListOfStrings) { result.add(CalculateSmth(item)); } it consumes lot's of time, because CalculateSmth is very time consuming functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/100291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How's the ActionScript2 -> ActionScript3 learning curve? I knew ActionScript and ActionScript2 inside out, but I've been away from Flash for a couple years. What's the magnitude of becoming fluent in ActionScript3 and the new Flash functionality? From Colin Moock's blog, I heard that some of the fundamental moviec...
{ "language": "en", "url": "https://stackoverflow.com/questions/100295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I analyze Python code to identify problematic areas? I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed. Specifically, I'd like to call out routines with a high cyclomatic c...
{ "language": "en", "url": "https://stackoverflow.com/questions/100298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: Why does a call to BeginPaint() always generate a WM_NCPAINT message? I'm facing a problem on the Win32 API. I have a program that, when it handles WM_PAINT messages, it calls BeginPaint to clip the region and validate the update region, but the BeginPaint function is always generating a WM_NCPAINT message with the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XSL code coverage tool Are there any tools that can tell me what percentage of a XSL document get actually executed during tests? UPDATE I could not find anything better than Oxygen's XSL debugger and profiler, so I'm accepting Mladen's answer. A: Not sure about code coverage itself, but you can find an XML debugge...
{ "language": "en", "url": "https://stackoverflow.com/questions/100324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Groovy: Correct Syntax for XMLSlurper to find elements with a given attribute Given a HTML file with the structure html -> body -> a bunch of divs what is the correct groovy statement to find all of the divs with a non blank tags attribute? The following is not working: def nodes = html.body.div.findAll { it.@tags !...
{ "language": "en", "url": "https://stackoverflow.com/questions/100325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Automatically creating a VMWare image I want to be able to create a VMWare image, by specifying the components that should go into it, preferably in a script, and then get VMWare, or some third process, to build the machine from the specs. So I want to be able to say eg. OS - Windows 2003, Apps - Visual Studio etc, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best way to store event times in (My)SQL database I'm trying to decide on the best way to store event times in a MySQL database. These should be as flexible as possible and be able to represent "single events" (starts at a certain time, does not necessarily need an end time), "all day" and "multi day" events, repeat...
{ "language": "en", "url": "https://stackoverflow.com/questions/100332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Per-process CPU usage on Win95 / Win98 / WinME How can you programmatically measure per-process (or better, per-thread) CPU usage under windows 95, windows 98 and windows ME? If it requires the DDK, where can you obtain that? Please note the Win9x requirement. It's easy on NT. EDIT: I tried installing the Win95/98 v...
{ "language": "en", "url": "https://stackoverflow.com/questions/100333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java: Prevent NPE in MetalFileChooserUI$IndentIcon.getIconWidth? on Windows systems. I get the following NPE with the FileChooser. It is a known bug that is not fixed by sun yet. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6342301 Does somebody know a workaround to prevent this exception? Thanks. André Excep...
{ "language": "en", "url": "https://stackoverflow.com/questions/100343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Looking for C# HTML parser Possible Duplicate: What is the best way to parse html in C#? I would like to extract the structure of the HTML document - so the tags are more important than the content. Ideally, it would be able to cope reasonably with badly-formed HTML to some extent also. Anyone know of a reliable...
{ "language": "en", "url": "https://stackoverflow.com/questions/100358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "112" }
Q: Disable Cakephp's Auto Model "feature" In cake 1.2 there is a feature that allows the developer to no have to create models, but rather have cake do the detective work at run time and create the model for you. This process happens each time and is neat but in my case very hazardous. I read about this somewhere and n...
{ "language": "en", "url": "https://stackoverflow.com/questions/100365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to do picture overlay in HTML (something like marker on top of google map)? Anyone know how to do picture overlay or appear on top of each other in HTML? The effect will be something like the marker/icon appear on Google Map where the user can specify the coordinate of the second picture appear on the first pict...
{ "language": "en", "url": "https://stackoverflow.com/questions/100376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Tabs and spaces conversion I would like to automatically convert between tabs and spaces for indentation when I commit/update code to/from our repository. I have found the AnyEdit plugin for eclipse, which can convert directories of files. Not bad for a start, but does anybody have more expierience on how to handle ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Hiding a queryString in an ASP.NET Webapplication I have two webapplication, one is a simple authenticationsite which can authenticate the logged in user and redirects him then to another site. Therefore I have to pass ther userId (GUID) to the second application. Currently this is done via the URL but i would like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: open source syntax highlighter tool? I'm looking for an open source, cross platform (Windows & Linux at least) command line tool to take some code (C++, but multiple languages would be sweet), and spit out valid a XHTML representation of that code, with syntax highlighting included. Ideally the XHTML should just wra...
{ "language": "en", "url": "https://stackoverflow.com/questions/100415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Force default value when adding column to table - SQL Server In SQL Server 2000/2005, Is it possible to force the default value to be written to already existing rows when adding a new column to a table without using NOT NULL on the new column? A: I understand your question, but you are saying that for future recor...
{ "language": "en", "url": "https://stackoverflow.com/questions/100416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Hidden Features of Visual Studio (2005-2010)? Visual Studio is such a massively big product that even after years of working with it I sometimes stumble upon a new/better way to do things or things I didn't even know were possible. For instance- * *Crtl + R, Ctrl + W to show white spaces. Essential for editing Py...
{ "language": "en", "url": "https://stackoverflow.com/questions/100420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "182" }
Q: How can I use multiple sitemap file without multiple root nodes I'm using a ASP.NET menu control. I'd like the menu to look like this, where link 1 through 10 are in one sitemap file and link 11 through 20 in another. root --link 1 (...) --link 10 --link 11 (...) --link 20 However, sitemap file MUST have a root w...
{ "language": "en", "url": "https://stackoverflow.com/questions/100435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set breakpoints on future shared libraries with a command flag I'm trying to automate a gdb session using the --command flag. I'm trying to set a breakpoint on a function in a shared library (the Unix equivalent of a DLL) . My cmds.gdb looks like this: set args /home/shlomi/conf/bugs/kde/font-break.txt b IA__...
{ "language": "en", "url": "https://stackoverflow.com/questions/100444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "105" }
Q: Why is the DataSourceSelectArguments sealed? Does anybody know the logic behind making DataSourceSelectArguments sealed? I've implemented a custom DataSource (and related classes) for some custom business objects and custom WebControls. When thinking in filters (like in a grid) I discovered that the DataSourceSelect...
{ "language": "en", "url": "https://stackoverflow.com/questions/100454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alternatives to Live/GamerServices for XNA projects? Using the GamerServices component for XNA to access Xbox/GfW Live for networking purposes requires developers and players each to have a US$100/year subscription to Microsoft's Creators Club. That's not much of an issue for Xbox360 XNA projects as you need the sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/100459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SSO in webpages I would like to know what's the best technique to do single sign-on in web sites. It means that if you enter in more than one website, you will be authenticated in a "transparent" way. I'm using php + curl to set the cookies for the different sites, but i really would like to know if does exist a sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/100460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Neural Network example in .NET Any good tutorial with source that will demonstrate how to develop neural network (step bay step for dummies ;-)) A: Here is an online course on C# neural network programming. http://www.heatonresearch.com/course/intro-neural-nets-cs A: Here is good example: Brainnet 1 - A Neural Net...
{ "language": "en", "url": "https://stackoverflow.com/questions/100469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How to pause / resume any external process under Windows? I am looking for different ways to pause and resume programmatically a particular process via its process ID under Windows XP. Process suspend/resume tool does it with SuspendThread / ResumeThread but warns about multi-threaded programs and deadlock problems....
{ "language": "en", "url": "https://stackoverflow.com/questions/100480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do you bind in xaml to a dynamic xpath? I have a list box that displays items based on an XPath query. This XPath query changes depending on the user's selection elsewhere in the GUI. The XPath always refers to the same document. At the moment, I use some C# code behind to change the binding of the control to a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the SQL command to return the field names of a table? Say I have a table called myTable. What is the SQL command to return all of the field names of this table? If the answer is database specific then I need SQL Server right now but would be interested in seeing the solution for other database systems as w...
{ "language": "en", "url": "https://stackoverflow.com/questions/100504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: What are the quickest and easiest ways to ensure existing web pages display well on mobile platforms? The pages in question contain a lot of javascript and CSS. How well are these supported by mobile platforms generally? Is there a browser emulator (or equivalent tool) to assist testing? A: Opera has an option to v...
{ "language": "en", "url": "https://stackoverflow.com/questions/100519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Interface type method parameter implementation Is it possible to do like this: interface IDBBase { DataTable getDataTableSql(DataTable curTable,IDbCommand cmd); ... } class DBBase : IDBBase { public DataTable getDataTableSql(DataTable curTable, SqlCommand cmd) { ... } } I want to use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/100533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I set specific environment variables when debugging in Visual Studio? On a class library project, I set the "Start Action" on the Debug tab of the project properties to "Start external program" (NUnit in this case). I want to set an environment variable in the environment this program is started in. How do I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: Which (third-party) debug visualizers for Visual Studio 2005/2008 do you use? I guess this topic is often overseen, but is rather useful when debugging your code. Just today I have stumbled across this simple yet effective visualizer that visualizes images (it's on a german blog, but I guess the code content is self...
{ "language": "en", "url": "https://stackoverflow.com/questions/100548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I perform a Google search on different Google datacentres? I would like to get up-to-date information on Google's index of a website, and it seems that results vary depending on which datacentre happens to process your search query. A: You can use one of the many tools designed specifically for this. One of...
{ "language": "en", "url": "https://stackoverflow.com/questions/100557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best automation or scripting tool to automate repetitive tasks with applications? I realize you can script Microsoft Office apps, but I'm looking for something more general that I can apply to other apps, such as Adobe Acrobat, web browsers and other apps with no scripting ability. I've used AutoIt but it...
{ "language": "en", "url": "https://stackoverflow.com/questions/100592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best resources for converting C/C++ dll headers to Delphi? A rather comprehensive site explaining the difficulties and solutions involved in using a dll written in c/c++ and the conversion of the .h header file to delphi/pascal was posted to a mailing list I was on recently, so I thought I'd share it, and invite oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/100596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Can you turn off Visual Studio 2008 Query formatting? Is it possible to turn off the query re-formatting that happens when you edit a query for a database in Visual Studio? (i.e. r-click a data source and select New Query) This is happening when we are writing sql queries against a sql compact 3.5 database. Its rath...
{ "language": "en", "url": "https://stackoverflow.com/questions/100614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get the mac address or IPAddress from a cisco callmanager? Is there any way to retrieve either the mac address or the IP address of phones on a Cisco server using Callmanager version 6 via the axl with VB.net? The server can retrieve the IP address itself to use the phone and it's not in the database inform...
{ "language": "en", "url": "https://stackoverflow.com/questions/100620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flash should open window in new tab, but instead it opens a new pop up on Mac using target="_blank" in the navigateToUrl with Firefox on Windows it opens in new tab, with Firefox on Mac it opens a 'popup', How to make the window popup in a new tab on Firefox on Mac as well? A: Check your Firefox preferences >> Tabs...
{ "language": "en", "url": "https://stackoverflow.com/questions/100622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python on Windows - how to wait for multiple child processes? How to wait for multiple child processes in Python on Windows, without active wait (polling)? Something like this almost works for me: proc1 = subprocess.Popen(['python','mytest.py']) proc2 = subprocess.Popen(['python','mytest.py']) proc1.wait() print...
{ "language": "en", "url": "https://stackoverflow.com/questions/100624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Licensing Websites - How does it work? I've been looking at several sites that offer a form of "linkware" license where you get the website for free but need to keep all links to the developers site in place. Purchasing a license key and adding it to the site (either in a database or some form of config file) remove...
{ "language": "en", "url": "https://stackoverflow.com/questions/100629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: "MySQL server has gone away" with Ruby on Rails After our Ruby on Rails application has run for a while, it starts throwing 500s with "MySQL server has gone away". Often this happens overnight. It's started doing this recently, with no obvious change in our server configuration. Mysql::Error: MySQL server has gone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/100631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Why do you not declare several variables of the same type on the same line? Why is it bad practice to declare variables on one line? e.g. private String var1, var2, var3 instead of: private String var1; private String var2; private String var3; A: In C/C++, you also have the problem that the * used to indicate a...
{ "language": "en", "url": "https://stackoverflow.com/questions/100633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Calculate Cyclomatic Complexity for Javascript Are there any tools available for calculating Cyclomatic Complexity in Javascript? I've found it a very helpful metric in the past while working on server side code, and would like to be able to use it for the client side Javascript I write. A: Since cyclomatic comple...
{ "language": "en", "url": "https://stackoverflow.com/questions/100645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Why do some wav files play in my c# directsound app but some don't? I've got a c# application that plays simple wav files through directsound. With the test data I had, the code worked fine. However when I used real-world data, it produced a very unhelpful error on creation of the secondary buffer: "ArgumentExcept...
{ "language": "en", "url": "https://stackoverflow.com/questions/100654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Calculate Average Lines of Code per Method for Javascript Are there any tools available for calculating the average number of lines of code per method? I want to know the average size of each method, not just the total number of lines in the project. The per method count will allow me to measure how simple each meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/100661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ::SendMessage( ) LRESULT result = ::SendMessage(hWnd, s_MaxGetTaskInterface, (WPARAM)&pUnkReturn, 0); The value of result after the call is 0 I expect it to return with a valid value of pUnkReturn , but it returns with a NULL value . Necessary Information before this call : const UINT CMotionUtils::s_MaxGetTaskInt...
{ "language": "en", "url": "https://stackoverflow.com/questions/100678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Menu Control: How to Make Whole Item Clickable, not Just Text I have a problem that confuses my users, being that although an item is highlighted (by the hover style) when the user mouses over it, they have to mouse over the actual item text, sometimes quite small compared to the item. Is there a way to make the wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/100689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Moving to ASP.NET - VB or C#? We have a large ASP classic code base but I'm looking to do future development in ASP.NET (and potentially in the future port across what we have). The natural choice of language seems to be VB (existing code is VBScript) but am I being too hasty? Does the choice of language, in the lon...
{ "language": "en", "url": "https://stackoverflow.com/questions/100691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Location of WSDL.exe I recently heard of WSDL.Exe, but I am not sure where to find this program. Does anyone know where I can find or download it? A: If you have Windows 10 and VS2019, and the .NET Framework 4.8, below you can see the Location of WSDL.exe Path in your pc C:\Program Files (x86)\Microsoft SDKs\Window...
{ "language": "en", "url": "https://stackoverflow.com/questions/100705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }