text
stringlengths
8
267k
meta
dict
Q: c++ template instantiation I have a template class like below. template<int S> class A { private: char string[S]; public: A() { for(int i =0; i<S; i++) { . . } } int MaxLength() { return S; } }; If i instantiate the above class with different values of S, will the compile...
{ "language": "en", "url": "https://stackoverflow.com/questions/348763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.net - what are the best latest tools /frameworks, etc to look at . . Ok, i have done a bunch of asp as well as asp.net right when it came out. A friend is starting a non profit organization and he wants me to put together a site for him. I figured i would kill 2 birds with one stone and look to freshen up my...
{ "language": "en", "url": "https://stackoverflow.com/questions/348764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: reading COM port value and printing in textArea which located inside the panel in java I have to read a COM port and the data should be displayed inside the TextArea dynamically (data will come every minute), which I have created inside JPanel. Advance Thanks for reply. A: Some leads: * *java2s has some examples...
{ "language": "en", "url": "https://stackoverflow.com/questions/348777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best practices for formatting a message for MessageBox.Show(...) in Winforms for Vista In XP/2003 I had become accustomed to writing my MessageBox.Show(..) code like this : MessageBox.Show("Title", "Sorry an error has occured!\n" + "You may want to try one of the following:\n\n" + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/348784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Crystal Reports in ASP.NET MVC I know the use of server-side controls is a no-no in ASP.NET MVC, however we have a long list of crystal reports that the company has already produced for a previous application that I would like to utilize for our new ASP.NET MVC application. Is there an appropriate way to use crystal...
{ "language": "en", "url": "https://stackoverflow.com/questions/348785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: End of file descriptor in a grammar implementation I am working on a compiler implementation and wish to check if the end of file has been reached? I know that this can be done using the yywrap() function in the lex file, but the requirement is that we want if the EOF is explicitly defined as in the hex value 0x1a,...
{ "language": "en", "url": "https://stackoverflow.com/questions/348788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you tell if caps lock is on using JavaScript? How do you tell if caps lock is on using JavaScript? One caveat though: I did google it and the best solution I could find was to attach an onkeypress event to every input, then check each time if the letter pressed was uppercase, and if it was, then check if shif...
{ "language": "en", "url": "https://stackoverflow.com/questions/348792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "267" }
Q: how to create multi select auto complete combobox? In my case I want to implement a multi-select auto-complete combobox using HTML, JavaScript, and JSP. Is there anybody who knows how to implement this? This will be similar to the text field shown in StackOverflow while adding multiple tags to any question. A: I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/348794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MFC> Connecting a dialog to a dialog class I have defined a new dialog and its controls in an already existing resource file. I have also created a new file which will handle the events being generated from this dialog. But I am not sure how to connect these two. Is the statement enum { IDD=IDD_NEW_DIALOG }; all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/348807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Juggling multiple object instances This question is coded in pseudo-PHP, but I really don't mind what language I get answers in (except for Ruby :-P), as this is purely hypothetical. In fact, PHP is quite possibly the worst language to be doing this type of logic in. Unfortunately, I have never done this before, so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/348821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to know the exact line of code where an exception has been caused? If I generate an exception on my own, I can include any info into the exception: a number of code line and name of source file. Something like this: throw std::exception("myFile.cpp:255"); But what's with unhandled exceptions or with exceptions ...
{ "language": "en", "url": "https://stackoverflow.com/questions/348833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Correct way to have an image link in asp.net mvc? Something like this might had worked <%= Html.RouteLink("", new { controller = "Article", action = "Details", id = A.ArticleID}, new { @class = "image-link" })%> Except it doesnt like an empty title. A: This could work. <a href="<%= Url.Action("Article", "Details",...
{ "language": "en", "url": "https://stackoverflow.com/questions/348837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Introduction to computer algebra systems? Does anybody know of any resources (books, classes, lecture notes, or anything) about the general theory of computer algebra systems (e.g. mathematica, sympy)? "Introductory" materials are preferred, but I realize that with such a specialized subject anything is bound to be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/348847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: How do I get a windows batch file to pause while an executable runs? I am writing a batch file, in which I call an EXE to execute. Now, statements after the call to the EXE should not execute till the EXE completes its execution. How can I do it in the batch file (on Windows)? A: It depends on how the .exe works. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/348849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Code Coverage tools for PHP Is there any code coverage tool available for PHP? I wish to check the code coverage of my code and API's written in PHP, but have not been able to lay my hands on any code coverage tool for PHP, as it is more of a server side language and dynamic in nature. Does anyone know of a method b...
{ "language": "en", "url": "https://stackoverflow.com/questions/348850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Units of measure in C# - almost Inspired by Units of Measure in F#, and despite asserting (here) that you couldn't do it in C#, I had an idea the other day which I've been playing around with. namespace UnitsOfMeasure { public interface IUnit { } public static class Length { public interface ILen...
{ "language": "en", "url": "https://stackoverflow.com/questions/348853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: How do I monitor what commands my ftp application is sending to a ftp server F Is there a way to monitor the FTP port so that I can know what commands my FTP application is sending to a FTP server? I am using a closed-source FTP client application, which is not working with a closed-source FTP application server. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/348864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: asp.net mvc related, mainly a refactor question can anyone think of a better way to do this? [AcceptVerbs(HttpVerbs.Post)] public ActionResult SaveAction() { NameValueDeserializer value = new NameValueDeserializer(); // selected messages MemberMessageSaveAction[] messages = (Memb...
{ "language": "en", "url": "https://stackoverflow.com/questions/348867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What purpose do unmanaged.dll.manifest files serve? I observe unmanaged.dll files having a unmanaged.dll.manifest file tagging along. On opening this files in an editor, it seems to be normal XML with links to certain other dependent managed? assemblies. This seems to be like a recent change.. don't remember seeing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/348877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting week number off a date in MS SQL Server 2005? Is it possible to create an sql statement that selects the week number (NOT the day of week - or the day number in a week). I'm creating a view to select this extra information along with a couple of other fields and thus can not use a stored procedure. I'm aware...
{ "language": "en", "url": "https://stackoverflow.com/questions/348880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How can I see a visualization of a dynamic call graph for a .NET program? Is there a tool out there for visualizing dynamic call graphs? I saw a reference to one for Visual Basic 6 but I'd like one for .NET. If I had to build a visualizer myself should I bother with the .NET profiling API or should I do something wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/348881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to design database for authorization and authentication I normally in my projects use such these code: If user.IsInRole("Admin") Then deleteButton.Visible = True else deleteButton.Visible = False But I want to control roles, which can see this button in database. For this purpose how should database desi...
{ "language": "en", "url": "https://stackoverflow.com/questions/348892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Another LINQ Pivot Problem - Convert SQL Script to LINQ There are a few questions on SO already regarding LINQ pivots and while a couple of them outline my exact problem, I can't successfully translate them to a working solution. I feel that this is mostly due to a join in my tables. So for the benefit of all the L...
{ "language": "en", "url": "https://stackoverflow.com/questions/348900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Building a Windows executable from my Ruby app? I'd like to be able to send a Ruby app to some colleagues without requiring them to install a Ruby interpreter. A single exe would be preferable. I googled and found "RubyScript2Exe". What are your experiences with that? Are there other such tools or are there better a...
{ "language": "en", "url": "https://stackoverflow.com/questions/348919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: member control through admin account using php I am new to php. I made a member registration on login page and adm too. So inside admin I wanted to get the list of the members and delete the members I dont want. So I took the a code from a sample code for phone book from http://localhost/xamp and editted it to my r...
{ "language": "en", "url": "https://stackoverflow.com/questions/348920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Server Error in '/DNNTest' Application Parser Error Message: The entry 'SiteSqlServer' has already been added. Source Error: Line 23: providerName="System.Data.SqlClient"/> --> Line 24: < ! -- Connection String for SQL Server 2000/2005 --> Line 25: <add name="SiteSqlServer" connectionString="Server=(local); aba...
{ "language": "en", "url": "https://stackoverflow.com/questions/348928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple Dispatchers problem I have the following problem: Multithreaded WPF application, Model View Presenter Implementation. Presenters and Views that belong together are created by a factory on a separate thread and should get a separate Dispatcher. Public Function CreatePresenter(Of T As {New, Class})(ByVal p_e...
{ "language": "en", "url": "https://stackoverflow.com/questions/348934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Eventual Consistency I am in the early stages of design of an application that has to be highly available and scalable. I want to use an eventual consistency data model for this for a number of reasons. I know and understand why this is an unpopular architectural choice for many solutions, but it's important in my c...
{ "language": "en", "url": "https://stackoverflow.com/questions/348939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do I resolve: "error C2039: '{ctor}' : is not a member of" in Visual Studio 2005? I am extending a template class using C++ in Visual Studio 2005. It is giving me an error when I try to extend the template base class with: template <class K, class D> class RedBlackTreeOGL : public RedBlackTree<K, D>::RedBlackTre...
{ "language": "en", "url": "https://stackoverflow.com/questions/348953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Algorithms recognizing physical address on a webpage What are the best algorithms for recognizing structured data on an HTML page? For example Google will recognize the address of home/company in an email, and offers a map to this address. A: If you have the markup proper—and not just the text from the page—I secon...
{ "language": "en", "url": "https://stackoverflow.com/questions/348958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to use foreach keyword on custom Objects in C# Can someone share a simple example of using the foreach keyword with custom objects? A: Given the tags, I assume you mean in .NET - and I'll choose to talk about C#, as that's what I know about. The foreach statement (usually) uses IEnumerable and IEnumerator or th...
{ "language": "en", "url": "https://stackoverflow.com/questions/348964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: asp.net "file not found" - no reference to file! I'm working with asp.net (I'm a designer) and at some point during debugging it'll throw me and I'll get to an Exception objErr in the code - and when I hover it says "file not found". I assume it's an image but I've been searching and can't find anyway to pinpoint wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/348966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Turning off authenticity token in Rails 2 for web services? Instead of just filling out the form in HTML it should also be possible to just send a post request containing the params.. Is it possible to turn off the authenticity token if, for example, the Accept flag is set to 'application/JSON' in the HTTP header? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/348976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Are there any practical reasons to use "em" instead of "pt" font size units? One CSS rule I have learned is that you should use the relative "em" font-size unit instead of the absolute "pt". The general idea is to set the font-size in your body tag to e.g. "94%" and then set all other elements with an "em" size lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/348978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Static functions in Linux device driver? Is there a reason why most function definition in device driver in linux code is defined as static? Is there a reason for this? I was told this is for scoping and to prevent namespace pollution, could anyone explain it in detail why static definition is used in this context?...
{ "language": "en", "url": "https://stackoverflow.com/questions/348984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: deadlock on synchronized ( String intern()) I user sun jdk 1.5 ThreadPoolExecutor( 24, 24,60,TimeUnit.SECONDS, new LinkedBlockingQueue()). soemtime I use jdb tool to find the status of all threads in thread pool are " waiting in a monitor", the code is : String key = getKey(dt.getPrefix(), id); synchronize...
{ "language": "en", "url": "https://stackoverflow.com/questions/348985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Xor of string in ruby I have a string, lets say "123|ABC|test|12345|FF" and I want to xor the ascii value of each character and print the result in hex. What is the simplest way? A: Found it... lrc = 0 input.each_byte do | c | lrc ^= c end hexVal = lrc.to_s(16) A: In Ruby 1.8.7 or 1.9.1: input.bytes.inject { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/348991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding a mimetype in python On my Centos server Python's mimetypes.guess_type("mobile.3gp") returns (None, None), instead of ('video/3gpp', None). Where does Python get the list of mimetypes from, and is it possible to add a missing type to the list? A: On my system (Debian lenny) its in /usr/lib/python2.5/mimetype...
{ "language": "en", "url": "https://stackoverflow.com/questions/348999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why won't my program run unless Visual Studio 2008 is installed? I have written a game that uses GLUT, OpenGL and FMOD. The problem is that the binary won't run, unless Visual Studio 2008 is installed on the computer. Why is this? A: You mean why is Microsoft Visual C++ 2008 Redistributable Package (x86) needed? T...
{ "language": "en", "url": "https://stackoverflow.com/questions/349004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Do you use a different app id for your iPhone beta apps? Those of us with iPhone apps (released or unreleased) are able to send out limited beta builds using ad-hoc distribution. While the Apple docs for this have a few holes in them, there are a number of blogs, postings and other articles out there on "the net" th...
{ "language": "en", "url": "https://stackoverflow.com/questions/349016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: AS400 style naming over JDBC Is there any way I can use AS400 style library/file style naming over JDBC with jt400? I want to be able to run queries like: SELECT * FROM MYLIBRARY/MYFILE Thanks A: Set the jdbc naming property to "system". http://javadoc.midrange.com/jtopen_6_3/com/ibm/as400/access/doc-files/JDBCPr...
{ "language": "en", "url": "https://stackoverflow.com/questions/349018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remote Computer Name in SQL Server I have an app that run on many computers and connect to sql server I want to log the machine names of that computers in a table every time they connect how can I do that I want to know if there is a command like that "Select @@MachineName" A: It's up to you how you want to log thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/349022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Plaintext/HTML Email doesn't work in mac mail client The code below is the code i am using. It works fine in thunderbird but not in mac mail client (and i assume anything made by microsoft. I currently do not have access to this to test it in). Much as i am aware of the idiosyncrasies of the various mail clients, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is a string literal in С++ created in static memory? Is a string literal in C++ created in static memory and destroyed only when the program exits? A: Yes, string literals are valid for the entire duration of the program, even during the destruction of static objects. 2.13.4/1 in the Standard says An ordinary stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/349025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: I don't want a "close window" menu item in the task bar context menu for my WPF window I don't want a "close window" menu item in the task bar context menu for my WPF window. My intention is to annoy the user. Thank you! A: An easier option would be to do this: <Window ShowInTaskbar="False" ... /> A: Although I d...
{ "language": "en", "url": "https://stackoverflow.com/questions/349040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Converting Connection string to SQLOLEDB Connection Code: set conx = Server.CreateObject("ADODB.connection") conx.Open Application("connectionString") set cmdx = server.CreateObject("ADODB.command") cmdx.ActiveConnection = conx cmdx.CommandText = "dbo.sproc" cmdx.CommandType = &H0004 set rsx = Server.CreateObject(...
{ "language": "en", "url": "https://stackoverflow.com/questions/349047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change the base type of a UDT in Sql Server 2005? I have my type "x" of type varchar(50). How can I alter it to varchar(100)? It seems I can't! A: you can't. what you can do is * *script all objects that contain the type using OBJECT_DEFINITION. *drop them. *recreate type with new length *recreate the...
{ "language": "en", "url": "https://stackoverflow.com/questions/349049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Calculating a LookAt matrix I'm in the midst of writing a 3d engine and I've come across the LookAt algorithm described in the DirectX documentation: zaxis = normal(At - Eye) xaxis = normal(cross(Up, zaxis)) yaxis = cross(zaxis, xaxis) xaxis.x yaxis.x zaxis.x 0 xaxis.y yaxis...
{ "language": "en", "url": "https://stackoverflow.com/questions/349050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: how to check status of checkboxes in gridview columns on click of button T have used checkbox column in gridview. On click of a linkbutton, it should be checked that checkboxes in gridview are checked or not. If none check box is checked then it should display alert("Check at leat one check box"). A: You will have...
{ "language": "en", "url": "https://stackoverflow.com/questions/349055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Report section style list numbering in CSS? Now I know about the "normal" CSS list styles (roman, latin, etc) and certainly in years past they were somewhat inflexible in not allowing things like: (a) or a) only a. Now I believe that you can get an effect like the above with the :before and :after pseudo-elements. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Possible to overload null-coalescing operator? Is it possible to overload the null-coalescing operator for a class in C#? Say for example I want to return a default value if an instance is null and return the instance if it's not. The code would look like something like this: return instance ?? new MyClass("Def...
{ "language": "en", "url": "https://stackoverflow.com/questions/349062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Applying Extension method to generic class with generic type I was working with the generic class in vb.net. And it seems extension method cannot be applied to generic class without specifying the type. I have this generic class Public Class MyGeneric(Of T) 'Methods and properties go here ' ' End Class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Download a file using Javascript There's this Excel file I want users to be able to download from my server. There must be an easy way to initiate the download of the file after a click on the "Download" button... but I have no clue how to make that happen. I have this so far: (VBscript and ASP) <head> <script type...
{ "language": "en", "url": "https://stackoverflow.com/questions/349067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Changing the color of ComboBox's highlighter in C# Hey. I have a problem with the highlighter in ComboBox. Recently I had to gray out certain items in a ComboBox and I did that by manually (programitically) drawing strings in the ComboBox. In a .NET combobox under the DrawMode.NORMAL, the lighlighter will automatica...
{ "language": "en", "url": "https://stackoverflow.com/questions/349075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Visual studio - is there a way to select multiple files and wrap a namespace around each of them? Is there a way to select all classes within a folder and assign a namespace to each of them in visual studio? If there is no tool to do it, is there a regex pattern that will match everything before the class declatari...
{ "language": "en", "url": "https://stackoverflow.com/questions/349086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to check status of checkboxes in gridview columns on click of button I have used checkbox column in gridview. I want to check status of that checkboxes. On click of a button it should be checked that if any checkbox is checked or not. If none checkbox is checked then it should display alert message that check ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/349087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can a sql server table have two identity columns? I need to have one column as the primary key and another to auto increment an order number field. Is this possible? EDIT: I think I'll just use a composite number as the order number. Thanks anyways. A: Add one identity column and then add a computed column whose fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/349092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Is Mason a framework? I've been having an agruement with a friend that Mason (Perl) is not a framework, but a templating language. I feel Mason for Perl does what JSP does for Java (as an analogy, not pure technical comparison). From what I know, JSP is not a framework and I feel neither is Mason. When I looked up w...
{ "language": "en", "url": "https://stackoverflow.com/questions/349094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Why can't my Java webservice talk to my Perl backend? In our project the Java webservice communicate with the backend program written in C and Perl to process. We are using the ProcessBuilderto execute a backend (UNIX) job FrameworkHandler. ProcessBuilder process; process.Start(FrameworkHandler -a ACTION) Framework...
{ "language": "en", "url": "https://stackoverflow.com/questions/349103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL query for max() of all columns What is the correct way of retrieving maximum values of all columns in a table with a single query? Thanks. Clarification: the same query should work on any table, i.e. the column names are not to be hard-coded into it. A: SELECT max(col1) as max_col1, max(col2) as max_col2 FROM...
{ "language": "en", "url": "https://stackoverflow.com/questions/349108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: System.Diagnostics: How to log using an identity I have implemented tracing based on System.Diagnostics. I am also using a System.Diagnostics.TextWriterTraceListener, and hooked the whole trace up to a MOSS 2007 Web Application. The trace for some reason is trying to (a) create the log file, and/or (b) write to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/349119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an easy way to recreate the WinForms layout experience at runtime for user positioning of controls When laying out a WinForm in Visual Studio you get the ability to resize and align your controls very easily with drag handles and border alignment hints. I'd like to do the same with a runtime control to enab...
{ "language": "en", "url": "https://stackoverflow.com/questions/349121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Single User: Turn off locking for Microsoft SQL Server I'm running an upgrade script against a database hosted in Microsoft SQL Server. It's taking a while. Some of the queries are not worth optimising any further, for various reasons. I'm the only person using this database: Is there a way that I can tell SQL Serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/349126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mail Client without POP or IMAP My university refused to allow us to access out mail via POP or IMAP etc so I want to write a GTK based C app that sits in my notifcation area and does the job of a mail client notifier. Because I can't use anything like POP or IMAP, what would be a good way to do it? I guess I could...
{ "language": "en", "url": "https://stackoverflow.com/questions/349127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error is loading the jars i`m getting NoClassDefintion found error in my application even though i had the associated jars in my lin folder of my ear the error is java.rmi.RemoteException: EJB Exception: ; nested exception is: java.lang.NoClassDefFoundError: com/sun/rave/web/ui/model/Option Note i had added...
{ "language": "en", "url": "https://stackoverflow.com/questions/349131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TabControl tab headings resize when changing font I have an application that changes the font of every control to SegoeUI when it is run in Vista. It works fine, except for headings of tabpages (the buttons to click when switching from one tab to another). Tab page headings do not grow vertically to accommodate a l...
{ "language": "en", "url": "https://stackoverflow.com/questions/349133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OS X inter thread communication question I am developing a multi-threaded application in Cocoa. The main thread takes values from the user, and when a button is clicked I invoke a secondary thread in which a long calculation takes place. Now from this thread I have to return the output of every step of the calculati...
{ "language": "en", "url": "https://stackoverflow.com/questions/349142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How long before ASP.NET MVC becomes widely used in industry? I am trying to decide whether to learn ASP.NET MVC (or to spend the time learning another technology that interests me). I know that it is an elegant framework, but I am trying to assess my future job opportunities if I invest in this skill. In your estima...
{ "language": "en", "url": "https://stackoverflow.com/questions/349150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do autocomplete suggestions work? For example, if you type something in upper-right google/yahoo search box in firefox there will be some kind 'suggested auto complete' sort of thing. Another example is in youtube search box and Stackoverflow tags edit box just below this question preview. How do they work? Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/349155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do I match a square bracket literal using RegEx? What's the regex to match a square bracket? I'm using \\] in a pattern in eregi_replace, but it doesn't seem to be able to find a ]... A: Works flawlessly: <?php $hay = "ab]cd"; echo eregi_replace("\]", "e", $hay); ?> Output: abecd A: There are two way...
{ "language": "en", "url": "https://stackoverflow.com/questions/349156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Experiences with SEDA and C#? I'm thinking about SEDA. We design at the moment an application (which is running on a server as a service) which must be multithreaded and message / event based. The SEDA idea is very intresting and should match. But I cannot find articles etc. writing about experiences made with it. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Formatting a data structure into a comma-separated list of arguments I need to convert a list (or a dict) into a comma-separated list for passing to another language. Is there a nicer way of doing this than: result = '' args = ['a', 'b', 'c', 'd'] i = 0 for arg in args: if i != 0: result += arg els...
{ "language": "en", "url": "https://stackoverflow.com/questions/349175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Use of volatile (Thread.VolatileRead/ Thread.VolatileWrite) in C# In a multi-threaded program running on a multi-cpu machine do I need to access shared state ( _data in the example code below) using volatile read/writes to ensure correctness. In other words, can heap objects be cached on the cpu? Using the example b...
{ "language": "en", "url": "https://stackoverflow.com/questions/349192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: I need help with scrolling on my control - c# I've written a simple control which basically displays a few words with an image next to it. I want the containing items to strech when the parent form is resized and as you can see from my commented out code, I don't want to use a loop as it flickers. Any idea on how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/349204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I find the "concrete class" of a django model baseclass I'm trying to find the actual class of a django-model object, when using model-inheritance. Some code to describe the problem: class Base(models.model): def basemethod(self): ... class Child_1(Base): pass class Child_2(Base): pass ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: can log4net be configured to run under its own identity? I'm thinking about using log4net in a MOSS(SharePoint) 2007 project, but I need to know if the logging can easily be configured to log using a certain username + password. A: Doesn't look like it (based on a quick flick through the documentation), but you co...
{ "language": "en", "url": "https://stackoverflow.com/questions/349213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delphi code sample for fingerprint recognition Do you know where can I find a Delphi code sample for fingerprint recognition from an image file. A: I don't know too much about biometrics image recognition, but you would have better luck looking for C or C++ code, and port it over to Delphi. See Free Fingerprint Im...
{ "language": "en", "url": "https://stackoverflow.com/questions/349237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript AJAX function not loading I had a realtivley simple ajax application, which I have broken up to be more modular. The code is at the link below, and what I have mainly done is add the GetRecordSet function and allowed fetchcompelte to take a variable for which layer to put data in. It should work fine in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/349238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an equivalent to Trac written in PHP? Is there an equivalent to Trac written in PHP? I need something that integrates with SVN and is free. It should allow me to browse the SVN source, have some kind of bug tracking and show recent changes in the SVN. A wiki isn't essential. Thanks in advance.
{ "language": "en", "url": "https://stackoverflow.com/questions/349241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Creating CVS view from branch with empty directrories I am using cvs -tag -b "abcdefg" command to tag-branch in my CVS. My CSV repo has an empty directory "obj" in every folder. Whenever I use the command cvs co -r "abcdefg" REPO, I get a complete repo minus the empty folders. I tried using -f option too but it did...
{ "language": "en", "url": "https://stackoverflow.com/questions/349248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to display xml in javascript? As the question says, it just escaped my memory how to display xml in javascript, I want to display some source xml within an div on a page, that sits next to the processed result of the xml in another div. Can't remember if there was an equivalent to javascript's escape to convert ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I find out how many files are in a directory? I need to get a count of the number of files in a directory. I could get the names of all the files in the directory using System.IO.Directory.GetFiles() and take the length of that array but that takes too long on large directories. Is there a way to get just t...
{ "language": "en", "url": "https://stackoverflow.com/questions/349251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Compact Framework - Timeout function for locking UI after period of inactivity Good morning, I am the developer of a medium sized PDA application that will be used out on the streets. The PDA will contain some vaguely sensitive data (names and addresses, etc). The encryption on the mobile database is already handled...
{ "language": "en", "url": "https://stackoverflow.com/questions/349255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XML or own-format file? When is a good idea to save information in a XML file and when in a own-format file? For XML (or other standard) I see: * *(+) Standard format. *(-) It's tedious to hand modify. For own-format files I see: * *(-) We need to build a own-parser (non-standard). *(+) It can be easy to h...
{ "language": "en", "url": "https://stackoverflow.com/questions/349256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: detecting true border, padding and margin from Javascript Is there a way to detect the true border, padding and margin of elements from Javascript code? If you look at the following code: <html> <head> <style> <!-- .some_class { padding-left: 2px; border: 2px solid...
{ "language": "en", "url": "https://stackoverflow.com/questions/349257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: MySQL tool or query that suggests table structure I used a query a few weeks ago in MySQL that described a table and suggested possible improvements to its structure. For example, if I have an int field but only the numbers 1-3 in that field, it will suggest set(1,2,3) as the type. I think I was using phpMyAdmin but...
{ "language": "en", "url": "https://stackoverflow.com/questions/349260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: .net architecture: Creating a IRepository generically I am using a generic repository interface which allows me to add, find, update and delete objects of different types. I have then implemented two concrete repositories and can switch them around without changing the application. Everything is wonderfully disconne...
{ "language": "en", "url": "https://stackoverflow.com/questions/349280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET membership password expiration I am using ASP.NET membership for the authentication of my web app. This worked great for me. I now have to implement password expiration. If the password has expired the user should be redirected to ChangePassword screen and should not be allowed access to any other part of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/349286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Convert datetime in to date How do I convert a datetime field in Grails to just date, with out capturing the time? I need to do this for comparison with system date. class Trip { String name String city Date startDate Date endDate String purpose String notes static constraints = { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: IDE/compiler PC benchmark to compare my PCs performance? I'm looking for a benchmark (and results on other PCs) which would give me an idea of the development performance gain I could get by upgrading my PC, also the benchmark could be used to justify the upgrade to my boss. I use Visual Studio 2008 for my developme...
{ "language": "en", "url": "https://stackoverflow.com/questions/349293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Transaction scope in windows workflow foundation I have used the transaction scope activity in windows workflow foundation. I am getting an workflow SQL persistence error. I am not having SQL persistence database. Do we need persisetence services. I am not having Microsoft Distributed Transaction Coordinator (MSDTC)...
{ "language": "en", "url": "https://stackoverflow.com/questions/349308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What other frameworks should ASP.Net programmers consult for code inspiration? What other frameworks should ASP.Net programmers consult for code inspiration? A: Broaden your search - don't look just at ASP.NET MVC. Different approaches will help you better understand things you want to do. Some suggestions: * *R...
{ "language": "en", "url": "https://stackoverflow.com/questions/349318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: using css to duplicate html elements I've been handing a design for a webpage which I'm trying to implement correctly. This design contains navigation elements which are partially or entirely duplicated all over the page - in particular, links to the main 3 categories for navigation are present on the page no less ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How can I add column resizing to a MooTools sortable table? I want a table similar to this one, but where the user can adjust the height of the table as well as sort it. How can I do this? A: I found the good one here http://groups.google.com/group/flexigrid/?pli=1 A: http://demos111.mootools.net/Resizable
{ "language": "en", "url": "https://stackoverflow.com/questions/349325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How should I structure resource bundle property files which are used by jsps? I am currently working on converting an existing web application to support an additional language (namely Welsh). My proposed approach is to extract all displayed text into property files and then access the text using JSTL fmt tags. My q...
{ "language": "en", "url": "https://stackoverflow.com/questions/349326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Testing Process.Start? I am creating an application that manages multiple instances of an external utility, supplying each with data and fetching results. But I'm facing a problem writing unit tests. How to test if the target method actually starts a process (set via a property) when called? I have tried: * *Make ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: JavaScript function is not working. How to fix it? I have the following JavaScript code: Link In which the function makewindows does not seem to be working. It does actual create a window, however the html either contains what is quotes, or if I change it to child1.document.write(json_encode($row2["ARTICLE_DESC"]));...
{ "language": "en", "url": "https://stackoverflow.com/questions/349348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server: PRINT output doesn't appear immediately In SQL Server 2005 Management Studio, it appears that the output of PRINT statements doesn't appear immediately: If I have a PRINT statement followed by a long-running statement, the PRINT output doesn't appear until after the following statement. Is there any way ...
{ "language": "en", "url": "https://stackoverflow.com/questions/349358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: Version control of MDF files I'm working on a web app (it is in asp.net mvc framework beta in visual studio 2008) and want to version control it. How do I version control the database files (*.mdf, binary) in the App_Data folder. Is there a way to just store the tables-and-whatever definition of the database or do...
{ "language": "en", "url": "https://stackoverflow.com/questions/349360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: SQL Server: Upgrading databases We've got a product that uses a Microsoft SQL Server database. We've got customers using various older versions of the product. How do people write/structure their database upgrade scripts in this situation? A: You need a set of release-to-release patch scripts. On production system...
{ "language": "en", "url": "https://stackoverflow.com/questions/349364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }