text
string
meta
dict
Q: Visual Assist low performance I am using Visual Assist X for C/C++ code in Visual Studio 2005 but I see that, sometime, when visual studio take focus, the processor is working too much and I cannot type code. If I am waiting somes seconds, it return the focus. A: You should really try asking on the Visual Assist fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/225889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Visual FoxPro 9 compatibility with Windows Vista What compatibility issues have you found when developing with Visual FoxPro 9 on Windows Vista? A: My company has no current plans to move to vista, so we haven't tested compatability issues yet. Doug Hennig has an excellent article on the subject however: http://m...
{ "language": "en", "url": "https://stackoverflow.com/questions/225892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can this Java singleton get rebuilt repeatedly in WebSphere 6? I'm trying to track down an issue in our system and the following code worries me. The following occurs in our doPost() method in the primary servlet (names have been changed to protect the guilty): ... if(Single.getInstance().firstTime()){ doPrepera...
{ "language": "en", "url": "https://stackoverflow.com/questions/225895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to loop through elements and call onblur handler for certain elements I have a case where I have a bunch of text boxes and radio buttons on a screen all built dynamically with various DIVs. There are onblur routines for all of the text boxes to validate entry, but depending on the radio button selection, the te...
{ "language": "en", "url": "https://stackoverflow.com/questions/225915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass object parameters in ActiveX events to script Following on from this question here I have a custom ActiveX control which raises an event "BeforePageValidated" which has a parameter "args" which is an object which contains a boolean. The purpose of this is to allow the client to override the validation an...
{ "language": "en", "url": "https://stackoverflow.com/questions/225916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the exact problem with multiple inheritance? I can see people asking all the time whether multiple inheritance should be included into the next version of C# or Java. C++ folks, who are fortunate enough to have this ability, say that this is like giving someone a rope to eventually hang themselves. What’s t...
{ "language": "en", "url": "https://stackoverflow.com/questions/225929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: foreach vs someList.ForEach(){} There are apparently many ways to iterate over a collection. Curious if there are any differences, or why you'd use one way over the other. First type: List<string> someList = <some way to init> foreach(string s in someList) { <process the string> } Other Way: List<string> someLis...
{ "language": "en", "url": "https://stackoverflow.com/questions/225937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "205" }
Q: SQL Server 2005 data file inconsistency (maybe 8 data files, maybe 5, who knows) I have a SQL Server 2005 sp2 box where tempdb has either 8 data files or 5 data files dependingo n where you look. DBCC showfilestates and sys.database_files (both queried in tempdb) show 8 data files (tempdev - tempdev8), however when...
{ "language": "en", "url": "https://stackoverflow.com/questions/225946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Color constant R,G,B values Where can I find a list of all the C# Color constants and the associated R,G,B (Red, Green, Blue) values? e.g. Color.White == (255,255,255) Color.Black == (0,0,0) etc... A: It looks like this page has all of them. A: MSDN link Colors by name/hex via MSDN A: Run this program: using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I align spans or divs horizontally? My only problem is making them line up three-across and have equal spacing. Apparently, spans can not have width and divs (and spans with display:block) don't appear horizontally next to each other. Suggestions? <div style='width:30%; text-align:center; float:left; clear:bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/225956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "90" }
Q: How do insert data into two different tables? I have a form which takes both the user details and an image uploaded by them. I want to write the data to a user table and an image table but i am pretty sure that it cannot be done with just two separate insert statements. Any help would be much appreciated. A: You ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/225965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how do I host a control in a DataGridViewCell for displaying as well as editing? I've seen How to: Host Controls in Windows Forms DataGridView Cells which explains how to host a control for editing a cell in a DataGridView. But how can I host a control for displaying a cell? I need to display a file name and a butt...
{ "language": "en", "url": "https://stackoverflow.com/questions/225972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reusing the partials multiple times on one page in Ruby on Rails I have a partial that renders a select box using the following method: <%= collection_select 'type', 'id', @types, "id", "name", {:prompt => true}, {:onchange => remote_function( :loading => "Form.Element.disable('go_...
{ "language": "en", "url": "https://stackoverflow.com/questions/225984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should key values in a database table be hashed? Suppose a database table has a column "Name" which is defined as key for the table. Usual name values will be "Bill", "Elizabeth", "Bob", "Alice". Lookups on the table will be done by the name key as well. Does hashing the values optimize the operations in any way? i....
{ "language": "en", "url": "https://stackoverflow.com/questions/225985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Importing new database table Where I'm at there is a main system that runs on a big AIX mainframe. To facility reporting and operations there is nightly dump from the mainframe into SQL Server, such that each of our 50-ish clients is in their own database with identical schemas. This dump takes about 7 hours to fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/225993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the difference between X = X++; vs X++;? Have you ever tried this before? static void Main(string[] args) { int x = 10; x = x++; Console.WriteLine(x); } Output: 10. but for static void Main(string[] args) { int x = 10; x++; Console.WriteLine(x); } Output: 11. Could anyone explain wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/226002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: Why use LabVIEW? I am learning to use LabVIEW as part of my honours project, and was wondering what benefits the graphical programming language has over a textual one? A: One of the main advantages to graphical programming with LabVIEW is that the source code is very similar to circuit diagrams, so it's a very easy...
{ "language": "en", "url": "https://stackoverflow.com/questions/226010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Importing extended ASCII into Oracle I have a procedure that imports a binary file containing some strings. The strings can contain extended ASCII, e.g. CHR(224), 'à'. The procedure is taking a RAW and converting the BCD bytes into characters in a string one by one. The problem is that the extended ASCII characters ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieving contact and company GUID from ACT! I'm currently working on a program in C# that works with data from ACT!. To be able to search and update a record you need to use the GUID. The only way I have been able to get a GUID from the framework is when I create a new record. How can I retrieve GUIDs from existi...
{ "language": "en", "url": "https://stackoverflow.com/questions/226034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I query if a database schema exists As part of our build process we run a database update script as we deploy code to 4 different environments. Further, since the same query will get added to until we drop a release into production it has to be able to run multiple times on a given database. Like this: IF NO...
{ "language": "en", "url": "https://stackoverflow.com/questions/226042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "126" }
Q: How do I specify values in a properties file so they can be retrieved using ResourceBundle#getStringArray? I am trying to use ResourceBundle#getStringArray to retrieve a String[] from a properties file. The description of this method in the documentation reads: Gets a string array for the given key from this resour...
{ "language": "en", "url": "https://stackoverflow.com/questions/226050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Can I reliably create Excel documents from a PHP application on a Linux server? What is the state generating Excel documents from a PHP application on a Linux server? I am interesting in creating Office 97 (xls) Excel files. My limited research on the subject has turned up this Pear package. It appears to be in be...
{ "language": "en", "url": "https://stackoverflow.com/questions/226052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is your favorite User Interface? (web application) I think it would be interesting to get a programmers viewpoint on UI design. What is your favorite User Interface that you have come across in a web application? If possible, say a little bit about why you like it. A: http://www.google.com is my favorite. Can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C++0X when? Possible Duplicate: When will C++0x be finished? What are the latest news about C++0X? (or should I say C++1X) Any release date decided yet? A: UPDATE : years later... The last Draft have been officially finalized few weeks ago, in Mars 2011 and will be officially out around July 2011. The name of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/226061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: True color CImageList How do I load a true color image into a CImageList? Right now I have mImageList.Create(IDB_IMGLIST_BGTASK, 16, 1, RGB(255,0,255)); Where IDB_IMGLIST_BGTASK is a 64x16 True color image. The ClistCtrl I am using it in shows 16 bpp color. I don't see a Create overload that allows me to specify ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to create And / Or relations in a database? I have a Coupon table. A Coupon can be applicable to certain items only or to a whole category of items. For example: a 5$ coupon for a Pizza 12" AND (1L Pepsi OR French fries) The best I could come up with is to make a CouponMenuItems table containing a coupon_id and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Replace SRC attribute with TITLE in LI Tag I have the HTML given below: <ul id="thumbsPhotos"> <li src="/images/1alvaston-hall-relaxing-lg.jpg" onclick="updatePhoto (this.title)"><img src="/images/1alvaston-hall-relaxing-sl.jpg" width="56" height="56"></li> <li onclick="updatePhoto(this.title)" src=""><i...
{ "language": "en", "url": "https://stackoverflow.com/questions/226071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: JavaScript function to 'get element by parent class' and assign My predicament is fairly simple: This function gets the id of 'this' <li> element based on parent id of <ul>. It used to work fine but not any more, I will either need to have <ul> use classes instead of id while still being able to assign id of 'curre...
{ "language": "en", "url": "https://stackoverflow.com/questions/226088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Stack overflow in line 0" on Internet Explorer I realise this is not the ideal place to ask about this in terms of searchability, but I've got a page whose JavaScript code throws "Stack overflow in line 0" errors when I look at it in Internet Explorer. The problem is quite clearly not in line 0, but somewhere in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/226102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How do you print XPS files? My printer ran out of black toner and I didn’t have a spare, so I thought it’d be a good idea to “print” documents to .XPS files for now, then print them when the new toner arrives. So, now I have my toner but I can’t work out how to print the files. I found this great post on Tim Barcz’s...
{ "language": "en", "url": "https://stackoverflow.com/questions/226103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reading a single XML document from a stream using dom4j I'm trying to read a single XML document from stream at a time using dom4j, process it, then proceed to the next document on the stream. Unfortunately, dom4j's SAXReader (using JAXP under the covers) keeps reading and chokes on the following document element. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is a "web service" in plain English? I've been reading about "web services" here on SO, on Wikipedia, Google, etc., and I don't quite understand what they are. What is the plain English definition/description? If I make a simple website using PHP that just, say, prints a random integer to the page... is this a...
{ "language": "en", "url": "https://stackoverflow.com/questions/226108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "189" }
Q: Multiple/single instance of Linq to SQL DataContext I have a project with a number of different classes querying and modifying data in a common set of tables. I've set up a .dbml file which provides us with a DataContext class. My question is whether a single instance of the DataContext should be used by all objects...
{ "language": "en", "url": "https://stackoverflow.com/questions/226127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How to disable phone number linking in Mobile Safari? Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers. I am writing a web page containing an IP address, and Safari is turning that into a phone number link. Is it possible to disable this behavior for a whole p...
{ "language": "en", "url": "https://stackoverflow.com/questions/226131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "407" }
Q: What are the differences between a wiki and a CMS What are the differences between a wiki and a CMS? Is there any? A: Typically a Wiki is community editable, visitors to the site can edit it, take Wikipedia for example. A CMS is more designed typially, for a set of site administrators to manage and display conten...
{ "language": "en", "url": "https://stackoverflow.com/questions/226132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Overload a C++ function according to the return value We all know that you can overload a function according to the parameters: int mul(int i, int j) { return i*j; } std::string mul(char c, int n) { return std::string(n, c); } Can you overload a function according to the return value? Define a function that return...
{ "language": "en", "url": "https://stackoverflow.com/questions/226144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: How can I parse a Certificate Signing Request with Perl? I want to use Perl to extract information from a Certificate Signing Request, preferably without launching an external openssl process. Since a CSR is stored in a base64-encoded ASN.1 format, I tried the Convert::PEM module. But it requires an ASN.1 descriptio...
{ "language": "en", "url": "https://stackoverflow.com/questions/226155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best Practices: Persisting data throughout multiple web method calls I have a web service that has 8 web methods. These methods are called synchronously, the first call authenticates the user, and the rest of the methods perform a unit of work, these methods are called upon until the work is done. I need to store th...
{ "language": "en", "url": "https://stackoverflow.com/questions/226157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I repair an InnoDB table? We (apparently) had poorly executed of our Solaris MySQL database engine last night. At least some of the InnoDB tables are corrupted, with timestamp out of order errors in the transaction log, and a specific error about the index being corrupted. We know about the tools available fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/226172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: ASP.NET: Wrong Code Displayed in Crash Dump So a webapp I've been working on broke, and I made some fixes... it still crashes, but in the YSOD it shows me the old code. I'm running this from the VS 2005 IDE. It won't hit any breakpoints, and it crashes on line 249, which is clearly commented out. I've cleared out my...
{ "language": "en", "url": "https://stackoverflow.com/questions/226187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Expand drop down area of asp:DropDownList VS 2008 - Visual Basic .NET (C# example is fine, as I can read that as well) I have an asp:DropDownList that is 100px wide, however some of my list items are much wider than that. How can I expand the drop down area of the list so it shows all of the text of the list items? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alternating Item Style I would actually love to have an AlternatingItemTemplate on a GridView, but all it offers is an AlternatingItemStyle. In my grid, each two column row (in a table layout), has an image in the first column, and a description in the second column. I would like to have the positioning of the ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/226206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Raiseerror and Concat for the Message I'd like to do something like this raiserror(concat('Error in case @isFishy =', @isFishy, ' @isSmarmy=', @isSmarmy, ' @isTasty = ', @isTasty), 10, 1) --or raiserror('Error in case @isFishy =' + @isFishy + ' @isSmarmy=' + @isSmarmy + ' @isTasty = ' + @isTasty, 10, 1) But it ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/226221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Whats the best way to profile a sqlserver 2005 database for performance? What techinques do you use? How do you find out which jobs take the longest to run? Is there a way to find out the offending applications? A: Step 1: Install the SQL Server Performance Dashboard. Step2: Profit. Seriously, you do want to start ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: wildcard characters in struts-config, version 1.1 My application is using struts 1.1. I'm trying to group URL forwards, using wildcards. For example, if the action is like this: action path="/edit/product" type="classname" forward name="success" path=".myapp.main" action Replacing the first line a...
{ "language": "en", "url": "https://stackoverflow.com/questions/226234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Developing a distributed system as a grid Has anyone had experience with developing a distributed system as a grid? By grid, I mean, a distributed system where all nodes are identical and there is no central management, database etc. How can the grid achieve even distribution of: CPU, Memory, Disk, Bandwidth etc.? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Clean up file names in Visual Studio's tabbed document interface? Inside a visual studio project I have the following folders (for example) * *foo/ *bar/ *LongFolderName/ When I open up a file in LongFolderName/ the tab gets labeled with LongFolderName/L...me.ascx when I'd prefer LongFileName.ascx (omitting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are good references for .Net development with Office Communications Server? Is is possible to intergrate VOIP capabilities, particularly phone dialing, with Office Communications Server 2007 and .Net? If so, are there any good references for this? I would be especially interested if this could be hosted within ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Grabbing Domain Name With Include In PHP I know how to find out the current domain name in PHP already, the problem is when I put this code into a file and then include it from another server it shows the domain name of where the file is located. Is there any way for it to find out the domain or the site containing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Applet - 'java.lang.NullPointerException: null pData' when browser closed I have one user who gets an error message when he closes his browser. This only happens when he has visited a page which contains my applet. It seems to have been registered as a bug at Sun but that was many years ago. He is using Java 1.6 and...
{ "language": "en", "url": "https://stackoverflow.com/questions/226272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Decoding a WBXML SyncML message from an S60 device I'm trying to decode a WBXML encoded SyncML message from a Nokia N95. My first attempt was to use the python pywbxml module which wraps calls to libwbxml. Decoding the message with this gave a lot of <unknown> tags and a big chunk of binary within a <Collection> tag...
{ "language": "en", "url": "https://stackoverflow.com/questions/226279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Eclipse class version bug In eclipse 3.4 I'm trying to do some performance tests on a large product, one of the included libraries is the vecmath.jar (javax.vecmath package) from the Java3D project. Everything was working fine and then when trying to run it yesterday I get this exception/error not long after starti...
{ "language": "en", "url": "https://stackoverflow.com/questions/226280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the most hardcore optimisations you've seen? I'm not talking about algorithmic stuff (eg use quicksort instead of bubblesort), and I'm not talking about simple things like loop unrolling. I'm talking about the hardcore stuff. Like Tiny Teensy ELF, The Story of Mel; practically everything in the demoscene, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/226282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Team Build Error: The Path ... is already mapped to workspace When creating a new build in Team Foundation Server, I get the following error when attempting to run the new build: The path C:\Build\ProductReleases\FullBuildv5.4.2x\Sources is already mapped to workspace BuildServer_23. I am unable to see a wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/226288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "177" }
Q: Eliminate the security warning at the startup While opening any MS Access database, a security warning appears saying that the file can be harmful to the computer. However, is there a way to remove this message. Or should it remain a necessary evil A: You can probably sign your program. I don't know for sure. Read ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cleanest way to find objects matching certain criteria in a java.util.List? I could write myself a helper class that does this when given a functor, but I was wondering if there's a better approach, or if there's something already in the standard library (seems like there should be). Answers I've found on StackOverf...
{ "language": "en", "url": "https://stackoverflow.com/questions/226292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Printing in VB.Net/C# Forms Application -- Layout Designer? I maintain a vb.net forms application that prints various labels to label printers. (Label printers are just like any printer, just smaller print area/lower resolution) The system uses a legacy printing method that's supported in the printer hardware, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/226294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to make Crystal Reports include a constant in a join condition, without using a SQL command object? What I want to do is an outer join to a table, where I exclude records from the joined table based on matching a constant, however keep records from the main table. For example: SELECT a.id, a.other, b....
{ "language": "en", "url": "https://stackoverflow.com/questions/226300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where can I look up the definition of size_type for vectors in the C++ STL? It seems safe to cast the result of my vector's size() function to an unsigned int. How can I tell for sure, though? My documentation isn't clear about how size_type is defined. A: According to the standard, you cannot be sure. The exact ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: PostgreSQL size differences I've got two PostgreSQL databases that have been created using the same sql file. One of them is 2GB larger. Can someone help me figure out why? I'm sure the databases have the same row counts, tables, indexes, etc.. The databases are on different servers, there are small differences in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/226303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fixing the Radial Axis on MATLAB Polar Plots I'm using polar plots (POLAR(THETA,RHO)) in MATLAB. Is there an easy way to fix the range for the radial axis to say, 1.5? I'm looking for something analogous to the xlim, ylim commands for cartesian axes. Haven't found anything in the docs yet. A: this worked for me... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How much effort does it take to spoof an Ip Address in a call to a webservice? I don't want to know how... Just how complicated.... I'm thinking of securing a webservice or 2 based on the incoming client ipaddress of the caller. Is this in any way secure? Surely if the IPaddress was being spoofed then the result wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/226316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What TFS tool would you recommend? I am mostly use to using Subversion for my source control. However, my current position has me using TFS. The UI of the TFS explorer and its integration with Visual Studio has me a little disoriented. I miss having tools like SmartSVN where I could see at a glance what I've modifie...
{ "language": "en", "url": "https://stackoverflow.com/questions/226330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automated testing of GUI This question isn't about unit-testing. And it is for a desktop product. This is about testing of the gui and testing that the right stuff is input in the right text box at the right time. A company I used to work at used WinRunner (different department so I don't know much more that that), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Canadian website payment processor recommendations? This question has been asked before (link) but I have slightly different requirements. First, I'm in Canada so that rules out Google Checkout and probably a few others. I just need a basic service that provides "Buy Now" functionality, no shopping carts or anything...
{ "language": "en", "url": "https://stackoverflow.com/questions/226353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How do you move a CALayer instantly (without animation) I'm trying to drag a CALayer in an iOS app. As soon as I change its position property it tries to animate to the new position and flickers all over the place: layer.position = CGPointMake(x, y) How can I move CALayers instantly? I can't seem to get my head ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/226354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: Displaying Time Zones in WPF/C#. Discover Daylight Savings Time Offset I am having trouble understanding how the System Registry can help me convert a DateTime object into the a corresponding TimeZone. I have an example that I've been trying to reverse engineer but I just can't follow the one critical step in which...
{ "language": "en", "url": "https://stackoverflow.com/questions/226356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to remove the "cancel" button in UIImagePickerController? I have a UIImagePickerController as one view in a TabBar setup. Is it possible to tell the UIImagePickerController to not show the Cancel button in the top navigation bar when browsing photos libraries? A: Not in a supported way. UIImagePicke...
{ "language": "en", "url": "https://stackoverflow.com/questions/226365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LINQ to SQL concurrency conflict - Looks like a clean attach with proper row versioning I am trying to get LINQ to SQL to persist changes to an attached object wherein the backing table has a DateTime column that I think should function for row versioning, as described here. The table looks like this: CREATE TABLE [...
{ "language": "en", "url": "https://stackoverflow.com/questions/226374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Operating System compile time This is just a general question - I was sitting and waiting for a bit of software to compile (we use Incredibuild here but can still take 10/15 mins) and it got me wondering, does anyone know how long it took to compile Windows XP or Vista? I did some googling but didn't really find an...
{ "language": "en", "url": "https://stackoverflow.com/questions/226377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How can I get the minimum required password length value from Active Directory in .NET I'm implementing a plugin architecture to implement authentication an external authentication mechanism for a web site. One of the plugins I plan to provide is an ActiveDirectory plugin. I'd like to implement some of the feature...
{ "language": "en", "url": "https://stackoverflow.com/questions/226378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What do PHP stream contexts do in relation to file operations? In the PHP manual, the file operations reference an optional context (e.g. for copy). How do these contexts affect basic file operations? A: As it turns out, stream contexts can contain both options and parameters. At the current time, parameters are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How should I modify a SQL query for PostgreSQL? I have SQL query, which is working nice on Oracle and MSSQL. Now I'm trying this on PostgreSQL and it gives a strange exception: org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table "main" Here is the query: SELECT * FROM "main" main INNE...
{ "language": "en", "url": "https://stackoverflow.com/questions/226382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.Net Providers from web server in DMZ We have an intranet asp.net web application which uses the OOTB ASP.net membership and role providers. Now we are planning to expose the application to internet, by moving the web server to the DMZ as represented in the following (crappy) text diagram External...
{ "language": "en", "url": "https://stackoverflow.com/questions/226392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Make Eclipse treat .h file as C++? All of our C++ headers use a .h extension. Eclipse thinks these are C headers and flags them with lots of syntax errors on things like classes and namespaces. I've tried to change the file type association from: Preferences > C/C++ > File types but it's "locked". Interestingly, "*...
{ "language": "en", "url": "https://stackoverflow.com/questions/226402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Find position of a node using XPath Anyone know how to get the position of a node using XPath? Say I have the following xml: <a> <b>zyx</b> <b>wvu</b> <b>tsr</b> <b>qpo</b> </a> I can use the following xpath query to select the third <b> node (<b>tsr</b>): a/b[.='tsr'] Which is all well and good bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/226405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: mysql replication - table locking? I am currently working for a company that has a website running mysql/php (all tables are also using the MYISAM table type). We would like to implement replication, but I have read in the mysql docs and elsewhere on the internet that this will lock the tables when doing the writes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Looking for an OSX application that can do image processing using a webcam I'm looking for an OSX (or Linux?) application that can recieve data from a webcam/video-input and let you do some image processing on the pixels in something similar to c or python or perl, not that bothered about the processing language. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selecting a non-standard image area in a web application This question is for a web application. And maybe it's a stupid question but I was wondering if there is a way to generate a polygon with 4 points, so that the user can himself drag each point to create it's own (As an example, let's say that we want to remo...
{ "language": "en", "url": "https://stackoverflow.com/questions/226411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C#: How to create an attribute on a method triggering an event when it is invoked? Is there a way in C# or .NET in general to create an attribute on a method which triggers an event when the method is invoked? Ideally, I would be able to run custom actions before and after the invocation of the method. I mean someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/226420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: How do I get IE to open a file with its associated application? MSTest produces an XML file with a .trx extension containing test results. If I have a .trx file on a machine without Visual Studio installed, I get prompted to "Use the Web Service..." or "Select from a list...", which is expected. If I have a .trx fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/226426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: set initial sort order in Silverlight DataGrid? When I first load data into a Silverlight DataGrid control, how can I make the screen look exactly as if the user had just clicked the header of the first column? In other words, the data should be sorted in ascending order according to that column's values, AND the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/226433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: ASP.NET custom control rendering before <%= %> code executes to populate property I have a custom control that exposes a property. When I set it using a fixed value, everything works correctly. But if I try to set its value using the <%= %> tags, it goes a little whacky: <cc:CustomControl ID="CustomControl" runat=...
{ "language": "en", "url": "https://stackoverflow.com/questions/226436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to manage php sessions in an LAMP cluster? I've been reading up on this subject for a while. Suddenly the day has come where this solution is a necessity, not just a dream. Through my reading, I've seen the popular differences being (file based, memcached, shared memory (mm), sql table, and custo...
{ "language": "en", "url": "https://stackoverflow.com/questions/226442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Neko and haxe.Timer.delayed() As every Haxe developer knows, you could use haxe.Timer.delayed() to delay function call for some time. But this function doesn't exist for Neko at all. Is there a way to achieve the same results? A: Have to check it first but function delayed(f, time) { neko.vm.Thread.create(funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/226445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best practices for version information? I am currently working on automating/improving the release process for packaging my shop's entire product. Currently the product is a combination of: * *Java server-side codebase *XML configuration and application files *Shell and batch scripts for administrators *Stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/226448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Can anyone explain thread monitors and wait? Someone at work just asked for the reasoning behind having to wrap a wait inside a synchronized. Honestly I can't see the reasoning. I understand what the javadocs say--that the thread needs to be the owner of the object's monitor, but why? What problems does it prevent...
{ "language": "en", "url": "https://stackoverflow.com/questions/226455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Semi-Tricky SQL Query I am trying to write a query for SQL Server 2005 but I can't figure out how to do it. I have a table with the following fields: MessageID int CategoryID int Priority tinyint MessageText NVARCHAR(MAX) I need a query that will return * for each row that has the highest priority within a Category...
{ "language": "en", "url": "https://stackoverflow.com/questions/226460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Soft hyphen in HTML ( vs. ­) How do you solve the problem with soft hyphens on your web pages? In a text there can be long words which you might want to line break with a hyphen. But you do not want the hyphen to show if the whole word is on the same line. According to comments on this page <wbr> is a non standard "...
{ "language": "en", "url": "https://stackoverflow.com/questions/226464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "178" }
Q: Should I use multiplication or division? Here's a silly fun question: Let's say we have to perform a simple operation where we need half of the value of a variable. There are typically two ways of doing this: y = x / 2.0; // or... y = x * 0.5; Assuming we're using the standard operators provided with the language, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "132" }
Q: cron script to act as a queue OR a queue for cron? I'm betting that someone has already solved this and maybe I'm using the wrong search terms for google to tell me the answer, but here is my situation. I have a script that I want to run, but I want it to run only when scheduled and only one at a time. (can't run t...
{ "language": "en", "url": "https://stackoverflow.com/questions/226473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Shoulda testing workflow from the trenches Everyone is talking about TDD (BDD) in Rails (and not just Rails) development world today. It's easy to find plenty of good general information about it, there are quite a few tools you can use for this purpose and there are many (good) examples of how to use them. Now, I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/226478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the best "turnkey" stemming algorithm? I need a good stemming algorithm for a project I'm working on. It was suggested that I look at the Porter Stemmer. When I checked out the page on the Porter stemmer I found that it is deprecated now in favor of the "Snowball" stemmer. I need a good stemmer, but I can't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Using Apache commons FileUpload This just won't work. The problem is that I do not know enough to even know what is supposed to happen. I can't debug this code. I'd like to store upload to temporary folder "temp" and then to move them to "applets". Please help? The servlet is obviously being accessed, but I can't fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/226503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Question about URL Validation with Regex I have the following regex that does a great job matching urls: ((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)` However, it does not handle urls without a prefix, ie. stackoverflow.com or www.google.com do not match. Anyone know ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Django Forms - How to Use Prefix Parameter Say I have a form like: class GeneralForm(forms.Form): field1 = forms.IntegerField(required=False) field2 = forms. IntegerField(required=False) And I want to show it twice on a page within one form tag each time with a different prefix e.g.,: rest of page ... <form...
{ "language": "en", "url": "https://stackoverflow.com/questions/226510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: declare JSP taglib directives in web.xml I seem to remember reading that it's possible to declare taglib directives such as: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> in web.xml. This eliminates the need to duplicate this directive in every JSP file where the taglib is used. Could someone tel...
{ "language": "en", "url": "https://stackoverflow.com/questions/226514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Is the Microsoft.VisualBasic namespace "true .NET" code? My dev team is getting ready to start a new project. The shop has been a "VB shop" since the days of VB3, but the prevailing opinion now is that we're a ".NET shop" and since C# was created specifically for .NET, whereas VB.NET was a retrofit, we've decided to...
{ "language": "en", "url": "https://stackoverflow.com/questions/226517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: System.Data.OleDb.OleDbException: Invalid internet address. How do you connect to excel files located on a webserver using OleDb I'm trying to create an OleDb connection to an Excel file that is located on a SharePoint server. The example code I'm playing with at the moment throws an OleDb exception "Invalid interne...
{ "language": "en", "url": "https://stackoverflow.com/questions/226524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How does one put a link / url to the web-site's home page in Django? In Django templates, is there a variable in the context (e.g. {{ BASE\_URL }}, {{ ROOT\_URL }}, or {{ MEDIA\_URL }} that one can use to link to the home url of a project? I.e. if Django is running in the root of a project, the variable (let's call ...
{ "language": "en", "url": "https://stackoverflow.com/questions/226528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }