text
stringlengths
8
267k
meta
dict
Q: How to upgrade JRE Is there anyway to upgrade the installed JRE in the system? We are having 1.5.0_08 installed in out HP Unix system.We have to upgrade this to 1.5.0_15.Is there a way to patch up the existing JRE and upgrade to a newer version.Or can this only be achieved by installing the newer JRE and set this in...
{ "language": "en", "url": "https://stackoverflow.com/questions/173960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I use the new SVN merge-tracking? In my existing (Pre-SVN 1.5) merge strategy, we create a copy of the Trunk (called BasePoint) at the moment of branch-creation for referencing later during the merge. When we need to merge a branch back into the trunk, we perform 2 operations. * *Merge from BasePoint to Lat...
{ "language": "en", "url": "https://stackoverflow.com/questions/173974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Is abstracting data type (sometimes) a good idea? There are numerous times you have an interface that accepts similar type arguments that have a separate domain logic meaning: public static class Database { public static bool HasAccess(string userId, string documentId) { return true; } } Now it's quite easy to h...
{ "language": "en", "url": "https://stackoverflow.com/questions/173980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: (re)initialise a vector to a certain length with initial values As a function argument I get a vector<double>& vec (an output vector, hence non-const) with unknown length and values. I want to initialise this vector to a specific length n with all zeroes. This will work vec.clear(); vec.resize( n, 0.0 ); And this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/173995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to format a currency datafield in Flex I have an xml file providing data for a datagrid in Flex 2 that includes an unformatted Price field (ie: it is just a number). Can anyone tell me how I take that datafield and format it - add a currency symbol, put in thousand separators etc. Thanks. S. A: Thanks alot for...
{ "language": "en", "url": "https://stackoverflow.com/questions/174005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it worth converting my functional JavaScript code to an object-oriented design? I'm currently building a small web application that includes a fair amount of JavaScript. When I was prototyping the initial idea, I just hacked together a few functions to demonstrate how the application would eventually behave inten...
{ "language": "en", "url": "https://stackoverflow.com/questions/174008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: linker out of memory LNK1102 My colleagues and I have tried to build a project containing several thousand classes , but we're getting a LNK1102 error ( Linker out of memory ) . I've seen several tips on the internet , such as increasing the virtual memory . We tried but this didn't help . We've also seen some as en...
{ "language": "en", "url": "https://stackoverflow.com/questions/174013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Object arrays in method signatures Consider the following method signatures: public fooMethod (Foo[] foos) { /*...*/ } and public fooMethod (Foo... foos) { /*...*/ } Explanation: The former takes an array of Foo-objects as an argument - fooMethod(new Foo[]{..}) - while the latter takes an arbitrary amount of argum...
{ "language": "en", "url": "https://stackoverflow.com/questions/174024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you trigger javascript functions from flash? How do you trigger a javascript function using actionscript in flash? The goal is to trigger jQuery functionality from a flash movie A: As Jochen said ExternalInterface is the way to go and I can confirm that it works with AS2. If you plan to trigger navigation o...
{ "language": "en", "url": "https://stackoverflow.com/questions/174025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Which database would you recommend to use with C# (.NET) application? I'm developing a little project plan and I came to a point when I need to decide what local databse system to use. The input data is going to be stored on webserver (hosting - MySQL DB). The idea is to build a process to download all necessary dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/174059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Adding a new application group in linux How can I, in Java or using some other programming language, add a new program group in the applications menu in both KDE and Gnome? I am testing with Ubuntu and Kubuntu 8. Putting a simple .menu file in ~/.config/menus/applications-merged worked in Kubuntu, but the same proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/174069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .toArray(new MyClass[0]) or .toArray(new MyClass[myList.size()])? Assuming I have an ArrayList ArrayList<MyClass> myList; And I want to call toArray, is there a performance reason to use MyClass[] arr = myList.toArray(new MyClass[myList.size()]); over MyClass[] arr = myList.toArray(new MyClass[0]); ? I prefer the...
{ "language": "en", "url": "https://stackoverflow.com/questions/174093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "213" }
Q: Scaling an application I have an application (an IP conferencing service) that I need to scale. It has quite a few independent components/applications, written in different languages (mainly C++ and PHP, some Perl). Currently a single installation runs on 5 machines, with 1-2 components sharing a single box. The con...
{ "language": "en", "url": "https://stackoverflow.com/questions/174106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why do shell script comparisons often use x$VAR = xyes? I see this often in the build scripts of projects that use autotools (autoconf, automake). When somebody wants to check the value of a shell variable, they frequently use this idiom: if test "x$SHELL_VAR" = "xyes"; then ... What is the advantage to this over ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: JKS protection Are JKS (Java Key Store) files encrypted? Do they provide full protection for encryption keys, or do I need to rely solely on access control? Is there a way to ensure that the keys are protected? I'm interested in the gritty details, including algorithm, key management, etc. Is any of this configurabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/174131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Counting the number of deleted rows in a SQL Server stored procedure In SQL Server 2005, is there a way of deleting rows and being told how many were actually deleted? I could do a select count(*) with the same conditions, but I need this to be utterly trustworthy. My first guess was to use the @@ROWCOUNT variabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/174143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Storing X509 certificates in DB - Yea or Nay? I find myself needing to store public key certificates, and a single private key certificate for an in-house application. A member of our team suggested storing the X509 certificates in the database, instead of storing it in the windows certificate store, as we have been...
{ "language": "en", "url": "https://stackoverflow.com/questions/174149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Pre and post increment/decrement operators in C# In C#, does anybody know why the following will compile: int i = 1; ++i; i++; but this will not compile? int i = 1; ++i++; (Compiler error: The operand of an increment or decrement operator must be a variable, property or indexer.) A: My guess would be that ++i ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/174153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Switch statement fallthrough in C#? Switch statement fallthrough is one of my personal major reasons for loving switch vs. if/else if constructs. An example is in order here: static string NumberToWords(int number) { string[] numbers = new string[] { "", "one", "two", "three", "four", "five", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "410" }
Q: Is the Entity Framework basically another CRUD code generator? Is entity framework just a fancy name for another CRUD code generator? Or is there more to it? A: Thats sort of like saying object oriented programming is basically proceedural with a few modifications. While EF is NOT considered the best example of obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/174163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python - Py2exe can't build .exe using the 'email' module py2exe does not work with the standard email module Hello. I am trying to use py2exe for converting a script into an exe. The build process shows this: The following modules appear to be missing ['email.Encoders', 'email.Generator', 'email.Iterators', 'email...
{ "language": "en", "url": "https://stackoverflow.com/questions/174170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Including non-Java sources in a Maven project I'm starting on a project that I expect will include a substantial amount of non-Java code (mostly shell and SQL scripts). I would still like to manage this project with Maven. What are the best practices wrt non-Java source code and Maven? Where should the source go? Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/174171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Oracle APEX access Is Oracle Application Express suitable for Intranet client/server application? If so, what should I do to enable client access to application? Well, I am working as a PowerBuilder/Oracle developer, so I am familiar with client/server architecture. I have recently read an article about APEX so I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/174174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In which layer are you putting your REST api? Our application is structured something like: UI <--> REST API <--> Workflow <--> Business Logic <--> DAL <--> DB However, I am seeing a few examples where it looks like people are doing UI <--> Workflow <--> REST API <--> Business Logic <--> DAL <--> DB Is this my ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/174181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Recursive Rails Nested Resources I have a Rails application for project management where there are Project and Task models. A project can have many tasks, but a task can also have many tasks, ad infinitum. Using nested resources, we can have /projects/1/tasks, /projects/1/tasks/new, /projects/1/tasks/3/edit etc. How...
{ "language": "en", "url": "https://stackoverflow.com/questions/174190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Visual Studio: Is there a "move class to different namespace" refactoring? I'm doing some architectural cleanup that involves moving a bunch of classes into different projects and/or namespaces. Currently I'm moving the files by hand, building, and then manually adding using Foo statements as needed to resolve compi...
{ "language": "en", "url": "https://stackoverflow.com/questions/174193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: C#3.0 Automatic properties, why not access the field directly? With the new approach of having the get/set within the attribut of the class like that : public string FirstName { get; set; } Why simply not simply put the attribute FirstName public without accessor? A: Two of the big problems with direct...
{ "language": "en", "url": "https://stackoverflow.com/questions/174198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Unlock Windows workstation programmatically I would like to write a small application that unlocks the workstation. To put the specs of what I need very simple: Have an exe that runs and at a defined time (let's say midnight) unlocks the workstation. Of course the application knows the user and password of the logge...
{ "language": "en", "url": "https://stackoverflow.com/questions/174225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to open a new email, and assign subject, using .NET Compact Framework Basically I'm trying to accomplish the same thing that "mailto:bgates@microsoft.com" does in Internet Explorer Mobile. But I want to be able to do it from a managed Windows Mobile application. I don't want to send an email pro grammatically in...
{ "language": "en", "url": "https://stackoverflow.com/questions/174232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best way to send data to aspx page in ASP.NET 2.0/3.5? Which is Best way to send data to aspx page, and why? * *using query string *using session *using cross page postback *Something else Thanks. What are you trying to achieve? More info. please For example search form and advanced search form or mult...
{ "language": "en", "url": "https://stackoverflow.com/questions/174238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Default scope resolution I have inherited a c# class 'Button' (which I can't change) which clashes with the BCL class 'Windows.Forms.Button'. Normally, Id be very happy to go: MyPackage.MyClass.Button; But there are a large number or references to this class which is a pain to have to re-type. Is there any way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/174239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Writing a language for the Windows Scripting Host (WSH) Has anyone had any experience targetting WSH in the way that VBScript, JScript, PerlScript, xbScript and ForthScript (among other) do, such that the language can be used from the command line and embedded in server-side web pages? Where do I go to get that kind...
{ "language": "en", "url": "https://stackoverflow.com/questions/174240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I create a Firebug-like bottom window Firefox extension Several extensions offer a "bottom window" for viewing their content. Firebug and ScribeFire are good examples where the main content appears at the bottom of the browser. This appears to be very similar to the sidebar functionality in the browser. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/174243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Strategy for tracking user recent activity Our customer would like to know who is online and currently using the custom application we wrote for them. I discussed it with them and this does not need to be exact, more of a guestimate will work. So my thought is a 15 minute time interval to determine user activity....
{ "language": "en", "url": "https://stackoverflow.com/questions/174248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Load and save bitmaps using dotnet This may be simple one, but 5 mins of Googling didn't give me the answer. How do you save and load bitmaps using .Net librabries? I have an Image object and I need to save it to disk in some format (preferably png) and load back in later. A C# example would be great. A: Here's a r...
{ "language": "en", "url": "https://stackoverflow.com/questions/174263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to prevent VS 2008 from opening files when opening a solution When I open a solution in VS 2008, I don't want it to open all the files that I had open last time. I just want it to open the solution. Can't see a config option for this, is it possible? A: Delete the .suo file... See Is there anyway to tell Visu...
{ "language": "en", "url": "https://stackoverflow.com/questions/174285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Techniques for dynamic (algorithmic) graphics I'm programming an application for a 32 bit processor with limited memory (512k flash, 32k RAM). The display on this device is 128x160 with 16 bit color, which would normally consume 40k ram if I were to buffer it on my processor. I don't have that much RAM, so I'm look...
{ "language": "en", "url": "https://stackoverflow.com/questions/174289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to delete a value from an array in Perl? The array has lots of data and I need to delete two elements. Below is the code snippet I am using, my @array = (1,2,3,4,5,5,6,5,4,9); my $element_omitted = 5; @array = grep { $_ != $element_omitted } @array; A: Use splice if you already know the index...
{ "language": "en", "url": "https://stackoverflow.com/questions/174292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: Oracle: ORA-00932 when converting column_expression from user_ind_expressions using to_lob Try running these two simple statements on Oracle 10.2: CREATE TABLE mytest (table_name varchar2(30), index_name varchar2(30), column_expression clob, column_position number); INSERT INTO mytest (table_name, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using both Eclipse and NetBeans on the same project Eclipse is a really great editor, which I prefer to use, but the GUI design tools for Eclipse are lacking. On the other hand, NetBeans works really well for GUI design. Are there any tips, tricks or pitfalls for using NetBeans for GUI design and Eclipse for ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/174308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: UITableView didSelectRow while editing? I'm building an interface much like the built-in Weather application's flipside view, or the Alarms view of the Clock application in editing mode. The table view is always in editing mode, so the delete icon appears on the left side of each cell. When the table view is in edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/174309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: asp:TextBox ReadOnly=true or Enabled=false? What's the difference between the Enabled and the ReadOnly-properties of an asp:TextBox control? A: If a control is disabled it cannot be edited and its content is excluded when the form is submitted. If a control is readonly it cannot be edited, but its content (if any) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: How do I retrieve the size of a directory from Perforce? I would like to know how much disk space a directory is going to consume before I bring it over from the Perforce server. I don't see any way to do this other than getting the files and looking at the size of the directory in a file manager. This, of course,...
{ "language": "en", "url": "https://stackoverflow.com/questions/174322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Comparative advantages of xdoc and apt formats What are the relative merits of the xdoc and apt formats for writing websites of Maven projects? Is one more expressive than the other? Has one got better tool support than the other? A: The XDOC format is definitely a richer mechanism for creating documents and is req...
{ "language": "en", "url": "https://stackoverflow.com/questions/174325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Will web browsers cache content over https Will content requested over https still be cached by web browsers or do they consider this insecure behaviour? If this is the case is there anyway to tell them it's ok to cache? A: As of 2010, all modern, current-ish browsers cache HTTPS content by default, unless explici...
{ "language": "en", "url": "https://stackoverflow.com/questions/174348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "249" }
Q: Forcing single-argument constructors to be explicit in C++? By default, in C++, a single-argument constructor can be used as an implicit conversion operator. This can be suppressed by marking the constructor as explicit. I'd prefer to make "explicit" be the default, so that the compiler cannot silently use these con...
{ "language": "en", "url": "https://stackoverflow.com/questions/174349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: 1-dimensional nesting algorithm What is an effective algorithm for nesting 1 dimensional lengths into predefined stock lengths? For example, If you required steel bars in the following quantities and lengths, * *5 x 2 metres *5 x 3 metres *5 x 4 metres and these can be cut from 10 metre bars. How could you c...
{ "language": "en", "url": "https://stackoverflow.com/questions/174351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Using ButtonField or HyperLinkField to write a cookie in ASP.NET I currently have a DetailsView in ASP.NET that gets data from the database based on an ID passed through a QueryString. What I've been trying to do now is to then use that same ID in a new cookie that is created when a user clicks either a ButtonField ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I resize my panels when resizing the main form in a winforms application? If the user of my winforms application resizes the main form, I want the 2 panels to stretch out also, along with the child controls. How can I achieve this? A: Play around with the Dock and Anchor properties of your panels. A: You ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/174355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Ways to ASSERT expressions at build time in C I'm tidying up some older code that uses 'magic numbers' all over the place to set hardware registers, and I would like to use constants instead of these numbers to make the code somewhat more expressive (in fact they will map to the names/values used to document the reg...
{ "language": "en", "url": "https://stackoverflow.com/questions/174356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How to detect a file modifications with TFS? It seems that when I use a tool (such as winmerge) to update my codebase... my Visual Studio Team System (VSTS) integration with Team Foundation Server (TFS) doesn't seem to pick it up. How do I know which files to check out and check back in? Is there something I am miss...
{ "language": "en", "url": "https://stackoverflow.com/questions/174365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I re-use an existing database connection in phpBB3? I am using my own db for phpbb3 forum, and I wish to insert some data from the forum into my own tables. Now, I can make my own connection and it runs my query but in trying to use the $db variable(which I think is what you're meant to use??) it gives me an...
{ "language": "en", "url": "https://stackoverflow.com/questions/174375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring webflow : Move through view states Within a spring webflow, i need to implement a navigation bar that will allow to "step back" or resume the flow to one of the previous view. For example : * *View 1 = login *View 2 = My informations *View 3 = My messages *View 4 = Close session For this example, i wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/174380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I check if at least one of two subexpressions in a regular expression match? I am trying to match floating-point decimal numbers with a regular expression. There may or may not be a number before the decimal, and the decimal may or may not be present, and if it is present it may or may not have digits after...
{ "language": "en", "url": "https://stackoverflow.com/questions/174381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Does anyone know if NetBeans 6.x can be used with Java SE 6 on Leopard? Java SE 6 (64 bit only) is now on OS X and that is a good thing. As I understand it since Eclipse is still Carbon and thus 32 bit, it cannot be used for 1.6 on Leopard, only 1.5. Does anyone know if NetBeans 6.x can be used with Java SE 6 on Le...
{ "language": "en", "url": "https://stackoverflow.com/questions/174383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does RSACryptoServiceProvider.VerifyHash need an LDAP check? I recently encountered an odd problem with RSACryptoServiceProvider.VerifyHash. I have a web application using it for decryption. When users running the web service were doing so over our VPN it became very very slow. When they had no connection or a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why is getenv('REMOTE_ADDR') giving me a blank IP address? This PHP code... 207 if (getenv(HTTP_X_FORWARDED_FOR)) { 208 $ip = getenv('HTTP_X_FORWARD_FOR'); 209 $host = gethostbyaddr($ip); 210 } else { 211 $ip = getenv('REMOTE_ADDR'); 212 $host = gethostbyaddr($ip); 213 } Thr...
{ "language": "en", "url": "https://stackoverflow.com/questions/174393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Codify a measure in a database field name I've got a question concerning fields in databases which are measures that might be displayed in different units but are stored only in one, such as "height", for example. Where should the "pattern unit" be stated?. Of course, in the documentation, etc... But we all know nob...
{ "language": "en", "url": "https://stackoverflow.com/questions/174394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using VS 2005 to design abstract forms There's a famous bug in Visual Studio that prevents you from using the form designer on a subclass of an abstract form. This problem has already been elucidated and solved most elegantly by Urban Potato; that's not the part I'm having trouble with. The trouble is, I have dup...
{ "language": "en", "url": "https://stackoverflow.com/questions/174400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: .Net WebBrowser.DocumentText Isn't Changing! In my vb.net program, I am using a webbrowser to show the user an HTML preview. I was previously hitting a server to grab the HTML, then returning on an asynchronous thread and raising an event to populate the WebBrowser.DocumentText with the HTML string I was returning....
{ "language": "en", "url": "https://stackoverflow.com/questions/174403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Cookies and Objects I'm having trouble figuring out how to access a cookie from a compiled object. I'm trying to make a compiled (DLL) object that will check the users cookie and then compare that to a database to confirm they have the correct access. I can pass in the cookie info fine and the component will work, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Modern equivalent of javadeps? I am looking for a replacement for javadeps, which I used to use to generate sections of a Makefile to specify which classes depended on which source files. Unfortunately javadeps itself has not been updated in a while, and cannot parse generic types or static imports. The closest thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/174417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you improve this 'lines of code algorithm' in F#? I've written a little script to iterate across files in folders to count lines of code. The heart of the script is this function to count lines of whitespace, comments, and code. (Note that for the moment it is tailored to C# and doesn't know about multi-line com...
{ "language": "en", "url": "https://stackoverflow.com/questions/174418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I implement java-like synchronization (monitors) using the Win32 API? Each Java object (and its class) has an associated monitor. In pthread terms a Java monitor is equivalent to the combination of a reentrant mutex and a condition variable. For locking, the Win32 API provides Mutex objects (which are reentr...
{ "language": "en", "url": "https://stackoverflow.com/questions/174423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Log4Net "Could not find schema information" messages I decided to use log4net as a logger for a new webservice project. Everything is working fine, but I get a lot of messages like the one below, for every log4net tag I am using in my web.config: Could not find schema information for the element 'log4net'... Bel...
{ "language": "en", "url": "https://stackoverflow.com/questions/174430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: Query showing list of associations in many-to-many relationship I have two tables, Book and Tag, and books are tagged using the association table BookTag. I want to create a report that contains a list of books, and for each book a list of the book's tags. Tag IDs will suffice, tag names are not necessary. Example: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Complex profiles in maven I've been looking at profiles in maven for selecting different sets of dependencies. This is fine when you want to build say a debug build differently from a release build. My problem is that I want to do a fair bit more than this. For my application (Mobile Java app where J2ME is just one ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to automate converting Excel xls files to Excel xml format? I have about 200 Excel files that are in standard Excel 2003 format. I need them all to be saved as Excel xml - basically the same as opening each file and choosing Save As... and then choosing Save as type: XML Spreadsheet Would you know any simple wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/174446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: To STL or !STL, that is the question Unquestionably, I would choose to use the STL for most C++ programming projects. The question was presented to me recently however, "Are there any cases where you wouldn't use the STL?"... The more I thought about it, the more I realized that perhaps there SHOULD be cases where I...
{ "language": "en", "url": "https://stackoverflow.com/questions/174449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Exceptions for flow of control There is an interesting post over here about this, in relation to cross-application flow of control. Well, recently, I've come across an interesting problem. Generating the nth value in a potentially (practically) endless recursive sequence. This particular algorithm WILL be in atleas...
{ "language": "en", "url": "https://stackoverflow.com/questions/174458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are some good 3rd party controls for Windows Mobile? We're developing a windows mobile 6.1 application and would like to make the user interface look better than the standard battleship grey. Has anyone had any experience with 3rd party controls that can make a windows mobile app look like a WPF/Silverlight/Ip...
{ "language": "en", "url": "https://stackoverflow.com/questions/174459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deleting multiline text from multiple files I have a bunch of java files from which I want to remove the javadoc lines with the license [am changing it on my code]. The pattern I am looking for is ^\* \* ProjectName .* USA\.$ but matched across lines Is there a way sed [or a commonly used editor in Windows/Linux] c...
{ "language": "en", "url": "https://stackoverflow.com/questions/174472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the equivalent to JUnit in C#? I am coming from Java and am currently working on a C# project. What is the recommended way to go about a) unit testing existing C# code and b) accomplishing TDD for C# development? Also is there an equivalent to EMMA / EclEmma (free yet powerful code coverage tool) for Visual ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: String to Int in java - Likely bad data, need to avoid exceptions Seeing as Java doesn't have nullable types, nor does it have a TryParse(), how do you handle input validation without throwing an exceptions? The usual way: String userdata = /*value from gui*/ int val; try { val = Integer.parseInt(userdata); } cat...
{ "language": "en", "url": "https://stackoverflow.com/questions/174502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How do you copy a MS SQL 2000 database programmatically using C#? I need to copy several tables from one DB to another in SQL Server 2000, using C# (VS 2005). The call needs to be parameterized - I need to be able to pass in the name of the database to which I am going to be copying these tables. I could use DTS wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/174515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Selecting a maximum order number in SQL I have a table that records a sequence of actions with a field that records the sequence order: user data sequence 1 foo 0 1 bar 1 1 baz 2 2 foo 0 3 bar 0 3 foo 1 Selecting the first item for each user is easy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can Generic Type Mapper (MSSOAP toolkit) be persuaded to handle empty arrays I'm having the problem described here: http://groups.google.com/group/microsoft.public.xml.soap/browse_thread/thread/029ee5b5d4fa2440/0895d73c5c3720a1 I am consuming a Web Service using Office 2003 Web Services Toolkit. This generates clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/174517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to read the content of a file to a string in C? What is the simplest way (least error-prone, least lines of code, however you want to interpret it) to open a file in C and read its contents into a string (char*, char[], whatever)? A: Note: This is a modification of the accepted answer above. Here's a way to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "136" }
Q: How to find "holes" in a table I recently inherited a database on which one of the tables has the primary key composed of encoded values (Part1*1000 + Part2). I normalized that column, but I cannot change the old values. So now I have select ID from table order by ID ID 100001 100002 101001 ... I want to find the "...
{ "language": "en", "url": "https://stackoverflow.com/questions/174532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Google Maps Overlays I'm trying to find something, preferably F/OSS, that can generate a Google Maps overlay from KML and/or KMZ data. We've got an event site we're working on that needed to accommodate ~16,000 place markers last year and will likely have at least that many again this year. Last year, the company th...
{ "language": "en", "url": "https://stackoverflow.com/questions/174535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Sharing Test code in Maven How can you depend on test code from another module in Maven? Example, I have 2 modules: * *Base *Main I would like a test case in Main to extend a base test class in Base. Is this possible? Update: Found an acceptable answer, which involves creating a test jar. A: I recommend us...
{ "language": "en", "url": "https://stackoverflow.com/questions/174560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "200" }
Q: Help with deploying Crystal Report embedded Visual Studio 2008 website I have been trying to get around this error for a day now and have not had much luck. I have a VS 2008 project that uses the embedded Crystal Reports which of course runs fine locally, but when deploying to my remote server the reports will no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to set property to Guid in aspx page I have the following code in one of my aspx pages: <% foreach (Dependency dep in this.Common.GetDependencies(this.Request.QueryString["Name"])) { %> <ctl:DependencyEditor DependencyKey='<%= dep.Key %>' runat="server" /> <% } %> When I run it, I get the following e...
{ "language": "en", "url": "https://stackoverflow.com/questions/174570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I rename a column in a database table using SQL? If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible? This is for any database claiming to support SQL, I'm simply looking for an SQL-specific query that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/174582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "130" }
Q: Best open source LINQ provider What's the best open source LINQ provider (in terms of completeness)? I'm developing an open source LINQ provider myself and I'd like to borrow as many ideas as I can, avoid common pitfalls, etc. Do not restrict yourself to database LINQ providers, any provider suggestion is welcome. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Can you add documents and spreadsheets to a Visual Studio Project? In Eclipse, I often include all project-related material (including documents in PDF, Microsoft, and OpenDocument formats) in the project. Is this possible with Visual Studio, especially to the point where if I attempt to open the file from inside Vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/174593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: In an Oracle database, what is the difference between ROWNUM and ROW_NUMBER? What is the difference between ROWNUM and ROW_NUMBER ? A: ROWNUM is a "pseudocolumn" that assigns a number to each row returned by a query: SQL> select rownum, ename, deptno 2 from emp; ROWNUM ENAME DEPTNO ---------- ---...
{ "language": "en", "url": "https://stackoverflow.com/questions/174595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: rails in_place_edit: how do I pass an authenticity token? I am trying to get in place editing working but I am running into this error: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken) I understand that rails now wants to protect against forgery and that I need to pass a form a...
{ "language": "en", "url": "https://stackoverflow.com/questions/174598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to disable a SQL Server trigger for just a particular scope of execution? In SQL Server 2005, is there a way for a trigger to find out what object is responsible for firing the trigger? I would like to use this to disable the trigger for one stored procedure. Is there any other way to disable the trig...
{ "language": "en", "url": "https://stackoverflow.com/questions/174600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: CAML query to locate specific SPFolder nested in document library tree It seems like searching with CAML and SPQuery doesn't work properly against custom metadata, when searching for SPFolders instead of files, or when searching for custom content types. I've been using U2U to test a variety of queries, and just no...
{ "language": "en", "url": "https://stackoverflow.com/questions/174602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross platform format string for variables of type size_t? On a cross platform c/c++ project (Win32, Linux, OSX), I need to use the *printf functions to print some variables of type size_t. In some environments size_t's are 8 bytes and on others they are 4. On glibc I have %zd, and on Win32 I can use %Id. Is ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/174612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Regular Expression: Match to (aa|bb) (cc)? My regular expression needs to be able to find the strings: * *Visual Studio 2008 *Visual Studio Express 2008 *Visual Basic 2008 *Visual Basic Express 2008 *Visual C++ 2008 *Visual C++ Express 2008 and a host of other similar variants, to be replaced with this one...
{ "language": "en", "url": "https://stackoverflow.com/questions/174633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Wiimote example programs I'd like to use the Wiimote (accelerometers, gyroscopes, infrared camera, etc, etc, etc) on various applications. It's a bluetooth device, and I know others have connected it to their computer. * *What's the easiest way to start using it in my software - are there libraries for C#, for i...
{ "language": "en", "url": "https://stackoverflow.com/questions/174653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Calculating which tiles are lit in a tile-based game ("raytracing") I'm writing a little tile-based game, for which I'd like to support light sources. But my algorithm-fu is too weak, hence I come to you for help. The situation is like this: There is a tile-based map (held as a 2D array), containing a single light s...
{ "language": "en", "url": "https://stackoverflow.com/questions/174659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: A C# to VB.Net conversion utility that handles Automatic properties correctly? I hope this isn't considered a duplicate since it's more pointed than similar questions (I'm curious about a specific weakness in C# to VB.net conversion utilities). I've been looking at using a tool like this .net code converter to conve...
{ "language": "en", "url": "https://stackoverflow.com/questions/174662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: operators as strings I need to evaluate a mathmatical expression that is presented to me as a string in C#. Example noddy but gets the point across that the string as the expression. I need the evaluate to then populate an int. There is no Eval() in C# like in others langugaes... String myString = "3*4"; Edit: I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/174664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Should I create a JQuery server control for ASP.net to best use it in my apps? I have been rather successful in promoting JQuery within my organization. No small feat on it's own. However, one of the ideas being kicked around here to make it part of our app is to create an ASP.net server side control. (We are going ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using PHP to write to OS X's log database? Do any apps/packages exist that will support writing to OS X's log database from external sources. I'm not too familiar with the specifics of the database, beyond the fact that you can view its contents from the Console app. I'm not even sure if it's just a version of some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Studio 2005 Not Loading After Visual Studio 2005 displays the splash screen it locks up on me. No error, no cpu utilization, just a frozen splash screen. I've tried it in both /safemode and /resetsettings I'm sure it's one of the services on my machine, just wonder if anyone else has had the problem and can...
{ "language": "en", "url": "https://stackoverflow.com/questions/174702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatic Update and checkin of AssemblyInfo.cs files occasionally causes partial fail We have TFS 2008 our build set up to checkout all AssemblyInfo.cs files in the project, update them with AssemblyInfoTask, and then either undo the checkout or checkin depending on whether the build passed or not. Unfortunately, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }