text
stringlengths
8
267k
meta
dict
Q: How can I allow others to create Java, .NET, Ruby, PHP, Perl web user interface components that interact with each other? How can I allow others to create Java, .NET, Ruby, PHP, Perl web user interface components that interact with each other? For example, one web ui component written in .NET selects a customer, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/93846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use system_user in audit trigger but still use connection pooling? I would like to do both of the following things: * *use audit triggers on my database tables to identify which user updated what; *use connection pooling to improve performance For #1, I use 'system_user' in the database trigger to ident...
{ "language": "en", "url": "https://stackoverflow.com/questions/93848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to fix / debug 'expected x.rb to define X.rb' in Rails I have seen this problem arise in many different circumstances and would like to get the best practices for fixing / debugging it on StackOverflow. To use a real world example this occurred to me this morning: expected announcement.rb to define Announcement ...
{ "language": "en", "url": "https://stackoverflow.com/questions/93853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: HRESULT: 0x80131040: The located assembly's manifest definition does not match the assembly reference The located assembly's manifest definition does not match the assembly reference getting this when running nunit through ncover. Any idea? A: In my case for a wcf rest services project I had to add a runtime sectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/93879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: How do I explicitly set asp.net sessions to ONLY expire on closing the browser or explicit logou? By default the session expiry seems to be 20 minutes. Update: I do not want the session to expire until the browser is closed. Update2: This is my scenario. User logs into site. Plays around the site. Leaves computer t...
{ "language": "en", "url": "https://stackoverflow.com/questions/93888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can't add server to a moved workspace I have this workspace downloaded off the web and I try running it on a tomcat server from a fresh installation of Eclipse Ganymede. This particular project came with its own workspace. When I select Tomcat v6.0 I get a message Cannot create a server using the selected type O...
{ "language": "en", "url": "https://stackoverflow.com/questions/93900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How can you run Javascript using Rhino for Java in a sandbox? Part of our java application needs to run javascript that is written by non-developers. These non-developers are using javascript for data formatting. (Simple logic and string concatenation mostly). My question is how can I setup the execution of these s...
{ "language": "en", "url": "https://stackoverflow.com/questions/93911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: What Python GUI APIs Are Out There? Simple question: * *What Python GUI API's are out there and what are the advantages of any given API? I'm not looking for a religious war here, I'm just wanting to get a good handle on all that is out there in terms of Python GUI APIs. A: PyQt is excellent if you have experi...
{ "language": "en", "url": "https://stackoverflow.com/questions/93930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Out of String Space in Visual Basic 6 We are getting an error in a VB6 application that sends data back and forth over TCP sockets. We get a runtime error "out of string space". Has anyone seen this or have any thoughts on why this would happen? It seems like we are hitting some VB6 threshhold so any other though...
{ "language": "en", "url": "https://stackoverflow.com/questions/93932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do you maintain java webapps in different staging environments? You might have a set of properties that is used on the developer machine, which varies from developer to developer, another set for a staging environment, and yet another for the production environment. In a Spring application you may also have bea...
{ "language": "en", "url": "https://stackoverflow.com/questions/93944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to programmatically create videos? Is there a freely available library to create a MPEG (or any other simple video format) out of an image sequence ? It must run on Linux too, and ideally have Python bindings. A: I know there's mencoder (part of the mplayer project), and ffmpeg, which both can do this. A: ffmp...
{ "language": "en", "url": "https://stackoverflow.com/questions/93954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How is the Page File available calculated in Windows Task Manager? In Vista Task Manager, I understand the available page file is listed like this: Page File inUse M / available M In XP it's listed as the Commit Charge Limit. I had thought that: Available Virtual Memory = Physical Memory Total + Sum of Page Fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/93969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to determine whether a character is a letter in Java? How do you check if a one-character String is a letter - including any letters with accents? I had to work this out recently, so I'll answer it myself, after the recent VB6 question reminded me. A: Character.isLetter() is much faster than string.matches(), b...
{ "language": "en", "url": "https://stackoverflow.com/questions/93976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: What is the correct way to design/implement two (or more) classes that have "has a" relationships with the same object? Suppose I have a design like this: Object GUI has two objects: object aManager and object bManager, which don't ever talk to each other. Both aManager and bManager have object cManager as an attrib...
{ "language": "en", "url": "https://stackoverflow.com/questions/93981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I split a string using regex to return a list of values? How can I take the string foo[]=1&foo[]=5&foo[]=2 and return a collection with the values 1,5,2 in that order. I am looking for an answer using regex in C#. Thanks A: In C# you can use capturing groups private void RegexTest() { String...
{ "language": "en", "url": "https://stackoverflow.com/questions/93983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prevent multiple instances of a given app in .NET? In .NET, what's the best way to prevent multiple instances of an app from running at the same time? And if there's no "best" technique, what are some of the caveats to consider with each solution? A: Hanselman has a post on using the WinFormsApplicationBase class f...
{ "language": "en", "url": "https://stackoverflow.com/questions/93989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "140" }
Q: Adobe ExtendScript development - How different than regular JavaScript? Question I'm wondering how different ExtendScript is from JavaScript? Could I theoretically hire a web developer who has JavaScript savvy to develop it without demanding an excessive amount of learning on their part? Overview I'm working on a me...
{ "language": "en", "url": "https://stackoverflow.com/questions/94007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to abort a thread in a fast and clean way in java? Here is my problem: I've got a dialog with some parameters that the user can change (via a spinner for example). Each time one of these parameters is changed, I launch a thread to update a 3D view according to the new parameter value. If the user changes anothe...
{ "language": "en", "url": "https://stackoverflow.com/questions/94011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Specifying model in controller? I came across a controller in an older set of code (Rails 1.2.3) that had the following in a controller: class GenericController > ApplicationController # filters and such model :some_model Although the name of the model does not match the name of the model, is there any reas...
{ "language": "en", "url": "https://stackoverflow.com/questions/94023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Inheriting a base class I am trying to use forms authentication with Active Directory but I need roles (memberOf) from AD. I am trying to override members of RoleProvider to make this possible (unless someone knows of a better way). I am stuck on an error in the new class that is inheriting from RoleProvider. The er...
{ "language": "en", "url": "https://stackoverflow.com/questions/94024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert character to ASCII code in JavaScript How can I convert a character to its ASCII code using JavaScript? For example: get 10 from "\n". A: Converting string into array(stream) of UTF-8: const str_to_arr_of_UTF8 = new TextEncoder().encode("Adfgdfs"); // [65, 100, 102, 103, 100, 102, 115] Note: ASCII is a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/94037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1194" }
Q: What can cause an ASP.NET worker process to be recycled? Here is my current question: I'm guessing that my problem (described below) is being caused by ASP.NET worker processes being recycled, per the answers below—I'm using InProc sessions storage and don't see much chance of moving away, due to the restriction for...
{ "language": "en", "url": "https://stackoverflow.com/questions/94042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Are .NET 3.5 XPath classes and methods XSLT 2.0 compatible? I'd like to use regular expressions in selecting elements using the match function. I'd prefer not to use an external library (such as saxon) to do this. A: I believe the answer in this discussion is misleading. I think .NET 3.5 doesn't support most XSL...
{ "language": "en", "url": "https://stackoverflow.com/questions/94047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How are you using the Machine.config, or are you? For ASP.Net application deployment what type of information (if any) are you storing in the machine.config? If you're not using it, how are you managing environment specific configuration settings that may change for each environment? I'm looking for some "best prac...
{ "language": "en", "url": "https://stackoverflow.com/questions/94053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Using Resharper Unit Test Runner for MSTest via Gallio I am attempting to get the Resharper test runner to recognize my MSTest unit tests via Gallio. I have the following installed: VSTS 2005 8.0.50727.762 Resharper 4.1 Gallio 3.0.0.285 I am also running Windows XP x64. The unit test options only shows NUnit as bein...
{ "language": "en", "url": "https://stackoverflow.com/questions/94057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Moving from VSS to SVN I need to write a script to make a source safe project ready to be moved to subversion, what do I need to do so far I can think of: * *remove .scc files *remove .vspcc files Do I need to remove the "read-only" attribute of all the files as well, or will that not matter? What language wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/94058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Slow wget speeds when connecting to https pages I'm using wget to connect to a secure site like this: wget -nc -i inputFile where inputeFile consists of URLs like this: https://clientWebsite.com/TheirPageName.asp?orderValue=1.00&merchantID=36&programmeID=92&ref=foo&Ofaz=0 This page returns a small gif file. For som...
{ "language": "en", "url": "https://stackoverflow.com/questions/94074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Number of Classes in a Visual Studio Solution Is there an easy way to find the number of classes contained within a visual studio solution? Other than writing a funky find script, I couldn't find a way to do it within the code metrics piece of VS. I am running Visual Studio 2008 and this is a VB.Net project thro...
{ "language": "en", "url": "https://stackoverflow.com/questions/94084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to type faster I've typed around 75wpm for the last few years but I've always wondered how people type +100wpm. I've searched but I primarily find typing tutors that teach you to type.. not teach you to type faster. So far the only tip I've come across is to learn dvorak. Are there exercises or tips to help br...
{ "language": "en", "url": "https://stackoverflow.com/questions/94101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: SQL Server triggers - order of execution Does anyone know how SQL Server determines the order triggers (of same type, i.e. before triggers) are executed. And is there any way of changing this so that I can specify the order I want. If not, why not. Thanks. A: sp_settriggerorder only applies to AFTER triggers. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/94103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: What is the simplest way to stub a complex interface in Java? My code takes an interface as input but only excercises a couple of the interface's methods (often, just getters). When testing the code, I'd love to define an anonymous inner class that returns the test data. But what do I do about all the other methods...
{ "language": "en", "url": "https://stackoverflow.com/questions/94112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What might cause CSS to fail to load occasionally on all browsers? I'm working on a webapp, and every so often we run into situations where pages will load without applying CSS. This problem has shown up in IE6, IE7, Safari 3, and FF3. A page refresh will always fix the problem. There are 3 CSS files loaded, all wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/94123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: JavaScript's document.write Inline Script Execution Order I have the following script, where the first and third document.writeline are static and the second is generated: <script language="javascript" type="text/javascript"> document.write("<script language='javascript' type='text/javascript' src='before.js'><\/sc"...
{ "language": "en", "url": "https://stackoverflow.com/questions/94141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Appropriate design pattern for an event log parser? Working on a project that parses a log of events, and then updates a model based on properties of those events. I've been pretty lazy about "getting it done" and more concerned about upfront optimization, lean code, and proper design patterns. Mostly a self-teachin...
{ "language": "en", "url": "https://stackoverflow.com/questions/94148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I persist to disk a temporary file using Python? I am attempting to use the 'tempfile' module for manipulating and creating text files. Once the file is ready I want to save it to disk. I thought it would be as simple as using 'shutil.copy'. However, I get a 'permission denied' IOError: >>> import tempfile, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/94153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Inconsistent display behavior for Quick Launch menu in MOSS 2007 I'm trying to configure the Quick Launch menu to only display the ancestors and descendant nodes of the currently select node. The menu also needs to display all the childern of the root node. More simply: Given a site map of: RootSite ---SubSite1 = na...
{ "language": "en", "url": "https://stackoverflow.com/questions/94154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where to put helper-scripts with GNU autoconf/automake? I'm working on a project that will be distributed with GNU autoconf/automake, and I have a set of bash scripts which call awk scripts. I would like the bash scripts to end up in the $PATH, but not the awk scripts. How should I insert these into the project? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to display a 'loading' indicator on a WPF control In C#.Net WPF During UserControl.Load -> What is the best way of showing a whirling circle / 'Loading' Indicator on the UserControl until it has finished gathering data and rendering it's contents? A: I improved on Ian Oakes Design and build an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: NAnt best practices I have here 300 lines long NAnt file and it is quite a messy. I am wondering if there is a any style guide for writing NAnt scripts and what are the best practices for doing so. Any tips? A: I'm not aware of any published style guide, but I can certainly share my experience. You can use many of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WPF Datatrigger not firing when expected I have the following XAML: <TextBlock Text="{Binding ElementName=EditListBox, Path=SelectedItems.Count}" Margin="0,0,5,0"/> <TextBlock Text="items selected"> <TextBlock.Style> <Style TargetType="{x:Type TextBlock}"> <Style.Triggers> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Why does StatSVN fail, claiming the directory is not a working copy? I have a working copy of my project, checked out using Subversion 1.5.1. When I attempt to run StatSVN against it, I get the following error: Sep 18, 2008 12:25:22 PM net.sf.statsvn.util.JavaUtilTaskLogger info INFO: StatSVN - SVN statistics gen...
{ "language": "en", "url": "https://stackoverflow.com/questions/94178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Testing the UI in an Asp.net Page? What's the best way to automate testing the UI in an Asp.net Page? A: Watir or Watin are a great place to start. More info here A: Quite loosely defined question so a good answer is almost impossible. Would dare to suggest that using Selenium might help with automating the task. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best way to have synchronized a collection of objects between various threads in .Net? What is the best way to have synchronized a collection of objects between various threads in .Net? I need to have a List or Dictionary accessed from different threads in a thread safe mode. With Adds, Removes, Foreachs...
{ "language": "en", "url": "https://stackoverflow.com/questions/94204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I stop the "Found new hardware wizard" appearing? As part of our product we use 3rd party hardware and drivers. Unfortunately, these drivers aren't signed so up pops the "Found new hardware wizard" when installing or upgrading our product. Our product is web based and allows the users access to everything t...
{ "language": "en", "url": "https://stackoverflow.com/questions/94221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to switch back to a previous version of a file without deleting its subsequent revisions? I have 4 versions of file A.txt in my subversion repository, say: A.txt.r1, A.txt.r2, A.txt.r3 and A.txt.r4. My working copy of the file is r4 and I want to switch back to r2. I don't want to use "svn update -r 2 A.txt" bec...
{ "language": "en", "url": "https://stackoverflow.com/questions/94226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Smart pointers: who owns the object? C++ is all about memory ownership - aka ownership semantics. It is the responsibility of the owner of a chunk of dynamically allocated memory to release that memory. So the question really becomes who owns the memory. In C++ ownership is documented by the type a raw pointer is wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/94227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: Does the CSS 'font-size: medium' set font to .Body font size or to the *browser*'s base font size? in "CSS: The missing manual" the author says that font-size: medium (or other size keywords) sets the font relative to the browser's base font size. But what I'm seeing in FF2 and IE6 is that it sets the font size to w...
{ "language": "en", "url": "https://stackoverflow.com/questions/94241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get a Flex project to load a plugin at runtime? I'm looking to have a couple of plugins in a Flex project I'm working on. I know I can load a SWF using the SWFLoader, but I thought in Flex3 you can now have Runtime Shared Libraries or something. Does anyone have any good documentation on loading a plugin at r...
{ "language": "en", "url": "https://stackoverflow.com/questions/94245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to programmatically determine param name when constructing an ArgumentException? When constructing an ArgumentException, a couple of the overloads take a string that is the invalid argument's parameter name. I figure it would be nice to not have to remember to update this ctor param whenever I change the method'...
{ "language": "en", "url": "https://stackoverflow.com/questions/94263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Return to an already open application when a user tries to open a new instance This has been a problem that I haven't been able to figure out for sometime. Preventing the second instance is trivial and has many methods, however, bringing back the already running process isn't. I would like to: * *Minimized: Und...
{ "language": "en", "url": "https://stackoverflow.com/questions/94274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: What is quicker, switch on string or elseif on type? Lets say I have the option of identifying a code path to take on the basis of a string comparison or else iffing the type: Which is quicker and why? switch(childNode.Name) { case "Bob": break; case "Jill": break; case "Marko": break; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: How to change the Text of the browse button in the FileUpload Control (System.Web.UI.WebControls) I want to change the Text of the browse button in the FileUpload Control (System.Web.UI.WebControls), instead of the [Browse...] text I want to use [...] A: This isn't technically possible for security purposes, so the...
{ "language": "en", "url": "https://stackoverflow.com/questions/94316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How can I reduce Eclipse Ganymede's memory use? I use the recent Ganymede release of Eclipse, specifically the distro for Java EE and web developers. I have installed a few additional plugins (e.g. Subclipse, Spring, FindBugs) and removed all the Mylyn plugins. I don't do anything particularly heavy-duty within Ecl...
{ "language": "en", "url": "https://stackoverflow.com/questions/94331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Distributed python What is the best python framework to create distributed applications? For example to build a P2P app. A: I think you mean "Networked Apps"? Distributed means an app that can split its workload among multiple worker clients over the network. You probably want. Twisted A: You probably want Twisted...
{ "language": "en", "url": "https://stackoverflow.com/questions/94334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C# string manipulation search and replace I have a string which contain tags in the form < tag >. Is there an easy way for me to programmatically replace instances of these tags with special ascii characters? e.g. replace a tag like "< tab >" with the ascii equivelent of '/t'? A: using System.Text.RegularExpression...
{ "language": "en", "url": "https://stackoverflow.com/questions/94342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: When do you use Java's @Override annotation and why? What are the best practices for using Java's @Override annotation and why? It seems like it would be overkill to mark every single overridden method with the @Override annotation. Are there certain programming situations that call for using the @Override and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "498" }
Q: calculate elapsed time in flash I am building a quiz and i need to calculate the total time taken to do the quiz. and i need to display the time taken in HH::MM::SS..any pointers? A: new Date().time returns the time in milliseconds. var nStart:Number = new Date().time; // Some time passes var nMillisElapsed:Num...
{ "language": "en", "url": "https://stackoverflow.com/questions/94372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Volume (Balance) Control for XP/Vista Is there a method for controlling the Balance of the Wave output that will work on both XP and Vista? A: Vista has a new api for everything related to mixers and audio, per process legacy api's should still work, but to change global volume, you would have to look at the new CO...
{ "language": "en", "url": "https://stackoverflow.com/questions/94380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Vim with Powershell I'm using gvim on Windows. In my _vimrc I've added: set shell=powershell.exe set shellcmdflag=-c set shellpipe=> set shellredir=> function! Test() echo system("dir -name") endfunction command! -nargs=0 Test :call Test() If I execute this function (:Test) I see nonsense characters (non number...
{ "language": "en", "url": "https://stackoverflow.com/questions/94382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Windsor Interceptors AOP & Caching I'm considering using Castle Windsor's Interceptors to cache data for helping scale an asp.net site. Does anyone have any thoughts/experience with doing this? Minor clarification: My intention was to use Windsor to intercept 'expensive' calls and delegate to MemCacheD or Velocity (...
{ "language": "en", "url": "https://stackoverflow.com/questions/94410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Infopath 2007 - Emailed forms not rendering correctly So I have a form that uses infopath services via sharepoint, and after multiple attempts at attempting to fix a rendering problem (tables appear WAY too wide to be readable), I think I have found the problem : date controls. It seems date controls within Infopath...
{ "language": "en", "url": "https://stackoverflow.com/questions/94420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using OpenSSL what does "unable to write 'random state'" mean? I'm generating a self-signed SSL certificate to protect my server's admin section, and I keep getting this message from OpenSSL: unable to write 'random state' What does this mean? This is on an Ubuntu server. I have upgraded libssl to fix the recent s...
{ "language": "en", "url": "https://stackoverflow.com/questions/94445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "429" }
Q: Load a WPF BitmapImage from a System.Drawing.Bitmap I have an instance of a System.Drawing.Bitmap and would like to make it available to my WPF app in the form of a System.Windows.Media.Imaging.BitmapImage. What would be the best approach for this? A: Thanks to Hallgrim, here is the code I ended up with: ScreenCapt...
{ "language": "en", "url": "https://stackoverflow.com/questions/94456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "236" }
Q: What tools are available for a team leader & members to manage tasks (Agile programming) I are working in a small development team of 4 people. We are trying develop "Agile style" - story points, small tasks, etc... Unfortunately, we are currently managing our tasks in a (shared) excel table. We looked at some avail...
{ "language": "en", "url": "https://stackoverflow.com/questions/94481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Does the Gentoo install CD contain everything for C++ development? I'd like to install Gentoo. I need it to develop GUI C++ applications using wxWidgets, so I need: * *build tools: make, automake, autoconf, etc. *C++ compiler (GCC) *X Window System for testing (Fluxbox or something minimal would be enough) No...
{ "language": "en", "url": "https://stackoverflow.com/questions/94486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the correct way to make a custom .NET Exception serializable? More specifically, when the exception contains custom objects which may or may not themselves be serializable. Take this example: public class MyException : Exception { private readonly string resourceName; private readonly IList<string> v...
{ "language": "en", "url": "https://stackoverflow.com/questions/94488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "289" }
Q: How do I read selected files from a remote Zip archive over HTTP using Python? I need to read selected files, matching on the file name, from a remote zip archive using Python. I don't want to save the full zip to a temporary file (it's not that large, so I can handle everything in memory). I've already written the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: in rails, how to return records as a csv file I have a simple database table called "Entries": class CreateEntries < ActiveRecord::Migration def self.up create_table :entries do |t| t.string :firstName t.string :lastName #etc. t.timestamps end end def self.down drop_table :...
{ "language": "en", "url": "https://stackoverflow.com/questions/94502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Is ">" (U+003E GREATER-THAN SIGN) allowed inside an html-element attribute value? In other words may one use /<tag[^>]*>.*?<\/tag>/ regex to match the tag html element which does not contain nested tag elements? For example (lt.html): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/94528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Can I compose a Spring Configuration File from smaller ones? I have a handful of projects that all use one project for the data model. Each of these projects has its own applicationContext.xml file with a bunch of repetitive data stuff within it. I'd like to have a modelContext.xml file and another for my ui.xml, e...
{ "language": "en", "url": "https://stackoverflow.com/questions/94542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Maven2 Multiproject Cobertura Reporting Problems During mvn site Build We've got a multiproject we're trying to run Cobertura test coverage reports on as part of our mvn site build. I can get Cobertura to run on the child projects, but it erroneously reports 0% coverage, even though the reports still highlight the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/94556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Profiling C# / .NET applications How do you trace/profile your .NET applications? The MSDN online help mentions Visual Studio Team (which I do not possess) and there is the Windows Performance Toolkit. But, are there other solutions you can recommend? Preferably (of course) a solution that works without changing the...
{ "language": "en", "url": "https://stackoverflow.com/questions/94581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Using the javax.script package for javascript with an external src attribute Say I have some javascript that if run in a browser would be typed like this... <script type="text/javascript" src="http://someplace.net/stuff.ashx"></script> <script type="text/javascript"> var stuff = null; stuff = new TheStuff...
{ "language": "en", "url": "https://stackoverflow.com/questions/94582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the maximum value for an int32? I can never remember the number. I need a memory rule. A: this is how i do it to remember 2,147,483,647 To a far savannah quarter optimus trio hexed forty septenary 2 - To 1 - A 4 - Far 7 - Savannah 4 - Quarter 8 - Optimus 3 - Trio 6 - Hexed 4 - Forty 7 - Septenary A: Anywa...
{ "language": "en", "url": "https://stackoverflow.com/questions/94591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1379" }
Q: How do you visualize logfiles in realtime? Sometimes it might be useful, but mostly just looking cool or impressive to visualize log files (anything from http requests and to bandwith usage to cups of coffee drunk per day). I know about Visitorville which I think look a bit silly, and then there's gltail. How do y...
{ "language": "en", "url": "https://stackoverflow.com/questions/94592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Automated naming of AF_UNIX local datagram sockets? I'm implementing a simple service using datagrams over unix local sockets (AF_UNIX address family, i.e. not UDP). The server is bound to a public address, and it receives requests just fine. Unfortunately, when it comes to answering back, sendto fails unless the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best way to catch a WCF exception in Silverlight? I have a Silverlight 2 application that is consuming a WCF service. As such, it uses asynchronous callbacks for all the calls to the methods of the service. If the service is not running, or it crashes, or the network goes down, etc before or during one of these ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/94610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What would be the best algorithm to find an ID that is not used from a table that has the capacity to hold a million rows To elaborate .. a) A table (BIGTABLE) has a capacity to hold a million rows with a primary Key as the ID. (random and unique) b) What algorithm can be used to arrive at an ID that has not been us...
{ "language": "en", "url": "https://stackoverflow.com/questions/94612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Parser error when using ScriptManager I have an ASP.NET page which has a script manager on it. <form id="form1" runat="server"> <div> <asp:ScriptManager EnablePageMethods="true" ID="scriptManager2" runat="server"> </asp:ScriptManager> </div> </form> The page overrides an abstract property to...
{ "language": "en", "url": "https://stackoverflow.com/questions/94632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I add pulldowns and checkboxes in a MS Outlook email? I want to create a small survey in an email message. The user are to respond using free form text boxes, check boxes , or pre-defined drop downlist . I see applications that claim to be able to do that. my needs are not that elaborate. Just a few question...
{ "language": "en", "url": "https://stackoverflow.com/questions/94634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stateful Web Services I'm building a java/spring application, and i may need to incorporate a stateful web service call. Any opinions if i should totally run away from a stateful services call, or it can be done and is enterprise ready? A: Statefulness runs counter to the basic architecture of HTTP (ask Roy Fieldin...
{ "language": "en", "url": "https://stackoverflow.com/questions/94660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using array parameters in the Eclipse HibernateTools plugin How can I bind an array parameter in the HQL editor of the HibernateTools plugin? The query parameter type list does not include arrays or collections. For example: Select * from Foo f where f.a in (:listOfValues). How can I bind an array to that listOfValu...
{ "language": "en", "url": "https://stackoverflow.com/questions/94667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery create select list options from JSON, not happening as advertised? How come this doesn't work (operating on an empty select list <select id="requestTypes"></select> $(function() { $.getJSON("/RequestX/GetRequestTypes/", showRequestTypes); } ); function showRequestTypes(data, textStatus...
{ "language": "en", "url": "https://stackoverflow.com/questions/94674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to automate the test running process using TestComplete? We are trying to integrate tests in our daily builds using TestComplete, so far we have a machine dedicated for testing and our build script copies to this machine everything TestComplete needs for its tests (Application, Database, Test script project and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the extents of the meaning of "distributing" under the LGPL license? This question is a follow up on one of my other questions, Can I legally Incorporating GPL & LGPL, open-sourced software in a proprietary, closed-source project? Many of the conditions of the LGPL license are based on the notion of distrib...
{ "language": "en", "url": "https://stackoverflow.com/questions/94685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Asp XML Parsing I am new to asp and have a deadline in the next few days. i receive the following xml from within a webservice response. print("<?xml version="1.0" encoding="UTF-8"?> <user_data> <execution_status>0</execution_status> <row_count>1</row_count> <txn_id>stuetd678</txn_id> <person_info> <attribute na...
{ "language": "en", "url": "https://stackoverflow.com/questions/94689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: In ASP.Net, during which page lifecycle event does viewstate get loaded? I know it happens sometime before Load, but during what event exactly? A: That is to say, viewstate is loaded between the OnInit() and OnLoad() events of the page. My favorite article on dealing with viewstate, which answers every question I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/94696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Method to generate pdf from access+vb6 or just sql 2005? The setup: Multiple computers using an adp file to access a sql 2005 database. Most don't have a pdf distiller. An access form (plain form, not crystal) is created that needs to be saved as a pdf. The only way I can think of is send a request from access to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/94707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: J2ME coverage tools I need to estimate the code coverage of a test set. The tests are run on a J2ME application, on a physical device. MIDP 2.1, CLDC 1.1 and JSR-75 FileConnection are available. As J2ME is (roughly) a subset of J2SE, tools using java.io.File (like those listed in the only answer so far..) can not be...
{ "language": "en", "url": "https://stackoverflow.com/questions/94724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Need a free datepicker for ASPX What is the best FREE Datepicker that can be dropped into an ASPX application? A: jQuery UI Datepicker ASP.NET AJAX has a good one too A: There's an excellent, free package that will AJAX enable the calendar control for use as a date picker. Here's the video tutorial: http://www.asp...
{ "language": "en", "url": "https://stackoverflow.com/questions/94729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Offline lorem ipsum generator What would be a good offline alternative of the online Lipsum generator? It's frustrating when I'm not online and need some placeholder text for testing purpose. A CLI utility would be ideal, so that I can tailor the output to fit my needs. A: Django's lipsum addon seemed pretty straig...
{ "language": "en", "url": "https://stackoverflow.com/questions/94747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Best container for double-indexing What is the best way (in C++) to set up a container allowing for double-indexing? Specifically, I have a list of objects, each indexed by a key (possibly multiple per key). This implies a multimap. The problem with this, however, is that it means a possibly worse-than-linear lookup...
{ "language": "en", "url": "https://stackoverflow.com/questions/94755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the best method to detect offline mode in the browser? I have a web application where there are number of Ajax components which refresh themselves every so often inside a page (it's a dashboard of sorts). Now, I want to add functionality to the page so that when there is no Internet connectivity, the current...
{ "language": "en", "url": "https://stackoverflow.com/questions/94757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Debugging my web app with JSON/Firefox - Firefox handling of JSON? I'm attempting to debug my web application with FireFox3. However, when a JSON feed comes from my application, Firefox wants to open up the "application/json" in a new program. Is there a way to configure FireFox3 to handle JSON like regular text f...
{ "language": "en", "url": "https://stackoverflow.com/questions/94767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What is the most accurate method of estimating peak bandwidth requirement for a web application? I am working on a client proposal and they will need to upgrade their network infrastructure to support hosting an ASP.NET application. Essentially, I need to estimate peak usage for a system with a known quantity of use...
{ "language": "en", "url": "https://stackoverflow.com/questions/94779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using Vim for Lisp development I've been using Lisp on and off for a while but I'm starting to get more serious about doing some "real" work in Lisp. I'm a huge Vim fan and was wondering how I can be most productive using Vim as my editor for Lisp development. Plugins, work flow suggestions, etc. are all welcome. Pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/94792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "95" }
Q: What is the cost of a function call? Compared to * *Simple memory access *Disk access *Memory access on another computer(on the same network) *Disk access on another computer(on the same network) in C++ on windows. A: Compared to a simple memory access - slightly more, negligible really. Compared to every ...
{ "language": "en", "url": "https://stackoverflow.com/questions/94794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Using windows authentication to log on to site using c# I want to log on to a server inside my program using Windows authentication of the current user logged in. I thought that perhaps I could use System.Security.Principal.WindowsIdentity.GetCurrent().Name but while that does give a name, I do not see how I can fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/94809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DNS- Route DNS for subfolder to different server? LEt's say I want to have a subfolder called- http://www.foo.com/news/ but I actually want that news folder on a different server. I realize it can be done easily with subdomains, but I was really hoping for the subfolder thing. Is it possible? How? A: The only rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/94820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Using JQuery with ASP.NET MVC Framework I have searched the forum, and google for this topic. Most of the articles are talking about using JSON to call the controller/action on the server and do ajax effect on the result. I am trying to use some very basic JQuery features, like the JQuery UI/Tabs, and JQuery UI/Bloc...
{ "language": "en", "url": "https://stackoverflow.com/questions/94860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }