text
stringlengths
8
267k
meta
dict
Q: How many of you do 3-tier design? 3-Tier design has been my standard design philosophy for years for database driven applications, and it has never failed me. For those who practice it, describe your layers. I've found that many people muddle up the business tier and the data access tier, making it more like a 2.5-T...
{ "language": "en", "url": "https://stackoverflow.com/questions/134253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I configure Tomcat to always direct to index.jsp after login? Currently Tomcat's login support redirects users back to where they initially were when the application figured out they weren't logged in. For this particular application I need to force them to always go back to index.jsp. I'm pretty sure this i...
{ "language": "en", "url": "https://stackoverflow.com/questions/134263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to interpret code metrics (calculated by SourceMonitor) After reading the answers to the question "Calculate Code Metrics" I installed the tool SourceMonitor and calculated some metrics. But I have no idea how to interpret them. What's a "good" value for the metric * *"Percent Branch Statements" *"Methods pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/134266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to receive UDP Multicast in VxWorks 5.5 I have been unable to receive UDP multicast under VxWorks 5.5. I've joined the multicast group: setsockopt(soc, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *) &ipMreq, sizeof (ipMreq)); Similar code on an adjacent Windows machine does receive multicast. I am able to send multica...
{ "language": "en", "url": "https://stackoverflow.com/questions/134284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hiding the header on an Infragistics Winform UltraCombo I've gone through just about every property I can think of, but haven't found a simple way to hide the header on a winform UltraCombo control from Infragistics. Headers make sense when I have multiple visible columns and whatnot, but sometimes it would be nice ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How select the rest of the word in incremental search in Intellij IDEA? When in incremental search mode in Intellij IDEA, is there a way to select the rest of the word. For example, suppose I want to find the word “handleReservationGranted”. I type Ctrl-f to enter incremental search mode, and start typing the letter...
{ "language": "en", "url": "https://stackoverflow.com/questions/134298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I browse my Tomcat localhost from another computer on the network? I'm an IIS guy and know its as simple as just using the http://[computername]/path to webapp.. however, I can't seem to figure out how to make this possible for a JSP application I'm writing that runs under Tomcat. Is there a configuration se...
{ "language": "en", "url": "https://stackoverflow.com/questions/134309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Current standard compliance level of IronPython & IronRuby Does anyone have some numbers on this? I am just looking for a percentage, a summary will be better. Standards compliance: How does the implementation stack up to the standard language specification? For those still unclear: I place emphasis on current. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Delphi: OpenFileDialog crashes with URL Giving a URL to the TOpenFileDialog, the Execute method throws an exception: OpenDialog1.Filename := 'http://www.osfi-bsif.gc.ca/app/DocRepository/1/eng/issues/terrorism/indstld_e.xls'; bResult := OpenDialog1.Execute; But you are allowed to open files from a URL. Delphi 5 A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/134321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error handling in PHP I'm familiar with some of the basics, but what I would like to know more about is when and why error handling (including throwing exceptions) should be used in PHP, especially on a live site or web app. Is it something that can be overused and if so, what does overuse look like? Are there cases...
{ "language": "en", "url": "https://stackoverflow.com/questions/134331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Eclipse folder Referenced Libraries disappears In Java projects in Eclipse version 3.4.1 sometimes the folder "Referenced Libraries" disappears from the "Project Explorer" view. All third party jars are shown directly in the root of the project folder. The project compiles and runs fine. It seems to be a GUI problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/134338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: How to retrieve time zone choices on Windows Mobile for PDA Is there a way to retrieve the time zone choices in Windows Mobile in order to display them in a GUI? It would be much better not to have to show every 15 minutes just to be able to display GMT+5:45 for Kathmandu. A: As per MSDN:City List and Time Zone Dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/134344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I determine program interupt in Windows Mobile I have an game application I have written for Windows Mobile and I want to have a timer associated with the puzzle. If the program loses focus for any reason (call comes in, user switches programs, user hits the Windows button) then I want a pop up dialog box to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Benefits of multiple memcached instances Is there any difference between having 4 .5GB memcache servers running or one 2GB instance? Does running multiple instances offer any benifits? A: If one instance fails, you're still get advantages of using the cache. This is especially true if you are using the Consistent...
{ "language": "en", "url": "https://stackoverflow.com/questions/134366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How Do You Write Code That Is Safe for UTF-8? We have a set of applications that were developed for the ASCII character set. Now, we're trying to install it in Iceland, and are running into problems where the Icelandic characters are getting screwed up. We are working through our issues, but I was wondering: Is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/134371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to listen to elements method calls in Javascript I would like to listen to method calls. For example, when an element is appended by anything to the document, I would like to be passed that element to act on it, like: //somewhere aParent.appendChild(aChild); //when the former, a function I defined as listener i...
{ "language": "en", "url": "https://stackoverflow.com/questions/134374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Infopath doesn't render background colors/pictures w/ Outlook Task/Sharepoint I am using Infopath forms to collect information to trigger my Windows Workflow sitting on Sharepoint 2007. The Infopath forms have logo's and branding which only show up on the Sharepoint portal but the infopath forms which are emailed wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/134378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Returning query results in predefined order Is it possible to do a SELECT statement with a predetermined order, ie. selecting IDs 7,2,5,9 and 8 and returning them in that order, based on nothing more than the ID field? Both these statements return them in the same order: SELECT id FROM table WHERE id in (7,2,5,9,8)...
{ "language": "en", "url": "https://stackoverflow.com/questions/134379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Run Pylons controller as separate app? I have a Pylons app where I would like to move some of the logic to a separate batch process. I've been running it under the main app for testing, but it is going to be doing a lot of work in the database, and I'd like it to be a separate process that will be running in the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/134387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Where do you do your validation? model, controller or view Where do you put user input validation in a web form application? * *View: JavaScript client side *Controller: Server side language (C#...) *Model: Database (stored procedures or dependencies) I think there is validation required by each level: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to add currency strings (non-standardized input) together in PHP? I have a form in which people will be entering dollar values. Possible inputs: $999,999,999.99 999,999,999.99 999999999 99,999 $99,999 The user can enter a dollar value however they wish. I want to read the inputs as doubles so I can total them. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/134392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Anyone ever tried to develop in C or C++ for Blackberry platforms? Every indication I have, based on my experience in embedded computing is that doing something like this would require expensive equipment to get access to the platform (ICE debuggers, JTAG probes, I2C programmers, etc, etc), but I've always wondered ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I submit multiple models in Struts 2? I have a JSP that allows users to dynamically create additional form fields to create multiple objects. Perhaps I want to allow users to be able to submit as many line items as they want when submitting an invoice form. How do I create a Struts 2 Action that will be able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mobile Capability for meta tags render en ASP.NET Mobile Anybody knows what is mobile capability for render Meta Tags for each adapter? I am using Marg.Wurfl to detect mobile device, and it maps wurfl capabilities to mobile capabilities, but it does not render meta tags.I have found requiresXhtmlCssSuppression capab...
{ "language": "en", "url": "https://stackoverflow.com/questions/134442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best free IDE for learning smalltalk? What do you think is a good IDE for learning SmallTalk? I'll only be using it as a hobby, so it has to be free. A: Definitively go for Squeak. It's a closed system in terms of the environment, or what you call the IDE, but it's fun to do webapps with - look for Seasi...
{ "language": "en", "url": "https://stackoverflow.com/questions/134452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Log/Graph PHP execution time Are there any tools available to log the page load time for a php site? Mainly looking for something that I can see trends of load times over time, I was considering dumping them into a file using error_log(), but I don't know what I could use to parse it and display graphs A: You can r...
{ "language": "en", "url": "https://stackoverflow.com/questions/134453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Any performance impact in Oracle for using LIKE 'string' vs = 'string'? This SELECT * FROM SOME_TABLE WHERE SOME_FIELD LIKE '%some_value%'; is slower than this SELECT * FROM SOME_TABLE WHERE SOME_FIELD = 'some_value'; but what about this? SELECT * FROM SOME_TABLE WHERE SOME_FIELD LIKE 'some_value'; My testing ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/134456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Refactoring global to local. Should they be static or not? I'm refactoring "spaghetti code" C module to work in multitasking (RTOS) environment. Now, there are very long functions and many unnecessary global variables. When I try to replace global variables that exists only in one function with locals, I get into di...
{ "language": "en", "url": "https://stackoverflow.com/questions/134459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Delphi Popup Menu Checks I am using a popup menu in Delphi. I want to use it in a "radio group" fashion where if the user selects an item it is checked and the other items are not checked. I tried using the AutoCheck property, but this allows multiple items to be checked. Is there a way to set the popup menu so t...
{ "language": "en", "url": "https://stackoverflow.com/questions/134463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Where to put controller parent class in CakePHP? I have two controllers which share most of their code (but must be, nonetheless, different controllers). The obvious solution (to me, at least) is to create a class, and make the two controllers inherit from it. The thing is... where to put it? Now I have it in app_co...
{ "language": "en", "url": "https://stackoverflow.com/questions/134470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I pass an argument to a C# plug-in being loaded through Assembly.CreateInstance? What I have now (which successfully loads the plug-in) is this: Assembly myDLL = Assembly.LoadFrom("my.dll"); IMyClass myPluginObject = myDLL.CreateInstance("MyCorp.IMyClass") as IMyClass; This only works for a class that has a...
{ "language": "en", "url": "https://stackoverflow.com/questions/134481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Source Control for multiple projects/solutions with shared libraries I am currently working on a project to convert a number of Excel VBA powered workbooks to VSTO solutions. All of the workbooks will share a number of class libraries and third party assemblies, in fact most of the work is done in the class librari...
{ "language": "en", "url": "https://stackoverflow.com/questions/134490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to serialize an object into a string I am able to serialize an object into a file and then restore it again as is shown in the next code snippet. I would like to serialize the object into a string and store into a database instead. Can anyone help me? LinkedList<Diff_match_patch.Patch> patches = // whatever... F...
{ "language": "en", "url": "https://stackoverflow.com/questions/134492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "159" }
Q: Is there any difference between 'valid xml' and 'well formed xml'? I wasn't aware of a difference, but a coworker says there is, although he can't back it up. What's the difference if any? A: There is a difference, yes. XML that adheres to the XML standard is considered well formed, while xml that adheres to a DTD ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: fork() as an argument Usually when I need to fork in C, I do something like this: pid_t p = fork(); if(p == 0) { /* do child stuff */ } else { /* do parent stuff and pray there wasn't an error */ } It occured to me that I could ditch the extra variable and use: if(fork() == 0) { /* child */ } else { /* parent/pray ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Microsoft.ApplicationBlocks.Data.ODBCHelper? I've found mention of a data application block existing for ODBC, but can't seem to find it anywhere. If i didn't have a copy of the Access DB application block I wouldn't believe it ever existed either. Anyone know where to download either the DLL or the code-base from?...
{ "language": "en", "url": "https://stackoverflow.com/questions/134505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show weights in JgraphT I have implemented this Graph: ListenableDirectedWeightedGraph<String, MyWeightedEdge> g = new ListenableDirectedWeightedGraph<String, MyWeightedEdge>(MyWeightedEdge.class); In order to show what the class name says; a simple listenable directed weighted graph. I want to change the la...
{ "language": "en", "url": "https://stackoverflow.com/questions/134510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Getting software version numbers right. v1.0.0.1 I distribute software online, and always wonder if there is a proper way to better define version numbers. Let's assume A.B.C.D in the answers. When do you increase each of the components? Do you use any other version number tricks such as D mod 2 == 1 means it is an...
{ "language": "en", "url": "https://stackoverflow.com/questions/134517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: ASPNET TreeView Expanded Node Style Does anyone know how in ASP.Net's TreeView control, to have a custom style applied to an Expanded node? I have many root nodes and want the Expanded nodes to have a different background. A: There is no way of doing this with out of the box controls and this goes for alot of MS AS...
{ "language": "en", "url": "https://stackoverflow.com/questions/134519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Integrate Stack Overflow into IDEs? Okay, this is just a crazy idea I have. Stack Overflow looks very structured and integrable into development applications. So would it be possible, even useful, to have a Stack Overflow plugin for, say, Eclipse? Which features of Stack Overflow would you like to have directly int...
{ "language": "en", "url": "https://stackoverflow.com/questions/134520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do I know I reached a file's maximum size when using ofstream? While writing a file using ofstream, how do I know when the file's size has reached the OS' maximum file size - more specifically linux's maximum file size - ?? A: First off, maximum file size is a filesystem limit, not an Operating System limit. It...
{ "language": "en", "url": "https://stackoverflow.com/questions/134526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can you suggest the best screencast available to learn CSS? It should be hands-on, complete, targeted to programmers and detailed on layout techniques! A: Here are a few that you might like to consider: * *CSS for Designers with: Andy Clarke and Molly E. Holzschlag *CSS Web Site Design with: Eric Meyer *SitePo...
{ "language": "en", "url": "https://stackoverflow.com/questions/134543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it frowned upon to release your software with > 1 first commercial version number? Is it frowned upon to release your software with a version number high than 1? For example, some non tech-savy people might see a competitor's product with a higher version number as meaning my software is not as good. A: I believ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: c++ exception : throwing std::string I would like to throw an exception when my C++ methods encounter something weird and can't recover. Is it OK to throw a std::string pointer? Here's what I was looking forward to doing: void Foo::Bar() { if(!QueryPerformanceTimer(&m_baz)) { throw new std::string("it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: jQuery & Prototype Conflict I am using the jQuery AutoComplete plugin in an html page where I also have an accordion menu which uses prototype. They both work perfectly separately but when I tried to implement both components in a single page I get an error that I have not been able to understand. uncaught exceptio...
{ "language": "en", "url": "https://stackoverflow.com/questions/134572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How to make HTML rendering fast I am working on a web application developed on C#/ASP.NET. We are using third-party controls for displaying Grids, Tabs, Trees and other complex controls in our pages. The problem is that these controls render a huge amount of HTML. Due to this the size of pages have grown heavily and...
{ "language": "en", "url": "https://stackoverflow.com/questions/134574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Using Interface Builder for UITableViews I'm very early in the iPhone development learning process. I'm trying to get my head around various pieces. Right now I've just taken the basic NavigationController template and I'm trying to create a simple grouped table view with a couple of text fields. What I can't see...
{ "language": "en", "url": "https://stackoverflow.com/questions/134575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Applescriptable mySQL client - low cost or free? Can anyone recommend a MySQL front end client or OS X that is AppleScriptable? Preferably low cost or free. A: I would suggest just using the command-line mysql client and using the do shell script command in applescript to invoke it: do shell script "mysql -e 'sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/134580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gem update on Windows - is it broken? This is a follow-up to this question. When I issue the gem update command on Windows, whenever it gets to a gem whose latest version DOESN'T have Windows binaries, it'll attempt to build the native extension which will, of course, fail. For example: Updating sqlite3-ruby Buildin...
{ "language": "en", "url": "https://stackoverflow.com/questions/134581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Signature capture possible in various mobile web browsers? My company is considering offering a lightweight mobile web site for data entry in the field (we already have a thick-client mobile application). One hard requirement is that we must be able to capture a signature. Is there any prior art for capturing a sig...
{ "language": "en", "url": "https://stackoverflow.com/questions/134585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Google Maps-Like Scrolling Panel in WPF I have a Canvas where I'm drawing a bunch of shapes and other UI elements. This canvas can be very large so I want to put this in a panel which allows me to zoom in/out using the mouse and scroll by dragging the mouse, just like Google Maps. The closest thing I could find was...
{ "language": "en", "url": "https://stackoverflow.com/questions/134594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Best way to handle multilanguage support? I've been searching on SO on how to do i18n support on my little application... I know that Microsoft offers 'culture' classes, but you have to re-compile your application to include any new string you add. So, all I'm trying to do is to put all my strings in a external file...
{ "language": "en", "url": "https://stackoverflow.com/questions/134615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Which is more preferable to use: lambda functions or nested functions ('def')? I mostly use lambda functions but sometimes use nested functions that seem to provide the same behavior. Here are some trivial examples where they functionally do the same thing if either were found within another function: Lambda functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/134626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "132" }
Q: How do I use django.core.urlresolvers.reverse with a function reference instead of a named URL pattern? In my urls.py file, I have: from myapp import views ... (r'^categories/$', views.categories) Where categories is a view function inside myapp/views.py. No other URLconf lines reference views.categories. In a unit...
{ "language": "en", "url": "https://stackoverflow.com/questions/134629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is it possible to implement a COM interface with a .NET generics class? I have the following interface which I'm trying to make COM-visible. When I try to generate the type-library it doesn't like the fact that my implementation class derives from a generic-class. Is it possible to use a generic class as a COM imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/134633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Checking for duplicates in a collection Suppose you have a collection of Foo classes: class Foo { public string Bar; public string Baz; } List<Foo> foolist; And you want to check this collection to see if another entry has a matching Bar. bool isDuplicate = false; foreach (Foo f in foolist) { if (f.Ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/134644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to search through archived files with Perl What is your preferred method for reading through the contents of zipped directories with Perl ? A: There are several modules on CPAN for working with various archive formats (zip, tar, etc.), the one you're probably after is Archive::Zip. A: Archive::Zip require Arch...
{ "language": "en", "url": "https://stackoverflow.com/questions/134650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Finalizer launched while its object was still being used Summary: C#/.NET is supposed to be garbage collected. C# has a destructor, used to clean resources. What happen when an object A is garbage collected the same line I try to clone one of its variable members? Apparently, on multiprocessors, sometimes, the garba...
{ "language": "en", "url": "https://stackoverflow.com/questions/134653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Differences between Ruby VMs What are the advantages/disadvantages of the major Ruby VMs (things like features, compatibility, performance, and quirks?) I know there are also some bonus features like being able to use Java interfaces through JRuby, too. Those would also be helpful to note. Does any VM have a clear a...
{ "language": "en", "url": "https://stackoverflow.com/questions/134655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where can I find a Perl module for converting a Perl data structure into a JavaScript one? Where can I find a Perl module for converting a Perl data structure into a JavaScript one? e.g. this is my code (Mason): % # convert our @cti data structure into a javascript one var cti = [ % foreach my $cti_category (@cti)...
{ "language": "en", "url": "https://stackoverflow.com/questions/134656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Problem encrypting membership element in web.config I am trying to encrypt the "system.web.membership" element within the Web.Config of our .Net application to secure username and password to Active Directory. I am using the aspnet_regiis command to encrypt, and have tried several different strings for the value of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Project dependency missing in deployment project I've got a VS2008 deployment project that builds an installer for a couple of Windows services. Each service references several different projects: CustomerName.MailSendingService -> CustomerName.Network -> CustomerName.Data -> CustomerName.Security CustomerName....
{ "language": "en", "url": "https://stackoverflow.com/questions/134673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: DataGrid Edit Problem I have a DataGrid, with an ItemTemplate that has an image and label. In the EditItemTemplate the label is replaced by a textbox. My problem is that the edit template only shows when I click the Edit button the second time. What gives? A: Make sure you check for Page.IsPostback before bindin...
{ "language": "en", "url": "https://stackoverflow.com/questions/134680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do small spaces keep showing up in my web pages? This might be a stupid question but if there's a better or proper way to do this, I'd love to learn it. I have run across this a few times, including recently, where small spaces show up in the rendered version of my HTML page. Intuitively I think these should not...
{ "language": "en", "url": "https://stackoverflow.com/questions/134683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Visual Studio ">of" command causes solution explorer to go wacky I'm working with a fairly large solution right now in Visual Studio 2005 and whenever I try to use the ">of" command in the toolbar search box it causes my solution explorer go haywire. Specifically, all of the folders start showing that there aren't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create a jar file, which includes xml and html files? I am trying to create a jar file which includes some class and java files needed, but I also would like to include some extra xml, xsl, html, txt (README) files. I am using Eclipse on Windows XP. Is there an easy way for me to set up a directory structur...
{ "language": "en", "url": "https://stackoverflow.com/questions/134691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Linq To SQL caching VS multi-user application We develop Win32 application that access to SQL 2005 database through Linq to SQL. The issue is when 2 users access to same record (View and Edit)… User 1 update record (DataContext.SubmitChanges()), User 2 will continue to see old information until he restart applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/134694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Catching exceptions as expected program execution flow control? I always felt that expecting exceptions to be thrown on a regular basis and using them as flow logic was a bad thing. Exceptions feel like they should be, well, the "exception". If you're expecting and planning for an exception, that would seem to ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/134698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How can I sort a 2-D array in MATLAB with respect to one column? I would like to sort a matrix according to a particular column. There is a sort function, but it sorts all columns independently. For example, if my matrix data is: 1 3 5 7 -1 4 Then the desired output (sorting by the first column) would...
{ "language": "en", "url": "https://stackoverflow.com/questions/134712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: What's the key difference between HTML 4 and HTML 5? What are the key differences between HTML4 and HTML5 draft? Please keep the answers related to changed syntax and added/removed html elements. A: From Wikipedia: * *New parsing rules oriented towards flexible parsing and compatibility *New elements – section,...
{ "language": "en", "url": "https://stackoverflow.com/questions/134727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "150" }
Q: Generic Object in VB.NET I have a class declared as follows: Public MustInherit Container(Of T As {New, BaseClass}) Inherits ArrayList(Of T) I have classes that inherit this class. I have another class that I must pass instances in this method: Public Sub LoadCollection(Of T As {BaseClass, New})(ByRef Collection As...
{ "language": "en", "url": "https://stackoverflow.com/questions/134728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Returning a const reference to an object instead of a copy Whilst refactoring some code I came across some getter methods that returns a std::string. Something like this for example: class foo { private: std::string name_; public: std::string name() { return name_; } }; Surely the getter wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/134731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "74" }
Q: Bind ASP.NET DropDownList DataTextField to method? Is there anyway to have items in an ASP.NET DropDownList have either their Text or Value bound to a method on the source rather than a property? A: This is my solution: <asp:DropDownList ID="dropDownList" runat="server" DataSourceID="dataSource" DataValueField="Da...
{ "language": "en", "url": "https://stackoverflow.com/questions/134741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Server-side DataTable Sorting in RichFaces I have a data table with a variable number of columns and a data scroller. How can I enable server side sorting? I prefer that it be fired by the user clicking the column header. <rich:datascroller for="instanceList" actionListener="#{pageDataModel.pageChange}"/> <rich:data...
{ "language": "en", "url": "https://stackoverflow.com/questions/134742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the difference between bool and Boolean types in C# What is the difference between bool and Boolean types in C#? A: bool is an alias for the Boolean class. I use the alias when declaring a variable and the class name when calling a method on the class. A: I don't believe there is one. bool is just an alias...
{ "language": "en", "url": "https://stackoverflow.com/questions/134746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "384" }
Q: Clearing the Windows "Run" dialog history without rebooting I am currently working on a program to immediately clear the list of previously-run-commands which appears in the Windows Start -> Run dialog. The procedure for clearing this list by removing the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\...
{ "language": "en", "url": "https://stackoverflow.com/questions/134748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Release management - best practice I work for a product development company.We first do internal releases,and then public release.I was wondering, how other product developing companies manage their release? How do you give release number? Tag the source control? A: I created a similar question, but I wanted to add...
{ "language": "en", "url": "https://stackoverflow.com/questions/134778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Datagrid usage sourced from SQL server I would like to know the best way to use a datagrid control linked to a combination (join) of data tables in a way that both simply allows both display, creation of new rows in underlying tables and deletion. The datagrid appears to offer the latter capabilities but I have not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why pool Stateless session beans? Stateless beans in Java do not keep their state between two calls from the client. So in a nutshell we might consider them as objects with business methods. Each method takes parameters and return results. When the method is invoked some local variables are being created in executio...
{ "language": "en", "url": "https://stackoverflow.com/questions/134791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Automatically stop Visual C++ 2008 build at first compile error? I know I can compile individual source files, but sometimes -- say, when editing a header file used by many .cpp files -- multiple source files need to be recompiled. That's what Build is for. Default behavior of the "Build" command in VC9 (Visual C++...
{ "language": "en", "url": "https://stackoverflow.com/questions/134796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: What parts of application you prefer to be externalized as configuration and why? What parts of your application are not coded? I think one of the most obvious examples would be DB credentials - it's considered bad to have them hard coded. And in most of situations it is easy to decide if you want something to be ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/134797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to get a Windows Service to run an executable on a shared drive I have c# that will run in a windows service. I'm trying to use the Process and ProcessStartInfo classes to run an executable. If the executable is on the local drive, no problem. However, I need to run an executable on a shared drive. I've t...
{ "language": "en", "url": "https://stackoverflow.com/questions/134805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript: Trigger action on function exit Is there a way to listen for a javascript function to exit? A trigger that could be setup when a function has completed? I am attempting to use a user interface obfuscation technique (BlockUI) while an AJAX object is retrieving data from the DB, but the function doesn't ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/134815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Bug Fixing Time Allocation We've been asked by a client to give us a time estimate on each and every bug we have. Though we do have a set schedule for bug fixing and have allocated time for it, we don't have a time allocation on each of the bugs we have. Simply, we have prioritized our bugs and have ensured that Hig...
{ "language": "en", "url": "https://stackoverflow.com/questions/134821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: On a WPF ComboBox, is it possible to set a different Foreground color for the textbox and the popup? Basically my problem stems from a desire to have the textbox portion be white, and the drop down to be black. When I set the text to white, the drop down appears as I want it, but the text in the textbox itself is ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/134825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I find the MIME type of a file with PHP? I have an index.php file which has to process many different file types. How do I guess the filetype based on the REQUEST_URI? If I request http://site/image.jpg, and all requests redirect through index.php, which looks like this <?php include('/www/site'.$_SERVER['...
{ "language": "en", "url": "https://stackoverflow.com/questions/134833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Beginner wondering if his code is 'Pythonic' This is really the first thing that I have written in python. I come from Java background. I don't want to just learn how to program java code with Python syntax. I want to learn how to program in a pythonic paradigm. Could you guys please comment on how I can make the...
{ "language": "en", "url": "https://stackoverflow.com/questions/134834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"? The following are two methods of building a link that has the sole purpose of running JavaScript code. Which is better, in terms of functionality, page load speed, validation purposes, etc.? function myJsFunc() { alert("myJsFun...
{ "language": "en", "url": "https://stackoverflow.com/questions/134845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4379" }
Q: Sounds for build error/success in Visual C++? On long Visual C++ builds, it would be really helpful to hear some sort of (optional) sounds for such build/compile results as: * *individual compile error *file compile success/failure *build success/failure *batch build success/failure Does anyone know how to e...
{ "language": "en", "url": "https://stackoverflow.com/questions/134847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What's the simplest way to make a HTTP GET request in Perl? I have some code I've written in PHP for consuming our simple webservice, which I'd also like to provide in Perl for users who may prefer that language. What's the simplest method of making a HTTP request to do that? In PHP I can do it in one line with file...
{ "language": "en", "url": "https://stackoverflow.com/questions/134858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: WinDbg Dr. Watson minidump - requires pdb/dll originally built for installed version? I have a mindmp file from a target's application crash. Is it possible for me to rebuild the dll/pdb files for a version of software and have windbg load symbols correctly? My problem is that our pdb files are only kept for major ...
{ "language": "en", "url": "https://stackoverflow.com/questions/134866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the best way to implement an API in ASP.NET using MVC? I've been a longtime ASP.NET developer in the web forms model, and am using a new project as an opportunity to get my feet wet with ASP.NET MVC. The application will need an API so that a group of other apps can communicate with it. I've always built API...
{ "language": "en", "url": "https://stackoverflow.com/questions/134871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Databinding 2 WPF ComboBoxes to 1 source without being "linked" I have a master-detail scenario where I have 1 ComboBox listing companies from an ObjectDataSourceProvider. Under that I have 2 ComboBoxes binding to the Contacts property from the current Company object. I need to be able to select a different contac...
{ "language": "en", "url": "https://stackoverflow.com/questions/134872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Undoing a git rebase How do I easily undo a git rebase? A lengthy manual method is: * *checkout the commit parent to both of the branches *create and checkout a temporary branch *cherry-pick all commits by hand *reset the faulty rebased branch to point to the temporary branch In my current situation, this work...
{ "language": "en", "url": "https://stackoverflow.com/questions/134882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4076" }
Q: Why isn't Selenium capturing my keystrokes? I'm trying out the recorder of the latest Selenium IDE Firefox extension on win32/ff3. On one page, currently I have to hit Enter to go to the next page, but it's not on a submit button, it's captured manually. This is not picked up by the recorder. I know I can enter it...
{ "language": "en", "url": "https://stackoverflow.com/questions/134883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VBScript: Using a variable within a DOM element I'm looking to use a VBScript variable within a reference to a DOM element for a web-app I'm building. Here's a brief excerpt of the affected area of code: dim num num = CInt(document.myform.i.value) dim x x = 0 dim orders(num) For x = 0 To num orders(x) = documen...
{ "language": "en", "url": "https://stackoverflow.com/questions/134885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When to use ' (or quote) in Lisp? After making it through the major parts of an introductory Lisp book, I still couldn't understand what the special operator (quote) (or equivalent ') function does, yet this has been all over Lisp code that I've seen. What does it do? A: It says "don't evaluate me". For example,...
{ "language": "en", "url": "https://stackoverflow.com/questions/134887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "133" }
Q: Return XML from a controller's action in as an ActionResult? What is the best way to return XML from a controller's action in ASP.NET MVC? There is a nice way to return JSON, but not for XML. Do I really need to route the XML through a View, or should I do the not-best-practice way of Response.Write-ing it? A: I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/134905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "145" }
Q: How do I list all cron jobs for all users? Is there a command or an existing script that will let me view all of a *NIX system's scheduled cron jobs at once? I'd like it to include all of the user crontabs, as well as /etc/crontab, and whatever's in /etc/cron.d. It would also be nice to see the specific commands run...
{ "language": "en", "url": "https://stackoverflow.com/questions/134906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "967" }
Q: In Source Safe is there a way to protect crucial files being modified by some developers I'd sooner not just permanently have a bunch of files checked out to me, but I'd like a way to prevent some really critical files being changed without my being aware of it. PS Yes I know SourceSafe is terrible. A: You can onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/134914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }