text
stringlengths
8
267k
meta
dict
Q: Is there any way to prevent find from digging down recursively into subdirectories? When I do: $ find / It searches the entire system. How do I prevent that? (This question comes from an "answer" to another question.) A: G'day, Just wanted to expand on the suggestion from Jon to use -prune. It isn't the easiest o...
{ "language": "en", "url": "https://stackoverflow.com/questions/27077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: IE6 security login (debugging via VirtualPC) I am debugging my ASP.NET application on my Windows XP box with a virtual directory set up in IIS (5.1). I am also running VirtualPC with XP and IE6 for testing purposes. When I connect to my real machine from the virtual machine, I enter the URL: http://machinename/proje...
{ "language": "en", "url": "https://stackoverflow.com/questions/27078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The Google Calculator Glitch, could float vs. double be a possible reason? I did this Just for kicks (so, not exactly a question, i can see the downmodding happening already) but, in lieu of Google's newfound inability to do math correctly (check it! according to google 500,000,000,000,002 - 500,000,000,000,001 = 0)...
{ "language": "en", "url": "https://stackoverflow.com/questions/27095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Perfmon File Analysis Tools I have a bunch of perfmon files that have captured information over a period of time. Whats the best tool to crunch this information? Idealy I'd like to be able to see avg stats per hour for the object counters that have been monitored. A: From my experience, even just Excel makes a pret...
{ "language": "en", "url": "https://stackoverflow.com/questions/27108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Charting library for Java and .Net Can anyone recommend a library for chart generation (bar charts, pie charts etc.) which runs on both Java and .Net? A: ChartDirector is fantastic and supports more than just Java and .NET. A: Have you looking into using JFreeChart. I have used it on a few Java projects and its ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/27129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone app that access the Core Location framework over web I was wondering if I could access the iPhones Core Location framework over a website? My goal is to build a webapp/website that the iPhone would browse to, then upload its current GPS location. This would be a simple site primary for friends/family so we co...
{ "language": "en", "url": "https://stackoverflow.com/questions/27138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: merge rss feeds I want to merge multiple rss feeds into a single feed, removing any duplicates. Specifically, I'm interested in merging the feeds for the tags I'm interested in. [A quick search turned up some promising links, which I don't have time to visit at the moment] Broadly speaking, the ideal would be a re...
{ "language": "en", "url": "https://stackoverflow.com/questions/27148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Development resources for Mono on PS3 I have been considering taking the plunge and installing Linux on my Playstation 3. As C# is my current language of choice, the next logical step would be to install Mono. I have done a little research and found that http://psubuntu.com/wiki/InstallationInstructions has instruc...
{ "language": "en", "url": "https://stackoverflow.com/questions/27153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can fogbugz track case dependencies? Can fogbugz track case dependencies? A: Yes and no. Cases can be linked to each other, but if you're looking for a tree of cases (prerequisites and such), you need FogBugz 7 or later. If you're using FogBugz 7.3 or greater, you can now use the Case Dependency Plugin, which was r...
{ "language": "en", "url": "https://stackoverflow.com/questions/27195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What are the benefits of using partitions with the Enterprise edition of SQL 2005 I'm comparing between two techniques to create partitioned tables in SQL 2005. * *Use partitioned views with a standard version of SQL 2005 (described here) *Use the built in partition in the Enterprise edition of SQL 2005 (describ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Keeping key value pairs together in HTML with jQuery? Given a select with multiple option's in jQuery. $select = $("<select></select>"); $select.append("<option>Jason</option>") //Key = 1 .append("<option>John</option>") //Key = 32 .append("<option>Paul</option>") //Key = 423 How should the key be s...
{ "language": "en", "url": "https://stackoverflow.com/questions/27219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to convert std::string to LPCWSTR in C++ (Unicode) I'm looking for a method, or a code snippet for converting std::string to LPCWSTR A: I prefer using standard converters: #include <codecvt> std::string s = "Hi"; std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter; std::wstring wide = converter.fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/27220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "141" }
Q: DOM manipulation in PHP I am looking for good methods of manipulating HTML in PHP. For example, the problem I currently have is dealing with malformed HTML. I am getting input that looks something like this: <div>This is some <b>text As you noticed, the HTML is missing closing tags. I could use regex or an XML Pars...
{ "language": "en", "url": "https://stackoverflow.com/questions/27222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Why aren't Enumerations Iterable? In Java 5 and above you have the foreach loop, which works magically on anything that implements Iterable: for (Object o : list) { doStuff(o); } However, Enumerable still does not implement Iterable, meaning that to iterate over an Enumeration you must do the following: for(; e.h...
{ "language": "en", "url": "https://stackoverflow.com/questions/27240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: Where can I learn jQuery? Is it worth it? I've had a lot of good experiences learning about web development on w3schools.com. It's hit or miss, I know, but the PHP and CSS sections specifically have proven very useful for reference. Anyway, I was wondering if there was a similar site for jQuery. I'm interested in le...
{ "language": "en", "url": "https://stackoverflow.com/questions/27242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "126" }
Q: NHibernate 1.2 to 2.0 migration What kinds of considerations are there for migrating an application from NHibernate 1.2 to 2.0? What are breaking changes vs. recommended changes? Are there mapping issues? A: Breaking changes in NHibernate 2.0 If you have good test coverage it's busywork. Edit: We upgraded this mor...
{ "language": "en", "url": "https://stackoverflow.com/questions/27243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Could you recommend some guides about Epoll on Linux I need to know about Epoll On linux System. Could you recommend manual or guides about epoll library? need more detailed guides. it's better to have some examples. help me. and Thank you for reading. A: Here's an introduction to Epoll, a pretty basic tutorial: ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/27247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Is there a tool for reformatting C# code? I am looking for a (preferably) command-line tool that can reformat the C# source code on a directory tree. Ideally, I should be able to customize the formatting. Bonus points if the tool can be run on Mono (or Linux). A: You could also try NArrange to reformat your code. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: ASP.NET JavaScript Callbacks Without Full PostBacks? I'm about to start a fairly Ajax heavy feature in my company's application. What I need to do is make an Ajax callback every few minutes a user has been on the page. * *I don't need to do any DOM updates before, after, or during the callbacks. *I don't need ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Avoid traffic shaping by using ssh on port 443 I heard that if you use port 443 (the port usually used for https) for ssh, the encrypted packets look the same to your isp. Could this be a way to avoid traffic shaping/throttling? A: I'm not sure it's true that any given ssh packet "looks" the same as any given https...
{ "language": "en", "url": "https://stackoverflow.com/questions/27266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Delete Amazon S3 buckets? I've been interacting with Amazon S3 through S3Fox and I can't seem to delete my buckets. I select a bucket, hit delete, confirm the delete in a popup, and... nothing happens. Is there another tool that I should use? A: With s3cmd: Create a new empty directory s3cmd sync --delete-removed e...
{ "language": "en", "url": "https://stackoverflow.com/questions/27267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: How do I save a datagrid to excel in vb.net? I know that this should be easy but how do I export/save a DataGridView to excel? A: You can use this library for more detailed formatting http://www.carlosag.net/Tools/ExcelXmlWriter/ There are samples in the page. A: Does it need to be a native XLS file? Your best bet...
{ "language": "en", "url": "https://stackoverflow.com/questions/27288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best solution for maintaining backup and revision control on live websites? What is the best solution for maintaining backup and revision control on live websites? As part of my job I work with several live websites. We need an efficient means of maintaining backups of the live folders over time. Additi...
{ "language": "en", "url": "https://stackoverflow.com/questions/27292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Abstract Factory Design Pattern I'm working on an internal project for my company, and part of the project is to be able to parse various "Tasks" from an XML file into a collection of tasks to be ran later. Because each type of Task has a multitude of different associated fields, I decided it would be best to repres...
{ "language": "en", "url": "https://stackoverflow.com/questions/27294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Databind RenderTransform Scaling in Silverlight 2 Beta 2 Anyone know if it's possible to databind the ScaleX and ScaleY of a render transform in Silverlight 2 Beta 2? Binding transforms is possible in WPF - But I'm getting an error when setting up my binding in Silverlight through XAML. Perhaps it's possible to do i...
{ "language": "en", "url": "https://stackoverflow.com/questions/27303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I install the php_gd2 extension in MAMP on a Mac? I'm running MAMP 1.7.2 on a Mac and I'd like to install the extension php_gd2. How do I do this? I know that on Windows using WAMP I'd simply select the php_gd2 entry in the extensions menu to activate it. How is it done when using MAMP? I know that I can d...
{ "language": "en", "url": "https://stackoverflow.com/questions/27345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: RSync only if filesystem is mounted I want to setup a cron job to rsync a remote system to a backup partition, something like: bash -c 'rsync -avz --delete --exclude=proc --exclude=sys root@remote1:/ /mnt/remote1/' I would like to be able to "set it and forget it" but what if /mnt/remote1 becomes unmounted? (After ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Should websites expand on window resize? I'm asking this question purely from a usability standpoint! Should a website expand/stretch to fill the viewing area when you resize a browser window? I know for sure there are the obvious cons: * *Wide columns of text are hard to read. *Writing html/css using percents c...
{ "language": "en", "url": "https://stackoverflow.com/questions/27381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the fastest way to multiply a 16-bit integer with a double? On an 8-bit micro controller I would like to do the following: 16bit_integer = another_16bit_integer * 0.997; with the least possible number of instructions. A: How about integer arithmetic in 32 bits? 16bit_integer = (int16_t) (another_16bit_integ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What does "VM Size" mean in the Windows Task Manager? Virtual memory from a computer size perspective is [a way to make the program] think it has a large range of contiguous addresses; but in reality the parts it is currently using are scattered around RAM, and the inactive parts are saved in a disk fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/27407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: MySQL vs PostgreSQL for Web Applications I am working on a web application using Python (Django) and would like to know whether MySQL or PostgreSQL would be more suitable when deploying for production. In one podcast Joel said that he had some problems with MySQL and the data wasn't consistent. I would like to know ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "134" }
Q: Is there a rake task for backing up the data in your database? Is there a rake task for backing up the data in your database? I already have my schema backed up, but I want to make a backup of the data. It's a small MySQL database. A: The below script is a simplified version taken from eycap, specifically from th...
{ "language": "en", "url": "https://stackoverflow.com/questions/27442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does Mono support System.Drawing and System.Drawing.Printing? I'm attempting to use Mono to load a bitmap and print it on Linux but I'm getting an exception. Does Mono support printing on Linux? The code/exception are below: EDIT: No longer getting the exception, but I'm still curious what kind of support there is...
{ "language": "en", "url": "https://stackoverflow.com/questions/27455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Timeout not being honoured in connection string I have a long running SQL statement that I want to run, and no matter what I put in the "timeout=" clause of my connection string, it always seems to end after 30 seconds. I'm just using SqlHelper.ExecuteNonQuery() to execute it, and letting it take care of opening c...
{ "language": "en", "url": "https://stackoverflow.com/questions/27472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Email SMTP validator I need to send hundreds of newsletters, but would like to check first if email exists on server. It's called SMTP validation, at least I think so, based on my research on Internet. There's several libraries that can do that, and also a page with open-source code in ASP Classic (http://www.cove...
{ "language": "en", "url": "https://stackoverflow.com/questions/27474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Commenting on LaTeX PDF documents with PDF reader Im currently writing my bachelor thesis with latex and using TexnicCenter. I want to be able to send my generated pdf file to people and they should be able to write comments. It seems like commenting is not allowed by default, how do I change this? I am using straig...
{ "language": "en", "url": "https://stackoverflow.com/questions/27482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: C++ Memory management I've learned in College that you always have to free your unused Objects but not how you actually do it. For example structuring your code right and so on. Are there any general rules on how to handle pointers in C++? I'm currently not allowed to use boost. I have to stick to pure c++ because...
{ "language": "en", "url": "https://stackoverflow.com/questions/27492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is Multiversion Concurrency Control (MVCC) and who supports it? Recently Jeff has posted regarding his trouble with database deadlocks related to reading. Multiversion Concurrency Control (MVCC) claims to solve this problem. What is it, and what databases support it? updated: these support it (which others?) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Detecting an undefined object property How do I check if an object property in JavaScript is undefined? A: I believe there are a number of incorrect answers to this topic. Contrary to common belief, "undefined" is not a keyword in JavaScript and can in fact have a value assigned to it. Correct Code The most robust ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3178" }
Q: Generating gradients programmatically? Given 2 rgb colors and a rectangular area, I'd like to generate a basic linear gradient between the colors. I've done a quick search and the only thing I've been able to find is this blog entry, but the example code seems to be missing, or at least it was as of this posting. An...
{ "language": "en", "url": "https://stackoverflow.com/questions/27532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: ASP.NET AJAX and PageRequestManagerParserErrorException Has anyone run into this error message before when using a timer on an ASP.NET page to update a DataGrid every x seconds? Searching google yielded this blog entry and many more but nothing that seems to apply to me yet. The full text of the error message be...
{ "language": "en", "url": "https://stackoverflow.com/questions/27535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do you have any recommended File templates for resharper for VB.Net The ones that stick out and make life usefull. A: Here is one for a testClass with Nunit support. Imports Nunit.FrameWork Namespace $NAMESPACE$ ''' ''' A TestClass ''' ''' _ Public Class $CLASSNAME$ #Region " ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle write to file I am running oracle and have a query which pulls some results from the database. I would like to write the results as a text file. How would I go about doing this? My prefered way would be by using UTL_FILE. Would some one have an example of how to do this? A: If you're using Sql Plus, is as ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/27562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where can I learn more about PyPy's translation function? I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world piece of code...
{ "language": "en", "url": "https://stackoverflow.com/questions/27567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Assembler IDE/Simulator for beginner I'd like to learn how to program in Assembler. I've done a bit of assembly before (during my A-Level Computing course) but that was very definitely a simplified 'pseudo-assembler'. I've borrowed my Dad's old Z80 Assembler reference manual, and that seems quite interesting so if p...
{ "language": "en", "url": "https://stackoverflow.com/questions/27568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Find number of files with a specific extension, in all subdirectories Is there a way to find the number of files of a specific type without having to loop through all results inn a Directory.GetFiles() or similar method? I am looking for something like this: int ComponentCount = MagicFindFileCount(@"c:\windows\syste...
{ "language": "en", "url": "https://stackoverflow.com/questions/27570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: JavaServiceWrapper on 64bit linux, any problems? We've been using the 32bit linux version of the JavaServiceWrapper for quite a while now and it's working perfectly. We are now considering also using it on 64bit linux systems. There are downloads for 64bit binaries on the website, but looking into Makefile for the 6...
{ "language": "en", "url": "https://stackoverflow.com/questions/27572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When to choose checked and unchecked exceptions In Java (or any other language with checked exceptions), when creating your own exception class, how do you decide whether it should be checked or unchecked? My instinct is to say that a checked exception would be called for in cases where the caller might be able to r...
{ "language": "en", "url": "https://stackoverflow.com/questions/27578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "260" }
Q: What issues should be considered when overriding equals and hashCode in Java? What issues / pitfalls must be considered when overriding equals and hashCode? A: A clarification about the obj.getClass() != getClass(). This statement is the result of equals() being inheritance unfriendly. The JLS (Java language specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/27581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "617" }
Q: How can I make "jconsole" work with Websphere 6.1? I've deployed some Managed Beans on WebSphere 6.1 and I've managed to invoke them through a standalone client, but when I try to use the application "jconsole" distributed with the standard JDK can can't make it works. Has anyone achieved to connect the jconsole wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/27598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: 'Reliable' SMS Unicode & GSM Encoding in PHP (Updated a little) I'm not very experienced with internationalization using PHP, it must be said, and a deal of searching didn't really provide the answers I was looking for. I'm in need of working out a reliable way to convert only 'relevant' text to Unicode to send in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/27599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Is this code an abuse of STL's find_if? Let's say I have a list of server names stored in a vector, and I would like to contact them one at a time until one has successfully responded. I was thinking about using STL's find_if algorithm in the following way: find_if(serverNames.begin(), serverNames.end(), ContactServ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I add (simple) tracing in C#? I want to introduce some tracing to a C# application I am writing. Sadly, I can never really remember how it works and would like a tutorial with reference qualities to check up on every now and then. It should include: * *App.config / Web.config stuff to add for registering T...
{ "language": "en", "url": "https://stackoverflow.com/questions/27610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: Unix shell file copy flattening folder structure On the UNIX bash shell (specifically Mac OS X Leopard) what would be the simplest way to copy every file having a specific extension from a folder hierarchy (including subdirectories) to the same destination folder (without subfolders)? Obviously there is the problem ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How to enable the TRACE macro in Release mode? The TRACE macro can be used to output diagnostic messages to the debugger when the code is compiled in Debug mode. I need the same messages while in Release mode. Is there a way to achieve this? (Please do not waste your time discussing why I should not be using TRACE i...
{ "language": "en", "url": "https://stackoverflow.com/questions/27622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Integrating Qt into legacy MFC applications We currently maintain a suit of MFC applications that are fairly well designed, however the user interface is beginning to look tired and a lot of the code is in need quite a bit of refactoring to tidy up some duplication and/or performance problems. We make use of quite ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is there a library for rendering basic flow diagrams in Javascript/CSS? On a web page I want to dynamically render very basic flow diagrams, i.e. a few boxes joined by lines. Ideally the user could then click on one of these boxes (DIVs?) and be taken to a different page. Resorting to Flash seems like an overkill. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/27643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Cannot delete, a file with that name may already exist This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What kind of database refactoring tools are there? I am looking for something to integrate to my CI workflow. I've heard of dbdeploy but I'm looking for something else. The reason I don't like dbdeploy is I don't want to install java on my server. I would prefer of course that the solution doesn't involve stringing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Microsoft .Net framework 3.5 SP1 Setup Fails On my Vista machine I cannot install the .Net framework 3.5 SP1. Setup ends few moments after ending the download of the required files, stating in the log that: [08/26/08,09:46:11] Microsoft .NET Framework 2.0SP1 (CBS): [2] Error: Installation failed for component Micro...
{ "language": "en", "url": "https://stackoverflow.com/questions/27670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic top down list of controls in WindowsForms and C#? In our project, SharpWired, we're trying to create a download component similar to the download windows in Firefox or Safari. That is, one single top down list of downloads which are custom controls containing progress bars, buttons and what not. The requirem...
{ "language": "en", "url": "https://stackoverflow.com/questions/27674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to "unversion" a file in either svn and/or git It happens to me all the time. I accidentally version a file, I do not want to be versioned (i.e. developer/machine specific config-files). If I commit this file, I will mess up the paths on all the other developer machines - they will be unhappy. If I do delete the...
{ "language": "en", "url": "https://stackoverflow.com/questions/27695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: C++ : Opening a file in non exclusive mode I have to develop an application which parses a log file and sends specific data to a server. It has to run on both Linux and Windows. The problem appears when I want to test the log rolling system (which appends .1 to the name of the creates a new one with the same name)....
{ "language": "en", "url": "https://stackoverflow.com/questions/27700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Total row count in GridView control using LinqDataSource and paging I'm having a problem obtaining the total row count for items displayed in a Gridview using Paging and with a LinqDataSource as the source of data. I've tried several approaches: protected void GridDataSource_Selected(object sender, LinqDataSourceSta...
{ "language": "en", "url": "https://stackoverflow.com/questions/27711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are some instances in which expression trees are useful? I completely understand the concept of expression trees, but I am having a hard time trying to find situations in which they are useful. Is there a specific instance in which expression trees can be applied? Or is it only useful as a transport mechanism f...
{ "language": "en", "url": "https://stackoverflow.com/questions/27726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Flex tools for Mac I'm starting developing with Flex on my Mac but i don't find good tools to ease the development (apart from Flex Builder). What is your favourite choice for Flex development on Mac? A: TextMate + the Flex and ActionScript 3 bundles is a great combo. Throw in ProjectPlus and you have an almost ful...
{ "language": "en", "url": "https://stackoverflow.com/questions/27729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: So what am I missing with this here WPF? Background: I have a little video playing app with a UI inspired by the venerable Sasami2k, just updated to use VMR9 (i.e. Direct3D9 with DirectShow) and be less unstable. Currently, it's a C++ app using raw Win32, through necessity: none of the various toolkits are worth a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Finding the crash dump files for a C# app An app I'm writing always crashes on a clients computer, but I don't get an exception description, or a stack trace. The only thing I get is a crash report that windows wants to send to Microsoft. I would like to get that dump file and investigate it myself, but I cannot fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/27742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I gracefully shut down a Mongrel web server My RubyOnRails app is set up with the usual pack of mongrels behind Apache configuration. We've noticed that our Mongrel web server memory usage can grow quite large on certain operations and we'd really like to be able to dynamically do a graceful restart of select...
{ "language": "en", "url": "https://stackoverflow.com/questions/27743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting parts of a URL (Regex) Given the URL (single line): http://test.example.com/dir/subdir/file.html How can I extract the following parts using regular expressions: * *The Subdomain (test) *The Domain (example.com) *The path without the file (/dir/subdir/) *The file (file.html) *The path with the file (/...
{ "language": "en", "url": "https://stackoverflow.com/questions/27745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "154" }
Q: How can I discover the "path" of an embedded resource? I am storing a PNG as an embedded resource in an assembly. From within the same assembly I have some code like this: Bitmap image = new Bitmap(typeof(MyClass), "Resources.file.png"); The file, named "file.png" is stored in the "Resources" folder (within Visual...
{ "language": "en", "url": "https://stackoverflow.com/questions/27757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "118" }
Q: Notify Developer of a "DO NOT USE" Method OK, I know what you're thinking, "why write a method you do not want people to use?" Right? Well, in short, I have a class that needs to be serialized to XML. In order for the XmlSerializer to do its magic, the class must have a default, empty constructor: public class MyCla...
{ "language": "en", "url": "https://stackoverflow.com/questions/27758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Using VLOOKUP in an array formula on Google Spreadsheets Effectively I want to give numeric scores to alphabetic grades and sum them. In Excel, putting the LOOKUP function into an array formula works: {=SUM(LOOKUP(grades, scoringarray))} With the VLOOKUP function this does not work (only gets the score for the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/27774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MFC resources / links I am about to reenter the MFC world after years away for a new job. What resources to people recommend for refreshing the memory? I have been doing mainly C# recently. Also any MFC centric websites or blogs that people recommend? A: The best: The Code Project A: * *For blogs: Your best bet w...
{ "language": "en", "url": "https://stackoverflow.com/questions/27779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Web server statics repository -or- ZFS vs. NTFS My goal is to maintain a web file server separately from my main ASP.NET application server for better scalability. The web file server will store a lot of files downloaded by users. So the question is: Is it worth to adopt FreeBSD + Apache + ZFS, or will good old IIS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I manage OSGi build dependencies? We've embedded an OSGi runtime (Equinox) into out custom client-server application to facilitate plugin development and so far things are going great. We've been using Eclipse to build plugins due to the built-in manifest editor, dependency management, and export wizard. Usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/27818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I reverse engineer a DirectShow graph? I have a DirectShow graph to render MPEG2/4 movies from a network stream. When I assemble the graph by connecting the pins manually it doesn't render. But when I call Render on the GraphBuilder it renders fine. Obviously there is some setup step that I'm not performing...
{ "language": "en", "url": "https://stackoverflow.com/questions/27832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Does MS-SQL support in-memory tables? Recently, I started changing some of our applications to support MS SQL Server as an alternative back end. One of the compatibility issues I ran into is the use of MySQL's CREATE TEMPORARY TABLE to create in-memory tables that hold data for very fast access during a session wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/27835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Is there a Box Plot graph available for Reporting Services 2005? Is there a Box Plot graph, or box and whisker graph available for Reporting Services 2005? From the looks of the documentation there doesn't seem to be one out of the box; so I am wondering if there is a third party that has the graph, or a way to buil...
{ "language": "en", "url": "https://stackoverflow.com/questions/27836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you change the default homepage in a Grails application? What is the configuration setting for modifying the default homepage in a Grails application to no longer be appName/index.gsp? Of course you can set that page to be a redirect but there must be a better way. A: Add this in UrlMappings.groovy "/" { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: What are models for storing tree structures and what are their characteristics? So far I have encountered adjacency list, nested sets and nested intervals as models for storing tree structures in a database. I know these well enough and have migrated trees from one to another. What are other popular models? What are...
{ "language": "en", "url": "https://stackoverflow.com/questions/27850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ModalPopupExtender adding scrollbars in SharePoint Whenever I show a ModalPopupExtender on my Sharepoint site, the popup shown creates both horizontal and vertical scrollbars. If you scroll all the way to the end of the page, the scrollbar refreshes, and there is more page to scroll through. Basically, I think the...
{ "language": "en", "url": "https://stackoverflow.com/questions/27853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C/C++ source code visualization? Basically I want tools which generate source code visualization like: * *function call graph *dependency graph *... A: Doxygen is really excellent for this, although you will need to install GraphViz to get the the graphs to draw. Once you've got everything installed, it's rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/27857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: How to get SpecUnit to run within a TeamCity CI build I am trying to get SpecUnit to run in a continuous integration build using Nant. At the moment the files are in the correct place but no output is generated from SpecUnit.Report.exe. Here is the relevant task from the nant build script: <echo message="**** Starti...
{ "language": "en", "url": "https://stackoverflow.com/questions/27889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the difference between a temp table and table variable in SQL Server? In SQL Server 2005, we can create temp tables one of two ways: declare @tmp table (Col1 int, Col2 int); or create table #tmp (Col1 int, Col2 int); What are the differences between these two? I have read conflicting opinions on whether @t...
{ "language": "en", "url": "https://stackoverflow.com/questions/27894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "422" }
Q: Is there a way to have index.html functionality with content hosted on S3? Is there a way to make S3 default to an index.html page? E.g.: My bucket object listing: /index.html /favicon.ico /images/logo.gif A call to www.example.com/index.html works great! But if one were to call www.example.com/ we'd either get a...
{ "language": "en", "url": "https://stackoverflow.com/questions/27899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Finding a DOI in a document or page The DOI system places basically no useful limitations on what constitutes a reasonable identifier. However, being able to pull DOIs out of PDFs, web pages, etc. is quite useful for citation information, etc. Is there a reliable way to identify a DOI in a block of text without assu...
{ "language": "en", "url": "https://stackoverflow.com/questions/27910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: SQL Server - testing the database What tools are people using for testing SQL Server databases? By this I mean all parts of the database: * *configuration *tables *column type *stored procedures *constraints Most likely, there is not one tool to do it all. A: How do you mean "Test the database"? If you a...
{ "language": "en", "url": "https://stackoverflow.com/questions/27916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the "best" way to create a thumbnail using ASP.NET? Story: The user uploads an image that will be added to a photo gallery. As part of the upload process, we need to A) store the image on the web server's hard drive and B) store a thumbnail of the image on the web server's hard drive. "Best" here is define...
{ "language": "en", "url": "https://stackoverflow.com/questions/27921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Calculate distance between two latitude-longitude points? (Haversine formula) How do I calculate the distance between two points specified by latitude and longitude? For clarification, I'd like the distance in kilometers; the points use the WGS84 system and I'd like to understand the relative accuracies of the appro...
{ "language": "en", "url": "https://stackoverflow.com/questions/27928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1130" }
Q: Dynamic Element Names I want to transform an XML document. The source XML looks like this: <svc:ElementList> <svc:Element> <Year>2007</Year> </svc:Element> <svc:Element> <Year>2006</Year> </svc:Element> <svc:Element> <Year>2005</Year> </svc:Element> </svc:ElementList> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is it worth it to learn a dialect of assembly? My goals are focused on software application development, and maybe web application development, but most likely desktop applications. I'm embarking on a path to becoming more familiar with C/C++, but should I go much lower than that, into assembly? Or would I not have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Which resolution to target for a Mobile App? When desinging UI for mobile apps in general which resolution could be considered safe as a general rule of thumb. My interest lies specifically in web based apps. The iPhone has a pretty high resolution for a hand held, and the Nokia E Series seem to oriented differently...
{ "language": "en", "url": "https://stackoverflow.com/questions/27948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I change the locations of source files in a symbols file (pdb) Basically what I want to do it this: a pdb file contains a location of source files (e.g. C:\dev\proj1\helloworld.cs). Is it possible to modify that pdb file so that it contains a different location (e.g. \more\differenter\location\proj1\helloworl...
{ "language": "en", "url": "https://stackoverflow.com/questions/27952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How do HttpOnly cookies work with AJAX requests? JavaScript needs access to cookies if AJAX is used on a site with access restrictions based on cookies. Will HttpOnly cookies work on an AJAX site? Edit: Microsoft created a way to prevent XSS attacks by disallowing JavaScript access to cookies if HttpOnly is specifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/27972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "208" }
Q: SQL Group By with an Order By I have a table of tags and want to get the highest count tags from the list. Sample data looks like this id (1) tag ('night') id (2) tag ('awesome') id (3) tag ('night') using SELECT COUNT(*), `Tag` from `images-tags` GROUP BY `Tag` gets me back the data I'm looking for perfectly. How...
{ "language": "en", "url": "https://stackoverflow.com/questions/27983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "159" }
Q: Exporting a C++ class from a DLL Most of my C/C++ development involves monolithic module files and absolutely no classes whatsoever, so usually when I need to make a DLL with accessible functions I just export them using the standard __declspec(dllexport) directive. Then access them either dynamically via LoadLibra...
{ "language": "en", "url": "https://stackoverflow.com/questions/27998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Regular cast vs. static_cast vs. dynamic_cast I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts i.e. MyClass *m = (MyClass *)ptr; all over the place, but there seem to be two other types of casts, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1995" }
Q: Use table metadata for select statement in SQL Server? I have a large database and would like to select table names that have a certain column name. I have done something like this in MySQL, but can't find any info on SQL Server. I want to do something like: select [table] from [db] where table [has column 'classt...
{ "language": "en", "url": "https://stackoverflow.com/questions/28003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When do you use table clusters? How do you determine when to use table clusters? There are two types, index and hash, to use for different cases. In your experience, have the introduction and use of table clusters paid off? If none of your tables are set up this way, modifying them to use table clusters would add to...
{ "language": "en", "url": "https://stackoverflow.com/questions/28009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }