text
string
meta
dict
Q: Why does Javadoc generate non-compliant XHTML? I just pasted some generated javadoc into an eclipse project, to discover none of the HTML is compliant. There is even cases of closing tags that were never opened. Is there some way to fix this? Maybe a "be compliant" option... A: After some googling, I discovered XH...
{ "language": "en", "url": "https://stackoverflow.com/questions/267140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Doxygen and Assembly Language I'd like to use Doxygen to document legacy code that's a mix of C and x86 assembly language. The assembly language is not inline, but in separate assembly-only files. How can I document the assembly language portion? A: Question 12 of the Doxygen FAQ eventually led me to a Perl filter ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: plot a 3 axis graph as a mesh I have seen 3d surface plots of data before but i do not know what software i could use to make it. I have 3 series of data (X, Y, Z) basically i want each of the rows on the table to be a point in 3d space, all joined as a mesh. The data is currently csv, but i can change the format, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the "Operation Aborted" error in Internet Explorer? I recently added JQuery's date-picker control to a project. In Internet Exploder, I get the following error message: Internet Explorer cannot open the Internet site http://localhost/ Operation aborted What is causing this problem? A: Just elaborating K...
{ "language": "en", "url": "https://stackoverflow.com/questions/267160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Cocoa: NSURLConnection not attempting an HTTP Request I've had significant success with NSURL, NSURL[Mutable]Request, NSURLConnection with my iPhone applications. When trying to compile a stand alone Cocoa application, 10 line program to make a simple HTTP request, there are zero compiler errors or warnings. The pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/267163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: "Treat all warnings as errors except..." in Visual Studio In Visual Studio, I can select the "Treat warnings as errors" option to prevent my code from compiling if there are any warnings. Our team uses this option, but there are two warnings we would like to keep as warnings. There is an option to suppress warnings...
{ "language": "en", "url": "https://stackoverflow.com/questions/267168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "138" }
Q: Nested templates gcc compiler 4.1.2 error I'm trying to create a template class to insulate the users from a data type. I would have preferred to use an adapter class, but the function signatures needed to change requiring a template. In the code sample below(not the actual project just a simplified version to illu...
{ "language": "en", "url": "https://stackoverflow.com/questions/267179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I programatically set the SharePoint's site collections Search Center property? I have a site collection and I want to set the search center value to be the same as another site collection. The site collection is created in code, so I need to be able to set the property after the site collection has been crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/267185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In C++ if a member function is virtual when can static binding be used? In C++ when can a virtual function use static binding? If it is being accessed through a pointer, accessed directly, or never? A: When a virtual method is called through a pointer or reference, dynamic binding is used. Any other time, compile-...
{ "language": "en", "url": "https://stackoverflow.com/questions/267186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you set the "Visible" property of a ASP.NET control from a Javascript function? Bascially I want to know the best way to hide/show an ASP.NET control from a Javascript function. I figured I would just access the control in Javascript using: var theControl = document.getElementById("txtEditBox"); Then just s...
{ "language": "en", "url": "https://stackoverflow.com/questions/267191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: automation: email yourself a file I have a computer at home which I can't access from work. I'd like to be able to view results from work that my home computer produces. The best idea I've come up with is an automated script running on my home computer that emails myself the results (from a text file or stderr/out...
{ "language": "en", "url": "https://stackoverflow.com/questions/267193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Always handle the PreviewKeyDown event in a base form We need to handle this event in the base form, regardless of which controls currently have focus. We have a couple of global key commands that need to work regardless of control focus. This works by handling the PreviewKeyDown event in the form normally. When we...
{ "language": "en", "url": "https://stackoverflow.com/questions/267198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio Solutions Folder as real Folders I have a Visual Studio Solution. Currently, it is an empty solution (=no projects) and I have added a few solution folders. Solution Folders only seem to be "virtual folders", because they are not really created in the Filesystem and files inside solution folders are ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/267200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "169" }
Q: Displaying host and database names in Rails I want to display the current host and database names in a view. Where can I get these names? Are there some predefined environment or global variables? A: The method below is nice when you are connected to multiple databases. Tested on Sqlite3 and Mysql2 MyModel.connect...
{ "language": "en", "url": "https://stackoverflow.com/questions/267219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Perforce Setup Issue I've got a Perforce server set up, and installed the P4V client. I've created a new depot and a new workspace. Per the documentation, I've mapped the workspace to the depot. So far so good. I now have a .SQL script that was created by an external application that I wish to check in for the fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/267221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Write Files to WPD device via MTP C#/VB.net I would like to write an application that will copy MP3 files to a SanDisk Sansa M240. The SanDisk doesn't have a drive letter and uses MTP for file transfer. I stumbled through the sample of connecting to the device at : http://blogs.msdn.com/dimeby8/archive/2006/09/27/...
{ "language": "en", "url": "https://stackoverflow.com/questions/267222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I make php wait for curl to finish before continuing? It seems if I do something like $file = fopen($filepath, "w"); $CR = curl_init(); curl_setopt($CR, CURLOPT_URL, $source_path); curl_setopt($CR, CURLOPT_POST, 1); curl_setopt($CR, CURLOPT_FAILONERROR, true); curl_setopt($CR, CURLOPT_RETURNTRANSFER, 1); curl...
{ "language": "en", "url": "https://stackoverflow.com/questions/267236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best way to unit test protected & private methods in Ruby? What's the best way to unit test protected and private methods in Ruby, using the standard Ruby Test::Unit framework? I'm sure somebody will pipe up and dogmatically assert that "you should only unit test public methods; if it needs unit testing, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "145" }
Q: In C# how do you make the columns in a DataGrid AutoFit Column Width like you can in Excel? In C# how do you make the columns in a DataGrid AutoFit Column Width like you can in Excel? Currently my five columns are fixed width but the column headers can change so I would like the columns to autofit to the width of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/267239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting rid of gcc shift by negative warning I have some code that looks like: template<unsigned int A, unsigned int B> int foo() { int v = 1; const int x = A - B; if (x > 0) { v = v << x; } bar(v); } gcc will complain about x being negative for certain instantiations of A, B; however, I do perform a...
{ "language": "en", "url": "https://stackoverflow.com/questions/267248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do i set up an application on windows to respond to MAPISendMail calls? The MAPISendMail function is available on windows so that an application can request that an email be sent. Windows will route the request to whichever email client is configured as the default provider. How do I write an application so that...
{ "language": "en", "url": "https://stackoverflow.com/questions/267249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Equivalent to Windows getch() for Mac/Linux crashes I am using getch() and my app crashes instantly. Including when doing: int main() { getch(); } I can't find the link but supposedly the problem is that it needs to turn off buffering or something strange along those lines, and I still want cout to work along w...
{ "language": "en", "url": "https://stackoverflow.com/questions/267250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Combining multiple SVN repositories into one After considering the answers to my previous question (One SVN Repository or many?), I've decided to take the 4 or so repositories I have and consolidate them into one. This of course leads to the question, what's the best way to do this? Is there a way to combine two or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: C++ project structure under Visual Studio 2008 So, I've been doing Java for a number of years now, but now I'm starting a C++ project. I'm trying to determine best practices for setting up said project. Within the project, how do you generally structure their code? Do you do it Java style with namespace folders and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MVC Views with the Same Name Issue/Bug I have been using ASP.net MVC for a new website. I have found a minor nagging issue with having views with the same name but are in different folders i.e. Views/Home/Index.aspx and Views/Account/Index.aspx The codebehind files act as if they are partial classes when there is a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: glDrawPixels/glCopyPixels to get a magnified view producing severely clamped image Despite an earlier question (asked here), our project is constrained to using glDrawPixels, so we have to do some hackery. One of the feature requirements is to be able to have a magnified view show up on a clicked region of an image;...
{ "language": "en", "url": "https://stackoverflow.com/questions/267275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unix C Shell Scripting printf help Attempting to print out a list of values from 2 different variables that are aligned correctly. foreach finalList ($correctList $wrongList) printf "%20s%s\n" $finalList end This prints them out an they are aligned, but it's one after another. How would I have it go through each i...
{ "language": "en", "url": "https://stackoverflow.com/questions/267287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: RESTful URLs, master pages, and PreviousPage woes I'm am building my asp.net web application using MVC (Preview 5), and am also using the Master pages concept. My PageA and PageB are both content pages. I'm doing a form submit in a method via JavaScript from PageA to PageB. PageB has its PreviousPageType attribut...
{ "language": "en", "url": "https://stackoverflow.com/questions/267303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java.net versus java.nio At what point is it better to switch from java.net to java.nio? .net (not the Microsoft entity) is easier to understand and more familiar, while nio is scalable, and comes with some extra nifty features. Specifically, I need to make a choice for this situation: We have one control center man...
{ "language": "en", "url": "https://stackoverflow.com/questions/267306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Difference between a HashMap and a dictionary ADT What is the difference between a Hash Map and dictionary ADT. And when to prefer one over another. For my programming assignment my instructor has asked to use one of them but I don't see any difference in between both. The program is supposed to work with a huge no....
{ "language": "en", "url": "https://stackoverflow.com/questions/267312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: Creating an OS X Service I'm trying to create an OS X Service. I found Providing System Services in Apple's documentation, however I'm finding it less than clear on what exactly I need to do. I'm currently using an application to register my service (thinking that would be more straight forward - eventually I'd like...
{ "language": "en", "url": "https://stackoverflow.com/questions/267318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can't drag files to Solution Explorer I am having an unusual problem. I have always been able to drag files and folder from my desktop or explorer to the solution explorer in visual studio and add the files to my project. No when I attempt to drag files I simply get the "stop" symbol. I am using Visual Studio 2008 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: how can I see POST methods in raw HTTP that my computer sends to a page? that's it isn't there a way to see the raw text file that my browser sends to a website when I do a POST method? something like: POST /path/script.cgi HTTP/1.0 From: frog@jmarshall.com User-Agent: HTTPTool/1.0 Content-Type: application/x-www-...
{ "language": "en", "url": "https://stackoverflow.com/questions/267326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: UIWebView within a ScrollView does not redraw I have UIWebView within a UIScrollView. Then as I scroll, the web view displays first two pages correctly but does draws only half of the third the page. If I tap on the web view it draws the content or if I call -[UIWebView reload] in -scrollViewDidEndDecelerating, it s...
{ "language": "en", "url": "https://stackoverflow.com/questions/267330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Convert integers to roman numerals using a syntax-directed translation scheme? The Dragon Book includes an exercise on converting integers to roman numerals using a syntax-directed translation scheme. How can this be completed? A: Next is grammar to represent syntax directed translation from number in format 1xxx i...
{ "language": "en", "url": "https://stackoverflow.com/questions/267351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How is the .net Entity Framework overkill versus LinqToSql? I've heard it said that the Entity Framework is overkill or that it's difficult to learn compared to LinqToSql. I am wondering in what way? I used LinqToSql and like it. So, I am trying the EF and for the things I'm doing they seem almost exactly the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/267357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: WPF: Eliminate transparency between grid cells I have a Grid in WPF. The Grid has a transparent background (necessary) and each of the cells potentially has a different colored solid background, or maybe no background. When I put arbitrary content in these cells, when two adjacent cells both have colored backgrounds...
{ "language": "en", "url": "https://stackoverflow.com/questions/267364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In C++: Is it possible to have a named enum be continued in a different file? For example: Base class header file has: enum FOO { FOO_A, FOO_B, FOO_C, FOO_USERSTART }; Then the derived class has: enum FOO { FOO_USERA=FOO_USERSTART FOO_USERB, FOO_USERC }; Just to be clear on my usage it is for having an event handl...
{ "language": "en", "url": "https://stackoverflow.com/questions/267367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which areas of the web.config can i safely delete? When beginning a new web project, i'm always a bit worried about removing pieces of the web.config. It seems there are more entries than ever with Net 3.5 SP1. Which bits of the .config do you delete for the following scenarios: * *WCF Web Service, no Javascript...
{ "language": "en", "url": "https://stackoverflow.com/questions/267369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do you write code to sort a list these days? People in java/.net world has framework which provides methods for sorting a list. In CS, we all might have gone through Bubble/Insertion/Merge/Shell sorting algorithms. Do you write any of it these days? With frameworks in place, do you write code for sorting? Do you thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/267374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sql Server Management Studio 2008 not scripting table permissions Sql Server Management Studio 2008 is not scripting table permissions even when I select the option to script object level permissions. Is this a bug or is there another way to do this? It is creating permissions for stored procs, but not for tables. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/267375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you match only valid roman numerals with a regular expression? Thinking about my other problem, i decided I can't even create a regular expression that will match roman numerals (let alone a context-free grammar that will generate them) The problem is matching only valid roman numerals. Eg, 990 is NOT "XM", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "189" }
Q: What are the best practices on MS-SQL when Windows Authentications is not an option? What is the best option for a windows application that uses SQL server authentication? Should I create a single SQL account and manage the users inside the application (using a users table). Or should I create a SQL server account f...
{ "language": "en", "url": "https://stackoverflow.com/questions/267400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you bind data to multiple columns in a list view? I have a datasource that I want to bind to a listview that has multiple columns. How do I bind my datasource to that listview Here is some pseudo code that doesn't work to help illustrate what I am trying to do: MyDataTable dt = GetDataSource(); ListView1.Data...
{ "language": "en", "url": "https://stackoverflow.com/questions/267410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Default HashMap probing in Java What does Java use as a default probing method for HashMap? Is it Linear? Chaining or something else? A: Looks like chaining to me. Code: (link) ... 724 /** 725 * Create new entry. 726 */ 727 Entry(int h, K k, V v, Entry n) { 728 value ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Elegant template specialization Is there an elegant way to specialize a template based on one of its template parameters? Ie. template<int N> struct Junk { static int foo() { // stuff return Junk<N - 1>::foo(); } }; // compile error: template argument '(size * 5)' involves template parameter...
{ "language": "en", "url": "https://stackoverflow.com/questions/267418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: TCL: Two way communication between threads in Windows I need to have two way communication between threads in Tcl and all I can get is one way with parameters passing in as my only master->helper communication channel. Here is what I have: proc ExecProgram { command } { if { [catch {open "| $command" RDWR} fd ]...
{ "language": "en", "url": "https://stackoverflow.com/questions/267420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get a build date for an ASP.NET application? Jeff wrote about getting a file version/datestamp a while back. Visual studio doesn't increment builds unless you close/reopen the solution, so grabbing the timestamp seems to be the best way to verify what build you are using. I ported the solution to C# // fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/267421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: c++ file io & splitting by separator I have a file with data listed as follows: 0, 2, 10 10, 8, 10 10, 10, 10 10, 16, 10 15, 10, 16 17, 10, 16 I want to be able to input the file and split it into three arrays, in the process trimming all excess spaces and convertin...
{ "language": "en", "url": "https://stackoverflow.com/questions/267427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I treat an ASCII string as unicode and unescape the escaped characters in it in python? For example, if I have a unicode string, I can encode it as an ASCII string like so: >>> u'\u003cfoo/\u003e'.encode('ascii') '<foo/>' However, I have e.g. this ASCII string: '\u003foo\u003e' ... that I want to turn into ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How do I manage deployment item references that may either be on an x86 install, or x64 install for an MSTest-based project? Much related to this question, we have a scenario on my team where we need to copy the contents of a folder for a suite of libraries and configuration files for said libraries to our folder wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/267439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I read/write an Encrypted XML file using LINQ to XML? I would like to read/write encrypted XML files using LINQ to XML. Does anyone know how to use encryption algorithms built into the .NET Framework to encrypt the Stream used by the XDocument object? I did try it, but you can't set the CryptoStream to Read/W...
{ "language": "en", "url": "https://stackoverflow.com/questions/267451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C++ cross-platform zlib simplifer-wrapper I'm looking for a wrapper that distills zlib to: * *OpenZipFile() *GetItemInfo(n) *UnzipItem(n) // Bonus points for unzipping recursively if item n is a directory. I see a lot of wrappers around the zlib library on, say, codeproject.com but they are all platform-spec...
{ "language": "en", "url": "https://stackoverflow.com/questions/267455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Upgrade SQL Server 2000 If I need to upgrade MSSQL 2000 TO MSSQL 2005 which is installed inside the citrix box. How can I check if it is compatible or not. Thanks A: To test compatibility you need to setup a test environment which roughly duplicates the expected live environment. That is to say you need to setup a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to revoke permission of Windows Administrator user from DB2? On IBM DB2 v.9 windows, when someone connect to database by Server\Administrator user DB2 database will automatically accept and grant all the permissions to this user? But, in some case environment Administrator of server does not need to see every da...
{ "language": "en", "url": "https://stackoverflow.com/questions/267465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Name of a file in a POST request in Google AppEngine Given the html form ... <form id="mainform" action="/upload" enctype="multipart/form-data" method="post"> <div> <input type="file" name="img"/> </div> <div> <input type="submit" value="Send"> </div> </f...
{ "language": "en", "url": "https://stackoverflow.com/questions/267467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why would `_getstream` fail? The exception mentions FILE* __cdecl _getstream I'm calling fopen and it keeps crashing. AfxMessageBox("getting here 1"); FILE* filePtr = fopen(fileName, "rb"); AfxMessageBox("getting here 2"); For some reason, I never get to the second message box. Interestingly, when I'm in debug mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/267473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ class member functions that use dummy parameters I know that you can use a dummy "int" parameter on operator++ and operator-- to override the postfix versions of those operators, but I vaguely recall something about a dummy parameter that you could declare on a destructor. Does anyone know anything about that, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/267477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does Castle Windsor allow the resolution of value types? I'm trying to pass a parameter into a component that requires a System.TimeSpan. I'm only able to get the 'long ticks' ctor to resolve. Here's a snippet of the config file: <component id="timeInForce" type="System.TimeSpan, mscorlib"> <parameters> <hours...
{ "language": "en", "url": "https://stackoverflow.com/questions/267483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In Delphi 7, how do I escape a percent sign (%) in the Format function? I want to do something like this: SQL.Text := Format('select foo from bar where baz like ''%s%''',[SearchTerm]); But Format doesn't like that last '%', of course. So how can I escape it? \%? %%? Or do I have to do this: SQL.Text := Format('sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/267487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Linq to Sql: Multiple left outer joins I'm having some trouble figuring out how to use more than one left outer join using LINQ to SQL. I understand how to use one left outer join. I'm using VB.NET. Below is my SQL syntax. T-SQL SELECT o.OrderNumber, v.VendorName, s.StatusName FROM Orders o LEFT O...
{ "language": "en", "url": "https://stackoverflow.com/questions/267488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "161" }
Q: Tools to view/diagram function-call hierarchies for C or C++ source files in OSX Are there any good source-code analyses tools for OSX. I am particularly interested in tools that are capable of diagramming function-call hierarchies for C and C++ source files. A: You might take a look at doxygen A: doxygen can do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/267507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Permission denied to get property HTMLDocument.body I am doing a hidden http post in one page of my application which will login to another application via iframe. In that iframe i am able to access certain functions of that application but however i encounter javascript Permission denied to get property HTMLDocumen...
{ "language": "en", "url": "https://stackoverflow.com/questions/267517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Representing unlimited in database with integer data type I have a table that saves some account limits like users. For most rows this value will be an integer. However I will also need to support storing unlimited (infinite) as a value. This might seem silly but is there a common integer value that represents unlim...
{ "language": "en", "url": "https://stackoverflow.com/questions/267521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: query: cross product instead of join I have two tables that I would like to join but I am getting an error from MySQL Table: books bookTagNum ShelfTagNum book1 1 book2 2 book3 2 Table: shelf shelfNum shelfTagNum 1 shelf1 2 shelf2 I want my results to be: bookTagNum ShelfTagNum sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/267530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Native PHP function that will grant me access to the string portions directly without having to create a temporary array? I asked this question before, Here however I think I presented the problem poorly, and got quite a few replies that may have been useful to someone but did not address the actual question and so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-7" }
Q: Telnet Server I would like to implement a telnet server in C. How would I proceed with this? Which RFCs should I look at? This is important to me, and I would appreciate any help. A: For very basic telnet (just telnet to a port and echo bytes), there's not much to do. Read from a socket, process it (in an echo ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/267538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: .Access violation reading location I've met a really strange problem. The code is as follow: ::boost::shared_ptr<CQImageFileInfo> pInfo=CQUserViewDataManager::GetInstance()->GetImageFileInfo(nIndex); Image* pImage=pInfo->m_pThumbnail; if(pImage==NULL) pImage=m_pStretchedDefaultThumbImage; else { // int ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the difference between String(value) and value as String? Just to make this clear - what is the difference between: String(value) and value as String What are the cases where you would use one over the other? They seem interchangeable... A: Casting with Type(variable) can cause a runtime exeception (RTE),...
{ "language": "en", "url": "https://stackoverflow.com/questions/267553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I keep Google from indexing my custom 404 error page? I use ASP.Net and I have a custom 404 page. When user pastes url that is not found it will redirected to the custom 404 page. However google indexes my custom 404 page. Search 404(page not found). Anyone have solution? A: You can make your errors director...
{ "language": "en", "url": "https://stackoverflow.com/questions/267578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET MVC Data Feedback through User Controls In our new product we have a few data entry fields that require you to search for the correct value to place in this field. When you enter this data entry field I would like to provide a search option via something on the view (perhaps an Ajax implementation) and hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/267589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Binding source is string with path to property I am unsure if this is even possible, but I thought I would ask. First off, for my purposes, I require this to work in the C# portion and not the XAML part. This is what I have and it works: public partial class MyClass1 : Window { public MyClass2 MyClass2Object { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to set proxy configuration of SVK I'm working behind a proxy, and now I'm trying to mirror a remote subversion repository, then got could not connect to server error with the svn mirror command. I found the following on svk faq page: Currently svk doesn't have its own configuration file. however it loads the on...
{ "language": "en", "url": "https://stackoverflow.com/questions/267604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I find out what a macro does without exposing myself to it? I have been given two different Microsoft Word document that my virus scanner has warned me contains macros. These should be simple text files, and the person who sent them doesn't even know what a macro is; they may be a mistake on his part, but th...
{ "language": "en", "url": "https://stackoverflow.com/questions/267607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Server side synchronization for mobile applications or client side synchronization if a mobile application needs to get data from multiple servers, is it better to call each server from the mobile device, or call one server which then talks to all the other servers? "should synchronization be initiated by the serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/267608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are the "must have" jQuery plugins? I'd like to know what are the most useful JQuery plugins. I'm particularly interested in those which are likely to be useful in general UI development, such as Tablesorter, rather than those which serve uncommon needs. If you could provide a very brief description of the plu...
{ "language": "en", "url": "https://stackoverflow.com/questions/267609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "108" }
Q: How to position a Node along a circular orbit around a fixed center based on mouse coordinates (JavaFX)? Im trying to get into some basic JavaFX game development and I'm getting confused with some circle maths. I have a circle at (x:250, y:250) with a radius of 50. My objective is to make a smaller circle to be plac...
{ "language": "en", "url": "https://stackoverflow.com/questions/267613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Focusing first control in the form using jquery Using jquery how do I focus the first element (edit field, text area, dropdown field, etc) in the form when the page load? Something like: document.forms[0].elements[0].focus(); but using jquery. Another requirement, don't focus the first element when the form has cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/267615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Understanding Firebug profiler output I've been trying to use Firebug's profiler to better understand the source of some JavaScript performance issues we are seeing, but I'm a little confused by the output. When I profile some code the profiler reports Profile (464.323 ms, 26,412 calls). I suspect that the 464.323 m...
{ "language": "en", "url": "https://stackoverflow.com/questions/267618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: scripting fruityloops or propellerheads reason from VB or Python? I have both Fruityloops and Propellerheads Reason software synths on my Windows PC. Any way I can get at and script these from either Visual Basic or Python? Or at least send Midi messages to the synths from code? Update : attempts to use something li...
{ "language": "en", "url": "https://stackoverflow.com/questions/267628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What's your experience with Doctrine ORM? What's your experience with doctrine? I've never been much of an ORM kind of guy, I mostlymanaged with just some basic db abstraction layer like adodb. But I understood all the concepts and benifits of it. So when a project came along that needed an ORM I thought that I'd g...
{ "language": "en", "url": "https://stackoverflow.com/questions/267629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How to generate sql scripts from a query Does anyone know how to generate SQL scripts from a query? For example, * *Script some tables. *Do custom action 1. *Script the views. *Do custom action 2. *Etc. A: It sounds like you want to write a cursor to execute custom SQL. This is common and easy to do. Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/267643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having both a Created and Last Updated timestamp columns in MySQL 4.0 I have the following table schema; CREATE TABLE `db1`.`sms_queue` ( `Id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, `Message` VARCHAR(160) NOT NULL DEFAULT 'Unknown Message Error', `CurrentState` VARCHAR(10) NOT NULL DEFAULT 'None', `Phone`...
{ "language": "en", "url": "https://stackoverflow.com/questions/267658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "133" }
Q: How to create a picture with animated aspects programmatically Background I have been asked by a client to create a picture of the world which has animated arrows/rays that come from one part of the world to another. The rays will be randomized, will represent a transaction, will fade out after they happen and wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/267660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you restore DTS permissions after database restore on SQL 2000 As part of the way we handle support for our clients for an enterprise application, we have them backup their database, I restore it on our server, do some maintenance, backup it up, and have them restore it on their server. This works very well,...
{ "language": "en", "url": "https://stackoverflow.com/questions/267664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I set up radio buttons in Excel? I want to use Excel to capture survey results. I want to have a large number of questions each with 5 radio buttons ranging from Excellent to Poor. Each radio button should correspond to a numerical value stored in a set of data cells somewhere (e.g Excellent = 13, Poor = 10, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Native Windows API link problem on Qt + win32 + mingw I am trying to use native windows API with Qt using mingw toolset. There are link problems with some functions. What happens? Is this a bug with mingw name mangling? #ifdef Q_WS_WIN HWND hwnd = QWidget::winId(); HDC hdcEMF = CreateEnhMetaFile(NULL, NULL,...
{ "language": "en", "url": "https://stackoverflow.com/questions/267672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to inspect the return value of a function in GDB? Is it possible to inspect the return value of a function in gdb assuming the return value is not assigned to a variable? A: Here's how todo this with no symbols. gdb ls This GDB was configured as "ppc64-yellowdog-linux-gnu"... (no debugging symbols found) Using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "114" }
Q: Canvas3D and Swing This question is regarding the performance issue in Mac OS X Canvas3D object is embedded in a JPanel; then the panel is integrated with the rest of the Swing-built application. Within that Canvas I am rendering a simple cube by applying certain transformations. At the initial launch It works fine...
{ "language": "en", "url": "https://stackoverflow.com/questions/267685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: FTP over Satellite/High Latency connections I use FTP on a daily basis to work on multiple websites, but when I try to work from home, my darned satellite internet has a latency of about 1000ms. (Its craptastic service, I know, but there are no alternatives where I live.) Thus, I was wondering if there is a way that...
{ "language": "en", "url": "https://stackoverflow.com/questions/267688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I force .NET to use a local copy of an assembly that's in the GAC I have a .NET assembly that (for reasons outside my control) must be in the GAC. However, the same assembly is used by another program, which has a its own copy of an older version of the same assembly. It must use its own copy and not whateve...
{ "language": "en", "url": "https://stackoverflow.com/questions/267693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: Replicate selected accounts in ActiveDirectory Is it possible to replicate selected objects (accounts) in an Active Directory Domain. We have a need to replicate selected accounts through our firewall to a DC sitting in the DMZ. We don't want to replicate all accounts to this machine, in case it is compromised. Any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Whats the best way to handle conditional dependencies in C# We're building an C# .NET app which will be running on computers sitting inside trucks. We need to talk to Digital IO ports on the truck computers which do not exist on our developer machines, so I need to write a dummy library which will be included in ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/267703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript: open new page in same window Is there an easy way to modify this code so that the target URL opens in the SAME window? <a href="javascript:q=(document.location.href);void(open('http://example.com/submit.php?url='+escape(q),'','resizable,location,menubar,toolbar,scrollbars,status'));">click here</a>`` ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: How to pass complex type using json to ASP.NET MVC controller I have a View that allows a user to enter/edit data for a new Widget. I'd like to form up that data into a json object and send it to my controller via AJAX so I can do the validation on the server without a postback. I've got it all working, except I ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/267707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Run ASP.NET MVC Preview 3 (or 4 or 5) and MVC Beta simultaneously I just recently installed the MVC beta. However, I assumed because the versioning numbers have changed and because it now uses the GAC instead of the bin folder that it wouldn't break existing applications. However, it has. What steps do I need to fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/267719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mysql strip time component from datetime I need to do a date comparison in Mysql without taking into account the time component i.e. i need to convert '2008-11-05 14:30:00' to '2008-11-05' Currently i am doing this: SELECT from_days(to_days(my_date)) Is there a proper way of doing this? A: In PostgreSQL you use th...
{ "language": "en", "url": "https://stackoverflow.com/questions/267721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "107" }
Q: Why XML-Serializable class need a parameterless constructor I'm writing code to do Xml serialization. With below function. public static string SerializeToXml(object obj) { XmlSerializer serializer = new XmlSerializer(obj.GetType()); using (StringWriter writer = new StringWriter()) { serializer.S...
{ "language": "en", "url": "https://stackoverflow.com/questions/267724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "177" }
Q: Launch System Screensaver from C# Windows Form Hopefully this is a simple one, but can anyone provide some simple c# code that will launch the currently configured screensaver? A: Here is a good site showing how to work with all aspects of the screensaver. See the comments at the end for the code to start the scree...
{ "language": "en", "url": "https://stackoverflow.com/questions/267728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to write code just for debug mode in MFC vs2005 I want to define some member variable and some code just in Debug Mode, When change to Release mode, they will not appear. I know I can use #ifdef xxx to do this task. My question is : is there any handy macro provided by MFC to do this. A: #ifdef _DEBUG Visual S...
{ "language": "en", "url": "https://stackoverflow.com/questions/267737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }