text stringlengths 8 267k | meta dict |
|---|---|
Q: Unit Testing Guidelines Does anyone know of where to find unit testing guidelines and recommendations? I'd like to have something which addresses the following types of topics (for example):
*
*Should tests be in the same project as application logic?
*Should I have test classes to mirror my logic classes or sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What is Java EE? I realize that literally it translates to Java Enterprise Edition. But what I'm asking is what does this really mean? When a company requires Java EE experience, what are they really asking for? Experience with EJBs? Experience with Java web apps?
I suspect that this means something different to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "230"
} |
Q: Javascript - Get Image height I need to display a bunch of images on a web page using AJAX. All of them have different dimensions, so I want to adjust their size before displaying them. Is there any way to do this in JavaScript?
Using PHP's getimagesize() for each image causes an unnecessary performance hit since th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How best to draw in the console? I'm trying to write a console (as in terminal, not gaming console) pong game in python and I'm having trouble figuring how best to (re)draw the game.
I was thinking of having an 2d array as a sort of bitmap, editing the array to reflect the ball/paddles new positions and then casting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Whats a good value for 'identity increment' for an 'Orders' table Whats a good value for an identity increment for an 'Orders' table? (orders as in shopping cart orders)
I want the order numbers to appear so that we have more orders than we really do, plus make it harder for users to guess order numbers of other use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Any experiences with Intel's Threading Building Blocks? Intel's Threading Building Blocks (TBB) open source library looks really interesting. Even though there's even an O'Reilly Book about the subject I don't hear about a lot of people using it. I'm interested in using it for some multi-level parallel application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Adobe Captivate 3 Typing Sound viewing a recording I am using Adobe Captivate 3 and am having trouble disabling the typing noise when using a recording. Sometimes when I have this 'feature' disabled and make a recording, it doesn't make the typing sound, but when I publish the project, the typing sound returns. Al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make WISA act like LAMP (Protecting .mp3s on IIS) I have created a few small flash widgets that stream .mp3 audio from an Apache/php host. The mp3 file cannot be directly accessed and does not save it self to the browsers cache.
To do this I set the mp3 file permission on the host to "owner: read/write" (nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: InternalsVisibleTo attribute isn't working I am trying to use the InternalsVisibleTo assembly attribute to make my internal classes in a .NET class library visible to my unit test project. For some reason, I keep getting an error message that says:
'MyClassName' is inaccessible due to its protection level
Both as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Getting Image height before the image loads in HTML I have a table that is dynamically created using DIVs. Each row of the table has two images. I want to set the height for the div (that represents a particular row) to the height of image that is greater of the two images being displayed in that particular row. The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Possibilities for Python classes organized across files? I'm used to the Java model where you can have one public class per file. Python doesn't have this restriction, and I'm wondering what's the best practice for organizing classes.
A: I would say to put as many classes as can be logically grouped in that file w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "297"
} |
Q: Making code internal but available for unit testing from other projects We put all of our unit tests in their own projects. We find that we have to make certain classes public instead of internal just for the unit tests. Is there anyway to avoid having to do this. What are the memory implication by making classes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: How to draw custom button in Window Titlebar with Windows Forms? How do you draw a custom button next to the minimize, maximize and close buttons within the Titlebar of the Form?
I know you need to use Win32 API calls and override the WndProc procedure, but I haven't been able to figure out a solution that works rig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I get source and variable values in ruby tracebacks? Here's the last few frames of a typical Ruby on Rails traceback:
And here are the last few frames of a typical Nevow traceback in Python:
It's not just the web environment either, you can make similar comparisons between ipython and irb. How can I get m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Shared File Database Suggestion I would like to build and deploy a database application for Windows based systems, but need to live within the following constraints:
*
*Cannot run as a server (i.e., have open ports);
*Must be able to share database files with other instances of the program (running on other machi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I use internal or public visibility by default? I'm a pretty new C# and .NET developer. I recently created an MMC snapin using C# and was gratified by how easy it was to do, especially after hearing a lot of horror stories by some other developers in my organisation about how hard it is to do in C++.
I pretty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Is the Unity Framework any good for Inversion of Control? I have been using IoC for a little while now and I am curious if I should use Microsoft's Unity framework (official name "Unity Application Block"). Does anyone have experience using it? So for I have been copying my IoC container code from project to proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I lookup data about a book from its barcode number? I'm building the world's simplest library application. All I want to be able to do is scan in a book's UPC (barcode) using a typical scanner (which just types the numbers of the barcode into a field) and then use it to look up data about the book... at a mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: How do I read a file over a network that is in use/locked by another process in c#? Is there a way to read a locked file across a network given that you are the machine admin on the remote machine? I haven't been able to read the locked file locally, and attempting it over the network adds another layer of difficult... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best way to pass data between concurrent threads in .NET? I have two threads, one needs to poll a bunch of separate static resources looking for updates. The other one needs to get the data and store it in the database. How can thread 1 tell thread 2 that there is something to process?
A: If the pieces ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Predict next auto-inserted row id (SQLite) I'm trying to find if there is a reliable way (using SQLite) to find the ID of the next row to be inserted, before it gets inserted. I need to use the id for another insert statement, but don't have the option of instantly inserting and getting the next row.
Is predicting t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Detect And Remove Rootkit What is the best (hopefully free or cheap) way to detect and then, if necessary, remove a rootkit found on your machine?
A: SysInternals stopped updating RootKit Revealer a couple of years ago.
The only sure way to detect a rootkit is to do an offline compare of installed files and filesys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a reference for the SharePoint XSLT extension functions? There are a couple of different .NET XSLT functions that I see used in the out of the box SharePoint web parts (RSS Viewer and Data View web part).
<xsl:stylesheet
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to make a simple site render correctly on multiple mobile browsers? We have a rather simple site (minimal JS) with plain html and CSS. It is a simple mobile interface for our main application.
We are running into trouble because we have more than one column and several browsers seem to force single columns.
Thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Consistent outdent of first letter with CSS? I'm trying to implement an outdent of the first letter of the first paragraph of the body text. Where I'm stuck is in getting consistent spacing between the first letter and the rest of the paragraph.
For example, there is a huge difference in spacing between a "W" and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Commercial uses for grid computing? I keep hearing from associates about grid computing which, from what I can gather, is highly distributed stuff along the lines of SETI@Home.
Is anyone working on these sort of systems for business use? My interest is in figuring out if there's a commercial reason for starting soft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: An algorithm to generate a game map from individual images I am designing a game to be played in the browser.
Game is a space theme and I need to generate a map of the "Galaxy".
The basic idea of the map is here:
game map http://www.oglehq.com/map.png
The map is a grid, with each grid sector can contain a planet/sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does WCF play well with Java? Which of the WCF Service Protocols work well with Java?
Do the TCP Service Bindings work with java remoting (either Corba, EJB, JMS, etc.)?
What about the WebServices exposed as Service EndPoints. Have these been tested against the common Java WebServices stack for interoperability?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Does WCF support WS-Eventing? I know WCF supports many WS-* protocols but WS-Eventing does seem to be listed.
I do know that WCF has a pub/sub model, but is it WS-Eventing compliant?
A: I seem to remember reading about this on CodeProject a while ago.
Sorry I can't help more, but this is the article by Roman Kiss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is there no generic synchronized queue in .NET? I noticed that you can call Queue.Synchronize to get a thread-safe queue object, but the same method isn't available on Queue<T>. Does anyone know why? Seems kind of weird.
A: You might find the Parallel CTP worth checking out; here's a blog entry from the guys ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: How to install Delphi 7 on Vista I tried to install Delphi 7 on Vista several times and Vista prevented me from doing so by telling me that there are known problems with this application (Delphi 7). Several other people in my company experienced problems with installing D7 on Vista.
This lead to the conclusion that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can you use Reflector to get the source code of an app and then debug using that source code? It seems like you could use a mashup of Relector and a Debugger to be able to debug any .NET app WITHOUT having the source code at all. Is this possible? Has anyone seen this before?
A: The Deblector plug-in for Reflecto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What columns generally make good indexes? As a follow up to "What are indexes and how can I use them to optimise queries in my database?" where I am attempting to learn about indexes, what columns are good index candidates? Specifically for an MS SQL database?
After some googling, everything I have read suggests tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "123"
} |
Q: ASP.NET TreeView and Selecting the Selected Node How do I capture the event of the clicking the Selected Node of a TreeView?
It doesn't fire the SelectedNodeChanged since the selection has obviously not changed but then what event can I catch so I know that the Selected Node was clicked?
UPDATE:
When I have some tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Can a console app stay alive until it has finished its work? I've just read up on Thread.IsBackground and if I understand it correctly, when it's set to false the Thread is a foreground thread which means it should stay alive until it has finished working even though the app have been exited out. Now I tested this w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does one add a custom build step to an automake-based project in KDevelop? I recently started work on a personal coding project using C++ and KDevelop. Although I started out by just hacking around, I figure it'll be better in the long run if I set up a proper unit test suite before going too much further. I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Big-O for Eight Year Olds? I'm asking more about what this means to my code. I understand the concepts mathematically, I just have a hard time wrapping my head around what they mean conceptually. For example, if one were to perform an O(1) operation on a data structure, I understand that the number of operations i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "321"
} |
Q: Building Ruby on Windows XP Has anyone out there got a good set of instructions for building/compiling Ruby from source of windows XP ?
A: Luis Lavena maintains the Ruby One-Click installer binaries. His blogs and postings on Ruby Forum are definitely the place to start.
A: http://blade.nagaokaut.ac.jp/cgi-bin/sca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can you debug a .NET app with ONLY the source code of one file? I want to debug an application in Visual Studio but I ONLY have the source code for 1 class. I only need to step through a single function in that file, but I don't understand what I need to do it. I think the steps are normally something like this:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would one code test and set behavior without a special hardware instruction? Most of the implementations I find require a hardware instruction to do this. However I strongly doubt this is required (if it is, I can't figure out why...)
A: You don't need a test and set instruction to get mutual exclusion locking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why is a different dll produced after a clean build, with no code changes? When I do a clean build my C# project, the produced dll is different then the previously built one (which I saved separately). No code changes were made, just clean and rebuild.
Diff shows some bytes in the DLL have changes -- few near the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to load a specific version of an assembly To complete some testing I need to load the 64 bit version of an assembly even though I am running a 32 bit version of Windows. Is this possible?
A: I'm not sure why you would want to do this, but I suppose you could. If you don't do anything to tell it otherwise, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are units of measurement unique to F#? I was reading Andrew Kennedy's blog post series on units of measurement in F# and it makes a lot of sense in a lot of cases. Are there any other languages that have such a system?
Edit: To be more clear, I mean the flexible units of measurement system where you can define your... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How to repaint a Word 2003 menubar I have a Word 2003 .dot template that changes its menu based on the condition of the active document.
The DocumentChange, DocumentOpen and NewDocument events of Word.Application trigger setting the .Visible and .Enabled properties of CommandBarButton controls.
On switching active ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How often to commit changes to source control? How often should I commit changes to source control ? After every small feature, or only for large features ?
I'm working on a project and have a long-term feature to implement. Currently, I'm committing after every chunk of work, i.e. every sub-feature implemented and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "225"
} |
Q: Is QuickSilver dead? After having read that QuickSilver was no longer supported by BlackTree and has since gone open source, I noticed more and more people switching to/suggesting other app launchers i.e. Buttler and LaunchBar.
Is QuickSilver still relevant? Has anyone experienced any instability since it's gone op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the optimal way to organize shared .net assemblies in SVN? We are starting a new SOA project with a lot of shared .net assemblies. The code for these assemblies will be stored in SVN.
In development phase, we would like to be able to code these assemblies as an entire solution with as little SVN 'friction' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Change pointer to an array to get a specific array element I understand the overall meaning of pointers and references(or at least I think i do), I also understand that when I use new I am dynamically allocating memory.
My question is the following:
If i were to use cout << &p, it would display the "virtual memory l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Any suggestions for testing extjs code in a browser, preferably with selenium? We've been using selenium with great success to handle high-level website testing (in addition to extensive python doctests at a module level). However now we're using extjs for a lot of pages and its proving difficult to incorporate Sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: How do I get the value of a JSObject property from C? In SpiderMonkey, how do I get the value of a property of a JSObject from within my C code?
static JSBool
JSD_getter(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
jsval js_id;
JS_GetProperty(cx, obj, "id", &js_id); // js_id has Java... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using a USB controller as auxiliary keyboard for Visual Studio Our family no longer uses our Mixman DM2 USB controller for making music. This frees it up for me to use as an auxiliary keyboard with 31 "keys" (and a few "sliders"). I had the crazy idea to use these buttons to send keyboard shortcuts to Visual Studi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I need populate a repeater with pseudo-related data Before I do this I figured I would ask if it was the best way. Each "Vendor" object has a "Bucket" object. In my repeater I need to display some properties from Vendor and some from Bucket, also some images populated by FileSystem that are linked to the vendor. I f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex index in matching string where the match failed I am wondering if it is possible to extract the index position in a given string where a Regex failed when trying to match it?
For example, if my regex was "abc" and I tried to match that with "abd" the match would fail at index 2.
Edit for clarification. The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What's the difference between a POST and a PUT HTTP REQUEST? They both seem to be sending data to the server inside the body, so what makes them different?
A: PUT is meant as a a method for "uploading" stuff to a particular URI, or overwriting what is already in that URI.
POST, on the other hand, is a way of submit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1032"
} |
Q: What are the down sides of using a composite/compound primary key? What are the down sides of using a composite/compound primary key?
A: There's nothing wrong with having a compound key per se, but a primary key should ideally be as small as possible (in terms of number of bytes required). If the primary key is lon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do you send a HEAD HTTP request in Python 2? What I'm trying to do here is get the headers of a given URL so I can determine the MIME type. I want to be able to see if http://somedomain/foo/ will return an HTML document or a JPEG image for example. Thus, I need to figure out how to send a HEAD request so that I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "118"
} |
Q: Best way to translate mouse drag motion into 3d rotation of an object I have a 3d object that I wish to be able to rotate around in 3d. The easiest way is to directly translate X and Y mouse motion to rotation about the Y and X axes, but if there is some rotation along both axes, the way the model rotates becomes h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What's your best trick to break out of an unbalanced quote condition in BASE SAS? As a base SAS programmer, you know the drill:
You submit your SAS code, which contains an unbalanced quote, so now you've got not only and unclosed quote, but also unclosed comments, macro function definitions, and a missing run; or qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What's the best way to do a mapping application for the iPhone So I'm looking at writing an iPhone application that shows things on a map. What frameworks/methodologies are out there for doing this?
Searching around on Google, I could only find this one:
http://code.google.com/p/iphone-google-maps-component/
Which a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is JavaScript object-oriented? There have been some questions about whether or not JavaScript is an object-oriented language. Even a statement, "just because a language has objects doesn't make it OO."
Is JavaScript an object-oriented language?
A: JavaScript is a prototype-based programming language (probably proto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: XML based website - how to create? I would like to create an XML-based website. I want to use XML files as datasources since it is a kind of online directory site. Can someone please give me a starting point? Are there any good online resources that I can refer to? I am pretty comfortable with ASP and JavaScript.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you prototype? We prototype a design, GUI, just to analyze a particular problem, proof of concept, etc. Sometimes we throw away the prototype, and sometimes it ends up in the production code. We use different languages, technologies, strategies, and styles to prototype.
What are the different situations you p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How would you implement auto-capitalization in JavaScript/HTML I need to implement auto-capitalization inside of a Telerik RadEditor control on an ASPX page as a user types.
This can be an IE specific solution (IE6+).
I currently capture every keystroke (down/up) as the user types to support a separate feature calle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GCC compiling a dll with __stdcall When we compile a dll using __stdcall inside visual studio 2008 the compiled function names inside the dll are.
FunctionName
Though when we compile the same dll using GCC using wx-dev-cpp GCC appends the number of paramers the function has, so the name of the function using Depende... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Whats the best way to get started with server virtualization? We recently bought a new rack and set of servers for it, we want to be able to redeploy these boxes as build servers, QA regression test servers, lab re-correlation servers, simulation servers, etc.
We have played a bit with VMWare, VirtualPC, VirtualBox ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trying to run faac's bootstrap script but running into errors I'm trying to install faac and am running into errors. Here are the errors I get when trying to build it:
[root@test faac]# ./bootstrap
configure.in:11: warning: underquoted definition of MY_DEFINE
run info '(automake)Extending aclocal'
or see http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where should you enable SSL? My last couple of projects have involved websites that sell a product/service and require a 'checkout' process in which users put in their credit card information and such. Obviously we got SSL certificates for the security of it plus giving peace of mind to the customers. I am, however,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Problem calling stored procedure from another stored procedure via classic ASP We have a classic ASP application that simply works and we have been loathe to modify the code lest we invoke the wrath of some long-dead Greek gods.
We recently had the requirement to add a feature to an application. The feature impleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unit testing MFC UI applications? How do you unit test a large MFC UI application?
We have a few large MFC applications that have been in development for many years, we use some standard automated QA tools to run basic scripts to check fundamentals, file open etc. These are run by the QA group post the daily build.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Point Sequence Interpolation Given an arbitrary sequence of points in space, how would you produce a smooth continuous interpolation between them?
2D and 3D solutions are welcome. Solutions that produce a list of points at arbitrary granularity and solutions that produce control points for bezier curves are also ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there still any reason to learn AWK? I am constantly learning new tools, even old fashioned ones, because I like to use the right solution for the problem.
Nevertheless, I wonder if there is still any reason to learn some of them. awk for example is interesting to me, but for simple text processing, I can use gre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "122"
} |
Q: How can i temporarily load a font? I need to load some fonts temporarily in my program. Preferably from a dll resource file.
A: I found this with Google. I have cut & pasted the relevant code below.
You need to add the font to your resource file:
34 FONT "myfont.ttf"
The following C code will load the font from t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: XML-RPC: best way to handle 64-bit values? So the official XML-RPC standard doesn't support 64-bit values. But in these modern times, 64-bit values are increasingly common.
How do you handle these? What XML-RPC extensions are the most common? What language bindings are there? I'm especially interested in Python ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to compute the critical path of a directional acyclic graph? What is the best (regarding performance) way to compute the critical path of a directional acyclic graph when the nodes of the graph have weight?
For example, if I have the following structure:
Node A (weight 3)
/ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What do you use when you need reliable UDP? If you have a situation where a TCP connection is potentially too slow and a UDP 'connection' is potentially too unreliable what do you use? There are various standard reliable UDP protocols out there, what experiences do you have with them?
Please discuss one protocol per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "105"
} |
Q: Backend administration in Ruby on Rails I'd like to build a real quick and dirty administrative backend for a Ruby on Rails application I have been attached to at the last minute. I've looked at activescaffold and streamlined and think they are both very attractive and they should be simple to get running, but I don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How can I unit test responses from the webapp WSGI application in Google App Engine? I'd like to unit test responses from the Google App Engine webapp.WSGIApplication, for example request the url '/' and test that the responses status code is 200, using GAEUnit. How can I do this?
I'd like to use the webapp framewo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: When and why should $_REQUEST be used instead of $_GET / $_POST / $_COOKIE? Question in the title.
And what happens when all 3 of $_GET[foo], $_POST[foo] and $_COOKIE[foo] exist? Which one of them gets included to $_REQUEST?
A: Sometimes you might want the same script to be called with several different ways. A for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: global variables in php not working as expected I'm having trouble with global variables in php. I have a $screen var set in one file, which requires another file that calls an initSession() defined in yet another file. The initSession() declares global $screen and then processes $screen further down using the value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How can I Remove .DS_Store files from a Git repository? How can I remove those annoying Mac OS X .DS_Store files from a Git repository?
A: The following worked best for me. Handled unmatched files, and files with local modifications. For reference, this was on a Mac 10.7 system running git 1.7.4.4.
Find and remov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1653"
} |
Q: Disable output buffering Is output buffering enabled by default in Python's interpreter for sys.stdout?
If the answer is positive, what are all the ways to disable it?
Suggestions so far:
*
*Use the -u command line switch
*Wrap sys.stdout in an object that flushes after every write
*Set PYTHONUNBUFFERED env var
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "646"
} |
Q: How to overcome StackOverflowException bypassing unhandled exception handling in .NET After hitting a few StackOverflowExceptions in .NET I noticed they completely bypass the unhandled exception handlers that .NET offers (Application.ThreadException / AppDomain.UnhandledException).
This is very disturbing since we h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: C# libraries for internationalization? What libraries are there to write C# internationalized applications?
Typical functionalities that should be contained in the library:
*
*Validation of country specific data (e.g. VAT numbers, phone numbers, addresses,...)
*Validation of bank and financial coordinates (e.g. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What are good sources to study the threading implementation of a XMPP application? From my understanding the XMPP protocol is based on an always-on connection where you have no, immediate, indication of when an XML message ends.
This means you have to evaluate the stream as it comes. This also means that, probably,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Importing/exporting history from SVN to TFS Are there any import and export tools that would let us move projects into and out of team system with full history and log? Our current SCM is SVN.
PS - Sorry, I know it's a repost, but I didn't get an answer before... :)
A: I don't know if you are still interested, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can Flash save content without server-side help? As far as I know, Flash has to pass info off to another external process in order to save files - POSTing to PHP or talking to an executable, right? But every once in a while I hear rumors that Flash is able to open a file, make changes, then save/write those changes,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is my Java program leaking memory when I call run() on a Thread object? (Jeopardy-style question, I wish the answer had been online when I had this issue)
Using Java 1.4, I have a method that I want to run as a thread some of the time, but not at others. So I declared it as a subclass of Thread, then either call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How can I turn on PHP errors display on just a subfolder I don't want PHP errors to display /html, but I want them to display in /html/beta/usercomponent. Everything is set up so that errors do not display at all. How can I get errors to just show up in that one folder (and its subfolders)?
A: The easiest way would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to display latest revision in a file? I'm wondering how do you deal with displaying release revision number when pushing live new versions of your app?
You can use $Rev$ in a file to get latest revision, but only after you update the file.
What if I want to update a string in one file every time I change any fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Connectionstring error after encrypted using aspnet_regiis.exe I've encrypted the connectionstring in my web.config file using the steps in the link below:
http://www.codeproject.com/KB/database/WebFarmConnStringsNet20.aspx
However, whenever I call my application, it will give the following error:
Failed to decry... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Maximum lines of code permitted in a Java class? How many lines of code can a .java file contain? Does it depend on the JVM being used?
A: I believe there is a 64kb limit on bytecode size per method.
A: There is no limit on "lines of code", but there is a limit on total size. Each method has a 64kb limit.
I've on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How can I integrate Laconica update stream into SharePoint? I have Laconica (self hosted twitter) configured on my local intranet and would like to integrate the public stream into SharePoint site with a web part. How can I do this?
A: You can point an RSS Viewer web part at the laconi.ca public stream RSS feed an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the best source-level debugger for ColdFusion MX 2004? I have a legacy web site in ColdFusion MX 2004. I'm re-writing it in .Net, so I don't want to pay $600+ for an upgrade to the latest version of ColdFusion, nor do I want to go through the (very large) site fixing version incompatibilities.
I often have t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Identifying if 2 HTML pages are similar I'm trying to identify differences between a base case and supplied case. Looking for a library to tell me similarity in percentage or something like that.
For Example:
I've 10 different HTML pages.
* All of them are 404 responses with only one 2 lines of random code (such as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a Windows/MSVC equivalent to the -rpath linker flag? On Linux/GCC I can use the -rpath flag to change an executables search path for shared libraries without tempering with environment variables.
Can this also be accomplished on Windows? As far as I know, dlls are always searched in the executable's direct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: How to create a zip file in the same format as the Finder's "Compress" menu item? On Mac OS X, you can create a zip archive from the Finder by selecting some files and selecting "Compress" from the contextual menu or the File menu. Unfortunately, the resulting file is not identical to the archive created by the zip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Is it feasible to introduce Test Driven Development (TDD) in a mature project?
*
*Say we have realized a value of TDD too late. Project is already matured, good deal of customers started using it.
*Say automated testing used are mostly functional/system testing and there is a good deal of automated GUI testing. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How to add some non-standard font to a website? Is there a way to add some custom font on a website without using images, Flash or some other graphics?
For example, I was working on a wedding website, and I found a lot of nice fonts for that subject. But I can't find the right way to add that font on the server. And... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "571"
} |
Q: CSS list-style: none; still shows bullet I am using YUI reset/base, after the reset it sets the ul and li tags to list-style: disc outside;
My markup looks like this:
<div id="nav">
<ul class="links">
<li><a href="">Testing</a></li>
</ul>
</div>
My CSS is:
#nav {}
#nav ul li {
list-style: no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A Firefox javascript bookmarking problem I'm using the following JavaScript code:
<script language="JavaScript1.2" type="text/javascript">
function CreateBookmarkLink(title, url) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( window.external ) {
window.external.Ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/107971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.