text
stringlengths
8
267k
meta
dict
Q: What is the best practice in defining a soap service (generic vs. specific operation)? My situation is as follows: I have a normalized database, in which I hold geographic information about airports. The structure is: airport --is in--> city --is in--> country --is in--> continent Now I want to let users administra...
{ "language": "en", "url": "https://stackoverflow.com/questions/180572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Does anyone have experience with ZFS? I am considering to adopt ZFS and I would be happy to know your experience in both production and testing environment. A: I am not using ZFS in production - had no chance yet. Well, basically we have no need for giant storage currently and also we did not run any 7.0 up until r...
{ "language": "en", "url": "https://stackoverflow.com/questions/180586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using "super" in C++ My style of coding includes the following idiom: class Derived : public Base { public : typedef Base super; // note that it could be hidden in // protected/private section, instead // Etc. } ; This enables me to use "super" as an alias to Base, fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/180601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "230" }
Q: How do I convert a list of ascii values to a string in python? I've got a list in a Python program that contains a series of numbers, which are themselves ASCII values. How do I convert this into a "regular" string that I can echo to the screen? A: l = [83, 84, 65, 67, 75] s = "".join([chr(c) for c in l]) print ...
{ "language": "en", "url": "https://stackoverflow.com/questions/180606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: How can I delete (not disable) ActiveX add-ons in Internet Explorer (7 and 8 Beta 2)? I'm developing a solution which uses an ActiveX control (a commercial one which we bought and that I did not develop). I need to develop the proper installation pages to simulate what happens when a user who has never visited the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/180624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I initialize a Service Object when Self-Hosting in WCF I am hosting a service within a Windows Service. The following snippet instantiates the ServiceHost object: Host = new ServiceHost(typeof(Services.DocumentInfoService)); The DocumentInfoService class implements a contract interface that has methods tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/180626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Remove Last Row Databound DataGridView C# I am using VS 2008/C# and binding a local List of helper classes as the DataSource for a DataGridView control. Calling the Remove() method on my List of helper classes fires the CellFormatting event of the DataGridView, which makes sense (a bit). When removing whatever ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/180629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Determine Time Zone Offset in T-SQL My database application is going to be deployed at multiple sites in different time zones. I need a T-SQL function that will determine the UTC timestamp of midnight on January 1 of the current year for YTD calculations. All of the data is stored in UTC timestamps. For example, Ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/180638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can anyone recommend an efficient UDP messaging framework for Java? I need to be able to send compact messages (ideally small enough to fit into a single UDP packet) from Java. It needs to be as efficient as possible - can anyone give me any pointers (other than constructing them manually)? A: Mina -- http://mina....
{ "language": "en", "url": "https://stackoverflow.com/questions/180646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to line up HTML input elements? I am hoping to find a resource for lining up input elements in a HTML page. I find it difficult to get a select element and a text box to be the same width even when using the width style attribute, and it is even more difficult across browsers. Finally, file inputs seem impossibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/180647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Elegant way to determine total size of website? is there an elegant way to determine the size of data downloaded from a website -- bearing in mind that not all requests will go to the same domain that you originally visited and that other browsers may in the background be polling at the same time. Ideally i'd like t...
{ "language": "en", "url": "https://stackoverflow.com/questions/180649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Application of TryParse in C# When 'val' below is not a bool I get an exception, I believe I can use TryParse but I'm not sure how best to use it with my code below. Can anyone help? checkBox.Checked = Convert.ToBoolean(val); Thanks A: Assuming that if its not a valid boolean, you don't want it checked: bool resul...
{ "language": "en", "url": "https://stackoverflow.com/questions/180658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Office Ribbon in a Word Processor I heard Microsoft allows use of commercially available Office UI controls, with the exception of competing products, such as a word processor or spreadsheet app, etc. How true is that? Also, if it is not true, do you know of any free Ribbon controls? A: You should look at Jen...
{ "language": "en", "url": "https://stackoverflow.com/questions/180670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Map *.domain.com to a single address I´m not sure if this is really a programming question, but it's related to what I'm doing which is... I'm developing a web site that will have a lot of .domain.com, and based on what contain, the web site will show diffrent content. Anyone knows how to do that? Maybe it requires...
{ "language": "en", "url": "https://stackoverflow.com/questions/180684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does pubsub work in OpenSocial? I'm trying to design an application based on the OpenSocial API, and I'm uncertain of how the pubsub apparatus will work. This appears to be analogous to a Unix pipe, or perhaps an RSS feed. Is a channel persistent across browsers / computers? That is, can I subscribe to channel...
{ "language": "en", "url": "https://stackoverflow.com/questions/180704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Doesn't the ability to cast defeat the purpose of typed variables? So, I'm working under the assumption that we have typed languages because we make a lot of mistakes... so typing is one way to have the compiler do a lot of checks for us and help us out a bit (please let me know if it is my assumptions that's incorr...
{ "language": "en", "url": "https://stackoverflow.com/questions/180710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you determine if a JDBC Connection was retrieved from a JTA enabled DataSource or straight JDBC? I'm using a vendor API to obtain a JDBC connection to the application's database. The API works when running in the application server or when running in a stand-alone mode. I want to run a series of SQL statement...
{ "language": "en", "url": "https://stackoverflow.com/questions/180713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to do something to each file in a directory with a batch script How do you iterate over each file in a directory with a .bat or .cmd file? For simplicity please provide an answer that just echoes the filename or file path. A: Another way: for %f in (*.mp4) do call ffmpeg -i "%~f" -vcodec copy -acodec copy "%~nf...
{ "language": "en", "url": "https://stackoverflow.com/questions/180741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "298" }
Q: System.OutOfMemoryException using C# on a large data set I'm using C# and I get an out System.OutOfMemoryException error after I read in 50,000 records, what is best practice for handling such large datasets? Will paging help? A: I might recommend creating the MDB file and using a DataReader to stream the records i...
{ "language": "en", "url": "https://stackoverflow.com/questions/180743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best approach to printing/reporting from WPF? I have an upcoming project which will have to be able to print simple reports from its data. It'll be WPF-based, and I'm wondering which way to go. I know that WPF introduces its own printing technology (based on XPS) which looks quite easy to use. However, pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/180746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: string symbol manipulation in batch files? Is there a way to take substrings of a string with .bat/.cmd files? For example given the string "hello.txt" is there a way to strip the .txt? EDIT: Also is there a more general way to do this, not under the assumption that it is a file name or file path? A: If this is a f...
{ "language": "en", "url": "https://stackoverflow.com/questions/180750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best free resource for learning advanced batch-file usage? What are the best free resources for learning advanced batch-file usage? A: Also consider learning Windows Scripting Host as an alternative to batch scripting. You can use your choice of languages to write scripts (JScript, VBScript, even Python). It is su...
{ "language": "en", "url": "https://stackoverflow.com/questions/180754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Makefile If-Then Else and Loops Can someone explain how to use if-then statements and for loops in Makefiles? I can't seem to find any good documentation with examples. A: Have you tried the GNU make documentation? It has a whole section about conditionals with examples. A: Conditional Forms Simple conditional-...
{ "language": "en", "url": "https://stackoverflow.com/questions/180760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: What's a good online reference for manipulating Office documents via ActiveX? I am looking for a reference that covers using ActiveX to open and manipulate Excel (and possibly Word) documents. I'd prefer an online reference but book suggestions are helpful too. A: Am I missing something? The references are availab...
{ "language": "en", "url": "https://stackoverflow.com/questions/180765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Prevent Silverlight ListBox vertical scrollbar from being displayed I have a ListBox which displays items of variable height. I want to show as many items as will fit in the available space, without showing a vertical scrollbar. Other than surgery on the ListBox item template, is there a way to only show the number ...
{ "language": "en", "url": "https://stackoverflow.com/questions/180777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a free implementation of Ada? I looked at the AdaCore site, as well as for A# (which now appears to be owned by AdaCore) and neither appear to be free (although I could have misread something). Any recommendations? A: GNAT, the GNU Ada implementation: http://www.gnu.org/software/gnat/gnat.html A: In the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/180778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to use the tar -I option I'm trying to tar up all the *.class files only on a Solaris box under a certain directory. Reading the man pages for tar made it seem like the -I option is what I wanted. This is what I've tried from the dir in question: find . -name "*.class" >> ~/includes.txt tar cvf ~/classfiles.tar...
{ "language": "en", "url": "https://stackoverflow.com/questions/180781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best/easiest way to manipulate ActiveX objects in Java? I want to open and manipulate Excel files with ActiveX. I've had success with Python's Win32 Extensions and Groovy's Scriptom libraries on other projects but need to do this is pure Java this time if possible. I've tried the Jacob Java COM Bridge ...
{ "language": "en", "url": "https://stackoverflow.com/questions/180784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Replace patterns that are inside delimiters using a regular expression call I need to clip out all the occurances of the pattern '--' that are inside single quotes in long string (leaving intact the ones that are outside single quotes). Is there a RegEx way of doing this? (using it with an iterator from the languag...
{ "language": "en", "url": "https://stackoverflow.com/questions/180793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to let a JSF view generate a response to a non-jsf request? I have a servlet which is in the same web application as the JSF servlet. How do I replace (rather than redirect) the servlet response with the JSF response? A: Not sure I fully understand your question - but if you want to include the...
{ "language": "en", "url": "https://stackoverflow.com/questions/180796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In the Django admin interface, is there a way to duplicate an item? Just wondering if there is an easy way to add the functionality to duplicate an existing listing in the admin interface? In data entry we have run into a situation where a lot of items share generic data with another item, and to save time it would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/180809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: asp.net output data from DB without any html markup I'm new to jquery and asp.net so please forgive if this is an obvious question. I'm using a jquery autocomplete plugin which requires that the page it looks up asynchronously for data is in this format as pure text only: product1|price1 product2|price2 product3|pri...
{ "language": "en", "url": "https://stackoverflow.com/questions/180810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Close Browser Window after Form Post Here's my situation. I have a button on my ASP.NET webform. This button creates a new browser window pointing to a page which has a lot of hidden fields (which are dynamically generated). This form submits itself to SQL Reporting Services on the bodies onload event. This works fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/180814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an equivalent to Java's HashSet in vbscript? I have to write something in vbscript that need to use a unique set. I am looking for something akin to Java's HashSet, is this already in vbscript or do I have to write my own? A: It's not identical, but VBScript has a Dictionary object which behaves like Java...
{ "language": "en", "url": "https://stackoverflow.com/questions/180822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unobtrusive Javascript rich text editor? We've used the no-longer-supported RichTextBox control as part of our (ASP.NET-based) CMS for a long time, and we'd like to replace it with something lighter-weight and with better cross-browser support. We were originally looking at various ASP.NET components, but I'm wonder...
{ "language": "en", "url": "https://stackoverflow.com/questions/180827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How can I debug a VB6 project that has a .net interop project which uses an app.config file? I have a .net interop project that uses an app.config file. When I am running the VB6 project that is using the interop control in Debug mode, the ConfigurationManager cannot find the app.config file. When I make the VB6 pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/180828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I mirror a SVN repository on CodePlex? I'm the creator (and so far, only developer) of a CodePlex project. I've writing it on my laptop, using a Subversion repository on my home network. Submitting my changes to CodePlex via the TeamServer interface is driving me crazy, and I'd really like a simple way of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/180843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Referencing a javascript object literal array How would you reference the models (Accord, CRV, Prius, etc) in this structure? Is this a bad structure to be able to extract the makes...then use a make to get the models...then use the model to get the options? var cars = [ { "makes" : "Honda", "...
{ "language": "en", "url": "https://stackoverflow.com/questions/180844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: CEdit control maximum length? (in characters it can display) What is the maximum length for the text string contained in a CEdit control in MFC? I get a beep when trying to add a character after the character 30001 is this documented anywhere? Can I display longer texts in a CEdit? Should I use another control? As "...
{ "language": "en", "url": "https://stackoverflow.com/questions/180853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Procedural music generation techniques I've been putting a lot of thought into procedural generation of content for a while and I've never seen much experimentation with procedural music. We have fantastic techniques for generating models, animations, textures, but music is still either completely static or simply ...
{ "language": "en", "url": "https://stackoverflow.com/questions/180858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: CString maximum length What is the maximum length in characters a CString object can hold? A: INT_MAX - 1 A: Up to your available memory or INT_MAX-1 (whichever is less). A: 2,147,483,647 characters
{ "language": "en", "url": "https://stackoverflow.com/questions/180860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best encryption library in C/C++? What is the best encryption library in C/C++ In terms of: * *entropy *quality *ease of use *readability *portability *performance What's your favorite and why do you like it? A: My favorite is GNU's library: libgcrypt Its performance is good, and it's us...
{ "language": "en", "url": "https://stackoverflow.com/questions/180870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Is there a way to write a BitmapEffect in 100% Managed Code? Is there a way to write a BitmapEffect in 100% Managed Code? I know that it would run a lot slower than using unmanaged code, but I'd like to write a BitmapEffect but its been a long time since I've done any C++ programing, plus the application might have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/180875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQuery selectors not finding class on elements in table created by an Ajax XHR in Ruby on Rails When using $('.foo').click(function(){ alert("I haz class alertz!"); return false; }); in application.js, and <a href = "" class = "foo" id = "foobar_1" >Teh Foobar </a> in any div that initializes wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/180884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I highlight a link based on the current page? Sorry if this sounds like a really stupid question, but I need to make a link change colour when you are on the page it links to. For example, when you are on the "Questions" page of StackOverflow, the link at the top changes colour. How do you do this? A: It's a...
{ "language": "en", "url": "https://stackoverflow.com/questions/180887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I change read/write mode for a file using Emacs? If a file is set to read only mode, how do I change it to write mode and vice versa from within Emacs? A: CTRL + X + CTRL + Q      A: As mentioned up there by somebody else: M-x toggle-read-only would work. However, this is now deprecated and M-x read-only-mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/180910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "128" }
Q: Configuring tomcat security manager in Eclipse Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app server), is there some way I can configure things so Tomcat will start with security turned on (i.e. as if I ran catalina.sh start -security)? A: Go into 'Window' -> 'Preferences' then select '...
{ "language": "en", "url": "https://stackoverflow.com/questions/180924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create a decimal field in Access with Alter Table? I want to programmatically create a new column in an MS Access table. I've tried many permutations of ALTER TABLE MyTable Add MyField DECIMAL (9,4) NULL; and got: Syntax Error in Field Definition I can easily create a number field that goes to a Double...
{ "language": "en", "url": "https://stackoverflow.com/questions/180929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Object Initializer syntax to produce correct Json I am attempting to use linq to shape list of data into a particular shape to be returned as Json from an ajax call. Given this data: var data = new List<string>(); data.Add("One"); data.Add("Two"); data.Add("Three"); And this code: ** Which is not correct and is wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/180930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Converting a home-brew test application to a standard unit test framework I've got a LOT of tests written for a piece of software (which is a GREAT thing) but it was built essentially as a standalone test in C#. While this works well enough, it suffers from a few shortcomings, not the least of which is that it isn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/180935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are exceptions really for exceptional errors? It's my understanding that common wisdom says to only use exceptions for truly exceptional conditions (In fact, I've seen that statement here at SO several times). However, Krzysztof Cwalina says: One of the biggest misconceptions about exceptions is that they are for...
{ "language": "en", "url": "https://stackoverflow.com/questions/180937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Base64 decode snippet in C++ Is there a freely available Base64 decoding code snippet in C++? A: There are several snippets here. However, this one is compact, efficient, and C++11 friendly: static std::string base64_encode(const std::string &in) { std::string out; int val = 0, valb = -6; for (uchar c...
{ "language": "en", "url": "https://stackoverflow.com/questions/180947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: how do you package up silverlight dlls into a xap file? Just updated build server with rc0 and surprise no chiron. Wondering how you package up a xap file without chiron. A: Hey Brian, you can get chiron from http://www.codeplex.com/sdlsdk -- it was decided to be removed from the SL SDK core tools, but is still a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/180963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add new field to multiple table at once? I want to add same field to multiple tables. Can I do this with single query in MySql? A: I don't think you can do this with a single query, as it requires the ALTER TABLE syntax which only supports one table per query (although you could add/modify multiple columns in the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/180967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java EE Programming Skills I have many years of experience in Java including Swing, Servlet and JDBC, but have never programmed for a Java EE server. Many job advertisements from large companies are specifically asking for Java EE experience. Are there specific skills or development environments that I should learn...
{ "language": "en", "url": "https://stackoverflow.com/questions/180978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Using Collections API to Shuffle I am getting very frustrated because I cannot seem to figure out why Collections shuffling is not working properly. Lets say that I am trying to shuffle the randomizer array. int[] randomizer = new int[] {200,300,212,111,6,2332}; Collections.shuffle(Arrays.asList(randomizer)); Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/180979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is tempuri.org? Why does tempuri.org exist? Why does each XML Webservice require its own namespace, unique from any other on the web? A: Note that namespaces that are in the format of a valid Web URL don't necessarily need to be dereferenced i.e. you don't need to serve actual content at that URL. All that ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/180985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: What is the difference between re.search and re.match? What is the difference between the search() and match() functions in the Python re module? I've read the Python 2 documentation (Python 3 documentation), but I never seem to remember it. I keep having to look it up and re-learn it. I'm hoping that someone will...
{ "language": "en", "url": "https://stackoverflow.com/questions/180986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "663" }
Q: Attaching to a remote process for debugging Using Xcode 3.1 on OSX 10.5; is it possible to attach (the debugger) to a running remote process? I know that it's possible to start and debug a remote process (as explained here), but it would be great if I could find a way to attach to an already running remote process.....
{ "language": "en", "url": "https://stackoverflow.com/questions/180987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Tool or IDE to debug VB Script code I need any tool or IDE environment to debug and test the vb scripts code. Please suggest any free ones. My vb scripts are standalone (vbs extenstion). A: VBSEdit Not free, but has an unlimited trial period with a nag screen. A: Sadly not free....How to debug Windows Script Host,...
{ "language": "en", "url": "https://stackoverflow.com/questions/181003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I use the vxWorks debug agent to perform pre-kernel debugging? The vxWorks documentation states: The WDB agent itself is independent of the target operating system: it attaches to run-time OS services through a virtual-function run-time interface. The WDB agent can execute before VxWorks is running (as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/181011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .NET // vs /// Comments convention I am just checking out F#, so apologies if this is a silly question, but in the VS2008 F# CTP 1.9.6.2 'Tutorial' project, both // and /// are used for commenting code. Is there a functional difference between the two slash vs three slash commenting, or is it convention (as it appea...
{ "language": "en", "url": "https://stackoverflow.com/questions/181015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to close a formless C# application My application has no forms. It runs by calling Application.Run(); A: Call System.Windows.Forms.Application.Exit(); A: The other option is Environment.Exit(), however if your application does rely on the Application classes, System.Windows.Forms.Application.Exit() is the mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/181018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a Trendline to Bar Chart in Reporting Services How do I go about adding a trendline to a bar chart in reporting services 2005? A: You will have to create the data for the trend line from your datasource. From the Chart properties, on the data tab, select the trend data series. Click edit and on the 'Edit Cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/181027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Implementing jQuery's jgGrid with ASP.Net and JSON formatting Has anyone been able to implement the JQuery grid plugin, jqGrid? I'm trying to implement the JSON paging, and I feel like I'm getting close, but that I am also being swamped by inconsequential details. If anyone could post some sample code, I would great...
{ "language": "en", "url": "https://stackoverflow.com/questions/181029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Run a program in a ForEach loop I'm trying to get this simple PowerShell script working, but I think something is fundamentally wrong. ;-) ls | ForEach { "C:\Working\tools\custom-tool.exe" $_ } I basically want to get files in a directory, and pass them one by one as arguments to the custom tool. A: I'm betting yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/181036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Case-insensitive UTF-8 string collation for SQLite (C/C++) I am looking for a method to compare and sort UTF-8 strings in C++ in a case-insensitive manner to use it in a custom collation function in SQLite. * *The method should ideally be locale-independent. However I won't be holding my breath, as far as I know,...
{ "language": "en", "url": "https://stackoverflow.com/questions/181037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Cannot use gem and ruby command after install on Vista I installed Ruby and Ruby on Rails yesterday on Vista 32bit using the directions on this site: http://rubyonrails.org/down So I downloaded the installer, then Gems, then I downloaded rails with Gems. Now I can't use the Gem or Ruby commands in the command line.....
{ "language": "en", "url": "https://stackoverflow.com/questions/181038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the single best resource for learning the visual studio tools? I am trying to learn some of the basic and advanced features of visual studio, Anyone find sites that have this type of information ? I see this: https://stackoverflow.com/questions/86355/best-way-to-learn-visual-studio-power-features But it seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/181046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you allocate a very large single chunk of memory ( > 4GB ) in c or c++? With very large amounts of ram these days I was wondering, it is possible to allocate a single chunk of memory that is larger than 4GB? Or would I need to allocate a bunch of smaller chunks and handle switching between them? Why??? I'm worki...
{ "language": "en", "url": "https://stackoverflow.com/questions/181050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: What is the most stable modal dialog implementation across browsers to use from javascript for a web app? I'm using a lot of JQuery in a web application that I am building for a client and I want to find an javascript implementation of a modal dialog that is reasonably stable across the following browser set. IE 7+ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/181056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best way to add full web search to my site? I need to add full web search to my site. I need something like Google Custom Search but with no ads and it has to be free. Any recommendation of a web service or open source project that can index my site and allow me to search it will be helpful. My site is made in ruby ...
{ "language": "en", "url": "https://stackoverflow.com/questions/181060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: EnumDisplayDevices vs WMI Win32_DesktopMonitor, how to detect active monitors? For my current C++ project I need to detect a unique string for every monitor that is connected and active on a large number of computers. Research has pointed to 2 options * *Use WMI and query the Win32_DesktopMonitor for all active ...
{ "language": "en", "url": "https://stackoverflow.com/questions/181064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I install cURL on Windows? I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/ to install & config apache get the PHP5 packages and get the CURL packages. I run the apache and run a PHP script. no problem. but when I run the php script with cur...
{ "language": "en", "url": "https://stackoverflow.com/questions/181082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: How can I cache a calculated column in rails? I have a tree of active record objects, something like: class Part < ActiveRecord::Base has_many :sub_parts, :class_name => "Part" def complicated_calculation if sub_parts.size > 0 return self.sub_parts.inject(0){ |sum, current| sum + current.complicated_c...
{ "language": "en", "url": "https://stackoverflow.com/questions/181090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I get the unique elements from an array of hashes in Ruby? I have an array of hashes, and I want the unique values out of it. Calling Array.uniq doesn't give me what I expect. a = [{:a => 1},{:a => 2}, {:a => 1}] a.uniq # => [{:a => 1}, {:a => 2}, {:a => 1}] Where I expected: [{:a => 1}, {:a => 2}] In sear...
{ "language": "en", "url": "https://stackoverflow.com/questions/181091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: regular expression to extract text from HTML I would like to extract from a general HTML page, all the text (displayed or not). I would like to remove * *any HTML tags *Any javascript *Any CSS styles Is there a regular expression (one or more) that will achieve that? A: Needed a regex solution (in php) that...
{ "language": "en", "url": "https://stackoverflow.com/questions/181095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Is there a way to add an onclick event to an ASP.NET Label server control? I wanted to do something like this: <asp:Label ID="lblMyLabel" onclick="lblMyLabel_Click" runat="server">My Label</asp:Label> I know that in Javascript I can do: <span onclick="foo();">My Label</span> So I'm wondering why I can't do that wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/181097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: JUnit TestCase object instantiation Is a new (or different) instance of TestCase object is used to run each test method in a JUnit test case? Or one instance is reused for all the tests? public class MyTest extends TestCase { public void testSomething() { ... } public void testSomethingElse() { ... } } While r...
{ "language": "en", "url": "https://stackoverflow.com/questions/181106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Encrypted database query I've just found out about Stack Overflow and I'm just checking if there are ideas for a constraint I'm having with some friends in a project, though this is more of a theoretical question to which I've been trying to find an answer for some time. I'm not much given into cryptography but if I...
{ "language": "en", "url": "https://stackoverflow.com/questions/181130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Reloading a page via AJAX when window.location=self.location doesn't work On my homepage I got: <ul id="login"> <li> <a id="loginswitch" href="./login-page">log-in</a> | </li> <li> <a id="signupswitch" href="./signup-page">sign-up</a> </li> </ul> Via MooTools, I get these anchor elements by id so that once they...
{ "language": "en", "url": "https://stackoverflow.com/questions/181132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Search then Extract I have a text file with multiple records. I want to search a name and date, for example if I typed JULIUS CESAR as name then the whole data about JULIUS will be extracted. What if I want only to extract information? Record number: 1 Date: 08-Oct-08 Time: 23:45:01 Name: JULIUS CESAR Address: BAGUI...
{ "language": "en", "url": "https://stackoverflow.com/questions/181136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WinForms: Load localized help (chm) files What is the best way to load a locale-specific (i.e. translated) compiled help file (.chm)? Our install will deploy them alongside the satellite assemblies containing resources. I'd like to re-use the same probing rules the .NET framework uses to load the satellite assemblie...
{ "language": "en", "url": "https://stackoverflow.com/questions/181147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to programmatically insert a row in a GridView? i have a databound GridView in asp.net 2.0 with a row-selection link. When a row is selected, I want to programmatically add a table row below the selected row, in order to nest another grid et al. I am researching this for a client and for an article, and i think ...
{ "language": "en", "url": "https://stackoverflow.com/questions/181158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Generating a unique ID in PHP I'm trying to generate a unique ID in php in order to store user-uploaded content on a FS without conflicts. I'm using php, and at the moment this little snippet is responsible for generating the UID: $id = tempnam (".", ""); unlink($id); $id = substr($id, 2); This code is hideous: it...
{ "language": "en", "url": "https://stackoverflow.com/questions/181159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Signature files for document retrieval I was wondering if you know somewhere where I can find information on how to build a signature file for docuement retrieval. Do you know if there is some code out there that I can use or look at? I have to create a signature file in C++ under linux platform. UPDATE: Sorry, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/181164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What might this gdb output mean? Trying to create my first iPhone app that would play back audio. When I try to set up playback, messages like these appear in gdb: =shlibs-removed,shlib-info=[num="54",name="AudioIPCPlugIn",kind="B",dyld-addr="0x2c2000",reason="dyld",requested-state="E",state="E",path="/System/Libra...
{ "language": "en", "url": "https://stackoverflow.com/questions/181166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# equivalent to VB.NET's Catch...When In VB.NET I often Catch…When: Try … Catch e As ArgumentNullException When e.ParamName.ToUpper() = "SAMPLES" … End Try Is there a C# equivalent to Catch…When? I don't want to resort to using an if statement inside a catch if possible. A: There's no equivalent to Catch…...
{ "language": "en", "url": "https://stackoverflow.com/questions/181188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: To detect if the user is closing the IE browser apart from onunload event, as it is triggerred when user does refresh etc After being through numerous forums available on the net for last 5 days, I am still not able to completely track down the browser close event. My requirement is to generate a popup message, when...
{ "language": "en", "url": "https://stackoverflow.com/questions/181189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Regex Partial String CSV Matching Let me preface this by saying I'm a complete amateur when it comes to RegEx and only started a few days ago. I'm trying to solve a problem formatting a file and have hit a hitch with a particular type of data. The input file is structured like this: Two words,Word,Word,Word,"Number...
{ "language": "en", "url": "https://stackoverflow.com/questions/181191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert a total column in a crosstab report in VS 2008 How to insert a total column in a crosstab (matrix) report in Report Designer in VS 2008? It seems that i can only insert a subcolumn in a crosstab report. A: Ok I got it now. I just right-clicked the column header and selected Subtotal.
{ "language": "en", "url": "https://stackoverflow.com/questions/181193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP5: Specifying a datatype in method parameters I have a function that looks like this class NSNode { function insertAfter(NSNode $node) { ... } } I'd like to be able to use that function to indicate that the node is being inserted at the start, therefore it is after nothing. The way I think about ...
{ "language": "en", "url": "https://stackoverflow.com/questions/181209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Update the database maintaining the Null status I have an asp.net text form that contains numerous decimal fields that are optional. I want to selectively update the database but not inserting a "0" for fields that do not have data (maintaining the null status). Typically, I would create multiple functions, each wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/181210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exceptions causing junk data in string (C#) Ok, this is a weird one. The junk data isn't random either, it appears to be substrings of the executable itself. private void Form1_Load(object sender, EventArgs e) { string s = GetValue(); // at this point, s == "400". Why isn't really relevant (dumbed down a tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/181212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to build a solution to target 64 bit environment? Is there anyway to build a solution to target 64 bit environment in vs2003? My solution is native c++ not visual c++. Any help would be greatly appreciated. cheers, RWendi A: This page on 2003's lack of 64-bit targeting seems to address your issue: http://www.to...
{ "language": "en", "url": "https://stackoverflow.com/questions/181213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: File input 'accept' attribute - is it useful? Implementing a file upload under html is fairly simple, but I just noticed that there is an 'accept' attribute that can be added to the <input type="file" ...> tag. Is this attribute useful as a way of limiting file uploads to images, etc? What is the best way to use it?...
{ "language": "en", "url": "https://stackoverflow.com/questions/181214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "367" }
Q: PHP: mysql_connect() won't work via command line I have a script which calls mysql_connect() to connect to a MySQL DB. When I run the script in a browser, it works. However, when I run it from a command line I receive the following error: Call to undefined function mysql_connect() This seems completely paradoxical...
{ "language": "en", "url": "https://stackoverflow.com/questions/181222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Distributed event handling mechanism for Java I'm looking for a reasonably fast event handling mechanism in Java to generate and handle events across different JVMs running on different hosts. For event handling across multiple threads in a single JVM, I found some good candidates like Jetlang. But in my search for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/181225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Return to referring page I am using an authentication attribute on some of my actions in an asp.net mvc page to refer people to a login screen if they have not authenticated. My problem is returning them to the referring page after they have logged in. I was just keeping track of the referring action and referring...
{ "language": "en", "url": "https://stackoverflow.com/questions/181226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why does the "at" command always warn me that commands will be executed via sh? Every time I use the "at" command, I get this message: warning: commands will be executed using /bin/sh What is it trying to warn me about? More importantly, how do I turn the warning off? A: Does the warning have any harmful effect as...
{ "language": "en", "url": "https://stackoverflow.com/questions/181241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }