text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I connect & administer an SQL Server database remotely over the Internet? How do I connect to an SQL Server remotely and administer my database objects? I need to connect to my database located on the web hosting company's server. I have the server name, IP address, my database username & password. I have an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: for-loop mechanism efficiency tips As I am using for-loops on large multi-dim arrays, any saving on the for-loop mechanism itself is meaningful.
Accordingly, I am looking for any tips on how to reduce this overhead.
e.g. : counting down using uint instead of int and != 0 as stop instead of >0 allows the CPU to do le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I dictate the destination folder of a clickOnce application? How do I dictate the destination folder of a clickOnce application?
A: As a further to the above, this is a security feature. Allowing websites to install software to arbitrary locations on someone's harddrive somewhat automatically is a bad idea.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can you recommend Performance Analysis tools for PHP? Can anyone recommend some useful performance analysis tools for PHP scripts? Anything that could help me find problematic or unusually slow blocks of code, details about execution time, etc. would be really helpful. I know there are tools out there, but I'm wonde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to test web-apps on mobile for free without wlan? I tried GNUBOX which use bluetooth to connect to my computer then to the internet. It's very painful to set up (under windows more than under linux, but it's still painful, it works 1 time on 3).
I own a Nokia 6630 so there is no WLAN support. Is there any emula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any performance difference in using .resx file and satellite assembly? Which is the best way to go forward while building a localized aspx web application, .resx files of satellite assemblies? Is there any performance comparisons available any where on web?
A: Well I don't know if the comparison is valid..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Deploy a Desktop Shortcut to a Device running Windows CE 4.2 (VS2005) I have an application written using VS2005 in C# targeting the Compact Framework 2.0 SP2. As part of the solution, I have CAB deploy project which deploys to the device without a problem. What I can't do is create a shortcut to my application on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Multiple repositories, single setup If I use multiple repositories, all located under a single root folder, how can I set it up so that they will use a single master svnconf/passwd file for setup but still allow me to customize each if the need arises?
This is on Windows, but I guess the process would be similar on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Easy way to embed svn revision number in page in PHP? Notice in the bottom right hand corner of this page it has the SVN revision id? I'm assuming that's dynamic.
I'd love to add that to some of my sites, just as a comment in the source to make sure code pushes are going through.
NOTE: You can also assume that the w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why Stackoverflow binds user actions dynamically with javascript? Checking the HTML source of a question I see for instance:
<a id="comments-link-xxxxx" class="comments-link">add comment</a><noscript> JavaScript is needed to access comments.</noscript>
And then in the javascript source:
// Setup our click even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Looking for up-to-date eclipse plugin for C# I used to work with eclipse for nearly all the languages I need. I'm asked to work on a tool developed in C# and so, I would like to stay in the same familiar environment.
I've found the improve's plugin but its last release is from 2004 and .NET 1.1 which is quite old. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Should I stick with the ReportViewer control or buy a third party tool? we need reports in our web application and there is the free ReportViewer Control from microsoft (normally used, to display reports from the reporting services). I like the fact, that the Report Format (.RDL-Format) from the ReportViewer is a do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Merge several native DLLs into one DLL I've got a lot of small DLLs which I would like to make into one big(er) DLL (as suggested here). I can do so by merging my projects but I would like a less intrusive way.
Can several DLLs be merged into one unit?
A quick search found this thread that claims this is not possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Do you think a software company should impose developers a coding-style? If you think it shouldn't, explain why.
If yes, how deep should the guidelines be in your opinion? For example, indentation of code should be included?
A: You want everybody reading and writing code in a standard way. There are two ways you ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Why does "abcd".StartsWith("") return true? Title is the entire question. Can someone give me a reason why this happens?
A: In C# this is how the specification tells it to react;
To be equal, value must be an empty string (Empty), a reference to this same instance, or match the beginning of this instance.
A: Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Does WWF provide BPEL integration? I've found a CTP for such integration from Microsoft,
but it seems it never was officially released and supported.
Also - Do you know a list of WWF to BPEL activities mapping?
Thanks
A: Probably we can not expect real WF-BPEL integration from Microsoft. Even the CTP that you found... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: System.Web.HttpContextWrapper2 error in sutekishop - MVC 3 I am currently try to use the sutekishop .Net CMS product but am getting the error
"Could not load type 'System.Web.HttpContextWrapper2'..."
Is this an MVC assembly mismatch? i have uninstalled mvc 5 and installed 3 (required according to the set up) but am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to sandbox Apache on Linux I have Apache running on a public-facing Debian server, and am a bit worried about the security of the installation. This is a machine that hosts several free-time hobby projects, so none of us who use the machine really have the time to constantly watch for upstream patches, stay... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: A universal reflections API? Some time back I was working on an algorithm that processed code, and required a reflections API. We were interested in its implementation for multiple languages, but the reflections API for a language would not work for any other language. So is there any thing like a "universal reflect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I write a shell script to direct grep data into a date-based filename? I basically want to do this:
grep 'example.com' www_log > example.com.YYYY-MM-DD-H:i:S.log
...with of course the filename being example.com.2008-09-27-11:21:30.log
I'd then put this in crontab to run daily.
A: The verbose method:
grep '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Finding Frequency of numbers in a given group of numbers Suppose we have a vector/array in C++ and we wish to count which of these N elements has maximum repetitive occurrences and output the highest count. Which algorithm is best suited for this job.
example:
int a = { 2, 456, 34, 3456, 2, 435, 2, 456, 2}
the outp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Free set of forms, icons, styles, etc for web-based admin interfaces Is there any free set of forms, icons, styles, images, etc for building web-based admin interfaces? If yes, which is the best?
A: Tango icons is a set of free-as-in-speech icons. It is covered under CC Attribution Share Alike 2.5 license, so it sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Existing Standard Style and Coding standard documents The following have been proposed for an upcoming C++ project.
*
*C++ Coding Standards, by Sutter and Alexandrescu
*JSF Air Vehicle C++ coding standards
*The Elements of C++ Style
*Effective C++ 3rd Edition, by Scott Meyers
Are there other choices? Or is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Creating, opening and printing a word file from C++ I have three related questions.
I want to create a word file with a name from C++. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do it manually and I want to be able ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What continuous integration tool is best for a C++ project? Cruisecontrol and Hudson are two popular continuous integration systems. Although both systems are able to do the automated continuous builds nicely, it just seems a lot easier to create a batch or bash build script, then use Windows scheduler or cron to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Text difference algorithm I need an algorithm that can compare two text files and highlight their difference and ( even better!) can compute their difference in a meaningful way (like two similar files should have a similarity score higher than two dissimilar files, with the word "similar" defined in the normal ter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: What is the best practice when having a terminate clause...see explanation :) The case goes as following:
You have a Boolean property called FullScreenEnabled. You enter some method, and the code within this method is executed iff FullScreenEnabled is true. Which of the 2 approaches below do you use in your everyday... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are some recommendations for porting C++ code to the MacOS? For a upcoming project, there are plans to port the existing C++ code that compiles on Windows and Linux to the MacOS(leopard). The software is command line application, but a GUI front end might be planned. The MacOS uses the g++ compiler. By having... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Deploying database for ASP .NET Website I was just browsing through questions on stack overflow, and i've come up to a post where it suggests of deploying database by simply copying the mdf file in the app_data folder and modifying your connection string.
I know that some people do create an mdf file in the app_cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to properly setup a multi module SpringMVC application created by appfuse in Eclipse? I am trying to setup a multi module SpringMVC appfuse applicaiton in Eclipse but it seems that I'm facing lots of errors in Eclipse after I import the project in Eclipse. Can anyone please help me with a step by step guideline ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Use of Cron jobs in Google App Engine How can I use Cron on Google App Engine?
A: Google has officially enabled cron in the AppEngine, for more details check:
Cron for Python:
http://code.google.com/appengine/docs/python/config/cron.html
Cron for Java:
http://code.google.com/appengine/docs/java/config/cron.html
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Tool to compare large numbers of PDF files? I need to compare large count of PDF files for it optical content. Because the PDF files was created on different platforms and with different versions of the software there are structural differences. For example:
*
*the chunking of text can be different
*the write or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: How to approach something complex? You know that particular part of your code that is essential for the project but will probably take a lot of time to get it done? Do you ever get the feeling that you'd rather work on something else (probably less important) or not code at all instead of working on that part? That ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Relational Database Design Patterns? Design patterns are usually related to object oriented design.
Are there design patterns for creating and programming relational databases?
Many problems surely must have reusable solutions.
Examples would include patterns for table design, stored procedures, triggers, etc...
Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "293"
} |
Q: Combining Lisp and PHP code in the same application At the moment I use PHP for almost everything I develop for the Web but its linguistic limitations are starting to annoy me. However, as I developed some practices and maintain some PHP libraries that help me a lot, I don't feel I'd be ready to just switch to LISP ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: gu and pc command of Windbg Could anyone show me a sample about how to use these two commands in Windbg please? I read the document in debugger.chm, but confused. I did search in Google and MSDN, but not find an easy to learn sample.
A: Think in terms of function levels as per the following pseudo-code:
1 x = 0
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What techniques do you use to maximise code reuse? Some years ago I was told about a study into code reuse. Apparently it was found that, on average, programmers have a 7 minute window when searching for code to reuse. If they don't find code that suits their needs within that window they'll write their own.
This wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Best way to validate user input JDBC? Is there a built-in way to escape user input in java using the JDBC? Something similar to the php version mysql_real_escape() function. What's the best way to validate input?
A: If you mean how do you make sure user input can't be used in SQL injection attacks, the way to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the various "Build action" settings in Visual Studio project properties and what do they do? For the most part, you just take whatever Visual Studio sets it for you as a default... I'm referring to the BuildAction property for each file selected in Solution Explorer. There are a number of options and it's d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "898"
} |
Q: FAT-16 on modern OS I've got a project that was written in BASIC. I'm not sure of the exact reason, but the app will not function except when being run from a FAT-16 file system.
I'd rather try to set up an environment that will support this app in a modern OS (Vista/XP) instead of rewriting it.
Does anyone know ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: .gdbinit config file conflict with Xcode debugging I've a fairly huge .gdbinit (hence not copied here) in my home directory.
Now if I want to debug code inside Xcode I get this error:
Failed to load debugging library at:
/Developer/Applications/Xcode.app/Contents/PlugIns/GDBMIDebugging.xcplugin/Contents/Resources/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How you design Controller layer of MVC design pattern in .NET Here are my thoughts: The purpose of using MVC is seperation of concerns and testability of gui logic. View should be able to work with different models and model should be able to work with different views.
I think controller class must implement an inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Firefox Sidebar and Document object of DOM There is a webpage loaded in the firefox sidebar and another webpage loaded in the main document. Now, how do I ask access the main document object through the Firefox sidebar? An example to do this through Javascript code in the firefox sidebar document to access the main ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: DLL-s using C++ on Linux I have tried to find how to create DLL-s on linux using google, but got very confusing information.
Is it possible to write dynamic link libraries on linux? If not, are there other means by which I can call code in another module from several running programs?
A: As Sklivvz has said, the te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Podcasts about JavaScript programming As a passionate JavaScript developer, I'd like to know if there's any quality Podcasts out there, devoted to JavaScript. (Both video and audio).
I am currently subscribing to:
*
*YUI Theater
*Audible Ajax
A: I really like the yayquery podcast (http://yayquery.com/)
There's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Open source or free testing solution
*
*Is there a open source or free suite that can integrate testcases, tests, bugs and possibly the fixes(source code) together. Maintaining the requirements in this system is not a necessity (though, it would be nice to enter a requirement id for each testcase in a custom field... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Favorite image file format for 2d sprites What is your favorite, lossless image format for games (namely 2d games)? And why?
Some things to take into consideration are size on disk, overhead for converting to a usable format, and features of the format (ie alpha support).
There is no best answer, but be sure to back... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: .NET: What is the status of the Castle Project? Clicking through to the download-page if see that the last version of the download is over one year old and it's also "just" a Release Candidate of version 1.0. There are really no news on any development.
Yes, you can find newer versions from the nightly builds, but t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Targeting both 32bit and 64bit with Visual Studio in same solution/project I have a little dilemma on how to set up my visual studio builds for multi-targeting.
Background: c# .NET v2.0 with p/invoking into 3rd party 32 bit DLL's, SQL compact v3.5 SP1, with a Setup project.
Right now, the platform target is set to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: Compile-time type based dispatch Following techniques from 'Modern C++ Design', I am implementing a persistence library with various compile-time optimisations. I would like the ability to dispatch a function to a templated member variable if that variable derives from a given class:
template<class T, template <clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Including Relevant Boost Libraries with C++ Source (Using Visual Studio) I have a project I'm working on (for school) that I'm digging into the Boost libraries for the solutions. I need some way to distribute the required Boost source code with my application so that it can be compiled without the libraries being in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Benefits of inline functions in C++? What is the advantages/disadvantages of using inline functions in C++? I see that it only increases performance for the code that the compiler outputs, but with today's optimized compilers, fast CPUs, huge memory etc. (not like in the 1980< where memory was scarce and everything ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "273"
} |
Q: What are the most useful data structures to know inside out? I'm interested in finding out what people would consider the most useful data structures to know in programming. What data structure do you find yourself using all the time?
Answers to this post should help new programmers interested in finding a useful d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Unable to access HTTP PUT data in webservice code All,
As part of an application I'm writing I need to have a HTTP PUT webservice which accepts incoming imagedata, which will by analyzed, validated, and added to a local file store.
My issue arises after the size validation as the
$_SERVER['CONTENT_LENGTH']
has a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I join int[] to a character-separated string in .NET? I have an array of integers:
int[] number = new int[] { 2,3,6,7 };
What is the easiest way of converting these into a single string where the numbers are separated by a character (like: "2,3,6,7")?
I'm using C# and .NET 3.5.
A: String.Join(";", number.S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: Best Java/Swing browser component? What's the best cross platform Java Swing browser component at least able to play nicely in a swing interface (lightweight component ?) and able to run on MacOSX and Windows ?
Things like : FlyingSaucer, JDIC, maybe others ?
A: The Lobo Browser could be what you're looking for:
ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: How do I get a stack trace in OCaml? The Objective Caml language will only produce stack traces if you ask for them just right - what are the requirements for both bytecode and native code?
A: Because it looks like you can only get traces for exceptions on unix you can fork and throw the exception in the second pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Which image format is cost effective in terms of network operation for iPhone? I want to display a thumbnail image in a cell of tableViewController, this thumbnail image is located at some remote place (URL of address is in XML file) so which format of image is cost effective?
A: Create a sample thumbnail, convert ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to set a menubar icon on mac osx using wx I could not find any pointers on how to create a menubar icon on OSX using wx. I originally thought that the wxTaskBarIcon class would do, but it actually creates an icon on the Dock. On Windows, wxTaskBarIcon creates a Systray icon and associated menu, and I would think... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I determine that Windows Installer is performing an upgrade rather than a first time install? I have an install that upgrades a previous version of an app if it exits. I'd like to skip certain actions when the install is upgrade mode. How can I determine if the install is running in upgrade mode vs. first ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I see what is in my heap in Java? I've managed to get a memory 'leak' in a java application I'm developing. When running my JUnit test suite I randomly get out of memory exceptions (java.lang.OutOfMemoryError).
What tools can I use to examine the heap of my java application to see what's using up all my heap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: What is the first thing you do when you install Visual Studio? What is the first thing you do when you install Visual Studio? I am talking about anything customization-wise (so we don't get answers based on 'I create a new project').
Do you have a favorite font?
Do you have a must have extension you couldn't possib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Sql design problem - items in multiple sections I've got a sections table, and an items table.
The problem is each item may be in one or more sections, so a simple 'section_id' for each item won't work, and sql doesn't have a way to store arrays where I can do say "WHERE 5 in section_ids"...
I've considered storing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I setup LookAndFeel Files in Java? I need to setup LookAndFeel Files in JDK 1.6.
I have two files:
*
*napkinlaf-swingset2.jar
*napkinlaf.jar
How can I set this up and use it?
I would like a GTK look and feel OR Qt look and feel, Are they available?
A: This page explains how the work with Look&Feels:
htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/145972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Making Eclipse behave like Visual Studio I'm doing some Android development, and I much prefer Visual Studio, but I'll have to use Eclipse for this.
Has anyone made a tool which can make Eclipse look and behave more like visual studio? I mainly can't stand its clippyesqe suggestions on how I should program (Yes, I k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Why is half of my compiled (small) objective-C file a large block of zeroes? I opened up my compiled Hello World Obj-C application in a text editor and, to my surprise, I found about 8 kilobytes of 00 00 00 00 00 00 00 00 ....
Why are these here? Is there a way to clear out these zeroes (which I doubt have too much... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Near Sorting Algorithms - When to use? From time to time I browse the web and look for interesting algorithms and datastructures to put into my bag of tricks. A year ago I came across the Soft Heap data-structure and learned about near sorting.
The idea behind this is that it's possible to break the O(n log n) barri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Emacs: How do you store the last parameter supplied by the user as the default? I'm writing an interactive function that I'd like to have remember the last argument the user supplied and use it as the default.
(defun run-rake (param)
(interactive "sTask: ")
(shell-command (format "rake %s" task)))
The first t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Storing a complete graph in a RDBMS I have several types of entities, each with their own fields, which are stored in separate tables.
Each record in such a table may be connected to zero or more records in a different table, i.e., linked to records from different entity types.
If I go with lookup tables, I get (m(m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Weblogic add-on to serialize web service calls Is there a prebuilt tool that would integrate with BEA/Oracle Weblogic 10.0 and trace on a database table each call to a web service exposed by the server?
UPDATE: the goal is not to debug the web services (they are working well). The objective is to trace each call on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to programmatically change a user's screen saver and/or desktop background? I have been asked to standardize the screen saver and desktop background used by everyone in my company and, aside from going around to each PC individually, I'm looking for a programmatic way to accomplish this. I am not a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How should I organize the contents of my CSS file(s)? This question is about organizing the actual CSS directives themselves within a .css file. When developing a new page or set of pages, I usually just add directives by hand to the .css file, trying to refactor when I can. After some time, I have hundreds (or th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: What are the limitations of refactoring? I'm making a study on refactoring limitations on improving existing software architecture and I would be interested to hear your experiences where you have found refactoring to be not enough or still too immature to accomplish your goals.
A: Refactoring can be risky
Refactor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove illegal characters from path and filenames? I need a robust and simple way to remove illegal path and file characters from a simple string. I've used the below code but it doesn't seem to do anything, what am I missing?
using System;
using System.IO;
namespace ConsoleApplication1
{
class Program
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "574"
} |
Q: OpenGL: How to do RGBA->RGBA blitting without changing destination alpha I have an OpenGL RGBA texture and I blit another RGBA texture onto it using a framebuffer object. The problem is that if I use the usual blend functions with
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA),
the resulting blit causes the dest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is my form password being passed in clear text? This is what my browser sent, when logging into some site:
POST http://www.some.site/login.php HTTP/1.0
User-Agent: Opera/8.26 (X2000; Linux i686; Z; en)
Host: www.some.site
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to rotate and fade background images in and out with javascript/ASP.NET/CSS I need to randomly fade my background images in and out.
It will be a timed function, like once every 5 seconds.
I need to do it with ASP.NET, Javascript, CSS or all three.
Please help me out here guys. Thank you.
A: Cycle, a jQuery pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: targeting specific frawework version in csc.exe How do you specify a target framework version for the csc.exe c# compiler via command-line invocation (e.g., no .csproj file and not going thru the MSBUILD engine)?
e.g, using the C# 3.0 csc.exe compiler, how do you compile to IL targeting the 2.0 .net framework?
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is Fortran easier to optimize than C for heavy calculations? From time to time I read that Fortran is or can be faster then C for heavy calculations. Is that really true? I must admit that I hardly know Fortran, but the Fortran code I have seen so far did not show that the language has features that C doesn't have.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "453"
} |
Q: How Can I Get Touch Events in an iPhone App's Hidden Status Bar's Area? I have an iPhone app that hides the status bar. However, my main view doesn't get any touch events when I tap in the status bar area. Is there something I can do to fix this?
Here are a few details of my app's setup (in case it matters):
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Duplicate keys in .NET dictionaries? Are there any dictionary classes in the .NET base class library which allow duplicate keys to be used? The only solution I've found is to create, for example, a class like:
Dictionary<string, List<object>>
But this is quite irritating to actually use. In Java, I believe a Mult... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "290"
} |
Q: What do you use for fixed point representation in C++? I'm looking for a fixed-point standard to use for financial data, do you know any that is worth trying? Do you have any experience on the performance of that hand-made fixed-point classes?
A: Dr.Dobb's has an article about a possible implementation of fixed-poi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Best way to search in a table and get results and number of results (MySQL) I have a table of "items", and a table of "itemkeywords".
When a user searches for a keyword, I want to give him one page of results plus the total number of results.
What I'm doing currently is (for a user that searches "a b c":
SELECT DI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: nant: Can I extract the last directory in a path? In Nant, I would like to be able to extract the last name of the directory in a path.
For example, we have the path 'c:\my_proj\source\test.my_dll\'
I would like to pass in that path and extract 'test.my_dll'
Is there a way to easily do this?
A: You can actually do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Push or Pull? Turning keypresses into velocity for in-game vehicles Should I push keypresses to vehicles when they're pressed, or should vehicles pull keys pressed from the engine?
I have a vehicle object, which has location, velocity and accelleration members (among other things) and an update method, during which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Change WPF DataTemplate for ListBox item if selected I need to change the DataTemplate for items in a ListBox depending on whether the item is selected or not (displaying different/more information when selected).
I don't get a GotFocus/LostFocus event on the top-most element in the DataTemplate (a StackPanel) when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: Default pass-by-reference semantics in C++ EDIT: This question is more about language engineering than C++ itself. I used C++ as an example to show what I wanted, mostly because I use it daily. I didn't want to know how it works on C++ but open a discussion on how it could be done.
That's not the way it works right ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Function pointer to template class member functions I have a templated class defined (in part) as
template <class T> MyClass
{
public:
void DoSomething(){}
};
If I want to call DoSomething from another class, but be able to do this for multiple 'T' types in the same place, I am stuck for an idea as method functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Manpage scandir() prototype weirdness I have a problem with scandir(): The manpage contains this as prototype:
int scandir(const char *dir, struct dirent ***namelist,
int (*filter)(const struct dirent *),
int (*compar)(const struct dirent **, const struct dirent **));
Therefore I have this:
static inline int
Ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Hidden Features of Xcode With a huge influx of newbies to Xcode, I'm sure there are lots of Xcode tips and tricks to be shared.
What are yours?
A: Open Quickly...
*
*Command ⌘ Shift ⇧ D
*File > Open Quickly...
I'm a big fan of the Open Quickly feature, which is particularly good in Xcode 3.1 and later. When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "338"
} |
Q: Organizing classes into namespaces Are there some principles of organizing classes into namespaces?
For example is it OK if classes from namespace N depends on classes from N.X?
And if classes from N.X depends on classes from N?
A: In general, that should be fine for your example, if your packages were "N.UI" and "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: immutable class should be final? It says in this article that:
Making a class final because it is immutable is a good reason to do so.
I'm a bit puzzled by this... I understand that immutability is a good thing from the POV of thread-safety and simplicity, but it seems that these concerns are somewhat orthogonal ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Ideal number of classes per namespace branch What number of classes do you think is ideal per one namespace "branch"? At which point would one decide to break one namespace into multiple ones? Let's not discuss the logical grouping of classes (assume they are logically grouped properly), I am, at this point, focused... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Enhancing Performance in Real-Time Systems First, I'd like to establish the acceptable end-to-end latency for a real-time system in the financial world is less than 200ms. Okay, here's what I'm after. In the design of real-time systems, there are "design patterns" (or techniques) that will increase the performance (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Snippets for C++ in VS2008 Does someone know of any port to VS2008 of the support for snippets for C++?
VS2005 had a nice enhancement pack:
Microsoft Visual Studio 2005 IDE Enhancements
But the snippets for C++ feature is not supported in VS2008. I already tryed to use the SDK to reimplement it but gave up out of la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting PHP variables in httpd.conf? I'd like to automatically change my database connection settings on a per-vhost basis, so that I don't have to edit any PHP code as it moves from staging to live and yet access different databases. This is on a single dedicated server.
So I was wondering, can I set a PHP variable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Efficiently merge string arrays in .NET, keeping distinct values I'm using .NET 3.5. I have two string arrays, which may share one or more values:
string[] list1 = new string[] { "apple", "orange", "banana" };
string[] list2 = new string[] { "banana", "pear", "grape" };
I'd like a way to merge them into one array ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Python scope: "UnboundLocalError: local variable 'c' referenced before assignment" I am trying to figure out this:
c = 1
def f(n):
print c + n
def g(n):
c = c + n
f(1) # => 2
g(1) # => UnboundLocalError: local variable 'c' referenced before assignment
Thanks!
A: Errata for Greg's post:
There should be no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: What is your smallish web development company setup? I work for a small web development company (only 2 to 3 developers) that work on a wide range of projects for different customers (everything from CMS's to eCommerce sites).
Usually we work on our own projects but occasionally we need to work together on one. We ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Asp.Net MVC: How do I get Html.ActionLink to render integer values properly? I have an asp.net mvc application with a route similar to:
routes.MapRoute("Blog",
"{controller}/{action}/{year}/{month}/{day}/{friendlyName}",
new { controller = "Blog", action = "Index", id = "", friendl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/146367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.