text
stringlengths
8
267k
meta
dict
Q: Where can i find the XML schema (XSD-file) for the Glade markup language? As stated in the title, i'm looking for an XML schema (XSD-file) for the Glade markup language? Wikipedia states that Glade is a schema based markup language (list of schemas at wikipedia). I tried to search the web, wikipedia and the glade we...
{ "language": "en", "url": "https://stackoverflow.com/questions/64951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Anyone using Lisp for a MySQL-backended web app? I keep hearing that Lisp is a really productive language, and I'm enjoying SICP. Still, I'm missing something useful that would let me replace PHP for server-side database interaction in web applications. Is there something like PHP's PDO library for Lisp or Arc or S...
{ "language": "en", "url": "https://stackoverflow.com/questions/64953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way of preventing memory leaks in a yacc-based parser? Yacc does not permit objects to be passed around. Because the %union can only contain POD types, complex objects must be new'd and passed around by pointer. If a syntax error occurs, the yacc parser just stops running, and references to all of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/64958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you create SQL Server 2005 stored procedure templates in SQL Server 2005 Management Studio? How do you create SQL Server 2005 stored procedure templates in SQL Server 2005 Management Studio? A: You bring up Template Explorer using Ctrl+Alt+T or trough View > Template Explorer. Then you can right click tree n...
{ "language": "en", "url": "https://stackoverflow.com/questions/64977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: SQL Server 2005 How Create a Unique Constraint? How do I create a unique constraint on an existing table in SQL Server 2005? I am looking for both the TSQL and how to do it in the Database Diagram. A: In SQL Server Management Studio Express: * *Right-click table, choose Modify or Design(For Later Versions) *Rig...
{ "language": "en", "url": "https://stackoverflow.com/questions/64981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "181" }
Q: JVM Thread dumps containing monitors without locking threads What could be the cause of JVM thread dumps that show threads waiting to lock on a monitor, but the monitors do not have corresponding locking threads? Java 1.5_14 on Windows 2003 A: Does your code by any change use any JNI? (i.e. are you running any na...
{ "language": "en", "url": "https://stackoverflow.com/questions/64989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why is access denied when installing SSL cert on IIS 5? I'm working with a support person who is supposed to be able to install SSL certs on a web server he maintains. He has local admin rights to the server via a domain security group. He also has permissions on our internal CA running Windows 2003 Server Certifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/64992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Storing email messages in a database What sort of database schema would you use to store email messages, with as much header information as practical/possible, into a database? Assume that they have been fed into a script from the MTA and parsed into the relevant headers/body/attachments. Would you store the message...
{ "language": "en", "url": "https://stackoverflow.com/questions/65001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: akamai caching and site rendering I am the web guy for a large TV station. Our site is cached by Akamai. Pages render perfectly in our testing environment (not cached) and on our "origin" page (again, not cached), but when they are viewed on our live environment (the cached site), they do not render exactly the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/65007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET WCF faults generating incorrect SOAP 1.1 faultcode values I am experimenting with using the FaultException and FaultException<T> to determine the best usage pattern in our applications. We need to support WCF as well as non-WCF service consumers/clients, including SOAP 1.1 and SOAP 1.2 clients. FYI: using Fault...
{ "language": "en", "url": "https://stackoverflow.com/questions/65008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is GCJ (GNU Compiler for Java) a viable tool for publishing a webapp? Is it really viable to use GCJ to publish server-side applications? Webapps? My boss is convinced that compiling our (my) webapp into a binary executable is a brilliant idea. (Then again, he likes nice, small simple things with blinky lights t...
{ "language": "en", "url": "https://stackoverflow.com/questions/65010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Is there a way to add global error handler in a visual basic 6.0 application? VB 6.0 does not have any global handler.To catch runtime errors,we need to add a handler in each method where we feel an error can occur.But, still some places might be left out.So,we end up getting runtime errors.Adding error handler in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/65020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.net Membership Provider - Switching Between Forms and Integrated Auth I'm writing a web application that I want to be able to use forms authentication pointing to a SQL database, or use integrated authentication in different installations of the web app. I'm authenticating users just fine with either provider b...
{ "language": "en", "url": "https://stackoverflow.com/questions/65024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove border from IFrame How would I remove the border from an iframe embedded in my web app? An example of the iframe is: <iframe src="myURL" width="300" height="300">Browser not compatible.</iframe> I would like the transition from the content on my page to the contents of the iframe to be seamless, assuming the...
{ "language": "en", "url": "https://stackoverflow.com/questions/65034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "829" }
Q: Does a finally block always get executed in Java? Considering this code, can I be absolutely sure that the finally block always executes, no matter what something() is? try { something(); return success; } catch (Exception e) { return failure; } finally { System.out.println("I don't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2658" }
Q: is there a way to write macros with a variable argument list in visual C++? As far as I know, in gcc you can write something like: #define DBGPRINT(fmt...) printf(fmt); Is there a way to do that in VC++? A: Yes, you can do this in Visual Studio C++ in versions 2005 and beyond (not sure about VS 2003). Take a look...
{ "language": "en", "url": "https://stackoverflow.com/questions/65037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can I use a traditional HTML id attribute with an ASP.net runat='server' tag? I am refactoring some CSS on a website. I have been working on, and noticed the absence of traditional HTML IDs in the code. There is heavy use of CssClass='&hellip;', or sometimes just class='&hellip;', but I can't seem to find a way...
{ "language": "en", "url": "https://stackoverflow.com/questions/65039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to rewrite or convert C# code in Java code? I start to write a client - server application using .net (C#) for both client and server side. Unfortunately, my company refuse to pay for Windows licence on server box meaning that I need to rewrite my code in Java, or go to the Mono way. Is there any good way to tra...
{ "language": "en", "url": "https://stackoverflow.com/questions/65058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: NHibernate, Sum Query If i have a simple named query defined, the preforms a count function, on one column: <query name="Activity.GetAllMiles"> <![CDATA[ select sum(Distance) from Activity ]]> </query> How do I get the result of a sum or any query that dont return of one the mapped entities, with...
{ "language": "en", "url": "https://stackoverflow.com/questions/65060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IsNull function in DB2 SQL? Is there a performant equivalent to the isnull function for DB2? Imagine some of our products are internal, so they don't have names: Select product.id, isnull(product.name, "Internal) From product Might return: 1 Socks 2 Shoes 3 Internal 4 Pants A: In DB2 there is a function NVL(f...
{ "language": "en", "url": "https://stackoverflow.com/questions/65071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: C++ Unit Testing Legacy Code: How to handle #include? I've just started writing unit tests for a legacy code module with large physical dependencies using the #include directive. I've been dealing with them a few ways that felt overly tedious (providing empty headers to break long #include dependency lists, and usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/65074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How do I set up Vim autoindentation properly for editing Python files? I've trouble setting up Vim (7.1.xxx) for editing Python files (*.py). Indenting seems to be broken (optimal 4 spaces). I've followed some tutorials I found via Google. Still no effect :/ Please help. A: I use this on my macbook: " configure ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/65076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: What is the best way to create a web page thumbnail? Is there some reasonably cross platform way to create a thumbnail image given a URL? I know there are thumbnail web services that will do this, but I want a piece of software or library that will do this locally. I guess in Linux I could always spawn a browser win...
{ "language": "en", "url": "https://stackoverflow.com/questions/65078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Making a PHP object behave like an array? I'd like to be able to write a PHP class that behaves like an array and uses normal array syntax for getting & setting. For example (where Foo is a PHP class of my making): $foo = new Foo(); $foo['fooKey'] = 'foo value'; echo $foo['fooKey']; I know that PHP has the _get a...
{ "language": "en", "url": "https://stackoverflow.com/questions/65091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Best way to archive live MySQL database We have a live MySQL database that is 99% INSERTs, around 100 per second. We want to archive the data each day so that we can run queries on it without affecting the main, live database. In addition, once the archive is completed, we want to clear the live database. What is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/65093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Assembly CPU frequency measuring algorithm What are the common algorithms being used to measure the processor frequency? A: I'm gonna date myself with various details in this answer, but what the heck... I had to tackle this problem years ago on Windows-based PCs, so I was dealing with Intel x86 series processors l...
{ "language": "en", "url": "https://stackoverflow.com/questions/65095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Windows Server 2008: COM error: 0x800706F7 - The stub received bad data I'm evaluating Server 2008. My C++ executable is getting this error. I've seen this error on MSDN that seems to have required a hot-fix for several previous OSes. Anyone else seen this? I get the same results for the 32 & 64 bit OS. Code snippet...
{ "language": "en", "url": "https://stackoverflow.com/questions/65097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MVC validation, will it conflict with other JS frameworks? If I want to use the validation framework that you can use with ASP.NET MVC, will the JavaScript conflict with other JavaScript frameworks like jQuery or YUI? A: No, it will not. Currently, ASP.NET MVC doesn't have an inherent validation framework. So you a...
{ "language": "en", "url": "https://stackoverflow.com/questions/65119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: track down file handle I have a huge ear that uses log4j and there is a single config file that is used to set it up. In this config file there is no mention of certain log files but, additional files apart from those specified in the config file get generated in the logs folder. I've searched for other combinations...
{ "language": "en", "url": "https://stackoverflow.com/questions/65128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Any downsides to using ASP.Net AJAX and JQuery together We are planning to use the jQuery library to augment our client side JavaScript needs. Are there any major issues in trying to use both ASP.Net AJAX and jQuery? Both libraries seem to use $ for special purposes. Are there any conflicts that we need to be aware...
{ "language": "en", "url": "https://stackoverflow.com/questions/65129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Under what circumstances does Internet Explorer fail to properly unload an ActiveX control? I'm running into a perplexing problem with an ActiveX control I'm writing - sometimes, Internet Explorer appears to fail to properly unload the control on process shutdown. This results in the control instance's destructor no...
{ "language": "en", "url": "https://stackoverflow.com/questions/65133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I speed up SVN updates? We have a rather large SVN repository. Doing SVN updates are taking longer and longer the more we add code. We added svn:externals to folders that were repeated in some projects like the FCKeditor on various websites. This helped, but not that much. What is the best way to reduce upda...
{ "language": "en", "url": "https://stackoverflow.com/questions/65135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Java Open Source Workflow Engines What is the best open source java workflow framework (e.g. OSWorkflow, jBPM, XFlow etc.)? A: Here's an article that compares kBPM, OpenWFE, and Enhydra Shark that looks like it has some good, thorough info. A: It depends what kind of initial investment you want to make. jBPM is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/65150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best practices for DateTime serialization in .NET 3.5 Some 4 years back, I followed this MSDN article for DateTime usage best practices for building a .Net client on .Net 1.1 and ASMX web services (with SQL 2000 server as the backend). I still remember the serialization issues I had with DateTime and the testing eff...
{ "language": "en", "url": "https://stackoverflow.com/questions/65164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How to get name associated with open HANDLE What's the easiest way to get the filename associated with an open HANDLE in Win32? A: edit Thanks for the comments about this being Vista or Server 2008 only. I missed that in the page. Guess I should have read the whole article ;) It looks like you can use GetFileInform...
{ "language": "en", "url": "https://stackoverflow.com/questions/65170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: PHP - command line arguments in Windows I'm trying to run PHP from the command line under Windows XP. That works, except for the fact that I am not able to provide parameters to my PHP script. My test case: echo "param = " . $param . "\n"; var_dump($argv); I want to call this as: php.exe -f test.php -- param=test ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: C# compare algorithms Are there any open source algorithms in c# that solve the problem of creating a difference between two text files? It would be super cool if it had some way of highlighting what exact areas where changed in the text document also. A: How about this one? : DIFFPLEX A: Check out diff. Here it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/65199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How do you crash a JVM? I was reading a book on programming skills wherein the author asks the interviewee, "How do you crash a JVM?" I thought that you could do so by writing an infinite for-loop that would eventually use up all the memory. Anybody has any idea? A: The closest thing to a single "answer" is System....
{ "language": "en", "url": "https://stackoverflow.com/questions/65200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "157" }
Q: Linked List in SQL What's the best way to store a linked list in a MySQL database so that inserts are simple (i.e. you don't have to re-index a bunch of stuff every time) and such that the list can easily be pulled out in order? A: A linked list can be stored using recursive pointers in the table. This is very much...
{ "language": "en", "url": "https://stackoverflow.com/questions/65205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: Using jQuery, how can I dynamically set the size attribute of a select box? Using jQuery, how can I dynamically set the size attribute of a select box? I would like to include it in this code: $("#mySelect").bind("click", function() { $("#myOtherSelect").children().remove(); var options = '' ; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Work with PSDs in PHP I was recently asked to come up with a script that will allow the end user to upload a PSD (Photoshop) file, and split it up and create images from each of the layers. I would love to stay with PHP for this, but I am open to Python or Perl as well. Any ideas would be greatly appreciated. A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/65209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQLite UDF - VBA Callback Has anybody attempted to pass a VBA (or VB6) function (via AddressOf ?) to the SQLite create a UDF function (http://www.sqlite.org/c3ref/create_function.html). How would the resulting callback arguments be handled by VBA? The function to be called would have the following signature... voi...
{ "language": "en", "url": "https://stackoverflow.com/questions/65243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Convert a .doc or .pdf to an image and display a thumbnail in Ruby? Convert a .doc or .pdf to an image and display a thumbnail in Ruby? Does anyone know how to generate document thumbnails in Ruby (or C, python...) A: Sample code to answer the comment by @aisensiy above : require 'rmagick' pdf_path = "/path/to/inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/65250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Does Server Core 2008 support asp.net? Does Server Core 2008 support asp.net? I see references online saying that it isn't supported, but they are all old references from CTPs. A: Server Core 2008 does not support ASP.NET. However, Windows 2008 R2 Server Core supports .NET up to 3.5 out of the box, and since 2011-0...
{ "language": "en", "url": "https://stackoverflow.com/questions/65262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Caching compiled regex objects in Python? Each time a python file is imported that contains a large quantity of static regular expressions, cpu cycles are spent compiling the strings into their representative state machines in memory. a = re.compile("a.*b") b = re.compile("c.*d") ... Question: Is it possible to sto...
{ "language": "en", "url": "https://stackoverflow.com/questions/65266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do you analyse the fundamental frequency of a PCM or WAV sample? I have a sample held in a buffer from DirectX. It's a sample of a note played and captured from an instrument. How do I analyse the frequency of the sample (like a guitar tuner does)? I believe FFTs are involved, but I have no pointers to HOWTOs. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Switching state server to another machine in cluster We have a number of web-apps running on IIS 6 in a cluster of machines. One of those machines is also a state server for the cluster. We do not use sticky IP's. When we need to take down the state server machine this requires the entire cluster to be offline for a...
{ "language": "en", "url": "https://stackoverflow.com/questions/65273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does anyone still believe in the Capability Maturity Model for Software? Ten years ago when I first encountered the CMM for software I was, I suppose like many, struck by how accurately it seemed to describe the chaotic "level one" state of software development in many businesses, particularly with its reference to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Apache Axis ConfigurationException I am using Apache Axis to connect my Java app to a web server. I used wsdl2java to create the stubs for me, but when I try to use the stubs, I get the following exception: org.apache.axis.ConfigurationException: No service named <web service name> is available any idea? A: Accor...
{ "language": "en", "url": "https://stackoverflow.com/questions/65310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can I post a Cocoa "sheet" on another program's window? Using the Apple OS X Cocoa framework, how can I post a sheet (slide-down modal dialog) on the window of another process? Edit: Clarified a bit: My application is a Finder extension to do Subversion version control (http://scplugin.tigris.org/). Part of my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Null or default comparison of generic argument in C# I have a generic method defined like this: public void MyMethod<T>(T myArgument) The first thing I want to do is check if the value of myArgument is the default value for that type, something like this: if (myArgument == default(T)) But this doesn't compile beca...
{ "language": "en", "url": "https://stackoverflow.com/questions/65351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "338" }
Q: How to publish wmi classes in .net? I've created a seperate assembly with a class that is intended to be published through wmi. Then I've created a windows forms app that references that assembly and attempts to publish the class. When I try to publish the class, I get an exception of type System.Management.Ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/65364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add method using metaclass How do I add an instance method to a class using a metaclass (yes I do need to use a metaclass)? The following kind of works, but the func_name will still be "foo": def bar(self): print "bar" class MetaFoo(type): def __new__(cls, name, bases, dict): dict["foobar"] =...
{ "language": "en", "url": "https://stackoverflow.com/questions/65400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I estimate the size of a Lucene index? Is there a known math formula that I can use to estimate the size of a new Lucene index? I know how many fields I want to have indexed, and the size of each field. And, I know how many items will be indexed. So, once these are processed by Lucene, how does it translate i...
{ "language": "en", "url": "https://stackoverflow.com/questions/65406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How does the NSAutoreleasePool autorelease pool work? As I understand it, anything created with an alloc, new, or copy needs to be manually released. For example: int main(void) { NSString *string; string = [[NSString alloc] init]; /* use the string */ [string release]; } My question, though, is wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/65427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: Detecting if WinHelp is Installed on Vista or newer Windows Is there a reliable way to detect whether or not WinHelp is installed on Windows Vista or newer versions of Windows? If possible, I'd like a solution that's not specific to any particular version of Windows. I've posted this question to other message boards...
{ "language": "en", "url": "https://stackoverflow.com/questions/65431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting notified when the page DOM has loaded (but before window.onload) I know there are some ways to get notified when the page body has loaded (before all the images and 3rd party resources load which fires the window.onload event), but it's different for every browser. Is there a definitive way to do this on all...
{ "language": "en", "url": "https://stackoverflow.com/questions/65434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Getting data from an oracle database as a CSV file (or any other custom text format) A sample perl script that connects to an oracle database, does a simple SELECT query, and spits the results to stdout in CSV format would be great. Python or any other language available in a typical unix distribution would be fine...
{ "language": "en", "url": "https://stackoverflow.com/questions/65447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error Serializing String in WebService call This morning I ran into an issue with returning back a text string as result from a Web Service call. the Error I was getting is below ************** Exception Text ************** System.ServiceModel.CommunicationException: Error in deserializing body of reply message for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Are there CScope-style source browsers for other languages besides C/C++ on Windows? I'm specifically interested in tools that can be plugged into Vim to allow CScope-style source browsing (1-2 keystroke commands to locate function definitions, callers, global symbols and so on) for languages besides C/C++ such as J...
{ "language": "en", "url": "https://stackoverflow.com/questions/65456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Which Version Control System would you use for a 1000+ developer organization? Why? There are many SCM systems out there. Some open, some closed, some free, some quite expensive. Which one (please choose only one) would you use for a 3000+ developer organization with several sites (some behind a very slow link)? Exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/65458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Is there a good .net library for 3-way comparison of HTML that can be used for merge? In order to merge independant HTML changes, I'm looking for recomendations for a 3-way comparison / merge library for HTML. The common 3-way text merge algorithms perform poorly because they do not understand the tree like structu...
{ "language": "en", "url": "https://stackoverflow.com/questions/65463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Valid characters in a Java class name What characters are valid in a Java class name? What other rules govern Java class names (for instance, Java class names cannot begin with a number)? A: You can have almost any character, including most Unicode characters! The exact definition is in the Java Language Specifica...
{ "language": "en", "url": "https://stackoverflow.com/questions/65475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: How Do You Categorize Based On Text Content? How does one automatically find categories for text based on content? A: * *Read Data Mining: Practical Machine Learning Tools and Techniques - Ian H. Witten, Eibe Frank *Use Weka or Orange A: I would encourage you to look at the text classification libraries bundled...
{ "language": "en", "url": "https://stackoverflow.com/questions/65487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best method to reduce the size of my Javascript and CSS files? When working with large and/or many Javascript and CSS files, what's the best way to reduce the file sizes? A: Minify seems to be one of the easiest ways to shrink Javascript. Turning on zip at the web server level can also help. A: Rather ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Using OpenID for both .NET/Windows and PHP/Linux/Apache web sites Is it possible to use OpenID for both .NET web sites and PHP websites (Apache/Linux)? I have a manager that wants single sign-on for access to any/all web sites, regardless of which web server hosts a web site. I create .NET web apps and the PHP we...
{ "language": "en", "url": "https://stackoverflow.com/questions/65494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which is faster/best? SELECT * or SELECT column1, colum2, column3, etc I've heard that SELECT * is generally bad practice to use when writing SQL commands because it is more efficient to SELECT columns you specifically need. If I need to SELECT every column in a table, should I use SELECT * FROM TABLE or SELECT col...
{ "language": "en", "url": "https://stackoverflow.com/questions/65512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "209" }
Q: How to find broken links on a website What techniques or tools are recommended for finding broken links on a website? I have access to the logfiles, so could conceivably parse these looking for 404 errors, but would like something automated which will follow (or attempt to follow) all links on a site. A: See linkch...
{ "language": "en", "url": "https://stackoverflow.com/questions/65515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Mono-Develop throws error "" when trying to create select Gtk objects (dialogs), why? I've recently started playing with Mono (1.9.1) on Ubuntu 8.04 with the Mono-Develop IDE (v1). I am attempting to use GTK-Sharp 2 to run the GUI for the play apps. For some reason when I try to create gtk dialogs (ColorSelectionDi...
{ "language": "en", "url": "https://stackoverflow.com/questions/65516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generating a Unique ID in c++ What is the best way to generate a Unique ID from two (or more) short ints in C++? I am trying to uniquely identify vertices in a graph. The vertices contain two to four short ints as data, and ideally the ID would be some kind of a hash of them. Prefer portability and uniqueness ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/65524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: In Tomcat how can my servlet determine what connectors are configured? In Tomcat 5.5 the server.xml can have many connectors, typically port only 8080, but for my application a user might configure their servlet.xml to also have other ports open (say 8081-8088). I would like for my servlet to figure out what socket...
{ "language": "en", "url": "https://stackoverflow.com/questions/65530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to put text in the upper right, or lower right corner of a "box" using css How would I get the here and and here to be on the right, on the same lines as the lorem ipsums? See the following: Lorem Ipsum etc........here blah....................... blah blah.................. blah....................... lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/65536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Handling empty values with ADO.NET and AddWithValue() I have a control that, upon postback, saves form results back to the database. It populates the values to be saved by iterating through the querystring. So, for the following SQL statement (vastly simplified for the sake of discussion)... UPDATE MyTable SET MyVal...
{ "language": "en", "url": "https://stackoverflow.com/questions/65566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get rid of Javascript Runtime Errors when running PDT + XDebug in Eclipse? I am currently developing a Drupal webpage using PDT. When running without XDebug, the site works fine. When I enable XDebug, the site works fine but opens up tons of Javascript errors that I need to click through. Example: A Runtime E...
{ "language": "en", "url": "https://stackoverflow.com/questions/65576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a tool for finding unreferenced functions (dead, obsolete code) in a C# app? I want to delete foo() if foo() isn't called from anywhere. A: NDepend will also report on potentially unused code. A: Bear in mind that Resharper (and probably other similar tools as well) will not highlight unused methods if th...
{ "language": "en", "url": "https://stackoverflow.com/questions/65585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Writing a ++ macro in Common Lisp I've been attempting to write a Lisp macro that would perfom the equivalent of ++ in other programming languages for semantic reasons. I've attempted to do this in several different ways, but none of them seem to work, and all are accepted by the interpreter, so I don't know if I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/65607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can you return a String from a summaryObjectFunction In a Flex AdvancedDatGrid, we're doing a lot of grouping. Most of the columns are the same for the parents and for the children, so I'd like to show the first value of the group as the summary rather than the MAX, MIN or AVG This code works on numerical but not t...
{ "language": "en", "url": "https://stackoverflow.com/questions/65627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Directory layout for PHPUnit tests? I'm a longtime Java programmer working on a PHP project, and I'm trying to get PHPUnit up and working. When unit testing in Java, it's common to put test case classes and regular classes into separate directories, like this - /src MyClass.java /test MyClassTest.java and...
{ "language": "en", "url": "https://stackoverflow.com/questions/65651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Output parameters not readable when used with a DataReader When using a DataReader object to access data from a database (such as SQL Server) through stored procedures, any output parameter added to the Command object before executing are not being filled after reading. I can read row data just fine, as well as all...
{ "language": "en", "url": "https://stackoverflow.com/questions/65662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Why to use StringBuffer in Java instead of the string concatenation operator Someone told me it's more efficient to use StringBuffer to concatenate strings in Java than to use the + operator for Strings. What happens under the hood when you do that? What does StringBuffer do differently? A: I think that given jdk1....
{ "language": "en", "url": "https://stackoverflow.com/questions/65668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Comet implementation for ASP.NET? I've been looking at ways to implement gmail-like messaging inside a browser, and arrived at the Comet concept. However, I haven't been able to find a good .NET implementation that allows me to do this within IIS (our application is written in ASP.NET 2.0). The solutions I found (o...
{ "language": "en", "url": "https://stackoverflow.com/questions/65673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: How do I use PHPUnit with Zend Framework? I would like to know how to write PHPUnit tests with Zend_Test and in general with PHP. A: They have an "Introduction to the Art of Unit Testing" on the Zend Developer Zone, which covers PHPUnit. A: I found this article very useful. Also Zend_Test documentation helped a lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/65683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Get path geometry from FlowDocument object Can someone tell me how to get path geometry from a WPF FlowDocument object? Please note that I do not want to use FormattedText. Thanks. A: Get the Text property of a TextRange object initialized over the entire FlowDocument: FlowDocument myFlowDocument = new FlowDocument...
{ "language": "en", "url": "https://stackoverflow.com/questions/65687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: So which is faster truly? Flash, Silverlight or Animated gifs? I am trying to develop a multimedia site and I am leaning heavily toward Silverlight however Flash is always a main player. I am a Speed and performance type developer. Which Technology will load fastest in the given scenarios? 56k, DSL and Cable? A: It...
{ "language": "en", "url": "https://stackoverflow.com/questions/65694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How would I go about creating a custom search index much like Lucene? I implemented a Lucene search solution awhile back, and it got me interested in compressed file indexes that are searchable. At the time I could not find any good information on how exactly you would go about creating a custom search index, so I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/65704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What do the numbers in a version typically represent (i.e. v1.9.0.1)? I've always assumed each number delineated by a period represented a single component of the software. If that's true, do they ever represent something different? How should a version number be structured to start assigning versions to the differe...
{ "language": "en", "url": "https://stackoverflow.com/questions/65718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "175" }
Q: Uninitialized memory blocks in VC++ As everyone knows, the Visual C++ runtime marks uninitialized or just freed memory blocks with special non-zero markers. Is there any way to disable this behavior entirely without manually setting all uninitialized memory to zeros? It's causing havoc with my valid not null checks,...
{ "language": "en", "url": "https://stackoverflow.com/questions/65724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do use fckEditor safely, without risk of cross site scripting? This link describes an exploit into my app using fckEditor: http://knitinr.blogspot.com/2008/07/script-exploit-via-fckeditor.html How do I make my app secure while still using fckEditor? Is it an fckEditor configuration? Is it some processing I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/65734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the deployment rate of the .NET framework? I've been looking for this information for my commercial desktop product, with no avail. Specifically, what I'm look for, is deployment statistics of the .NET framework for end-users (both granny "I'm just browsing the internet" XP, and high-end users, if possible),...
{ "language": "en", "url": "https://stackoverflow.com/questions/65749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best design for entities with multiple values Say you have an entity like a vehicle that you are capturing detailed information about. The car you want to capture is painted red, black and white. The front tires are Bridgestone 275/35-18 and the rear tires are 325/30-19. And sometimes you can have just two tires (ye...
{ "language": "en", "url": "https://stackoverflow.com/questions/65805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How stable are Cisco IOS OIDs for querying data with SNMP across different model devices? I'm querying a bunch of information from cisco switches using SNMP. For instance, I'm pulling information on neighbors detected using CDP by doing an snmpwalk on .1.3.6.1.4.1.9.9.23 Can I use this OID across different cisco mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/65809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unit Testing C Code I worked on an embedded system this summer written in straight C. It was an existing project that the company I work for had taken over. I have become quite accustomed to writing unit tests in Java using JUnit but was at a loss as to the best way to write unit tests for existing code (which nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/65820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "941" }
Q: How to insert line breaks in HTML documents using CSS I'm writing a web service, and I want to return the data as XHTML. Because it's data, not markup, I want to keep it very clean - no extra <div>s or <span>s. However, as a convenience to developers, I'd also like to make the returned data reasonably readable in a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: How can I perform HTTP PUT uploads to a VMware ESX Server in PowerShell? VMware ESX, ESXi, and VirtualCenter are supposed to be able to support HTTP PUT uploads since version 3.5. I know how to do downloads, that's easy. I've never done PUT before. Background information on the topic is here: http://communities.vmwa...
{ "language": "en", "url": "https://stackoverflow.com/questions/65856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the easiest way to install a missing Perl module? I get this error: Can't locate Foo.pm in @INC Is there an easier way to install it than downloading, untarring, making, etc? A: Otto made a good suggestion. This works for Debian too, as well as any other Debian derivative. The missing piece is what to do w...
{ "language": "en", "url": "https://stackoverflow.com/questions/65865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "230" }
Q: Should I use an initialization vector (IV) along with my encryption? Is it recommended that I use an initialization vector to encrypt/decrypt my data? Will it make things more secure? Is it one of those things that need to be evaluated on a case by case basis? To put this into actual context, the Win32 Cryptography ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Detecting COMCTL32 version in .NET How do I determine which version of comctl32.dll is being used by a C# .NET application? The answers I've seen to this question usually involve getting version info from the physical file in Windows\System, but that isn't necessarily the version that's actually in use due to side-b...
{ "language": "en", "url": "https://stackoverflow.com/questions/65889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Debugging VBO Vertex buffers crashes I'm using the VBO extension for storing Vertex, normal and color buffers (glBindBufferARB) For some reason when changing buffers or doing some operation the application crashes with an access violation. When attaching The debugger I see that the crash is in some thread that is no...
{ "language": "en", "url": "https://stackoverflow.com/questions/65910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using network services when disconnected in Mac OS X From time to time am I working in a completely disconnected environment with a Macbook Pro. For testing purposes I need to run a local DNS server in a VMWare session. I've configured the lookup system to use the DNS server (/etc/resolve.conf and through the networ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to pass a parameter to XSLT through a URL when using a browser to transform XML? When using a browser to transform XML (Google Chrome or IE7) is it possible to pass a parameter to the XSLT stylesheet through the URL? example: data.xml <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/...
{ "language": "en", "url": "https://stackoverflow.com/questions/65926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }