text
stringlengths
8
267k
meta
dict
Q: Direct3D Output on a Printer/Plotter What is the best way to send Direct3D output to a printer or a plotter? A: I would do it by creating a BMP file from the front buffer and then printing that BMP: http://www.mvps.org/directx/articles/screengrab.htm A: I would like to say that sending screenshot or image is only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I Dynamically set Data Source in Reporting Services? I am looking for a method of changing the data source for a report in SQL Server Reporting Services. Basically what functionality I am looking for is a drop down box (parameter) at the top of the report that permits the user of the report to select a differ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why does Flash CS3 require you to specify the base class when exporting for actionscript (as3)? In the library, right-click on a movieclip that you have written an ActionScript class for and select "Linkage...". Notice that the "Base class" field is not empty (it can't be). It's likely to be flash.display.MovieClip,...
{ "language": "en", "url": "https://stackoverflow.com/questions/277073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I find the location of origin/master in git, and how do I change it? I'm a Git newbie. I recently moved a Rails project from Subversion to Git. I followed the tutorial here: http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/ I am also using unfudd...
{ "language": "en", "url": "https://stackoverflow.com/questions/277077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "235" }
Q: Which situations to multi-thread in Rails Rails is now making multi-threaded applications possible, but it doesn't sound like it applies in every situation (for instance, if you're using Mongrel, it doesn't sound like this affects you at all). When can you multi-thread your Rails application? This article gives some...
{ "language": "en", "url": "https://stackoverflow.com/questions/277081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I GetModuleFileName() if I only have a window handle (hWnd)? I'm trying to get the name of the executable of a window that is outside my C# 2.0 application. My app currently gets a window handle (hWnd) using the GetForegroundWindow() call from "user32.dll". From the digging that I've been able to do, I think ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to refer a custom function in xml How can I refer a custom function in xml? Suppose that I have a function written in Java and want it to refer by the xml tag, how is this possible? Current senario: I am using XACML2.0 which contains xml tags and I want to refer some function in Java that will talk to the backe...
{ "language": "en", "url": "https://stackoverflow.com/questions/277092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AccessControlException when attempting to delete a file We have a java web service application that uses log4j to do logging. An exception gets thrown when log4j tries to delete its rolling log files Exception:java.security.AccessControlException: access denied (java.io.FilePermission /var/opt/SUNWappserver/domains...
{ "language": "en", "url": "https://stackoverflow.com/questions/277100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mac OS X - System Preference Pane won't open I'm working on a System Preferences Pane. It opens fine on some computers, but on other Macs (all running 10.5.5), the preference pane refuses to load and simply hangs, spitting the following into the console: 11/9/08 8:38:50 PM [0x0-0x31031].com.apple.systempreferences[3...
{ "language": "en", "url": "https://stackoverflow.com/questions/277102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Looking for some Interesting C# Programming Problems I am tired of doing typical CRUD programming type applications. I would like to work on some interesting (not too hard) programming problems. Are there any sites out there to help me exercise my brain? A: Check DotNetPerls they have a good selection of problems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Custom Sorting Of A Bound DataGridView I have a DataGridView bound to a DataTable. I have one column that's a pseudo-int -- you know the kind, where most of the time it has integers but sometimes instead there's an N/A. This column is a varchar, but I want to have it sort like an int column, treating the N/A as a -1...
{ "language": "en", "url": "https://stackoverflow.com/questions/277127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I turn off NHibernate ShowSQL after initial configuration (at runtime) My NHibernate configuration is set to show sql for all interactions. Because of this, some of my larger integration tests are performing poorly (particularly when generating the test report). Is there a way to turn off ShowSql at runtime - an...
{ "language": "en", "url": "https://stackoverflow.com/questions/277136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What's the best way to determine the total number of words of a file in Java? What is the best way to find the total number of words in a text file in Java? I'm thinking Perl is the best on finding things such as this. If this is true then calling a Perl function from within Java would be the best? What would you ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/277143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is a development framework? What is an IDE? When I started programming I was using Ruby and the colorful little notepad that came with it. Since I started learning Java I've been using Eclipse, which is apparently an IDE. Now I've read a bit about this Mono on Reddit, but I don't think I understand exactly what...
{ "language": "en", "url": "https://stackoverflow.com/questions/277148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to trigger an HTTP DELETE request from an HTML form? I have an ASP.NET MVC project and I have a single action that accepts GET, POST, and DELETE requests. Each type of request is filtered via attributes on my controllers Action methods. [ActionName(Constants.AdministrationGraphDashboardAction), Accep...
{ "language": "en", "url": "https://stackoverflow.com/questions/277149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Define an Extension Method for IEnumerable which returns IEnumerable? How do I define an Extension Method for IEnumerable<T> which returns IEnumerable<T>? The goal is to make the Extension Method available for all IEnumerable and IEnumerable<T> where T can be an anonymous type. A: using System; using System.Collect...
{ "language": "en", "url": "https://stackoverflow.com/questions/277150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How to stop VS2008 trying to compile .ASP pages as Visual Basic? I have a website with a mix of ASP (classic) and ASP.NET pages. For some reason Visual Studio (specifically 2008 Pro) keeps trying to compile the ASP classic pages. How do I prevent it from trying to compile the .asp pages? Reason: I'm getting a ton of...
{ "language": "en", "url": "https://stackoverflow.com/questions/277159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Resources for animations in WPF/Silverlight? I'm looking for some good resources to ramp up on the animation/storyboard concepts used in WPF/Silverlight. Any pointers? A: The one link posted was WPF specific. For Silverlight here are a few other resources. * *MSDN Animation Overview *Silverlight SDK Blog *Adam...
{ "language": "en", "url": "https://stackoverflow.com/questions/277168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a good Python GUI shell? I saw this the other day (scroll all the way down to see some of the clever stuff): http://www.mono-project.com/docs/tools+libraries/tools/repl/ And wondered whether something like this exists for Python. So, is there a good Python GUI shell that can do stuff like that C# shell c...
{ "language": "en", "url": "https://stackoverflow.com/questions/277170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Intercepting URL before navigation I would like to intercept any URL which the user enters in their browser and perform some tasks before allowing the navigation to continue (any way could be good - i.e. via plug in, via proxy or any other creative suggestion). To clarify - I am not referring to a specific applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/277178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to avoid the (Author not verified) message when installing a Firefox XPI file What do I need to do to avoid the "Manual Install" in Firefox for a Plugin and where do I have to go or what do I have to do to avoid the (Author not verified) message when downloading a Plugin. Ideally I would like to initiate the ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/277181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a more Pythonic way to merge two HTML header rows with colspans? I am using BeautifulSoup in Python to parse some HTML. One of the problems I am dealing with is that I have situations where the colspans are different across header rows. (Header rows are the rows that need to be combined to get the column ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert Bitmap to Polygon - (Reverse-Rasterizing) Given a bitmap image with some blots of solid color on it, what algorithm would you employ to construct polygons in the same shape as the blots? This can be done in multiple steps: a high-resolution polygon could be later cut down by a best fit algorithm. Bonus poin...
{ "language": "en", "url": "https://stackoverflow.com/questions/277195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: asp.net menu control not rending correctly in safari The site I'm working on is using a Databound asp:Menu control. When sending 1 menu item it renders HTML that is absolutely correct in Firefox (and IE), but really messed up code in Safari and Chrome. Below is the code that was sent to each browser. I've tested ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: OpenGL include directives on OS X I am a bit confused why this code compiles. I leave out the "necessary" #include <OpenGL/gl.h> and still the program can compile. How is this possible when my program is calling functions from the GL library, without including them. int main(int argc, char** argv) { glClearCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/277207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How should I use Mercurial as a lone developer? I've decided that I want to use Mercurial for a small, personal project. Most of the help I've read about it talks about merging changes between multiple users. Since I'm solo, that's not going to happen. Should I have multiple repositories? My development computer...
{ "language": "en", "url": "https://stackoverflow.com/questions/277208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: I need to get the password which is Hashed in ASP.net I am storing all my passwords in the form hashed. I need to retrieve these passwords Eg My password is "123456" I save this as hashed "3453474852dfdsfdsfdf" value. I need to retrieve the original password from the hashed value. (Get Password). How can I do that?....
{ "language": "en", "url": "https://stackoverflow.com/questions/277210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there pseudocode for UK address or phone number validation? Do you have pseudocode for field validation of the following items in the UK? I am from the USA, so I only know the ones in the USA right now. * *Address Line 1 *Phone Number *Mobile Number (in case they have a special rule for this, which they migh...
{ "language": "en", "url": "https://stackoverflow.com/questions/277211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I catch a PHP fatal (`E_ERROR`) error? I can use set_error_handler() to catch most PHP errors, but it doesn't work for fatal (E_ERROR) errors, such as calling a function that doesn't exist. Is there another way to catch these errors? I am trying to call mail() for all errors and am running PHP 5.2.3. A: Here...
{ "language": "en", "url": "https://stackoverflow.com/questions/277224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "592" }
Q: How can I redirect mobile devices to a different URL? I want to check whether the user is viewing my site from a mobile device or PC. If it's a mobile device, I want to redirect my site URL like Google does... If possible I would like to implement this in JavaScript. How can I do this? A: You typically use the User...
{ "language": "en", "url": "https://stackoverflow.com/questions/277226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to determine if ASP.NET page is in cache or not? I need to find whether the web page is cached or not. That s loaded newly or its appeared in cache. A: Include generated timestamp somewhere in your response, and store the the timestamp somewhere in the server (maybe in the cache object). That way you know the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/277228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Increase days to php current Date() How do I add a certain number of days to the current date in PHP? I already got the current date with: $today = date('y:m:d'); Just need to add x number of days to it A: With php 5.3 $date = new DateTime(); $interval = new DateInterval('P1D'); echo $date->format('Y-...
{ "language": "en", "url": "https://stackoverflow.com/questions/277247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: Cancel a CSS declaration Is it possible to have a CSS rule which basically "undoes" a prior rule? An example: <blockquote> some text <em>more text</em> other text </blockquote> and let's say there's this CSS: blockquote { color: red; } ...but I want the <em> to remain the normal text color (which you may n...
{ "language": "en", "url": "https://stackoverflow.com/questions/277256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I see a C/C++ source file after preprocessing in Visual Studio? Let's say I have a source file with many preprocessor directives. Is it possible to see how it looks after the preprocessor is done with it? A: Try cl /EP if you are using Microsoft's C++ compiler. A: I don't know anything about Microsoft compi...
{ "language": "en", "url": "https://stackoverflow.com/questions/277258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "224" }
Q: What is the best way to transfer a file using Java? I am writing code for uploading a file from a client to my server and the performance isn't as fast as I think it should be. I have the current code snippet that is doing the file transfer and I was wondering how I could speed up the transfer. Sorry about all of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/277260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: ASP.Net MVC and RenderPartial w/ relative paths I've been playing around with ASP.NET MVC and had a question. Or maybe its a concern that I am doing this wrong. Just working on a lame site to stretch my wings a bit. I am sorry this question is not at all concise. Ok, here's the scenario. When the user visits hom...
{ "language": "en", "url": "https://stackoverflow.com/questions/277284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is the Windows/cmd.exe equivalent of Linux/bash's $? -- the program exit/return code? Possible Duplicate: How do I get the application exit code from a Windows command line? In Unix/bash, I can simply say: $ echo $? to find out the return/exit code of a program, both from interactive and non-interactive sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/277288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: is it worth keeping the OS look and feel? Is it worth to try to keep your GUI within the system looks ? Every major program have their own anyways... (visual studio, iexplorer, firefox, symantec utilities, adobe ...) Or just the frame and dialogs should be left in the system look 'n feel range ? update: One easy exe...
{ "language": "en", "url": "https://stackoverflow.com/questions/277290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Eclipse RCP: Where should I keep my model objects and how do they talk to the views? In Eclipse RCP way of doing things, where should I keep my model objects? And when they are loaded or changed, how should they talk to the views? I am attempting to port my existing application to Eclipse RCP. It could be viewed as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Java floating point high precision library Which libraries for Java are there that have a fast implementation for floating point or fixed point operations with a precision of several thousands of digits? How performant are they? A requirement for me is that it implements a multiplication algorithm that is better tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/277309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Vertical scroll bar does not appear when the gridview items exceeded the display height I place the following statements in the second row of my grid in the xaml: <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1"> <ListView Name="listView" Margin="5" Grid.Row="1"> <ListView.View> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Algorithm to determine if a component is fully visible in Flex? Is there a built in way to determine if a component is fully visible in a Flex application (i.e. not offscreen one way or the other). If not how would I go about figurin it out? I want to show or hide additional 'next' and 'previous' buttons if my prima...
{ "language": "en", "url": "https://stackoverflow.com/questions/277327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MS Access: How to bypass/suppress an error? I'm executing a query like this select field from table; In that query, there is a loop running on many tables. So, if the field is not present in a table I get a Runtime Error 3061 How can I by pass this error such as that on this error flow should go to another point...
{ "language": "en", "url": "https://stackoverflow.com/questions/277340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Date/Time comparison in Rails I want to be able to compare Dates and Times in Rails without always having to call the to_time or to_date method. So I wrote the following code: class Date def ==(other) if other.kind_of?(Time) self.to_time == other else super(other) end end end I know ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/277345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Date 'wrap' in subtracting months What is a mathematical way of of saying 1 - 1 = 12 for a month calculation? Adding is easy, 12 + 1 % 12 = 1, but subtraction introduces 0, stuffing things up. My actual requirement is x = x + d, where x must always be between 1 and 12 before and after the summing, and d any unsigne...
{ "language": "en", "url": "https://stackoverflow.com/questions/277351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java: `enum` vs `String` as Parameters I've been reading through the details of the System libraries set and get methods yet the parameters are usually Strings. Would you consider the use of String as parameters bad practise since the inclusion of enum? A better alternative at minimum might be public final String, N...
{ "language": "en", "url": "https://stackoverflow.com/questions/277364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Euler Project Help (Problem 12) - Prime Factors and the like I hate to have to ask, but I'm pretty stuck here. I need to test a sequence of numbers to find the first which has over 500 factors: http://projecteuler.net/index.php?section=problems&id=12 -At first I attempted to brute force the answer (finding a number ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a fingerprint reader api/sdk? I need to read the user's fingerprint from my application. What I really want is a simple SDK that works with a lot of inexpensive fingerprint readers but I can deal with something that works only with one specific model if that model is cheap and available worldwide. And it ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/277373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What kind-of stats does your company collect to define code / software product quality Most programming houses / managers i know of can only define quality in terms of the no of bugs made / resolved in retrospect. However most good programmers can innately sense quality once they start meddling with the code.(right...
{ "language": "en", "url": "https://stackoverflow.com/questions/277382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to filter a list of items in a MySQL database? I have list store in mysql table file1=(1,2,3,4,6,7) and other list file2 = (3,2,4,8,9,10,12) is not stored in table, i want compare both and result should be like result=(6,7,8,9,10,12) then calculate the percentage. like 100*(result/file1+file2) in mysql data str...
{ "language": "en", "url": "https://stackoverflow.com/questions/277383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I update a progress display on a Perl command-line application? I have a little Perl script (On Windows) that checks some files for me as an aid to my day-to-day business. At the moment it prints out something like... 0% 25% 50% 75% Complete But I can remember scripts I've used in the past that didn't print...
{ "language": "en", "url": "https://stackoverflow.com/questions/277384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Designing an application protocol I have an existing standalone application which is going to be extended by a 3rd-party, using a network protocol. The capabilities are already implemented, all I need is to expose them to the outside. Assuming the transport protocol is already chosen (UDP), are there any resources t...
{ "language": "en", "url": "https://stackoverflow.com/questions/277403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Best compression algorithm? (see below for definition of best) I want to store a list of the following tuples in a compressed format and I was wondering which algorithm gives me * *smallest compressed size *fastest de/compression *tradeoff optimum ("knee" of the tradeoff curve) My data looks like this: (<int>...
{ "language": "en", "url": "https://stackoverflow.com/questions/277409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How does JavaFX compare to Flash and Flex? I know Flex pretty good but also started to use Java FX. I am a little bit confused. Java FX seems to focus more on low level drawing operations and animations. Less on creating standard UIs like Flex. So is JavaFX more like Flash than Flex? On the other side JavaFX also su...
{ "language": "en", "url": "https://stackoverflow.com/questions/277414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How can I see the machine code generated by v8? Does anybody know how I can see the actual machine code that v8 generates from Javascript? I've gotten as far as Script::Compile() in src/api.cc but I can't figure out where to go from there. A: Try with NodeJS or Chrome: * *-print-opt-code: Code generated by optimi...
{ "language": "en", "url": "https://stackoverflow.com/questions/277423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Tool to merge MS Word files I have huge number of Word files I need to merge (join) into one file, and will be time consuming to use the Word merger (one by one). Have you experienced any tool that can handle this job? A: Sub MergeAllDocuments(AllDocumentsPath as String, MasterDocumentPath as String) Dim MasterDo...
{ "language": "en", "url": "https://stackoverflow.com/questions/277431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: HTML Click Works in IE, not FireFox, Chrome This has got to be something simple: I set up a frames page with two possible sources for the target frame based on a form with two options. I used the OnClick event to trap the user's click to show the appropriate page. It works fine in Internet Explorer 7, swapping th...
{ "language": "en", "url": "https://stackoverflow.com/questions/277437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Abstracting IoC Container Behind a Singleton - Doing it wrong? Generally, I like to keep an application completely ignorant of the IoC container. However I have ran into problems where I needed to access it. To abstract away the pain I use a basic Singleton. Before you run for the hills or pull out the shotgun, l...
{ "language": "en", "url": "https://stackoverflow.com/questions/277438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: MySql: MyISAM vs. Inno DB! What are the differences between MyISAM and Inno DB types in MySql? A: The main difference is that InnoDB supports transactions while MyISAM does not. There are numerous other differences, however the common one's i am aware of are: * *MyISAM has typically been considered faster at sea...
{ "language": "en", "url": "https://stackoverflow.com/questions/277440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How do function indexes work in SQL? Does anyone know how function indexes work in databases? A: In Oracle there is something called Function Based Indexes: Oracle 8i introduced Function Based Indexes to solve the following problem: performing a function on an indexed column in the where clause of a query guarantee...
{ "language": "en", "url": "https://stackoverflow.com/questions/277447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Translating Qt applications I need to have my application translated into many different languages, I have the translators and know that I can use Qt Linguist. However as far as I can tell I have to package up Linguist myself and ship it out to the translators. Is there a web-based solution or do other package Qt L...
{ "language": "en", "url": "https://stackoverflow.com/questions/277453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Framework goto definition shows comments, are these generated from xml comments? I was mildly surprised recently to discover that my carefully crafted xml comments weren't showing up in intellisense for my colleagues. Having always used the associated assemblies with project references, I hadn't realised that you ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/277459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Did Visual Studio 2008 Support SQL Reporting services 2008 I need to send mail via data extension I am having Visual Studio 2008. I am migrating from Visual Studio 2005. Will it possible. A: You can do this http://sqlcat.com/technicalnotes/archive/2008/07/09/scaling-up-reporting-services-2008-vs-reporting-services-...
{ "language": "en", "url": "https://stackoverflow.com/questions/277465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing PlainText Emails from HTML Content (ASP.NET) Right, in short we basically already have a system in place where the HTML content for emails is generated. It's not perfect, but it works. From this, we need to be able to derive a plaintext alternative for the email. I was thinking of instantly jumping on and cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/277469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programming Excel I'd like to give my boyfriend a taste of programming. If it was up to me, I'd teach Scheme, Haskell or F# but since he'd rather learn something that can be useful in his job as a fiscal consultant, i.e. programming Excel. What are the options for programming Excel? Which one would you recommend for...
{ "language": "en", "url": "https://stackoverflow.com/questions/277474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Initializing a class using superclass initializer I have got two classes, one a subclass of the other (say Animal and Dog). The superclass has got some initializers (say initAnimal), the subclass has some initializers (say initDog). The problem is that it is perfecly legal (from the compiler’s viewpoint) to do somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/277478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I get Ltk to display what the user is writing and what the functions print? The kind of functions are of the sort of: (defun display-all () "Display all items in the database." (dolist (item *database*) (format t "~{~a:~10t~a~%~}~%" item))) (defun prompt-read (prompt) (format *query-io* "~a: " prom...
{ "language": "en", "url": "https://stackoverflow.com/questions/277480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I enable C++ styled comments in gcc while leaving ANSI enabled? This has just come up as a question where I worked so I did a little digging and the answer is a ExpertsExchange one. So I hand you over to the original question asker, Manchung: I have a project written in pure C which is to be used in embedded...
{ "language": "en", "url": "https://stackoverflow.com/questions/277482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How can I repeat a string N times in Perl? In Python, if I do this: print "4" * 4 I get > "4444" In Perl, I'd get > 16 Is there an easy way to do the former in Perl? A: In Perl, you want to use the "x" operator. Note the difference between "4" x 4 and ("4") x 4 The former produces a repeated string: "4444" th...
{ "language": "en", "url": "https://stackoverflow.com/questions/277485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: html to jsp email form post - null parameters I have a simple form form action="email.jsp" method="post" <label for="firstname">Your Name: </label> input type="text" id="name"<br/> <label for="email">Your Email: </label> input type="text" id="address"<br/> <label for=...
{ "language": "en", "url": "https://stackoverflow.com/questions/277491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Avoid entering double quotes from start & ending of a string In a database, I have a string that contains "default" written in it. I just want to replace that default with 0. I have something like: select * from tblname where test = 'default' I do not want quotes in the replacement for "default". I want select * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring @Autowiring, how to use an object factory to choose implementation? I am trying to let a piece of runtime state decide WHICH implementation of an interface to use, preferably solely by autowiring. I have tried making an object factory for the interface thet uses dynamic proxies, and I used qualifiers to coer...
{ "language": "en", "url": "https://stackoverflow.com/questions/277494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JAXB: How to ignore namespace during unmarshalling XML document? My schema specifies a namespace, but the documents don't. What's the simplest way to ignore namespace during JAXB unmarshalling (XML -> object)? In other words, I have <foo><bar></bar></foo> instead of, <foo xmlns="http://tempuri.org/"><bar></bar></fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/277502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: What are the best PDC 2008 videos that I need to look at? Considering the full list of PDC videos published here what are, in your opinion, the best session to download and see, considering their relevance to your work, technology and so on? Pleas, one session per answer (exception only for the sessions split in two...
{ "language": "en", "url": "https://stackoverflow.com/questions/277510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Delphi: How do you auto-update your applications? I've been thinking of rolling my own code for enabling my Delphi application to update seamlessly as I'll be going for "release often, release early" mentality furthermore. There are various Delphi solutions (both freeware and paid) out there and I'd like to ask if y...
{ "language": "en", "url": "https://stackoverflow.com/questions/277514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: How to identify the file content as ASCII or binary How do you identify the file content as being in ASCII or binary using C++? A: If the question is genuinely how to detect just ASCII, then litb's answer is spot on. However if san was after knowing how to determine whether the file contains text or not, then the i...
{ "language": "en", "url": "https://stackoverflow.com/questions/277521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: team system unit testing and configuration In vs team system 2008 unit test, how can i load an application configuration file in the test itself? i have an app.config in the test project, referenced System.Configuration but when running the test, it doesn't see the app.config A: Have a pre-build batch event that co...
{ "language": "en", "url": "https://stackoverflow.com/questions/277524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RAPI copy file using OpenNETCF.Desktop.Communication.dll I’m currently using the OpenNETCF.Desktop.Communication.dll to copy files from my desktop to a CE device, but I keep getting an error: ‘Could not create remote file’ My development environment is VS2005 (VB.NET) My code: ObjRapi.Connect() ObjRapi.CopyFileToDe...
{ "language": "en", "url": "https://stackoverflow.com/questions/277529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Default modelbinding for enum in ASP.NET MVC? How do I bind the value of radio button, generated with the Html.RadioButton() HTML helper, to a field that has a struct as type? Less abstract: CommonProject.Services.SearchBag.Effects: public enum Effects { Any, Solid, Effect } In the strongly typed ViewDa...
{ "language": "en", "url": "https://stackoverflow.com/questions/277539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the equivalent of the .NET Framework 2.0 SDK for the .NET Framework 3.5? On our build server, we've installed the .NET Framework 2.0 SDK in order to kick off MSBuild and run our builds. Now we are upgrading to the .NET Framework 3.5. We do not want to install the complete Visual Studio, but we cannot find a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Would you, at present date, use JBoss or Glassfish (or another) as Java EE server for a new project? If you started a new Java EE project today which is to be finished in about a year, which application server would you choose and why? Part of your answer should include your arguments for your decision. And also how...
{ "language": "en", "url": "https://stackoverflow.com/questions/277543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "137" }
Q: How do I set the focus to the first input element in an HTML form independent from the id? Is there a simple way to set the focus (input cursor) of a web page on the first input element (textbox, dropdownlist, ...) on loading the page without having to know the id of the element? I would like to implement it as a co...
{ "language": "en", "url": "https://stackoverflow.com/questions/277544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: Can I use Git to search for matching filenames in a repository? Just say I have a file: "HelloWorld.pm" in multiple subdirectories within a Git repository. I would like to issue a command to find the full paths of all the files matching "HelloWorld.pm": For example: /path/to/repository/HelloWorld.pm /path/to/reposit...
{ "language": "en", "url": "https://stackoverflow.com/questions/277546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: Regular expression to skip character in capture group Is it possible to skip a couple of characters in a capture group in regular expressions? I am using .NET regexes but that shouldn't matter. Basically, what I am looking for is: [random text]AB-123[random text] and I need to capture 'AB123', without the hyphen. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: How can I use SQLite to open a database from memory? It looks like all the methods for loading SQLite involve loading from a named file using a string. I would like to load SQlite database from memory. The database is already loaded into memory. A: Use a special file name, :memory: sqlite3_open(":memory:", &db); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to get photo from GAL onto Outlook mail form? Outlook 2007 shows pictures of contacts on the right hand side of the mail form. This only works for your personal contacts and if you have photos. Is there a way to hook that picture up to the GAL or AD for the company so that all employees photos show automatically...
{ "language": "en", "url": "https://stackoverflow.com/questions/277552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Debugging Filesystem access I'm looking for a Windows tool that is able to log every action (read & write) that were made to a specific path inside the local Filesystem in order to debug a program (find out why it is sometimes slow and sometimes not). In theory it could work like a virus scanner that is recognizing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an easy way to convert a number to a word in PHP? In PHP, is there an easy way to convert a number to a word? For instance, 27 to twenty-seven. A: There is the Numbers_Words package in PECL. It does exactly what you ask for. The following languages are supported: * *bg (Bulgarian) by Kouber Saparev *cs...
{ "language": "en", "url": "https://stackoverflow.com/questions/277569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Shouldn't mysql_real_escape_string() leave slashes in Database? Im using smarty and mysql_real_escape_string() for user input, and when I insert some code with ' or " , and lookup in phpmyadmin it shows without backslashes. When I get record from DB i doesn't have backslashes also. But when I just pass escaped strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/277575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to make a 14-Day Trial limit in my Delphi application I'm looking to add a 14-Day trial limit to my software. The program has been written in Delphi 7. Any help would be much appreciated. A: There are several tricks you can use, but none of them 100% fail save. * *You can use some kind of licensing mechanis...
{ "language": "en", "url": "https://stackoverflow.com/questions/277588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Validation of radio button group using jQuery validation plugin How to perform validation for a radio button group (one radio button should be selected) using jQuery validation plugin? A: As per Brandon's answer. But if you're using ASP.NET MVC which uses unobtrusive validation, you can add the data-val attribute t...
{ "language": "en", "url": "https://stackoverflow.com/questions/277589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: What things should be localized in an application When thinking about what areas should be taken into account for a localized version of an application a number of things pop up right away: * *Text display *Date and time *Units *Numbers and decimals *User input formats *LeftToRight support *Dialog and contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/277606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Html.RadioButton sets all values to selected value After tinkering around to solve [this][1] problem, I think the core of the problem is the following: When you use the Html.RadioButton() html helper with an Enum as value field, you can only choose your option once. AFter reposting the page, the helpers will ignore ...
{ "language": "en", "url": "https://stackoverflow.com/questions/277607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is bigint large enough for an event log table? Now I know that bigint is 2^64; that is, more atoms than there are in the known universe. I shouldn't be worried, as my mere human brain simply can't get around the enormity of that number. However, let's say that I record every change to every category, product and or...
{ "language": "en", "url": "https://stackoverflow.com/questions/277608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What's a learning curve and why is steep not hard? * *What exactly is a learning curve? *And why is it wrong to use the term "steep learning curve" for something which has high entry barriers and takes quite some time to get into? As to the why-ness of this question: * *The terms are used often and inconsist...
{ "language": "en", "url": "https://stackoverflow.com/questions/277618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What's the most portable way to make a Silverlight & Regular .NET REST client I'm trying to get a Server application to expose some status information using WCF. In particular I'm after using WCF services with RESTful "API". I'm hitting somewhat of a wall when it comes to consuming the REST api from a silverlight ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/277623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Should I get rid of clustered indexes on Guid columns I am working on a database that usually uses GUIDs as primary keys. By default SQL Server places a clustered index on primary key columns. I understand that this is a silly idea for GUID columns, and that non-clustered indexes are better. What do you think - shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/277625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Hibernate JPA Sequence (non-Id) Is it possible to use a DB sequence for some column that is not the identifier/is not part of a composite identifier? I'm using hibernate as jpa provider, and I have a table that has some columns that are generated values (using a sequence), although they are not part of the identifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/277630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "155" }
Q: Linq query to return a flatened list of parent child still new to the world of linq, and i need some help flatening a list of parents that have children, into a single list of ParentChild's. Just like this: class Program { static void Main() { List<Parent> parents = new List<Parent>(); paren...
{ "language": "en", "url": "https://stackoverflow.com/questions/277634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Hash Functions and Tables of size of the form 2^p While calculating the hash table bucket index from the hash code of a key, why do we avoid use of remainder after division (modulo) when the size of the array of buckets is a power of 2? A: When calculating the hash, you want as much information as you can cheaply m...
{ "language": "en", "url": "https://stackoverflow.com/questions/277638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }