text
stringlengths
8
267k
meta
dict
Q: Best practices for API versioning? Are there any known how-tos or best practices for web service REST API versioning? I have noticed that AWS does versioning by the URL of the endpoint. Is this the only way or are there other ways to accomplish the same goal? If there are multiple ways, what are the merits of each w...
{ "language": "en", "url": "https://stackoverflow.com/questions/389169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "876" }
Q: Can a different (older) version of a similar directory tree be imported into SVN? Is it possible to import a directory tree into subversion if a large number of the files already exist in the repository? Many of the files that will be imported will match those in the repository, both in path and content, but some wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/389171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kerberos Authentication in PHP Let's just assume that I don't know much about Kerberos - just the basics. I have... * *Debian Linux 2.6 Webserver * *Apache 2.2 * *mod_auth_kerb/5.3 *PHP/5.2 *a (working) Kerberos Realm *Windows Client * *Firefox 3 *an logged in identity "user@EXAMPLE.COM" in MIT Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/389175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Using Erubis 2.6.2 with Rails 2.2.2 is incompatible? Supposedly installing erubis is as simple as: gem install erubis # And in environment.rb: require 'erubis/helpers/rails_helper' But I haven't found this to be so. Note that there are no evident errors in my code; it runs just fine and dandy with ERB. * *Wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/389178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: assert and NDEBUG After reading some threads on misuses of exceptions (basically saying you don't want to unwind the stack if a functions preconditions are incorrect - possibly signalling that all your memory is corrupt or something equally dangerous) I'm thinking about using assert() more often. Previously I have o...
{ "language": "en", "url": "https://stackoverflow.com/questions/389180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What a good strategy or tool to unit test database conversions? (Not unit testing databases, but the conversion) I am working on a project where we are converted the old system to a brand new system. We are currently converted from the database of the old system to the database of the new system, and a team is work...
{ "language": "en", "url": "https://stackoverflow.com/questions/389181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Changing the background of a WPF toolbar panel I'm trying to reproduce a Visual Studio style toolbar with the two gradient backgrounds in C# code. I can see how to do it in XAML, but how do I drill into the object to change the backgound of its 'MainPanelBorder' border in my C# code ? Thanks A: You would need to u...
{ "language": "en", "url": "https://stackoverflow.com/questions/389192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find what state ManualResetEvent is in? I am using an instance of ManualResetEvent to control thread access to a resource but I'm running into problems with it. Does anyone know how I can find out during debugging what the state of the object is? That is to say I would like to know if the ManualResetEvent is...
{ "language": "en", "url": "https://stackoverflow.com/questions/389196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: How do I create my own URL protocol? (e.g. so://...) I have seen: * *http://www... *ftp://blah.blah... *file://blah.blah... *unreal://blah.blah... *mailto://blah.blah... What is that first section where you see http and the like called? Can I register my own? A: Open notepad and paste the code below into it....
{ "language": "en", "url": "https://stackoverflow.com/questions/389204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "236" }
Q: Geospatial coordinates and distance in kilometers This is a followup to this question. I seem to be stuck on this. Basically, I need to be able to convert back and forth to referring to coordinates either in the standard degree system OR by measuring a distance north from the south pole along the international date...
{ "language": "en", "url": "https://stackoverflow.com/questions/389211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Advanced data structures in practice In the 10 years I've been programming, I can count the number of data structures I've used on one hand: arrays, linked lists (I'm lumping stacks and queues in with this), and dictionaries. This isn't really surprising given that nearly all of the applications I've written fall in...
{ "language": "en", "url": "https://stackoverflow.com/questions/389216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: How to determine maximum stack usage? What methods are available for determining the optimum stack size for embedded/memory constrained system? If it's too big then memory is wasted that could be used elsewhere. However, if it is too small then we get this website's namesake... To try to jump start things: Jack Gans...
{ "language": "en", "url": "https://stackoverflow.com/questions/389219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: how to push new developments to production environment? Once our web application is being used on production environment we have a really hard time updating it with enhancements or bug fixes. The main reason is an initial flaw in the design of our CMS system. We have to usually spent hours to update each prod envi...
{ "language": "en", "url": "https://stackoverflow.com/questions/389221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows Mobile and VS2008, can't connect to device I just got myself a new toy, a phone with Windows Mobile 6. I'm trying to write a simple "Hello World" app in VS2008 (C#) and I can't connect to the device. It's connected via ActiveSync (via USB), I can browse the file system, but for some reason when I try to buil...
{ "language": "en", "url": "https://stackoverflow.com/questions/389238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to use a VB.NET class library from a C++ DLL? I need to use one of my VB.NET projects in a C++ project. The interface between the two will be for the C++ code to instantiate and call methods on one of the .NET assembly objects. Both compile to DLLs (and then the C++ DLL is loaded from the NTVDM as a VDD, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/389244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Team System "Not Downloaded" when it is downloaded Environment: Team Foundation Server 2005 Visual Studio 2008 I have a reasonably large project with several code branches and several subfolders, solutions, etc. below each code branch. In one particular branch, I have a folder with 3 subfolders. One of the folders i...
{ "language": "en", "url": "https://stackoverflow.com/questions/389253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In Delphi, can I invoke an instance method from a class method with same name? Is it possible in Delphi to have a class method invoke an inherited instance method with the same name? For example, I tried something like this: //... Skipped surrounding class definitions function TSomeAbstractDialogForm.Execute: Boole...
{ "language": "en", "url": "https://stackoverflow.com/questions/389254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why is dotnet's char.IsLower() a static method? This seems to go against every design guideline. A static method that accepts a single argument of type T should usually just be a member method. It's so bizzare I actually had to post a StackOverflow question to understand IsUpper exists (as it didn't show up in auto-...
{ "language": "en", "url": "https://stackoverflow.com/questions/389257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Debugging a Web Application in Visual Studio 2008 When my colleague debugs a web application in his visual studio instance his output window streams all of the assemblies that are being compiled, (at least I believe that is what it's doing) but mine does not. I do see the text "Ready" flashing down in the status bar...
{ "language": "en", "url": "https://stackoverflow.com/questions/389277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the fastest way to draw single pixels directly to the screen in an iPhone application? I am looking the fastest way to draw thousands of individually calculated pixels directly to the screen in an iPhone application that preforms extremely well. A: Why don't you use OpenGL views? A: Most probably using Ope...
{ "language": "en", "url": "https://stackoverflow.com/questions/389289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can't debug - "The breakpoint will not currently be hit. No symbols have been loaded for this document" I'm getting the error in the subject line. I'm running vs2k8 on server 2k3sp2. I've tried deleting the pdbs, cache directories, verifying that debugging is set up on the specific page. The interesting thing is oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/389290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Update more than one database using same ObjectDataSource using C# Is there a way to update more than one Database having same schema using single ObjectDataSource in C#??? i.e Just by providing more than one connection string is it some how possible to update more than one Database? I need to update/insert same rec...
{ "language": "en", "url": "https://stackoverflow.com/questions/389298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ideal .NET Architecture? I'm writing this question from the standpoint of an ASP.NET application. However I realize it may be suited to other contexts as well. There are so many approaches to developing the common elements of an ASP.NET website. Here are a few I have come across: * *LLBLGen *SubSonic *LINQ to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to schedule a deferred custom action from an immediate custom action in Wix/DTF? I've seen statements to the effect that it is possible, even commonplace, to reference an immediate custom action from a .wxs file, and to have that custom action schedule subsequent (deferred) custom actions. What I don't know is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF ListBox Can you make it cycle? IE not hit hard stops at top and bottom I have a WPF ListBox bound to a data object. Inside the listbox are a series of images with text. It is layed out in a horizontal fashion, and mousing over the left or right sides of the box scroll the items left or right respectively. let's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the size of a scaled UIImage in UIImageView? The image.size attribute of UIImageView gives the size of the original UIImage. I would like to find out the size of the autoscaled image when it is put in the UIImageView (typically smaller than the original). For example, I have the image set to Aspect Fit. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Weekly Schedules - How can you store this in a database? Currently, I'm working on a project to manage maintenance windows on a database of servers, etc. Basically, I only need to be accurate down to the hour, but allow for them to be set to allow, or disallow, for each day of the week. I've had a few ideas on how t...
{ "language": "en", "url": "https://stackoverflow.com/questions/389343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Should a Composite Primary Key be clustered in SQL Server? Consider this example table (assuming SQL Server 2005): create table product_bill_of_materials ( parent_product_id int not null, child_product_id int not null, quantity int not null ) I'm considering a composite primary key containing the two pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/389348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to correctly set the dateElementOrder in datejs to use partial dates In datejs, if i set the dateElementOrder to the pt-PT localized version of "dmy" or "ymd" instead of "mdy" the following tests on the "Partial" test fixture start to fail: 1/2008; 1 2008; 1-2008; 2008/1; 2008 1; 2008-1 What do i need to do to m...
{ "language": "en", "url": "https://stackoverflow.com/questions/389353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ConfigurationManager.AppSettings Caching We know that IIS caches ConfigurationManager.AppSettings so it reads the disk only once until the web.config is changed. This is done for performance purposes. Someone at: http://forums.asp.net/p/1080926/1598469.aspx#1598469 stated that .NET Framework doesn't do the same for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: UITextField - clearButtonMode only in code, not in IB? Is there anyway possible to set the clearButtonMode for a UITextField in Interface Builder? Is this only possible to do code? I do not see it as an option in the UITextField attributes panel. A: There is no way to do it in Interface Builder (as of the 2.2 SDK) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Changing Theme(Color) of a panel according to Windows themes I want to change color of a panel according to current selected Windows theme. I have set the prop EnableVisStyles. It changes things like toolbar and Windows form's title bar. However the panel color remains same. Is there any way to achieve this?. Regard...
{ "language": "en", "url": "https://stackoverflow.com/questions/389371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF Button - Method when pressed I want to call a method when a button is in the mouse down state (IsPressed) and call another method when it is released. I can't seem to figure out a simple way to do this. Thanks! A: If you're in a situation in which you can use bindings, set a OneWayToSource binding on the IsPre...
{ "language": "en", "url": "https://stackoverflow.com/questions/389377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What do the values in tload mean? The server I'm trying to maintain is sassing me. Among other things, I ran tload. This probably provides helpful information to someone who knows how to read this data. I do not. It says: 1.36, 1.12, 0.59 ------------- What should I glean from this? This is our home-grown stat ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/389388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prototypal inheritance in JavaScript I've been watching Douglas Crockford's talks at YUI Theater, and I have a question about JavaScript inheritance... Douglas gives this example to show that "Hoozit" inherits from "Gizmo": function Hoozit(id) { this.id = id; } Hoozit.prototype = new Gizmo(); Hoozit.prototype.te...
{ "language": "en", "url": "https://stackoverflow.com/questions/389393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Use list item on Master Page I'm using a MOSS Publishing site with a custom master page. One of our requirements is to have a "Site Updated" footer. Currently we set this manually each time the site is updated. What i'm trying to do is reference a specific list item (from a custom list) that stores this date. I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble with encoding in emails I have a little python script that pulls emails from a POP mail address and dumps them into a file (one file one email) Then a PHP script runs through the files and displays them. I am having an issue with ISO-8859-1 (Latin-1) encoded email Here's an example of the text i get: =?iso-8...
{ "language": "en", "url": "https://stackoverflow.com/questions/389398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET GridView RowIndex As CommandArgument How can you access and display the row index of a gridview item as the command argument in a buttonfield column button? <gridview> <Columns> <asp:ButtonField ButtonType="Button" CommandName="Edit" Text="Edit" Visible="True" CommandArgument=" ? ? ? "...
{ "language": "en", "url": "https://stackoverflow.com/questions/389403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Rename file while using SFTP to append date I'm sending a file from a z/OS system to a Linux ftp sever using sftp. I want to append the date to the filename once the file resides on the linux box. (Ex: filename.txt becomes filename122308.txt) I have tried the 'rename' command using 'date +%m%d%y' - the file was rena...
{ "language": "en", "url": "https://stackoverflow.com/questions/389415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is easiest way to transfer tables between MSSQL databases without a network connection? I have a small app/site on a dev server with a data table in SQL Server [varchar(40),varchar(40),varchar(MAX)]. I want to take the data table and push it to the live server. I have tried exporting in txt, Excel and Access bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/389416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Synchronization (of clocks) between two remote computers I'm looking into writing a simple synchronization ability into my app and one of the concerns that has popped up is synchronization of time between two remote computers, each with their own clock (in particular concerning the modification dates of files/object...
{ "language": "en", "url": "https://stackoverflow.com/questions/389417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: CSS Alignment Problem I am trying to layout a header for a web site and I would like to have 4 containers in the header for dropping various user controls into. The 4 containers need to be positioned top left, top right, bottom left and bottom right inside the main the header container. So far I can acheive this, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/389425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: References in VB.NET Somewhat unclear to me are references (pointers?) to classes in VB.NET. The question I am about to ask can be answered by a little bit of testing, but I was wondering if anybody could post a decent explanation (or links, too). If you create a class: Public Class ReferenceClass Private myBoo...
{ "language": "en", "url": "https://stackoverflow.com/questions/389426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Data collection methods I'm stumped again on how to proceed with a survey system I am working on. We have database data for matrix sytle questions (rows are various questions, columns are various answer types), where each cell needs to be able hold a different kind of control. We have a database framework for this...
{ "language": "en", "url": "https://stackoverflow.com/questions/389431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Entity Framework: Working with detached objects and attached ones Firstly, let me set out what I'd like to do. Assume I have three types of EntityObject, MetaData, Data1 and Data2. MetaData is, as one would expect, has a reference to one instance each of Data1 and Data2. Now, for each MetaData, I can calculate a val...
{ "language": "en", "url": "https://stackoverflow.com/questions/389432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Impersonation when running a remote triggered job My (.NET) app allows users to tweak database values. They will then need to generate reports based on their edits, either Crystal or Reporting Services, but that's not important - what is important is that the generation won't definitely be able occur on their local ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: why use not not !! for boolean value in MS AJAX? From MS AJAX source code, Type.isClass = function Type$isClass(type) { /// <summary locid="M:J#Type.isClass" /> /// <param name="type" mayBeNull="true"></param> /// <returns type="Boolean"></returns> var e = Function._validateParams(arguments, [ {name: "type", may...
{ "language": "en", "url": "https://stackoverflow.com/questions/389437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why can't I trap a mouse click in IE? I have a page which has a rectangular area with text and icons in it and the whole thing is clickable. The anchor tag is set to display: block. One of the icons has an onclick handler. If a person clicks on an icon, I just want the icon's onclick handler to run and not to act...
{ "language": "en", "url": "https://stackoverflow.com/questions/389438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DataGridView ToolTipText not showing I have data bound DataGridView in a desktop app with columns that have their ToolTipText property set, yet no tool tip is displayed when I hover over grid view (cells or cell headers). The ShowCellToolTips property of the grid view is true, and I have verified using break points ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Raising javascript events in ASP.NET user control Is it possible to raise a "custom event" in an ASP.NET user control and to subscribe to the event in the calling page? This way I can have any containing page react to changes in a user control without having to do a partial or full postback. A: You're trying to mix...
{ "language": "en", "url": "https://stackoverflow.com/questions/389450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Methods for troubleshooting "A script on this page is causing IE to run slowly" caused by AJAX? I have a page in my application that refreshes some content (a list of users currently signed in) from the server every 10 seconds. This data is loaded using the Ajax class from the mootools framework, specifically with J...
{ "language": "en", "url": "https://stackoverflow.com/questions/389451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Cookie blocked/not saved in IFRAME in Internet Explorer I have two websites, let's say they're example.com and anotherexample.net. On anotherexample.net/page.html, I have an IFRAME SRC="http://example.com/someform.asp". That IFRAME displays a form for the user to fill out and submit to http://example.com/process.asp...
{ "language": "en", "url": "https://stackoverflow.com/questions/389456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "399" }
Q: operator overload problem I am trying to write operator overload for custom class and don't know how to handle null comparison. Class Customer { int id; public static bool operator ==(Customer a, Customer b) { //When both a and b are null don't know how to compare as can't use == in here as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the difference between Hibernate and JPA? Can someone put in perspective the difference between JPA and Hibernate. Or are these complementary concepts, to be used together? A: Update 2015: this is a very old question and a lot has changed in the past ~6 years. The JPA API's are quite feature-rich these days ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How do I control a job's "name" in Bash? I'm trying to control the titles of my xterm windows and my cleverness has finally outpaced my knowledge. :-) I have three functions: one which sets the title of the window; one which takes a passed command, calls the title function, and executes the command; and one which r...
{ "language": "en", "url": "https://stackoverflow.com/questions/389473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: If you merge a specific set of revisions from trunk into a branch with subversion, what happens? If I make changes in the trunk to 3 different files, say revisions 40, 45, and 47 respectively, where none of those files have changed since revision 15, how can I merge those revisions into the branch (made at revision ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I'm new to .NET - what should I concentrate on and what should I ignore? So, I've had a fair amount of experience programming database driven web apps using php and coldfusion (not together, at different times) and I'm starting to look into the asp.net world (I have a project coming up at work that is all asp.net/c#...
{ "language": "en", "url": "https://stackoverflow.com/questions/389487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Compiling minimal GLEW application under Cygwin Let's consider the following program and try to compile it under Cygwin: #include <GL/glut.h> int main(int argc, char** argv) { glutInit(&argc, argv); glLoadIdentity(); } It compiles and runs just fine. -I/usr/include/opengl seems to be terribly important. g++...
{ "language": "en", "url": "https://stackoverflow.com/questions/389488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Alternatives to make for linux/freebsd? What are some alternatives to make for linux/freebsd? A: I like SCons. It is constructed in such a way that every build script (a SConstruct file) is also a syntactically valid Python program. So, you can build arbitrary Python logic into your build script if you need to. It'...
{ "language": "en", "url": "https://stackoverflow.com/questions/389496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: wpf update ListViewItem background property I have a listview that is binded to a ThreadSafeObservableCollection. The background of each of these items is set to an enum that is run through a color converter, here's the code for these 2 settings. <UserControl.Resources> <EncoderView:EncoderStatusToColorConverte...
{ "language": "en", "url": "https://stackoverflow.com/questions/389501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why asynchronous ASHX generated images doesn't always work in IE6? If you use an WebHandler inheriting IHttpAsyncHandler, you shouldn't notice that under undetermined specific circumstances the browser MS IE6 won't display it, the request will never finish. Is there a fix for it? A: I'll answer it myself, but i too...
{ "language": "en", "url": "https://stackoverflow.com/questions/389503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Catch block not catching exception I have a child form that is throwing an ApplicationException in the Load event handler (intentionally for testing purposes). The parent form wraps the ChildForm.Show() method in a Try...Catch ex As Exception block. The catch block simply displays a message and closes the child fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/389504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why won't my flex image control display my image? I have created an ashx handler that returns an image to my flex app. If I go directly to the url for example (www.mysite.com/handler.ashx?id=34) the browser will display the image. If you set the source of an image control in flex to the same address. I get "Error #2...
{ "language": "en", "url": "https://stackoverflow.com/questions/389506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing Excel 2007 Binary (.xlsb) via OleDb ACE I found the Excel 2007 Binary format (with extension .xlsb) perfectly suitable for my needs, since it's fast to load and very compact. I deliver a bunch of reports in Excel that carry a lot of data, and those reports are actually being loaded with an IS package. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/389520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to get ul structure from HTML I am making a configuration page, that splits a category tree over 3 columns for easy browsing like: **Column 1** **Column 2** **Column3** Category1 Category3 Category5 *SubCategory1* Category4 *Su...
{ "language": "en", "url": "https://stackoverflow.com/questions/389528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Compare Strings in Oracle I need to query a table for values given a string. The table is case sensitive but I want to do a ToLower() in the comparison. Suppose I have a classes table with the following data. class teacher ----------------- Mat101 Smith MAT101 Jones mat101 Abram ENG102 Smith My query sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/389535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Select unlocked row in Postgresql Is there a way to select rows in Postgresql that aren't locked? I have a multi-threaded app that will do: Select... order by id desc limit 1 for update on a table. If multiple threads run this query, they both try to pull back the same row. One gets the row lock, the other blocks...
{ "language": "en", "url": "https://stackoverflow.com/questions/389541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: How do I convert a string array to a LPCWSTR in .NET to pass to a Win32 API function? I have a piece of C# code that needs to convert a string array to a LPCWSTR to pass to a Win32 API function. I can't find nothing in the Marshal class that makes it straightforward. Does anybody knows how to do that? A: You should...
{ "language": "en", "url": "https://stackoverflow.com/questions/389543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can anyone explain how the Strategy Pattern relates to Inversion of Control? Can anyone explain exactly how the Strategy Pattern relates to Inversion of Control? A: When you use the strategy pattern, you want your other classes to depend on the interface rather than a concrete strategy. One way to do this is to ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/389548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Application.Run throws ArgumentException was unhandled I have a condition in which I need to close the application and so I call this.Dispose () when I set a certian flag. At first I thought it was a problem of calling functions after I call this.Dispose () and so I moved the code to be the last thing called, but I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you get a DataTable from an ObjectDataSource? If I have an ObjectDataSource defined at design time, can I get a DataTable from that ObjectDataSource at runtime? I have a method that returns a DataTable that I am using for the Select method property of the ObjectDataSource. A: I don't really understand your que...
{ "language": "en", "url": "https://stackoverflow.com/questions/389571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to deal with exceptions My technical lead insists on this exception mechanism: try { DoSth(); } catch (OurException) { throw; } catch (Exception ex) { Util.Log(ex.Message, "1242"); // 1242 is unique to this catch block throw new OurException(ex); } 1242 here is an identifier of the catch method ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL GROUP BY/COUNT even if no results I am attempting to get the information from one table (games) and count the entries in another table (tickets) that correspond to each entry in the first. I want each entry in the first table to be returned even if there aren't any entries in the second. My query is as follows...
{ "language": "en", "url": "https://stackoverflow.com/questions/389581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Queues in the Linux Kernel I've been searching for information for a common kernel implementation of queues, that is, first-in-first-out data structures. I thought there may be one since it's likely something that's common to use, and there's a standard for linked lists (in the form of the list_head structure). Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/389582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: The OleDbParameter's name obsession Since the OleDbParameter does not use named parameters (due to its nature), why is it that the .NET OleDbParameter class expects a name? (string parametername ...) All constructors require a parameter name, and I'm never sure what name to give it; my name is ok? or my grandmother...
{ "language": "en", "url": "https://stackoverflow.com/questions/389591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WCF service settings problem. I added .svc handler in IIS but it keeps disappearing my web service was working, then suddenly it stopped. After debugging I realized that there might be a problem in the config, and for some reason the .svc mapping was gone in IIS (Handler Mappings). I added the .svc mapping, and it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why isn't there an addAll() function available to ArrayCollections in Actionscript? Is there any reason why there isn't an addAll() function available when using ArrayCollections in Actionscript? I've been using for loops to individually add them one at a time using addItem(). Is this common or is there a more conve...
{ "language": "en", "url": "https://stackoverflow.com/questions/389604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding xml comments to methods, properties, etc quickly in vs 2008 Assume I have 10 Methods and 10 Properties. Is there a way to add the xml comments (///) to all 10 Methods and 10 Properties at once in VS 2008 or do I have to type /// for each one. A: This little tool is very useful Ghost Doc. A: Well you have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/389620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I need to enable a Service Broker endpoint on SQL 2005 to use SQLCacheDependency? My question really has three related parts which I hope you can help me clear up - * *Do I need to enable a Service Broker endpoint on SQL 2005 to use the SQLCacheDependency mechanism? *If so, is there a specific port that needs...
{ "language": "en", "url": "https://stackoverflow.com/questions/389622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A new expression requires () or [] after type compilation error - C# The following code for a co-worker throws the following error when he tries to compile it using VS 2008: Error: A new expression requires () or [] after type Code: MyClass Structure: public class MyClass { public MyClass() {} public st...
{ "language": "en", "url": "https://stackoverflow.com/questions/389644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Set a timeout on socket_read I was wondering how can I set a timeout on a socket_read call? The first time it calls socket_read, it waits till data is sent, and if no data is sent within 5 secs I want to shutdown the connection. Any Help? I already tried SO_RCVTIMEO with no luck. I'm creating a socket with socket_cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/389645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: C# Windows Application - Many threads using the same connection? I've got a c# WINDOWS Application that is multi-threaded. It is my understanding that in a web environment, connections are pooled automatically. It is also my understanding that in a Windows app, this is not the case. Therefore, for a Windows app, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/389652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you show a list of tables in another database? I can use: select * from sys.tables in mssql to show a list of all tables in the current database. Is there anyways I can use similar syntax to show list of tables in another database? Say I am using A with: use A statement, can I show tables in database B? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/389660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: UITableView into a UIScrollView? I'm looking to have two views which are part of a constituent set. Data in each view would be best represented in a UITableView. I'd like to then add a gesture to flicker the view off screen and have another similar view brought in, with a page indicator control. My fear is that UITa...
{ "language": "en", "url": "https://stackoverflow.com/questions/389664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does Visual Studio 2005 take so long to update my VSMDI file? I am using a solution with many projects in Visual Studio 2005. Unfortunately we are using the testing tools. My problem is that a lot of the time when I open up Test Manager by double clicking on my VSMDI file to do some testing, I get the hourglass ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: User Interface inspiration for iPhone Apps Does anyone have any suggestions for a site that potentially has some inspirational user interfaces for building my own iPhone Apps. It's straight forward to continually build out applications with the conventional UIKit widgets, but it does not set you apart from the compe...
{ "language": "en", "url": "https://stackoverflow.com/questions/389671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Looking for Specific Date Anyone know how to query for a specific date within entity framework ? I tried following code, but it gives me NotSupportedException. var deposit = (from tempDeposit in entities.Deposit where !tempDeposit.IsApproved && tempDeposit.CreatedDate.Date == DateTime.Today select tempDeposit).First...
{ "language": "en", "url": "https://stackoverflow.com/questions/389677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can my build stipulate that my code coverage never get worse? I am using hudson CI to manage a straight java web project, using ant to build. I would like to mandate that the unit test coverage never be worse than the previous build, thereby making sure any new code is always tested, or at least the coverage is cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/389680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Producing documentation for Python classes I'm about to start a project where I will be the only one doing actual code and two less experienced programmers (scary to think of myself as experienced!) will be watching and making suggestions on the program in general. Is there a good (free) system that I can use to pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/389688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How should a http-handler fill the calling xmlhttp object's responsetext property? I'm trying to implement a http handle (.ashx) using asp.net for an environment where the clients will be using serverxmlhttp to request information from the handler. Here is the code so far... CLIENT.ASPX <%@ Page Language="VB" %> <%...
{ "language": "en", "url": "https://stackoverflow.com/questions/389691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I test for an Oracle connection I'm trying to connect to an Oracle DB which is currently offline. When it's online it's not a problem, however, now that it's offline my program is getting hung up on the $connection = oci_connect() line and timing out. How do I simply check the connectio and bail out if it's n...
{ "language": "en", "url": "https://stackoverflow.com/questions/389692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Content Expiration - IIS 6 If I set the content expiration for static files to something like 14 days and I decide to update some files later on, will IIS know to serve the updated files or will the client have to wait until the expiration date? Or is it the other way around where the browser requests a new file if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visual Studio add-on gallery? i'm hoping to find some add-ons for Visual Studio to address some specific usability issues. Is there a Visual Studio addons gallery that contains a huge dumping ground of addons that every person, company, yahoo and hick have created? Kind of like Vista Sidebar Gadget gallery, but for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/389705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why can SmtpClient.SendAsync only be called once? I'm trying to write a notification service (for completely legit non-spam purposes) in .NET using SmtpClient. Initially I just looped through each message and sent it, however this is slow and I would like to improve the speed. So, I switched to using 'SendAsync',...
{ "language": "en", "url": "https://stackoverflow.com/questions/389709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How to retrieve sender in click handler from toolbartray or other control in wpf? XAML: <ToolBarTray Name="tlbTray" ButtonBase.Click="tlbTray_Click"> <ToolBar Name="tlbFile"> <Button Name="btnOpen"><Image Source="images\folder.png" Stretch="None" /></Button> <Button Name="btnSave"><Image Source="images\disk...
{ "language": "en", "url": "https://stackoverflow.com/questions/389710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Namespace Design and Class Awareness I remember reading once (I believe the book was the .NET Framework Design Guidelines) that when you are designing a framework or class library that you should take care in how you arrange the classes in your namespaces. Specifically, classes in parent namespaces should have no kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/389714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: DataBinding with a DataGridView C# I have a Database table that I want to display in a DataGridView. However, it has several foreign keys and I don't want to show the integer that represents the other Table to the user. I have this DataTable with a column userId I have another DataTable with a column id, and a colum...
{ "language": "en", "url": "https://stackoverflow.com/questions/389737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to detect if Microsoft Excel is installed from a Web Application I'm working on a web app (ASP.NET) that has some features that require Microsoft Excel installed on the client. I'd like to disable those features if Excel is not present. Windows/IE/Excel only solutions are fine. This is not a multi-br...
{ "language": "en", "url": "https://stackoverflow.com/questions/389738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the "continue" keyword and how does it work in Java? I saw this keyword for the first time and I was wondering if someone could explain to me what it does. * *What is the continue keyword? *How does it work? *When is it used? A: continue is kind of like goto. Are you familiar with break? It's easier t...
{ "language": "en", "url": "https://stackoverflow.com/questions/389741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "314" }
Q: In jquery ui date-picker how to allow selection of specific weekdays and disable the other weekdays I need to limit the jquery ui date picker to only have future Tuesdays and Thursdays as selectable days. How can I accomplish this? A: It's all in the documentation. The function beforeShowDay will do what you want....
{ "language": "en", "url": "https://stackoverflow.com/questions/389743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }