text
stringlengths
8
267k
meta
dict
Q: What is the closest thing to Slime for Scheme? I do most of my development in Common Lisp, but there are some moments when I want to switch to Scheme (while reading Lisp in Small Pieces, when I want to play with continuations, or when I want to do some scripting in Gauche, for example). In such situations, my main s...
{ "language": "en", "url": "https://stackoverflow.com/questions/110911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Changing Hostname / IP Address of Windows System Mounted as an Image I'm looking for a way to change the hostname and IP address of a Windows XP system that is mounted via a loop-back image on a Linux system. So basically I have access to the Windows XP system on a file level, but I cannot execute any programs on it...
{ "language": "en", "url": "https://stackoverflow.com/questions/110920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I close a tkinter window? How do I end a Tkinter program? Let's say I have this code: from Tkinter import * def quit(): # code to exit root = Tk() Button(root, text="Quit", command=quit).pack() root.mainloop() How should I define the quit function to exit my application? A: I think you wrongly underst...
{ "language": "en", "url": "https://stackoverflow.com/questions/110923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "122" }
Q: XNA Game Studio 3D model editor suggestions I want to create basic low-poly 3D models to use in XNA Game Studio games. What cheap/free tools do people recommend? And does anyone have any links or snippets of code that show how to load 3D models of some sort into XNA and then draw them on the screen? A: Take a look ...
{ "language": "en", "url": "https://stackoverflow.com/questions/110924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Read divert sockets in java? If I was to create a ipfw divert rule to forward all FTP traffic to a specific socket, is it possible to use Java to connect to the socekt and read the packet information? If so, how would i go about reading/writing to the scoket? A: not sure what you mean. If you're using a divert rule...
{ "language": "en", "url": "https://stackoverflow.com/questions/110926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a valid reason for enforcing a maximum width of 80 characters in a code file, this day and age? Seriously. On a 22" monitor, it only covers maybe a quarter of the screen. I need some ammo to axe down this rule. I'm not saying that there shouldn't be a limit; I'm just saying, 80 characters is very small. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/110928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "179" }
Q: interval rails caching I need to cache a single page. I've used ActionController's caches_page for this. But now, I'd like to expire AND regenerate it once in every 10 minutes. What are my options? later: I'd like to not use any external tools for this, like cron. The important point is interval-based expiry of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/110930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How should I choose between GET and POST methods in HTML forms? I wish to know all the pros and cons about using these two methods. In particular the implications on web security. Thanks. A: To choose between them I use this simple rule: GET for reads. (reading data and displaying it) POST for anything that writes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/110933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: ZX Spectrum AY-3-8912 playback in XNA Game Studio Are there any libraries, pieces of code or suchlike that'll let me play ZX Spectrum .ay files in my XNA Game Studio games? A: You should convert .ay files to wav first. There is a program here to do that. It also comes with source code so someone who have some free ...
{ "language": "en", "url": "https://stackoverflow.com/questions/110973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Pros and cons of Localisation of technical words? This question is directed to the non-english speaking people here. It is somewhat biased because SO is an "english-speaking" web forum, so... In the other hand, most developers would know english anyway... In your locale culture, are technical words translated into l...
{ "language": "en", "url": "https://stackoverflow.com/questions/110987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: flex webservice client Has anybody any useful links that can be used to consume a web service using flex? The easier the solution the better Thanks A: Try http://livedocs.adobe.com/flex/3/langref/mx/rpc/soap/mxml/WebService.html for SOAP services. You just have to specify the WSDL location and the event handlers an...
{ "language": "en", "url": "https://stackoverflow.com/questions/111007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get a full call stack in Visual Studio 2005? How can I get a full call stack for a c++ application developed with Visual Studio 2005? I would like to have a full call stack including the code in the system libraries. Do I have to change some settings in Visual Studio, or do I have to install additional softwa...
{ "language": "en", "url": "https://stackoverflow.com/questions/111023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Large array arithmetics in C# Which is the best way to store a 2D array in c# in order to optimize performance when performing lots of arithmetic on the elements in the array? We have large (approx 1.5G) arrays, which for example we want to multiply with each other element by element. Performance is critical. The co...
{ "language": "en", "url": "https://stackoverflow.com/questions/111026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Comparison between Centralized and Distributed Version Control Systems What are the benefits and drawbacks with using Centralized versus Distributed Version Control Systems (DVCS)? Have you run into any problems in DVCS and how did you safeguard against these problems? Keep the discussion tool agnostic and flaming t...
{ "language": "en", "url": "https://stackoverflow.com/questions/111031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: Supplementary development tools for Java What are your favorite supplementary tools for Java development? Mine are: 1) Total Commander (due to the ability to search inside JARs). 2) JAD + Jadclipse (to understand and debug libraries) And of-course, Google. (can't really live without it) A: PMD PMD scans Java sourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/111045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Developing MS Word add-in Anyone knows of a good tool for developing add-ins for Word in .net? Hopefully something that supports both office 2003 and 2007. Thanks. A: There are lots of options for development tools for Office. The most obvious one is of course Office itself. It has rich support for macros and VBA...
{ "language": "en", "url": "https://stackoverflow.com/questions/111050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I convert legacy ASP applications to ASP.NET? We have a large ASP (classic ASP) application and we would like to convert it to .NET in order to work on further releases. It makes no sense continuing to use ASP as it is obsolete, and we don't want to rewrite it from scratch (Joel Spolsky tells you why). Is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/111071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Shut-down script on Windows to delete a registry key? EDIT: This was formerly more explicitly titled: - "Best solution to stop Kontiki's KHOST.EXE from loading automatically at start-up on Windows XP?" Essentially, whenever the 40D application is run it sets up khost.exe to automatically start-up with Windows. This...
{ "language": "en", "url": "https://stackoverflow.com/questions/111097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do JavaScript closures work? How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves? I have seen the Scheme example given on Wikipedia, but unfortunately it did not help. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/111102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7621" }
Q: How do you integrate a TDD approach with VisualStudio? I am interested in hearing about experiences using TDD and unit testing for C++ in general with Visual Studio 2005 (Professional) First some background. We have a fairly large project and much of it has been developed on Linux using CppUnit for the unit tests. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/111122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is querying the MySQL information_schema database a good way to find related tables? I have a table which is referenced by foreign keys on many other tables. In my program if I want to delete one of these rows I need to first search for dependencies and present them to the user - "This object depends on x from table...
{ "language": "en", "url": "https://stackoverflow.com/questions/111129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the coolest thing you have done with threads? Just wondering A: I'd love to say that I've cleverly parallelized an algorithm using lock-free data structures in order to get n-fold performance increase on an n-core processor. But I've never had a practical need, especially since most of my professional code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can .Net 3.5 apps run on machines that have .Net 2.0 runtime installed? I write my app in VS 2008 and so use all the fanciful stuffs such as LINQ, object initializers etc. Now can my app run on machines that have only .Net 2.0 runtime, but no .Net 3.5 runtime? .Net 3.5 runtime is a huge download, as all of you might...
{ "language": "en", "url": "https://stackoverflow.com/questions/111135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How does nunit work? Can someone explain me how it works, starting from when you select to run a test A: When you select to run a test, * *it will create an instance of the parent class of that test method. *It then proceeds to run the method marked with TestFixtureSetup attribute if one exists (once for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I handle the window close event in Tkinter? How do I handle the window close event (user clicking the 'X' button) in a Python Tkinter program? A: I'd like to thank the answer by Apostolos for bringing this to my attention. Here's a much more detailed example for Python 3 in the year 2019, with a clearer desc...
{ "language": "en", "url": "https://stackoverflow.com/questions/111155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "188" }
Q: Is there a tool to monitor the SQL statements being executed by an .EXE? I'd like to be able to hook into a 3rd party application to see what SQL Statements are being executed. Specifically, it is a VB6 application running on SQL Server 2005. For example, when the application fills out a grid, I'd like to be able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/111181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I determine when there is no more data to read in a NetworkStream? I have a web app which connects to a server using a TCP connection and reads a binary document which it then writes to its response object. In other words it's transferring a file from a backend server using a custom protocol and returning tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/111194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Local Database with Silverlight What would be a good local database for a Silverlight application? The database's main purpose is for local data caching and synchronization services. I do not believe that SQL anywhere or SQLite will work since they use unmanaged code which will not run under the silverlight sandbox...
{ "language": "en", "url": "https://stackoverflow.com/questions/111196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I make a Enso style application in C# The background should be transparent, but the text should not. A: By making an "Enso style" application you mean the Enso launcher? Here is a screenshot of it: alt text http://enscreenshots.softonic.com/s2en/68000/68880/3_ensolauncher03.jpg I would suggest at looking at...
{ "language": "en", "url": "https://stackoverflow.com/questions/111203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a "callable"? Now that it's clear what a metaclass is, there is an associated concept that I use all the time without knowing what it really means. I suppose everybody made once a mistake with parenthesis, resulting in an "object is not callable" exception. What's more, using __init__ and __new__ lead to w...
{ "language": "en", "url": "https://stackoverflow.com/questions/111234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "359" }
Q: How can I stay up-to-date on computer (especially software) security? I recently bought and read a box set of books on security (Building Secure Software: How to Avoid Security Problems the Right Way, Exploiting Software: How to Break Code, and Software Security: Building Security In). Although I think that the cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/111248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Where can I find an .xsd file to provide intellisense for Castle Windsor? I'm looking for an .xsd schema file to drop into my Visual Studio directory to provide intellisense for the xml configuration file for the Castle Windsor IoC container. I've looked in the downloaded code for Windsor, as well as googled several...
{ "language": "en", "url": "https://stackoverflow.com/questions/111263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: VMware server 1.0.7 modules incompatible with kernel 2.6.26 -- patched, where to submit? * *VMware server 1.0.7 installed with vmware-package *Debian GNU/Linux testing (lenny) *Kernel 2.6.26-1-686 There were several compile problems when trying to build the binary kernel modules from the vmware-server-kernel-s...
{ "language": "en", "url": "https://stackoverflow.com/questions/111281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: php: output[] w/ join vs $output .= I'm modifying some code in which the original author built a web page by using an array thusly: $output[]=$stuff_from_database; $output[]='more stuff'; // etc echo join('',$output); Can anyone think of a reason why this would be preferable (or vice versa) to: $output =$stuff...
{ "language": "en", "url": "https://stackoverflow.com/questions/111282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using SQLITE with VB6 I am currently using an MSAccess mdb file for a redistributable app. A while ago I found out about SQLite, as an alternative to my solution, but the binaries they provide do not offer the possiblilty of using them as an object in VB6. (Or at least I couldn't figure it out how). Does anyone has...
{ "language": "en", "url": "https://stackoverflow.com/questions/111285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Multiple Tables in a TClientDataset? Is it possible to put the results from more than one query on more than one table into a TClientDataset? Just something like SELECT * from t1; SELECT * from t2; SELECT * from t3; I can't seem to figure out a way to get a data provider (SetProvider) to pull in results from more t...
{ "language": "en", "url": "https://stackoverflow.com/questions/111287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Marketing Software Online What are some resources in use for marketing downloadable desktop software online? AdWords, certainly, and "organic" search engine results but is anyone having any luck making sales through sites like Tucows and/or Download.com anymorE? A: Joel on Software forums A: There are many ways to...
{ "language": "en", "url": "https://stackoverflow.com/questions/111294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How does Jan Willem Klop's "(L L L...)" Y combinator work? I understand what a Y Combinator is, but I don't understand this example of a "novel" combinator, from the Wikipedia page: Yk = (L L L L L L L L L L L L L L L L L L L L L L L L L L) Where: L = λabcdefghijklmnopqstuvwxyzr. (r (t h i s i s a f i x e d p...
{ "language": "en", "url": "https://stackoverflow.com/questions/111295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Best content type to serve JSONP? I have a webservice that when called without specifying a callback will return a JSON string using application/json as the content type. When a callback is specified it will wrap the JSON string in a callback function, so it's not really valid JSON anymore. My question is, should I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "121" }
Q: What's "P=NP?", and why is it such a famous question? The question of whether P=NP is perhaps the most famous in all of Computer Science. What does it mean? And why is it so interesting? Oh, and for extra credit, please post a proof of the statement's truth or falsehood. :) A: A short summary from my humble knowled...
{ "language": "en", "url": "https://stackoverflow.com/questions/111307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "268" }
Q: How to convert legacy Interbase DB to SQL Server? I have an Interbase DB. How can I convert it to SQL Server? A: You could use SQL Server built in Data Transformation Services (DTS) in SQL Server 2000 or SQL Server Integration Services (SSIS) in SQL Server 2005. Try setting up an ODBC DSN for Interbase. Then in DTS...
{ "language": "en", "url": "https://stackoverflow.com/questions/111318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are some ADFS alternatives for doing single sign on for an ASP.NET app with users in active directory? Needs to be secure and able to handle thousands of users. A: Check out ADAM and AzMan. ADAM is Active Directory Application Mode. There is a how-to guide at: http://msdn.microsoft.com/en-us/library/ms998331....
{ "language": "en", "url": "https://stackoverflow.com/questions/111330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting Arduino LilyPad to switch BlueSmirf v2.11 to/from command mode A battery powered (2 x AA) Arduino LilyPad should switch a BlueSmirf v2.11 Bluetooth modem to/from command mode (see source code below). The BlueSmirf has been set to 9600 baud. If the PC connects via Bluetooth (see source code below), the Arduin...
{ "language": "en", "url": "https://stackoverflow.com/questions/111331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Changing another Process Locale From my own "key logger like" process I figured out that another process Locale is wrong (i.e. by sniffing few keys, I figured out that the foreground process Locale should be something while it is set to another). What's the best way to do this? A: I'd use setLocale from within that...
{ "language": "en", "url": "https://stackoverflow.com/questions/111339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Combine multiple results in a subquery into a single comma-separated value I've got two tables: TableA ------ ID, Name TableB ------ ID, SomeColumn, TableA_ID (FK for TableA) The relationship is one row of TableA - many of TableB. Now, I want to see a result like this: ID Name SomeColumn 1. ABC ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: Getting image dimensions without reading the entire file Is there a cheap way to get the dimensions of an image (jpg, png, ...)? Preferably, I would like to achieve this using only the standard class library (because of hosting restrictions). I know that it should be relatively easy to read the image header and pars...
{ "language": "en", "url": "https://stackoverflow.com/questions/111345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "116" }
Q: What XNA based 3D terrain and physics libraries exist? I'm planning on creating a game that contains a landscape with objects on it. The landscape will be defined using a heightfield, and the objects will move about on top of, and fly over the terrain. If you've ever played the old games Marble Madness and Virus/Zar...
{ "language": "en", "url": "https://stackoverflow.com/questions/111348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Redirect to different controller I have some code in an IAuthorizationFilter which redirects the user to a login page but I'm having trouble changing the controller which is used. So I might do public void OnAuthorization(AuthorizationContext context) { UserController u = new UserController(); context.Result = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you performance test JavaScript code? CPU Cycles, Memory Usage, Execution Time, etc.? Added: Is there a quantitative way of testing performance in JavaScript besides just perception of how fast the code runs? A: We can always measure time taken by any function by simple date object. var start = +new Date(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "392" }
Q: Difference between SSL and Kerberos authentication? I am trying to understand what's the actual difference between SSL and Kerberos authentications, and why sometimes I have both SSL traffic and Kerberos. Or does Kerberos use SSL in any way? Anyone could help? Thank you! A: SSL uses public key cryptography: * *...
{ "language": "en", "url": "https://stackoverflow.com/questions/111386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: How to stream binary data to standard output in .NET? I'm trying to stream binary data to the standard output in .NET. However you can only write char using the Console class. I want to use it with redirection. Is there a way to do this? A: You can access the output stream using Console.OpenStandardOutput. sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/111387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Recommendations for a google finance-like interactive chart control I need some sort of interactive chart control for my .NET-based web app. I have some wide XY charts, and the user should be able to interactively scroll and zoom into a specific window on the x axis. Something that acts similar to the google finan...
{ "language": "en", "url": "https://stackoverflow.com/questions/111388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Best way to add tests to an existing Rails project? I have a Rails project which I neglected to build tests for (for shame!) and the code base has gotten pretty large. A friend of mine said that RSpec was a pain to use unless you use it from the beginning. Is this true? What would make him say that? So, considering ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Should domain objects and simple JavaBeans be unit tested? Should simple JavaBeans that have only simple getters and setters be unit tested?? What about Beans with some logic in getters and setters? A: If it's not worth testing, it's not worth writing. That doesn't always mean you should write tests. Sometimes it...
{ "language": "en", "url": "https://stackoverflow.com/questions/111390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is it a problem if multiple different accepting sockets use the same OpenSSL context? Is it OK if the same OpenSSL context is used by several different accepting sockets? In particular I'm using the same boost::asio::ssl::context with 2 different listening sockets. A: Yep, SSL_CTX--which I believe is the underlyi...
{ "language": "en", "url": "https://stackoverflow.com/questions/111391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Miktex on Windows Vista I have some problems with Miktex installed on Windows Vista Business SP1/32 bit. I use miktex 2.7, ghostscript, and texniccenter 1 beta 7.50. When I compile a document with the following profiles: Latex=>DVI, Latex=>PDF everything works fine; the system crashes when I compile with profiles La...
{ "language": "en", "url": "https://stackoverflow.com/questions/111405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you fix the flickering that occurs when you use slideToggle in jQuery? I have a simple unordered list that I want to show and hide on click using the jQuery slideUp and slideDown effect. Everything seems to work fine, however in IE6 the list will slide up, flicker for a split second, and then disappear. Does...
{ "language": "en", "url": "https://stackoverflow.com/questions/111407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to configure asp.net process to run under a domain account? I would like to configure asp.net process to run under an account with domain credentials. My requirement is to access some files on a network share. What are the steps for this? Is there any built-in account I can use? A: Check this article from MSDN....
{ "language": "en", "url": "https://stackoverflow.com/questions/111410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: "Information Not Found" page in Visual Studio 2008, VB.NET Express Edition I'm experimenting with VS 2008 Express edition and when I hit f1 on a keyword or class name I seem to get the Information Not Found page more than 90% of the time. Is this a configuration problem? Is it because this is the "free-as-in-beer" E...
{ "language": "en", "url": "https://stackoverflow.com/questions/111411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strange call stack, could it be problem in asio's usage of openssl? I have this strange call stack and I am stumped to understand why. It seems to me that asio calls open ssl's read and then gets a negative return value (-37) . Asio seems to then try to use it inside the memcpy function. The function that causes th...
{ "language": "en", "url": "https://stackoverflow.com/questions/111415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What’s the difference between Response.Write() and Response.Output.Write()? What’s the difference between Response.Write() and Response.Output.Write()? A: There is effectively no difference, although Response.Output.Write() provides more overloads which can allow you to pass different parameters. Scott Hansleman ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I set the thickness of a line in VB.NET In VB.NET I'm drawing an ellipse using some code like this. aPen = New Pen(Color.Black) g.DrawEllipse(aPen, n.boxLeft, n.boxTop, n.getWidth(), n.getHeight) But I want to set the thickness of the line. How do I do it? Is it a property of the Pen or an argument to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/111424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Did you apply computational complexity theory in real life? I'm taking a course in computational complexity and have so far had an impression that it won't be of much help to a developer. I might be wrong but if you have gone down this path before, could you please provide an example of how the complexity theory he...
{ "language": "en", "url": "https://stackoverflow.com/questions/111426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Which gcc switch disables "left-hand operand of comma has no effect" warning? It's a part of larger code base, which forces -Werror on gcc. This warning is generated in a third party code that shouldn't be changed (and I actually know how to fix it), but I can disable specific warnings. This time man gcc failed me, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get the Subversion revision number in PHP? I want to have my PHP application labeled with the revision number which it uses, but I don't want to use CruiseControl or update a file and upload it every time. How should I do it? A: This is how I got it to work. If your server is setup to allow shell_exec AND...
{ "language": "en", "url": "https://stackoverflow.com/questions/111436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How can I detect, using php, if the machine has oracle (oci8 and/or pdo_oci) installed? How can I detect, using php, if the machine has oracle (oci8 and/or pdo_oci) installed? I'm working on a PHP project where some developers, such as myself, have it installed, but there's little need for the themers to have it. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/111440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Kerberos and T125 protocol Why does Kerberos authentication use T125 protocol? I believe Kerberos authentication behaves this way: * *Client asks for a ticket to the Kerberos authority *The Kerberos authority provides a Ticket to the client *The Client tries to authenticate towards a Server and sends to the ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/111451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .Net 8-bit Encoding I'm working on serial port, transmitting and receiving data to some hardware at 8bit data. I would like to store it as string to facilitate comparison, and preset data are stored as string or hex format in xml file. I found out that only when using Encoding.Default which is ANSI encoding then the...
{ "language": "en", "url": "https://stackoverflow.com/questions/111460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Auto-implemented getters and setters vs. public fields I see a lot of example code for C# classes that does this: public class Point { public int x { get; set; } public int y { get; set; } } Or, in older code, the same with an explicit private backing value and without the new auto-implemented properties: p...
{ "language": "en", "url": "https://stackoverflow.com/questions/111461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: Why is it wrong to use std::auto_ptr<> with standard containers? Why is it wrong to use std::auto_ptr<> with standard containers? A: The copy semantics of auto_ptr are not compatible with the containers. Specifically, copying one auto_ptr to another does not create two equal objects since one has lost its ownership...
{ "language": "en", "url": "https://stackoverflow.com/questions/111478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "223" }
Q: Error creating UDF in SQL Server 2005 I'm trying to create a UDF in SQL Server 2005 Express as below: CREATE FUNCTION [CombineValues] () RETURNS VARCHAR(8000) AS BEGIN DECLARE @CuisineList VARCHAR(8000); RETURN ( SELECT @CuisineList = COALESCE(@CuisineList + ', ', '') + CAST(Cuisine AS varchar(20...
{ "language": "en", "url": "https://stackoverflow.com/questions/111504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I automatically add properties in Objective-C? When adding new properties to classes, I find myself typing the same things over and over in xcode: * *add TYPE *NAME; (in .h interface) *add @property (nonatomic, retain) TYPE *NAME; (in .h) *add @synthesize NAME; (in .m) *add [NAME release]; (in .m deall...
{ "language": "en", "url": "https://stackoverflow.com/questions/111517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create query parameters in Javascript? Is there any way to create the query parameters for doing a GET request in JavaScript? Just like in Python you have urllib.urlencode(), which takes in a dictionary (or list of two tuples) and creates a string like 'var1=value1&var2=value2'. A: This should do the job: co...
{ "language": "en", "url": "https://stackoverflow.com/questions/111529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "201" }
Q: TortoiseSVN Error: "OPTIONS of 'https://...' could not connect to server (...)" I'm trying to setup a new computer to synchronize with my SVN repository that's hosted with cvsdude.com. I get this error: ![SVN Error][1] - removed image shack image that had been replaced by an advert Here's what I did (these have work...
{ "language": "en", "url": "https://stackoverflow.com/questions/111543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Listview icons show up blurry (C#) I'm attempting to display a "LargeIcon" view in a listview control, however the images I specify are blurry. This is what I have so far: alt text http://img220.imageshack.us/img220/1005/blurryiconsql3.jpg The .png files are 48x48 and that's what I have it set to display at in the I...
{ "language": "en", "url": "https://stackoverflow.com/questions/111551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Lots of unnecessary frameworks load into my iPhone app - can I prevent this? There appear to be a lot of unnecessary frameworks loading into my iPhone app. I didn't link against them in Xcode, and I don't need them. When I run "lsof -p" against them on the iPhone, I see these (and others) that I can't explain: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: YouTube embeds not working in WordPress after import from Blogger I imported a series of blogger posts (via xml) into WordPress, and the YouTube embed tags were removed. YouTube URLs in posts are not identified. Instead, just the text of the url is left. Possibly as opposed to full embed tags. I'm trying to restore ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When the bots attack! What are some popular spam prevention methods besides CAPTCHA? A: A very simple method which puts no load on the user is just to disable the submit button for a second after the page has been loaded. I used it on a public forum which had continuous spam posts, and it stopped them since. A: Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/111576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: What are some GUI clients available for Mercurial? Also, where would I find them? A: If your on OSX then MacHg is IMHO quite nice. (I wrote it and maintain it...) A: Tortoise HG. All the tortoise goodness, now for Mercurial. UPDATE july 2020: The original official website linked above is abandoned. The project m...
{ "language": "en", "url": "https://stackoverflow.com/questions/111578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How do I name a result group in a Regex? (.Net) How do I name a result group in a Regex? (.Net) A: (?<NameOfGroup>[a-z]*) Use the ? syntax like in the sample above. A: (?<NAME>EXPRESSION) or (?'NAME'EXPRESSION) A: (?<first>group)(?'second'group). http://www.regular-expressions.info/named.html A: (?<name>.*) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Conditions when finally does not execute in a .NET try-finally block Basically I’ve heard that certain conditions will cause .NET to blow past the finally block. Does anyone know what those conditions are? A: You can get a situation where the code in the try block causes a SecurityException to be thrown before the...
{ "language": "en", "url": "https://stackoverflow.com/questions/111597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: How to capture PCM data from Wave Out How would it be possible to capture the audio programmatically? I am implementing an application that streams in real time the desktop on the network. The video part is finished. I need to implement the audio part. I need a way to get PCM data from the sound card to feed to my e...
{ "language": "en", "url": "https://stackoverflow.com/questions/111603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What kind of prefix do you use for member variables? No doubt, it's essential for understanding code to give member variables a prefix so that they can easily be distinguished from "normal" variables. But what kind of prefix do you use? I have been working on projects where we used m_ as prefix, on other projects we...
{ "language": "en", "url": "https://stackoverflow.com/questions/111605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How do you store your code and files for use across machines I am interested to know what strategies people have to keep their code AND work versioned across multiple machines. For example I have a desktop PC running XP, a macbook running OSX and VMWare running XP as well as a sales laptop for running product demos...
{ "language": "en", "url": "https://stackoverflow.com/questions/111629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Using the Window API, how do I ensure controls retain a native appearance? Some of the controls I've created seem to default to the old Windows 95 theme, how do I prevent this? Here's an example of a button that does not retain the Operating System's native appearance (I'm using Vista as my development environment):...
{ "language": "en", "url": "https://stackoverflow.com/questions/111630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Visual Studio Solutions / Multiple project : How to effectively propagate project properties amongst several C++ projects I am working with a Visual Studio 2005 C++ solution that includes multiple projects (about 30). Based upon my experience, it often becomes annoying to maintain all the properties of the project...
{ "language": "en", "url": "https://stackoverflow.com/questions/111631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: What happens on deserialization with this? I'm currently convering my ASP.NET v2 application to serialize/deserialize it's objects because I want to shift from inproc session state to stateserver. This is because my host, webhost4life, has a nasty tendency to recycle the worker process frequently thus causing sessio...
{ "language": "en", "url": "https://stackoverflow.com/questions/111643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Locking Row in SQL 2005-2008 Is there a way to lock a row in the SQL 2005-2008 database without starting a transaction, so other processes cannot update the row until it is unlocked? A: You can use RowLock or other hints but you should be careful.. The HOLDLOCK hint will instruct SQL Server to hold the lock until y...
{ "language": "en", "url": "https://stackoverflow.com/questions/111652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: "Cocoa Touch Application" Template from Xcode 3.1.1 Just installed the latest SDK for iPhone 2.1. When I go to File -> New Project in Xcode, under the iPhone OS Application selection, I don't see a template icon for "Cocoa Touch Application". Am I missing something? Anything else I need to download other than the iP...
{ "language": "en", "url": "https://stackoverflow.com/questions/111653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do "spikes" figure in the schedule / estimation game? Might be subjective and/or discussion.. but here goes. I've been asked to estimate a feature for the next big thing at work. I break it down.. use story points come up with a estimate. The feature however calls for interfacing with GoDiagrams a third party di...
{ "language": "en", "url": "https://stackoverflow.com/questions/111665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unit testing a multithreaded application? Does anyone have any advice for a consistent way to unit test a multithreaded application? I have done one application where our mock "worker threads" had a thread.sleep with a time that was specified by a public member variable. We would use this so we could set how long ...
{ "language": "en", "url": "https://stackoverflow.com/questions/111676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How do you automate some routine actions for improving productivity? Every morning, after logging into your machine, you do a variety of routine stuffs. The list can include stuffs like opening/checking your email clients, rss readers, launching visual studio, running some business apps, typing some replies, getting...
{ "language": "en", "url": "https://stackoverflow.com/questions/111683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: DropShadowBitmapEffect Doesn't work on TextBlock Does anyone know why the DropShadowBitmapEffect and the EmbossBitmapEffect won't work on a TextBlock (not textBOX) in WPF? OuterGlow, Blur and Bevel seem to work fine. The transparent background brush is apparently not the answer because you can get a dropshadow wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/111686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby - Ensure Syslog Gets Closed Is it absolutely critical that I always close Syslog when I'm done using it? Is there a huge negative impact from not doing so? If it turns out that I definitely need to, what's a good way to do it? I'm opening Syslog in my class constructor and I don't see a way to do class destruct...
{ "language": "en", "url": "https://stackoverflow.com/questions/111687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 6502 CPU Emulation It's the weekend, so I relax from spending all week programming by writing a hobby project. I wrote the framework of a MOS 6502 CPU emulator yesterday, the registers, stack, memory and all the opcodes are implemented. (Link to source below) I can manually run a series of operations in the debugger...
{ "language": "en", "url": "https://stackoverflow.com/questions/111700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Zero SQL deadlock by design - any coding patterns? I am encountering very infrequent yet annoying SQL deadlocks on a .NET 2.0 webapp running on top of MS SQL Server 2005. In the past, we have been dealing with the SQL deadlocks in the very empirical way - basically tweaking the queries until it work. Yet, I found th...
{ "language": "en", "url": "https://stackoverflow.com/questions/111707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How do you "preview" user actions like resize or editing in GoDiagrams? * *The GoDiagram object model has a GoDocument. *GoViews have a reference to a GoDocument. *If the user does any modification on the diagramming surface, a GoDocument.Changed event is raised with the relevant information in the event argume...
{ "language": "en", "url": "https://stackoverflow.com/questions/111744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Web interface tool for debian repository? What is the web interface tool that Debian or Ubuntu use for publicizing their custom repositories on the web? Like packages.debian.org Is such tool open sourced, so that it could be re-used for a custom repository? A: The scripts that manage the archive are open source, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/111756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where can I learn about proven methods for sharing cryptographic keys? Suppose that a group wants to encrypt some information, then share the encryption key among the group members in a way that requires the consensus of the group to decrypt the information. I'm interested in a variety of scenarios where the breadth...
{ "language": "en", "url": "https://stackoverflow.com/questions/111763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to install a masked package in Gentoo 2008? I searched the net and handbook, but I only managed to learn what is the masked package, and not how to install it. I did find some commands, but they don't seem to work on 2008 (looking at it, it seems those are for earlier versions). I have something like this: local...
{ "language": "en", "url": "https://stackoverflow.com/questions/111769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }