text
stringlengths
8
267k
meta
dict
Q: fmt:parseDate - a parse index locale can not be established Does anyone know the root cause of this error? I am feeding known good data to the fmt:parseDate tag (its db driven data controlled by us), and yet this error randomly pops up. I can't seem to find a way to replicate what causes this exception. A: How op...
{ "language": "en", "url": "https://stackoverflow.com/questions/164559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you map enums to and from the database using NHibernate? Edit: Ryan raised a good point. I specifically want to be able to map to and from while still storing human-readable values in the database. That is, I don't want a bunch of enumeration integers in my database. A: According to the documentation you c...
{ "language": "en", "url": "https://stackoverflow.com/questions/164564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Keypoints morphing Is there a library/software which can accept a number of keypoints and matches of them between images and produce a morph? Or any ideas/algorithms on how to do it? A: Xmorph and GTK morph can do that -- although the key points must be parts of equivalent rectangle grids. The underlying algorithm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MSXML from C++ - pretty print / indent newly created documents I'm writing out XML files using the MSXML parser, with a wrapper I downloaded from here: http://www.codeproject.com/KB/XML/JW_CXml.aspx. Works great except that when I create a new document from code (so not load from file and modify), the result is all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Omitting XML processing instruction when serializing an object I'm serializing an object in a C# VS2003 / .Net 1.1 application. I need it serialized without the processing instruction, however. The XmlSerializer class puts out something like this: <?xml version="1.0" encoding="utf-16" ?> <MyObject> <Property1>D...
{ "language": "en", "url": "https://stackoverflow.com/questions/164585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I install "SQL Server" ODBC Driver? I Have "SQL Native Client", but not "SQL Server" ODBC driver. I have SQL 2005 installed on my machine. Tried to fix by installing SQL Server client tools. Any ideas would be appreciated. I'm running Windows XP Pro. A: Found this Microsoft download. It says it provides the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Calling stored procedures I have a c# application that interfaces with the database only through stored procedures. I have tried various techniques for calling stored procedures. At the root is the SqlCommand class, however I would like to achieve several things: * *make the interface between c# and sql smoother,...
{ "language": "en", "url": "https://stackoverflow.com/questions/164594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I setup the permissions in Linux so that two users can update the same SVN working copy on the server? My server has both Subversion and Apache installed, and the Apache web directory is also a Subversion working copy. The reason for this is that the simple command svn update /server/staging will deploy the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I see my applications threads while debugging in Visual Studio? I would like to see the threads currently active in my application while debugging it. How can I do this using Visual Studio? A: While RichS' answer is technically correct, the information displayed in that window is not as helpful if you have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Why are try blocks expensive? I've heard the advice that you should avoid try catch blocks if possible since they're expensive. My question is specifically about the .NET platform: Why are try blocks expensive? Summary of Responses: There are clearly two camps on this issue: those that say that try blocks are expens...
{ "language": "en", "url": "https://stackoverflow.com/questions/164613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Using Crystal Reports in Visual Studio 2005 (C# .NET Windows App) I need to create reports in a C# .NET Windows app. I've got an SQL Server 2005 database, Visual Studio 2005 and am quite OK with creating stored procedures and datasets. Can someone please point me in the right direction for creating reports? I just c...
{ "language": "en", "url": "https://stackoverflow.com/questions/164621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to create and resolve relative paths? My app open file in subdirectory of directory where it is executed, subdirectory is called sample and it contains files: * *example.raf (example extension, non significant) *background.gif example.raf contains relative path to background.gif (in this case only file name ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create grails war without version number How do I create a grails war file so that it doesn't have the version number (e.g. foo-0.1.war) attached to the end when I execute the 'grails war' command? A: Rolling up the other excellent answers. There are several options: Explicitly set it on the command line: grails...
{ "language": "en", "url": "https://stackoverflow.com/questions/164642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Is an int a 64-bit integer in 64-bit C#? In my C# source code I may have declared integers as: int i = 5; or Int32 i = 5; In the currently prevalent 32-bit world they are equivalent. However, as we move into a 64-bit world, am I correct in saying that the following will become the same? int i = 5; Int64 i = 5; A...
{ "language": "en", "url": "https://stackoverflow.com/questions/164643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Formatting Literal parameters of a C# code snippet Is there any way that I can change how a Literal of a code snippet renders when it is used in the code that the snippet generates? Specifically I'd like to know if I can have a literal called say, $PropertyName$ and then get the snippet engine to render "_$PropertyN...
{ "language": "en", "url": "https://stackoverflow.com/questions/164645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Where can I find a good collection of public domain owl ontologies for various domains? I am building an ontology-processing tool and need lots of examples of various owl ontologies, as people are building and using them in the real world. I'm not talking about foundational ontologies such as Cyc, I'm talking abou...
{ "language": "en", "url": "https://stackoverflow.com/questions/164648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Best Practices for Entity Framework and ASP.NET I've been driving myself crazy trying to get the Entity Framework to work as expected (or at least as I expect) in an ASP.NET environment, specifically dealing with objects belonging to different contexts when attempting to save to the database. What are the best pract...
{ "language": "en", "url": "https://stackoverflow.com/questions/164661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Office 2003 PIA Prerequisite in the .Net framework and Office 2007 What happens when the Office 2003 PIA prerequisite and launch condition in a Windows installer are run against an Office 2007 system? A: Yes, it will fail unless for the simple reason that Office 2003 is not installed. We create separate installers ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET DBNull vs Nothing across all variable types? I am a little confused about null values and variables in .NET. (VB preferred) Is there any way to check the "nullness" of ANY given variable regardless of whether it was an object or a value type? Or does my null check have to always anticipate whether it's checking...
{ "language": "en", "url": "https://stackoverflow.com/questions/164697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I use C# style enumerations in Ruby? I just want to know the best way to emulate a C# style enumeration in Ruby. A: It's not quite the same, but I'll often build a hash for this kind of thing: STATES = {:open => 1, :closed => 2, :max => 3, :min => 4}.freeze() Freezing the hash keeps me from accidentally mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/164714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: API for creating installers on Windows There are lots of tools for creating installers on Windows (InstallShield, InnoSetup, NSIS, just to name a few). All tools I've seen fall in one or both of these categories * *Point-and-click. Nice GUI for creating the installer, but the installer definition/project file can...
{ "language": "en", "url": "https://stackoverflow.com/questions/164719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Return custom structure from Popup window in Powerbuilder 9.0 How do you return values or structures from a Popup window in Powerbuilder 9.0? The CloseWithReturn is only valid for Response windows and thus is not available. When I set a value to the Message.PowerObjectParm, the value becomes null when the Popup wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/164727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redirect Standard Output Efficiently in .NET I am trying to call php-cgi.exe from a .NET program. I use RedirectStandardOutput to get the output back as a stream but the whole thing is very slow. Do you have any idea on how I can make that faster? Any other technique? Dim oCGI As ProcessStartInfo = New ProcessSt...
{ "language": "en", "url": "https://stackoverflow.com/questions/164736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What's the best way to create a "magnifying glass" on a 2D scene? I'm working on a game where I need to let the player look at a plane (e.g., a wall) through a lens (e.g., a magnifying glass). The game is to run on the iPhone, so my choices are Core Animation or OpenGL ES. My first idea (that I have not yet tried) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to avoid flicker while handling WM_ERASEBKGND in Windows dialog I have a dialog that resizes. It also has a custom background which I paint in response to a WM_ERASEBKGND call (currently a simple call to FillSolidRect). When the dialog is resized, there is tremendous flickering going on. To try and reduce th...
{ "language": "en", "url": "https://stackoverflow.com/questions/164751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Best Practices - Should meta data and functional defining data be intermixed? Consider the case of a simple news article web application that has a DB table column of "Status" that is accessible by a radio button set of: Status - [x] Publish [ ] Draft [ ] Archive ...where "Publish" shows an article publicly and "Dra...
{ "language": "en", "url": "https://stackoverflow.com/questions/164752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to access the last element in an array? $array = explode(".", $row[copy]); $a = $array.length -1; I want to return the last element of this array but all i get from this is -1. A: You can also use: $a = end($array); This also sets the arrays internal pointer to the end of the array, but it does get you the las...
{ "language": "en", "url": "https://stackoverflow.com/questions/164767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to forward the TCP/IP traffic of a process in Windows XP? alt text http://img440.imageshack.us/img440/6950/problemyd1.png (The curly lines with dots represent a network route.) Having a process called "foo.exe", is there a way to forward everything it communicates over TCP/IP to a forwarding proxy located elsewh...
{ "language": "en", "url": "https://stackoverflow.com/questions/164768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Overcoming Windows User Object Handle Limit I'm looking for advanced strategies for dealing with User Object Handle limits when building heavy-weight windows interfaces. Please explain how you overcame or bypassed this issue using SWT or direct Windows GUI APIs. The only thing I am not interested in is strategies ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: WinForms: Implementation question for having my UI run independently of my BLL layer? I am trying to do a Windows Forms application in an MVP style and - not having done much with threading before - am getting all confused. My UI is a set of very simple forms. Each of the forms implements an interface and contains ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I open an Access DB via ADO so that I can write, but others can only read? From the documentation, I would expect adModeShareDenyWrite to be the way, but it's not working right. I'm using an Access database via ADO. My connection string says Mode=8, which is adModeShareDenyWrite. But when I try to delete...
{ "language": "en", "url": "https://stackoverflow.com/questions/164792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CLOS like object model for PHP I have returned to php development from Moose and I really miss CLOS like object model for php. Is there some kind of syntaxtic sugar which would allow me to write less code in php when dealing with objects? Just to stress this requirement a bit more. I don't want to write one thing in...
{ "language": "en", "url": "https://stackoverflow.com/questions/164800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I access a public property of a User Control from codebehind? I have a user control in a repeater that I need to pass data to during the databound event, so I've created two public properties in the control. How do I access these properties from the page's codebehind class? A: During the databind event in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/164802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NetBIOS vs. FQDN I've got an issue when accessing a web site, I can access it by using the NetBIOS name, but when accessing with the FQDN i get an error. Any ideas on how to troubleshoot this? (There is no DNS configured yet, we have modified the Hosts file to enter the related names and IP.) A: First, check the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/164808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to rank a million images with a crowdsourced sort I'd like to rank a collection of landscape images by making a game whereby site visitors can rate them, in order to find out which images people find the most appealing. What would be a good method of doing that? * *Hot-or-Not style? I.e. show a single image,...
{ "language": "en", "url": "https://stackoverflow.com/questions/164831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: Creating Project Fails in Visual Studio 2005 and VS2008 Every time I try to create a new project or solution in visual studio (2005 and 2008), I get an error saying, "Project Creation failed." I even tried running vs in administrative mode, but I still get the same answer. Anyone have any suggestions, in short of u...
{ "language": "en", "url": "https://stackoverflow.com/questions/164839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is in your .vimrc? Vi and Vim allow for really awesome customization, typically stored inside a .vimrc file. Typical features for a programmer would be syntax highlighting, smart indenting and so on. What other tricks for productive programming have you got, hidden in your .vimrc? I am mostly interested in refa...
{ "language": "en", "url": "https://stackoverflow.com/questions/164847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "157" }
Q: Can someone compare a Fuzzy Query to a LuceneDictionary solution? According to this post on how to do query auto-completionsuggestions in lucene getting "Did You Mean" functionality best involves using a LuceneDictionary. But I probably would have used a fuzzy query for this before reading this post. Now I'm wonderi...
{ "language": "en", "url": "https://stackoverflow.com/questions/164849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I set the focus inside the Yahoo Rich Text Editor I have a an HTML form which contains the YAHOO rich text editor on it. When I display the form I want the YAHOO editor to have focus so that the cursor is ready to accept input without the user having to click on it or tab into it A: I got this from the docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/164855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the vxWorks shared memory anchor? In the vxWorks memory map, there is an area (bellow the load address of vxWorks) which is described as the "shared memory anchor". What is it used for? A: In an environment with multiple single-board computers plugged into a common backplane (such as VMEbus), the VxMP varia...
{ "language": "en", "url": "https://stackoverflow.com/questions/164857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does the assign then evaluate of each parameter "pattern" have a name? The following snippet of C# code: int i = 1; string result = String.Format("{0},{1},{2}", i++, i++, i++); Console.WriteLine(result); writes out: 1,2,3 Before I tried this in the compiler I was expecting the assignments to take place and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/164858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I split a pipe-separated string in a list? Here at work, we are working on a newsletter system that our clients can use. As an intern one of my jobs is to help with the smaller pieces of the puzzle. In this case what I need to do is scan the logs of the email server for bounced messages and add the emails an...
{ "language": "en", "url": "https://stackoverflow.com/questions/164865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to write from Java to the Windows Event Log? How can I write from Java to the Windows Event Log? A: You can use JNA to write to the Event Log directly without the need of any native DLLs. See Advapi32 and Advapi32Util classes for various event log methods (ships since JNA 3.2.8). If you're using Log4j, consider...
{ "language": "en", "url": "https://stackoverflow.com/questions/164879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: If I grab a paramenter out of the query string, is it URL decoded? In .NET if I do something like: string temp = Request.QueryString["myKey"]; is the value in temp already URL decoded? A: Yes, it is.
{ "language": "en", "url": "https://stackoverflow.com/questions/164890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Limitations in running Ruby/Rails on windows In the installation documentation to RoR it mentions that there are many limitations to running Ruby on Rails on Windows, and in some cases, whole libraries do not work. How bad are these limitations, should I always default to Linux to code / run RoR, and is Iron Ruby ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/164896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: How would I package and sell a Django app? Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves. My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distr...
{ "language": "en", "url": "https://stackoverflow.com/questions/164901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Windows Forms - Enter keypress activates submit button? How can I capture enter keypresses anywhere on my form and force it to fire the submit button event? A: You can subscribe to the KeyUp event of the TextBox. private void txtInput_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/164903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: How to enable STRICT_ALL_TABLES' for single MySQL database? Is there a way to enable STRICT_ALL_TABLES for a single MySQL database? A: set sql_mode = 'STRICT_ALL_TABLES'; will do it. A: You can set the default SQL mode by starting mysqld with the --sql-mode="modes" option, or by using sql-mode="modes" in my.cnf (U...
{ "language": "en", "url": "https://stackoverflow.com/questions/164914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Code for extending the NETCF MainMenu to support background color property I've searched for the solution to change the background color on the Compact Framework's MainMenu control, and the only answer I've found is that you need to create a custom control. Does anyone have example code for this? A: I did somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/164915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I display a decimal value to 2 decimal places? When displaying the value of a decimal currently with .ToString(), it's accurate to like 15 decimal places, and since I'm using it to represent dollars and cents, I only want the output to be 2 decimal places. Do I use a variation of .ToString() for this? A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/164926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "795" }
Q: How to find out if a certain value exists as a primary key in mySql? What is the best way to find out if a primary key with a certain value already exists in a table? I can think of: SELECT key FROM table WHERE key = 'value'; and count the results, or: SELECT SQL_CALC_FOUND_ROWS key FROM table WHERE key = 'value' L...
{ "language": "en", "url": "https://stackoverflow.com/questions/164927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I add internationalization to my Perl script? I'm looking at introducing multi-lingual support to a mature CGI application written in Perl. I had originally considered rolling my own solution using a Perl hash (stored on disk) for translation files but then I came across a CPAN module which appears to do ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/164931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How are exponents calculated? I'm trying to determine the asymptotic run-time of one of my algorithms, which uses exponents, but I'm not sure of how exponents are calculated programmatically. I'm specifically looking for the pow() algorithm used for double-precision, floating point numbers. A: Unless they've discov...
{ "language": "en", "url": "https://stackoverflow.com/questions/164964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Enumerating the list of DSN's set up on a computer I have an Excel application in which I want to present the user with a list of the Data Source Names (ie: DSN's), whereby s/he can choose what data source to use. Hopefully once I've got the list, I can easily access the DSN properties to connect to the appropriate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: RegEx for matching UK Postcodes I'm after a regex that will validate a full complex UK postcode only within an input string. All of the uncommon postcode forms must be covered as well as the usual. For instance: Matches * *CW3 9SS *SE5 0EG *SE50EG *se5 0eg *WC2H 7LT No Match * *aWC2H 7LT *WC2H 7LTa *WC...
{ "language": "en", "url": "https://stackoverflow.com/questions/164979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "230" }
Q: PHP 4 and 5, Ctrl-C, system(), and child processes I have a PHP script that uses the system() call to execute other (potentially long-running) programs (for interest: NCBI BLAST, phrap, primer3 and other programs for doing DNA sequence analysis and assembly). I'm running under Windows XP, using the CLI version of PH...
{ "language": "en", "url": "https://stackoverflow.com/questions/164981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Referencing build artifacts from an svn:external build in .Net project This is a continuation question from a previous question I have asked I now have a /externals directory in the root of my project tree. Inside this I have a reference to another project. I'm able to script the build of all my externals in the mai...
{ "language": "en", "url": "https://stackoverflow.com/questions/164990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CHAR() or VARCHAR() as primary key in an ISAM MySQL table? I need a simple table with a user name and password field in MySQL. Since user names must be unique, it makes sense to me to make them the primary key. Is it better to use CHAR() or VARCHAR() as a primary key? A: may as well just use a user ID index, it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/164991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I discover the return value at the end of a function when debugging in VS2008? Using C# in Visual Studio 2008 and stepping through a function in the debugger I get to the end of a function and am on the final curly brace } and about to return. Is there a way to find out what value the function is about to ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/164996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Installing .NET 3.5 on a server with .NET 2.0 applications I would like to upgrade my web projects on an IIS 5 server from .NET 2.0 to .NET 3.5. These web applications live on a server with other web applications that will not be upgraded to .NET 3.5. The server administrator is reluctant to install .NET 3.5 becau...
{ "language": "en", "url": "https://stackoverflow.com/questions/165010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET 1.1 Performance Issue I'm doing some profiling on a 1.1 app and have identified a problem. It seems that this function is taking forever to load on a certain page: ParserCacheItem System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String, String, HttpContext) I've searched around with no luck a...
{ "language": "en", "url": "https://stackoverflow.com/questions/165014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my Excel export have a blank row at the top? In ASP.NET, I am exporting some data to Excel by simply binding a DataSet to a GridView and then setting the ContentType to Excel. My ASPX page is very simple and looks like this: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamExportReport.aspx.cs"...
{ "language": "en", "url": "https://stackoverflow.com/questions/165025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Redundancy vs dependencies: which is worse? When working on developing new software i normally get stuck with the redundancy vs dependencies problem. That is, to either accept a 3rd party library that i have a huge dependencies to or code it myself duplicate all the effect but reduce the dependencies. Though I've re...
{ "language": "en", "url": "https://stackoverflow.com/questions/165041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Stop Excel from automatically converting certain text values to dates Does anyone happen to know if there is a token I can add to my csv for a certain field so Excel doesn't try to convert it to a date? I'm trying to write a .csv file from my application and one of the values happens to look enough like a date that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/165042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "607" }
Q: Letters within integers. What are they? This is an excerpt of code from a class I am working with in Java (below). Obviously the code is defining a static variable named EPSILON with the data type double. What I don't understand is the "1E-14" part. What kind of number is that? What does it mean? final double EPSILO...
{ "language": "en", "url": "https://stackoverflow.com/questions/165043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I uninstall the .NET framework? I'm having a problem running a VS 2005 app on some machines and not others. I looked up the error message on google and found a post by someone who had the same error and fixed it by uninstalling and reinstalling the .NET framework. When I try to do that, Windows won't let me...
{ "language": "en", "url": "https://stackoverflow.com/questions/165066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: (Apache) Error log beautifier Anyone knows of a good error log beautifier? (should be able to handle apache error logs). Should be open source / free, preferably with a web interface A: I use http://www.librelogiciel.com/software/ScanErrLog/action_Presentation It runs through the error log producing a summary webp...
{ "language": "en", "url": "https://stackoverflow.com/questions/165072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Map an object reference with HashTable I'd like to map a reference to an object instead of the object value with an HashTable configMapping.Add("HEADERS_PATH", Me.headers_path) that way when I'm going to retrieve the value of "HEADERS_PATH" I'll be able to assign a value to Me.headers_path something like the " & " ...
{ "language": "en", "url": "https://stackoverflow.com/questions/165075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert a Link Using CSS I'm hand-maintaining an HTML document, and I'm looking for a way to automatically insert a link around text in a table. Let me illustrate: <table><tr><td class="case">123456</td></tr></table> I would like to automatically make every text in a TD with class "case" a link to that case in our b...
{ "language": "en", "url": "https://stackoverflow.com/questions/165082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Can I push to more than one repository in a single command in git? Basically I wanted to do something like git push mybranch to repo1, repo2, repo3 right now I'm just typing push many times, and if I'm in a hurry to the the pushing done, I just send them all to the background git push repo1 & git push repo2 & I'm ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/165092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: "invalid use of incomplete type" error with partial template specialization The following code: template <typename S, typename T> struct foo { void bar(); }; template <typename T> void foo <int, T>::bar() { } gives me the error invalid use of incomplete type 'struct foo<int, T>' declaration of 'struct foo<int, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/165101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: What's wrong with Linq to SQL? What's wrong with Linq to SQL? Or - what about Linq to SQL would make it unsuitable for a project, either new or existing? I want to hear about why you would not choose Linq to SQL for a particular project - including what project parameters make it unsuitable. A: For a project that n...
{ "language": "en", "url": "https://stackoverflow.com/questions/165102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to disable Oracle XE component which is listening on 8080? After installing Oracle XE, something in Oracle is listening on port 8080. I am not sure if they have an Apache HTTPD, a Tomcat, or something else. But how can I disable it? A: It is Oracle XML DB HTTP Server; disable it as follows: sqlplus '/ as sysdba...
{ "language": "en", "url": "https://stackoverflow.com/questions/165105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: What does the perfect status report look like? I work with a lot of offsite developers and contractors. I ask them daily to send me a quick 5 minute status of their work for the day. I have to sometimes consolidate the status of individuals into teams and sometimes consolidate the status of a week, for end-of-period...
{ "language": "en", "url": "https://stackoverflow.com/questions/165106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Team Foundation Server Port 8080 ASMX Access Issue How come one user in the local Administrators Group has no problem hitting http://localhost:8080/services/v1.0/Registration.asmx while other users in the local Administrators Group get 403 (access denied) errors (with nothing in the Event log)? A: Have you checked ...
{ "language": "en", "url": "https://stackoverflow.com/questions/165127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GPU-based video cards to accelerate your program calculations, How? I read in this article that a company has created a software capable of using multiple GPU-based video cards in parallel to process hundreds of billions fixed-point calculations per second. The program seems to run in Windows. Is it possible from W...
{ "language": "en", "url": "https://stackoverflow.com/questions/165133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do i set the dns search suffix for a network adapter in .net? I've written a command line utility that detects which network interface is connected, and sets the staitc ip address and dns servers for it (by calling netsh). However, I can't seem to figure out how to set the dns search suffixes. netsh doesnt appea...
{ "language": "en", "url": "https://stackoverflow.com/questions/165135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SubSonic SubSonic.SqlQuery & Dates Does SubSonic.SqlQuery have a between/and for date ranges? If not, what would be the best way to get a range. A: Try something like this: SqlQuery query = new SqlQuery().From("Table") .WhereExpression("Column") .IsBetw...
{ "language": "en", "url": "https://stackoverflow.com/questions/165140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I create a Routed Event in Silverlight 2? Anyone know how to create a routed event in Silverlight 2? In WPF, the code would be like below. However, there’s no EventManager in Silverlight. public static readonly RoutedEvent ShowVideoEvent = EventManager.RegisterRoutedEvent("ShowVideo", RoutingStr...
{ "language": "en", "url": "https://stackoverflow.com/questions/165143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redirect the parent frame inside an UpdatePanel on PostBack This is kind of a weird problem, but I have to create a search box for our site that will be iframed on another site. When the user clicks the search button, it needs to redirect the parent frame to our search results page. At the moment what I've done is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/165149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is Dreamweaver worth getting if I probably won't use its WYSIWYG editor? In the past I've done web application development using Visual Studio. Initially I'd use the design view, editing the page visually. But over time I learned more and more (X)HTML, CSS, and Javascript. I became familiar with the tags for ASP.NET...
{ "language": "en", "url": "https://stackoverflow.com/questions/165151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Easy mysql question regarding primary keys and an insert In mysql, how do I get the primary key used for an insert operation, when it is autoincrementing. Basically, i want the new autoincremented value to be returned when the statement completes. Thanks! A: MySQL's LAST_INSERT_ID() A: Your clarification comment s...
{ "language": "en", "url": "https://stackoverflow.com/questions/165156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: In Ruby on Rails, how do I format a date with the "th" suffix, as in, "Sun Oct 5th"? I want to display dates in the format: short day of week, short month, day of month without leading zero but including "th", "st", "nd", or "rd" suffix. For example, the day this question was asked would display "Thu Oct 2nd". I'm u...
{ "language": "en", "url": "https://stackoverflow.com/questions/165170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "191" }
Q: Confusing return statement I'm failing to understand exactly what the IF statement is doing, from what I can see it is checking if the variable x is equal to the int 0. If this is true the ABSOLUTE value of the variable y is returned... this is when I lose the plot, why would the return statement then go on to inclu...
{ "language": "en", "url": "https://stackoverflow.com/questions/165175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: printf + uint_64 on Solaris 9? I have some c(++) code that uses sprintf to convert a uint_64 to a string. This needs to be portable to both linux and Solaris. On linux we use %ju, but there does not appear to be any equivalent on Solaris. The closest I can find is %lu, but this produces incorrect output. Some sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/165188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Anyone use xui? JavaFX? Warning: Java newbie. Been looking at XUI for Java. Its looks quite interesting. Sort of liek a WPF way of designing interfaces. But googling around I don't see much other than articles saying it had been released. So is it used much or a bit niche? Are there other similar frameworks for Jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/165209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: linux: getting umask of an already running process? How can I check the umask of a program which is currently running? [update: another process, not the current process.] A: From the GNU C Library manual: Here is an example showing how to read the mask with umask without changing it permanently: mode_t read_umas...
{ "language": "en", "url": "https://stackoverflow.com/questions/165212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Vim Dvorak keybindings (rebindings :) Although I played with it before, I'm finally starting to use Dvorak (Simplified) regularly. I've been in a steady relationship with Vim for several years now, and I'm trying to figure out the best way to remap the key bindings to suit my newfound Dvorak skills. How do you remap...
{ "language": "en", "url": "https://stackoverflow.com/questions/165231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How do you force a .net application to display on a particular monitor in a dual monitor setup? I would like to run multiple copies of my application and force the first to open on one monitor and the second instance on a second monitor A: Screen monitor1 = System.Windows.Forms.Screen.AllScreens[0]; Screen monitor2...
{ "language": "en", "url": "https://stackoverflow.com/questions/165249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: JavaScript: how to force Image() not to use the browser cache? If I load the nextimg URL manually in the browser, it gives a new picture every time I reload. But this bit of code shows the same image every iteration of draw(). How can I force myimg not to be cached? <html> <head> <script type="text/javascript"...
{ "language": "en", "url": "https://stackoverflow.com/questions/165253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Flowlayout panel not display the scroll bar after some resizes I have a flowlayout panel and on a resize event, I resize all the controls inside the flowlayout panel so they fit the width of the (flowlayoutpanel - padding - scroll bar width). On some resizes, the scroll bar is not shown, hiding most of the controls...
{ "language": "en", "url": "https://stackoverflow.com/questions/165284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I get my hands on a Dvorak keyboard? I've always assumed that before I can use the Dvorak layout I need to purchase a Dvorak keyboard. But I can't find one on Amazon. Is it simply a matter of popping the keys off a Qwerty keyboard and moving them around? A: If you are a touch typer, you will benefit greatly ...
{ "language": "en", "url": "https://stackoverflow.com/questions/165314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: STAThread and multithreading From the MSDN article on STAThread: Indicates that the COM threading model for an application is single-threaded apartment (STA). (For reference, that's the entire article.) Single-threaded apartment... OK, that went over my head. Also, I read somewhere that unless your application use...
{ "language": "en", "url": "https://stackoverflow.com/questions/165316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "105" }
Q: How to get the asp.net login control to auto authenticate a previously authenticated user? I am trying to to set up the login control to remember the login credentials of a user who has previously entered their user name and password successfully. I set the remember me property to true, but it doesnt seem to triger ...
{ "language": "en", "url": "https://stackoverflow.com/questions/165331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Relative paths in Visual Studio I'm working in Visual Studio 2005 and have added a text file that needs to be parsed by right-clicking the project in the solution explorer and add --> new item. This places the .txt file to the project folder. The debug .exe file is in the /bin/debug folder. How do I properly point ...
{ "language": "en", "url": "https://stackoverflow.com/questions/165338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Varying Colors in Processing I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-grayscale colors. I have a script that draws a spiral pattern, and should vary the colors in the spiral based on a modul...
{ "language": "en", "url": "https://stackoverflow.com/questions/165346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why do these two date formats differ? I'm trying to produce just the day number in a WPF text block, without leading zeroes and without extra space padding (which throws off the layout). The first produces the day number with a space, the second produces the entire date. According to the docs, 'd' should produce the...
{ "language": "en", "url": "https://stackoverflow.com/questions/165355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Double quotes in Oracle Alias I am having fickle of problem in Oracle 9i select 1"FirstColumn" from dual; Oracle throwing error while executing above query. ORA-03001: unimplemented feature in my Production server. The Same query is working fine in my Validation server. Both servers are with Oracle 9i Any one have I...
{ "language": "en", "url": "https://stackoverflow.com/questions/165365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Optimal RAID setup for SQL server We have an SQL 2005 database backend for our website, currently about 10GB in size. There are a lot more reads than writes, though I don't have the exact statistics. We're upgrading our database server and I was thinking of getting 4 disks and setting them up in two RAID 1 arrays - ...
{ "language": "en", "url": "https://stackoverflow.com/questions/165383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Improve compiling speed in VS project using C++ Boost Libraries I have just started using Boost 1.36. These libraries would be very useful in reducing the amount of code needed in the unmanaged C++ software project that I am working on. However when I tried to used these libraries my compile times increased ten fold...
{ "language": "en", "url": "https://stackoverflow.com/questions/165386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }