text
stringlengths
8
267k
meta
dict
Q: How can I prevent Java from creating hsperfdata files? I'm writing a Java application that runs on Linux (using Sun's JDK). It keeps creating /tmp/hsperfdata_username directories, which I would like to prevent. Is there any way to stop java from creating these files? A: Try JVM option -XX:-UsePerfData more info The...
{ "language": "en", "url": "https://stackoverflow.com/questions/76327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Is there a way to emulate PHP5's __call() magic method in PHP4? PHP5 has a "magic method" __call()that can be defined on any class that is invoked when an undefined method is called -- it is roughly equivalent to Ruby's method_missing or Perl's AUTOLOAD. Is it possible to do something like this in older versions of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Compile-time LCM / GCD in C Does anyone know a mechanism to calculate at compile-time the LCM (Least Common Multiple) and/or GCD (Greatest Common Denominator) of at least two number in C (not C++, I know that template magic is available there)? I generally use GCC and recall that it can calculate certain values at c...
{ "language": "en", "url": "https://stackoverflow.com/questions/76334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why does Sql Server keep executing after raiserror when xact_abort is on? I just got surprised by something in TSQL. I thought that if xact_abort was on, calling something like raiserror('Something bad happened', 16, 1); would stop execution of the stored procedure (or any batch). But my ADO.NET error message just...
{ "language": "en", "url": "https://stackoverflow.com/questions/76346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "94" }
Q: Edit source code when debugging I have VS2005 and I am currently trying to debug an ASP.net web application. I want to change some code around in the code behind file, but every time I stop at a break point and try to edit something I get the following error message: "Changes are not allowed when the debugger has be...
{ "language": "en", "url": "https://stackoverflow.com/questions/76349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Free/cheap PowerDesigner alternative? We are using PowerDesigner at work for database modelling. But there is a hell of a price tag on that piece of software. And frankly, all I use is physical diagrams for MS SQL, which is about 1% of what PD knows. Are there any good alternatives? I know about Visio and MS SQL Dia...
{ "language": "en", "url": "https://stackoverflow.com/questions/76350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Variable binding in PHP ADOdb Does ADOdb do data sanitation or escaping within the same functionality by default? Or am I just confusing it with Code Igniter's built-in processes? Does binding variables to parameters in ADOdb for PHP prevent SQL injection in any way? A: yes, you pass the array of parameters. $rs =...
{ "language": "en", "url": "https://stackoverflow.com/questions/76359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Code generators vs. ORMs vs. Stored Procedures In what domains do each of these software architectures shine or fail? Which key requirements would prompt you to choose one over the other? Please assume that you have developers available who can do good object oriented code as well as good database development. Also,...
{ "language": "en", "url": "https://stackoverflow.com/questions/76395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to prevent an Insert query from enrolling into a Distributed Transaction? I have a SQL Insert query inside a stored proc, for inserting rows into a linked server table. Since the stored proc is getting called within a parent transaction, this Insert statement tries to use a DTC for inserting rows into the linked...
{ "language": "en", "url": "https://stackoverflow.com/questions/76403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Which of these scripting languages is more appropriate for pen-testing? First of all, I want to avoid a flame-war on languages. The languages to choose from are Perl, Python and Ruby . I want to mention that I'm comfortable with all of them, but the problem is that I can't focus just on one. If, for example, I see ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to cycle through delimited tokens with a Regular Expression? How can I create a regular expression that will grab delimited text from a string? For example, given a string like text ###token1### text text ###token2### text text I want a regex that will pull out ###token1###. Yes, I do want the delimiter as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Expose DependencyProperty When developing WPF UserControls, what is the best way to expose a DependencyProperty of a child control as a DependencyProperty of the UserControl? The following example shows how I would currently expose the Text property of a TextBox inside a UserControl. Surely there is a better / simp...
{ "language": "en", "url": "https://stackoverflow.com/questions/76412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to remove xmlns attribute with .NET XML API XmlElement.Attributes.Remove* methods are working fine for arbitrary attributes resulting in the removed attributes being removed from XmlDocument.OuterXml property. Xmlns attribute however is different. Here is an example: XmlDocument doc = new XmlDocument(); doc.Inne...
{ "language": "en", "url": "https://stackoverflow.com/questions/76424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Extreme Programming As developers and as professional engineers have you been exposed to the tenants of Extreme Programming as defined in the "version 1" by Kent Beck. Which of those 12 core principles do you feel you have been either allowed to practice or at least be a part of in your current job or others? * Pair...
{ "language": "en", "url": "https://stackoverflow.com/questions/76440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How do you change the color of the border on a group box? In C#.NET I am trying to programmatically change the color of the border in a group box. Update: This question was asked when I was working on a winforms system before we switched to .NET. A: Just set the paint action on any object (not just buttons) to thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/76455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Creating a DNN Module that uses a end-user modifyable template I'd like to create a module in DNN that, similar to the Announcements control, offers a template that the portal admin can modify for formatting. I have a control that currently uses a Repeater control with templates. Is there a way to override the con...
{ "language": "en", "url": "https://stackoverflow.com/questions/76464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Checking version of file in Ruby on Windows Is there a way in Ruby to find the version of a file, specifically a .dll file? A: What if you want to get the version info with ruby, but the ruby code isn't running on Windows? The following does just that (heeding the same extended charset warning): #!/usr/bin/ruby ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Powershell: Setting Encoding for Get-Content Pipeline I have a file saved as UCS-2 Little Endian I want to change the encoding so I ran the following code: cat tmp.log -encoding UTF8 > new.log The resulting file is still in UCS-2 Little Endian. Is this because the pipeline is always in that format? Is there an eas...
{ "language": "en", "url": "https://stackoverflow.com/questions/76482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How to tell if a process is running on a mobile device I have the handle of process 'A' on a Pocket PC 2003 device. I need to determine if that process is still running from process 'B'. Process 'B' is written in Embedded Visual C++ 4.0. A: GetExitCodeProcess will return STILL_ACTIVE if the process was running when...
{ "language": "en", "url": "https://stackoverflow.com/questions/76484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using MySQL with Entity Framework Can't find anything relevant about Entity Framework/MySQL on Google so I'm hoping someone knows about it. A: This isn't about MS and what they want. They have created an *open system for others to plug-in 'providers' - postgres and sqlite have it - mysql is just laggin... but, go...
{ "language": "en", "url": "https://stackoverflow.com/questions/76488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "268" }
Q: Should my C# .NET team migrate to Windows Presentation Foundation? We make infrastructure services (data retrieval and storage) and small smart client applications (fancy reporting mostly) for a commercial bank. Our team is large, 40 odd contractual employees that are C# .NET programmers. We support 50 odd applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/76522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: I need this baby in a month - send me nine women! Under what circumstances - if any - does adding programmers to a team actually speed development of an already late project? A: If the existing programmers are totally incompetent, then adding competent programmers may help. I can imagine a situation where you had a...
{ "language": "en", "url": "https://stackoverflow.com/questions/76526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "184" }
Q: How does the Multiview control handle its Viewstate? Does the Multiview control contain the viewstate information for each of its views regardless of whether or not the view is currently visible? A: Yes it does, all the views are still there, just the inactive ones are hidden/disabled. http://msdn.microsoft.com/en-...
{ "language": "en", "url": "https://stackoverflow.com/questions/76534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How are Integer arrays stored internally, in the JVM? An array of ints in java is stored as a block of 32-bit values in memory. How is an array of Integer objects stored? i.e. int[] vs. Integer[] I'd imagine that each element in the Integer array is a reference to an Integer object, and that the Integer object has ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Adding item to the Desktop context menu in Windows I want to add an item into the Desktop context menu (the menu you see when you right-click on an empty space on the Windows Desktop). Something like Catalyst Control Center in this screenshot: I know how to add items to files' and folders' context menus through r...
{ "language": "en", "url": "https://stackoverflow.com/questions/76553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change the color of a bullet in a html list? All I want is to be able to change the color of a bullet in a list to a light gray. It defaults to black, and I can't figure out how to change it. I know I could just use an image; I'd rather not do that if I can help it. A: <ul> <li style="color: #888;"><span style="c...
{ "language": "en", "url": "https://stackoverflow.com/questions/76564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: Prototype's Enumerable#pluck in F#? In JavaScript, using the Prototype library, the following functional construction is possible: var words = ["aqueous", "strength", "hated", "sesquicentennial", "area"]; words.pluck('length'); //-> [7, 8, 5, 16, 4] Note that this example code is equivalent to words.map( function(w...
{ "language": "en", "url": "https://stackoverflow.com/questions/76571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I have P & G-- how do I use the Wincrypt API to generate a Diffie-Hellman keypair? There's an MSDN article here, but I'm not getting very far: p = 139; g = 5; CRYPT_DATA_BLOB pblob; pblob.cbData = sizeof( ULONG ); pblob.pbData = ( LPBYTE ) &p; CRYPT_DATA_BLOB gblob; gblob.cbData = sizeof( ULONG ); gblob.pbData = (...
{ "language": "en", "url": "https://stackoverflow.com/questions/76581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rhino Mocks: Is there any way to verify a constraint on an object property's property? If I have class ObjA { public ObjB B; } class ObjB { public bool Val; } and class ObjectToMock { public DoSomething(ObjA obj){...} } Is there any way to define an expectation that not only will DoSomething get called but...
{ "language": "en", "url": "https://stackoverflow.com/questions/76584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: persistence.xml not found during maven testing I'm trying to load test data into a test DB during a maven build for integration testing. persistence.xml is being copied to target/test-classes/META-INF/ correctly, but I get this exception when the test is run. javax.persistence.PersistenceException: No Persistence...
{ "language": "en", "url": "https://stackoverflow.com/questions/76591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: SOAP or REST for Web Services? Is REST a better approach to doing Web Services or is SOAP? Or are they different tools for different problems? Or is it a nuanced issue - that is, is one slightly better in certain arenas than another, etc? I would especially appreciate information about those concepts and their re...
{ "language": "en", "url": "https://stackoverflow.com/questions/76595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "391" }
Q: Page can not be displayed I've got a client that sees the "Page can not be displayed" (nothing else) whenever they perform a certain action in their website. I don't get the error, ever. I've tried IE, FF, Chrome, and I do not see the error. The client sees the error on IE. The error occurs when they press a form...
{ "language": "en", "url": "https://stackoverflow.com/questions/76601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 64 bit enum in C++? Is there a way to have a 64 bit enum in C++? Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit causes the compiler to error. For some reason I thought the following might work: enum MY_ENUM : unsigned __int64 { LA...
{ "language": "en", "url": "https://stackoverflow.com/questions/76624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Mixing C# Code and umanaged C++ code on Windows with Visual Studio I would like to call my unmanaged C++ libraries from my C# code. What are the potential pitfalls and precautions that need to be taken? Thank you for your time. A: There are a couple routes you can go with this - one, you can update your unmanaged C...
{ "language": "en", "url": "https://stackoverflow.com/questions/76629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Printings using CUPS, when can my app quit? I have an linux app that uses cups for printing, but I've noticed that if I print and then quit my app right away my printout never appears. So I assume that my app has to wait for it to actually come out of the printer before quitting, so does anyone know how to tell when...
{ "language": "en", "url": "https://stackoverflow.com/questions/76637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Perl: Use of uninitialized value in numeric lt (<) at /Date/Manip.pm This has me puzzled. This code worked on another server, but it's failing on Perl v5.8.8 with Date::Manip loaded from CPAN today. Warning: Use of uninitialized value in numeric lt (<) at /home/downside/lib/Date/Manip.pm line 3327. at dailyupdate.pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/76650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Dirty Rectangles Where may one find references on implementing an algorithm for calculating a "dirty rectangle" for minimizing frame buffer updates? A display model that permits arbitrary edits and computes the minimal set of "bit blit" operations required to update the display. A: To build the smallest rectangle ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Fetch unread messages, by user I want to maintain a list of global messages that will be displayed to all users of a web app. I want each user to be able to mark these messages as read individually. I've created 2 tables; messages (id, body) and messages_read (user_id, message_id). Can you provide an sql statement t...
{ "language": "en", "url": "https://stackoverflow.com/questions/76680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Advice on building a distributed CMS? I'm in the process of designing a PHP-based content management system for personal use and eventually to be distributed. I know there are a lot of CMS's already out there, but I really haven't found one that meets my all of my needs and I also would like to have the learning exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/76689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's a simple method to dump pipe input to a file? (Linux) I'm looking for a little shell script that will take anything piped into it, and dump it to a file.. for email debugging purposes. Any ideas? A: The standard unix tool tee can do this. It copies input to output, while also logging it to a file. A: The un...
{ "language": "en", "url": "https://stackoverflow.com/questions/76700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the best way to handle sessions for a PHP site on multiple hosts? PHP stores its session information on the file system of the host of the server establishing that session. In a multiple-host PHP environment, where load is unintelligently distributed amongst each host, PHP session variables are not availabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/76712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Dense pixelwise reverse projection I saw a question on reverse projecting 4 2D points to derive the corners of a rectangle in 3D space. I have a kind of more general version of the same problem: Given either a focal length (which can be solved to produce arcseconds / pixel) or the intrinsic camera matrix (a 3x2 mat...
{ "language": "en", "url": "https://stackoverflow.com/questions/76718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get list of records with multiple entries on the same date I need to return a list of record id's from a table that may/may not have multiple entries with that record id on the same date. The same date criteria is key - if a record has three entries on 09/10/2008, then I need all three returned. If the record only h...
{ "language": "en", "url": "https://stackoverflow.com/questions/76724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: VS2008 Setup Project: Shared (By All Users) Application Data Files? fellow anthropoids and lily pads and paddlewheels! I'm developing a Windows desktop app in C#/.NET/WPF, using VS 2008. The app is required to install and run on Vista and XP machines. I'm working on a Setup/Windows Installer Project to install the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/76760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Scaling cheaply: MySQL and MS SQL How cheap can MySQL be compared to MS SQL when you have tons of data (and joins/search)? Consider a site like stackoverflow full of Q&As already and after getting dugg. My ASP.NET sites are currently on SQL Server Express so I don't have any idea how cost compares in the long run....
{ "language": "en", "url": "https://stackoverflow.com/questions/76762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I TDD a custom membership provider and custom membership user? I need to create a custom membership user and provider for an ASP.NET mvc app and I'm looking to use TDD. I have created a User class which inherits from the MembershipUser class, but when I try to test it I get an error that I can't figure out. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: .NET XML Seralization I'm working on a set of classes that will be used to serialize to XML. The XML is not controlled by me and is organized rather well. Unfortunately, there are several sets of nested nodes, the purpose of some of them is just to hold a collection of their children. Based on my current knowledg...
{ "language": "en", "url": "https://stackoverflow.com/questions/76793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: General guidelines to avoid memory leaks in C++ What are some general tips to make sure I don't leak memory in C++ programs? How do I figure out who should free memory that has been dynamically allocated? A: Great question! if you are using c++ and you are developing real-time CPU-and-memory boud application (like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Anyone out there using web2py? Is anyone out there* using web2py? Specifically: * *In production? *With what database? *With Google Application Engine? * *by "out there" I mean at stackoverflow. A: I use web2py for academic purposes. About a year ago I published on pythonanywhere a digital text book for g...
{ "language": "en", "url": "https://stackoverflow.com/questions/76809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: DoSomethingToThing(Thing n) vs Thing.DoSomething() What factors determine which approach is more appropriate? A: To be object-oriented, tell, don't ask : http://www.pragmaticprogrammer.com/articles/tell-dont-ask. So, Thing.DoSomething() rather than DoSomethingToThing(Thing n). A: If you're dealing with internal st...
{ "language": "en", "url": "https://stackoverflow.com/questions/76812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to send SOAP requests in ISO-8859-1 with Flex? Flex uses by default UTF-8. I have not fount a way to specify a different encoding/charset on the actionscript WebService class. A: Ummm, look here: http://www.adobe.com/devnet/flex/articles/struts_06.html I think that sample implies that declaring your mxml file a...
{ "language": "en", "url": "https://stackoverflow.com/questions/76817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS "frameworks" that account for browser irregularities? I build websites for a small-ish media company. Unfortunately, around 45-50% of our client base uses IE6, while the other half are pretty much equally split between Firefox and Webkit-based browsers, with a sprinkling of Opera users. I start every one of my s...
{ "language": "en", "url": "https://stackoverflow.com/questions/76854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the best way to remotely reset the server cache in a web farm? Each of our production web servers maintains its own cache for separate web sites (ASP.NET Web Applications). Currently to clear a cache we log into the server and "touch" the web.config file. Does anyone have an example of a safe/secure way to...
{ "language": "en", "url": "https://stackoverflow.com/questions/76855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I alter how types are resolved and instantiated in .NET? In some languages you can override the "new" keyword to control how types are instantiated. You can't do this directly in .NET. However, I was wondering if there is a way to, say, handle a "Type not found" exception and manually resolve a type before who...
{ "language": "en", "url": "https://stackoverflow.com/questions/76864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to dynamically load a properties file in NAnt? I want to load a different properties file based upon one variable. Basically, if doing a dev build use this properties file, if doing a test build use this other properties file, and if doing a production build use yet a third properties file. A: You ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/76870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Resources for Python Programmer I have written a lot of code in Python, and I am very used to the syntax, object structure, and so forth of Python because of it. What is the best online guide or resource site to provide me with the basics, as well as a comparison or lookup guide with equivalent functions/features in...
{ "language": "en", "url": "https://stackoverflow.com/questions/76882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Troubleshooting Timeout SqlExceptions I have some curious behavior that I'm having trouble figuring out why is occurring. I'm seeing intermittent timeout exceptions. I'm pretty sure it's related to volume because it's not reproducible in our development environment. As a bandaid solution, I tried upping the sql c...
{ "language": "en", "url": "https://stackoverflow.com/questions/76891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: swfObject + scriptaculous Autocompleter = Fail For some reason the combination of swfobject.js and script.aculo.us Ajax.Autocompleter on the same page causes the latter to fail. Autocompleter doesn't make its Ajax request. A separate Ajax control on the same page that uses Ajax.Updater doesn't seem to have the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I format the message used to perform an HTTP post from VBScript / ASP to a WCF service and get a response? DOING THE POST IS NOT THE PROBLEM! Formatting the message so that I get a response is the problem. Ideally I'd be able to construct a message and use WinHTTP to perform a post to a WCF service (hosted i...
{ "language": "en", "url": "https://stackoverflow.com/questions/76925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the easiest way to adjust EXIF timestamps on photos from multiple cameras in Windows Vista? Scenario: Several people go on holiday together, armed with digital cameras, and snap away. Some people remembered to adjust their camera clocks to local time, some left them at their home time, some left them at loc...
{ "language": "en", "url": "https://stackoverflow.com/questions/76930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: App referencing Microsoft.SqlServer.Smo requires additional assemblies to be included on Target Machine? I have a small app which references the Microsoft.SqlServer.Smo assembly (so I can display to the user a list of servers & databases to which they can connect). My application originally referenced Microsoft.SqlS...
{ "language": "en", "url": "https://stackoverflow.com/questions/76933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How important is a database in managing information? I have been hired to help write an application that manages certain information for the end user. It is intended to manage a few megabytes of information, but also manage scanned images in full resolution. Should this project use a database, and why or why not? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: x86 Remote Debugger Service on x64 Is it possible to install the x86 Remote Debugger as a Service on a 64bit machine? I need to attach a debugger to managed code in a Session 0 process. The process runs 32bit but the debugger service that gets installed is 64bit and wont attach to the 32bit process. I tried crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/76939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Which library should I use to generate RSS in Common Lisp? What's the best library to use to generate RSS for a webserver written in Common Lisp? A: xml-emitter says it has an RSS 2.0 emitter built in. A: CL-WHO can generate XML pretty easily. A: Most anything will probably do. Personally, I've been using xml-em...
{ "language": "en", "url": "https://stackoverflow.com/questions/76945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Looking for a simple C# numeric edit control I am a MFC programmer who is new to C# and am looking for a simple control that will allow number entry and range validation. A: Look at the "NumericUpDown" control. It has range validation, the input will always be numeric, and it has those nifty increment/decrement but...
{ "language": "en", "url": "https://stackoverflow.com/questions/76963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Outlook API to get to a specific folder I'm trying to write some C# code to get to a specific folder in an Outlook mailbox. I have the following code: Outlook.Application oApp = new Outlook.Application(); Outlook.NameSpace oNS = oApp.GetNamespace("mapi"); Outlook.Recipient oRecip = oNS.CreateRecipient("Account...
{ "language": "en", "url": "https://stackoverflow.com/questions/76964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Mending bad BAD database design once data is in the system I know that that is not a question... erm anyway HERE is the question. I have inherited a database that has 1(one) table in that looks much like this. Its aim is to record what species are found in the various (200 odd) countries. ID Species Afghanistan Alb...
{ "language": "en", "url": "https://stackoverflow.com/questions/76967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to get progress from XMLHttpRequest Is it possible to get the progress of an XMLHttpRequest (bytes uploaded, bytes downloaded)? This would be useful to show a progress bar when the user is uploading a large file. The standard API doesn't seem to support it, but maybe there's some non-standard extension in any o...
{ "language": "en", "url": "https://stackoverflow.com/questions/76976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "140" }
Q: How to Setup a Low cost cluster At my house I have about 10 computers all different processors and speeds (all x86 compatible). I would like to cluster these. I have looked at openMosix but since they stopped development on it I am deciding against using it. I would prefer to use the latest or next to latest version...
{ "language": "en", "url": "https://stackoverflow.com/questions/76983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How is it possible to run a traceroute-like program without needing root privileges? I have seen another program provide traceroute functionality within it but without needing root (superuser) privileges? I've always assumed that raw sockets need to be root, but is there some other way? (I think somebody mentioned "...
{ "language": "en", "url": "https://stackoverflow.com/questions/76988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to double buffer .NET controls on a form? How can I set the protected DoubleBuffered property of the controls on a form that are suffering from flicker? A: Here's a more generic version of Dummy's solution. We can use reflection to get at the protected DoubleBuffered property, and then it can be set to true. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/76993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: How to automatically generate a stacktrace when my program crashes I am working on Linux with the GCC compiler. When my C++ program crashes I would like it to automatically generate a stacktrace. My program is being run by many different users and it also runs on Linux, Windows and Macintosh (all versions are compil...
{ "language": "en", "url": "https://stackoverflow.com/questions/77005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "681" }
Q: Which open-source C++ database GUI project should I help with? I am looking for an open-source project involving c++ GUI(s) working with a database. I have not done it before, and am looking for a way to get my feet wet. Which can I work on? A: How about this one http://sourceforge.net/projects/sqlitebrowser/: S...
{ "language": "en", "url": "https://stackoverflow.com/questions/77013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best way the _DoPostBack javascript method in Asp.net I want to set a breakpoint on the __DoPostBack method, but it's a pain to find the correct file to set the breakpoint in. The method __DoPostBack is contained in an auto-generated js file called something like: ScriptResource.axd?d=P_lo2... After a...
{ "language": "en", "url": "https://stackoverflow.com/questions/77025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get Google Charts to display multiple colors in a scatter chart? I would like to display multiple colors (and potentially shapes and sizes) of data points in a Google Chart scatter chart. Does anyone have an example of how to do so? A: I answered my own question after waiting SECONDS for an answer here :-...
{ "language": "en", "url": "https://stackoverflow.com/questions/77034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Cleanest way to implement collapsable entries in a table generated via asp:Repeater? Before anyone suggests scrapping the table tags altogether, I'm just modifying this part of a very large system, so it really wouldn't be wise for me to revise the table structure (the app is filled with similar tables). This is a w...
{ "language": "en", "url": "https://stackoverflow.com/questions/77082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which is faster, python webpages or php webpages? Which is faster, python webpages or php webpages? Does anyone know how the speed of pylons(or any of the other frameworks) compares to a similar website made with php? I know that serving a python base webpage via cgi is slower than php because of its long start u...
{ "language": "en", "url": "https://stackoverflow.com/questions/77086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Are there any good Continuous Testing plugins for Eclipse out right now? I've used the MIT Continuous testing plugin in the past, but it has long since passed out of date and is no longer compatible with anything approaching a modern release of Eclipse. Does anyone have a good replacement? Free, naturally, is prefe...
{ "language": "en", "url": "https://stackoverflow.com/questions/77090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Adobe Reader Error Codes I am programmatically creating PDFs, and a recent change to my generator is creating documents that crash both Mac Preview and Adobe Reader on my Mac. Before Adobe Reader crashes, it reports: There was an error processing a page. There was a problem reading this document (18). I suspect...
{ "language": "en", "url": "https://stackoverflow.com/questions/77102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are some good compilers to use when learning C++? What are some suggestions for easy to use C++ compilers for a beginner? Free or open-source ones would be preferred. A: G++ is the GNU C++ compiler. Most *nix distros should have the package available. A: I'd recommend using Dev C++. It's a small and lightweig...
{ "language": "en", "url": "https://stackoverflow.com/questions/77126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When to throw an exception? I have exceptions created for every condition that my application does not expect. UserNameNotValidException, PasswordNotCorrectException etc. However I was told I should not create exceptions for those conditions. In my UML those ARE exceptions to the main flow, so why should it not be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/77127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "492" }
Q: PHP Deployment to windows/unix servers We have various php projects developed on windows (xampp) that need to be deployed to a mix of linux/windows servers. We've used capistrano in the past to deploy from windows to the linux servers, but recent changes in architecture and windows servers left the old config not w...
{ "language": "en", "url": "https://stackoverflow.com/questions/77128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: kSOAP Marshalling help needed Does anyone have a good complex object marshalling example using the kSOAP package? A: Although this example is not compilable and complete, the basic idea is to have a class that tells kSOAP how to turn an XML tag into an object (i.e. readInstance()) and how to turn an object into an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/77131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to send WM_QUERYENDSESSION messages to a window in a different process? I want to debug a windows C++ application I've written to see why it isn't responding to WM_QUERYENDSESSION how I expect it to. Clearly it's a little tricky to do this by just shutting the system down. Is there any utility or code...
{ "language": "en", "url": "https://stackoverflow.com/questions/77133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: data access in DDD? After reading Evan's and Nilsson's books I am still not sure how to manage Data access in a domain driven project. Should the CRUD methods be part of the repositories, i.e. OrderRepository.GetOrdersByCustomer(customer) or should they be part of the entities: Customer.GetOrders(). The latter appro...
{ "language": "en", "url": "https://stackoverflow.com/questions/77171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Stored procedures/DB schema in source control Do you guys keep track of stored procedures and database schema in your source control system of choice? When you make a change (add a table, update an stored proc, how do you get the changes into source control? We use SQL Server at work, and I've begun using darcs fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/77172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: How do you justify Refactoring work to your penny-pinching boss? You've just written a pile of code to deliver some important feature under pressure. You've cut a few corners, you've mashed some code into some over-bloated classes with names like SerialIndirectionShutoffManager.. You tell your boss you're going to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/77193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: What does BlazeDS Livecycle Data Services do, that something like PyAMF or RubyAMF not do? I'm doing a tech review and looking at AMF integration with various backends (Rails, Python, Grails etc). Lots of options are out there, question is, what do the Adobe products do (BlazeDS etc) that something like RubyAMF / py...
{ "language": "en", "url": "https://stackoverflow.com/questions/77198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I eliminate duplicated Enum code? I have a large number of Enums that implement this interface: /** * Interface for an enumeration, each element of which can be uniquely identified by its code */ public interface CodableEnum { /** * Get the element with a particular code * @param code *...
{ "language": "en", "url": "https://stackoverflow.com/questions/77213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Moving SQL2005 app to SQL2008 I will be moving our production SQL2005 application to SQL2008 soon. Any things to lookout for before/after the move? Any warnings, advices? Thank you! A: Change your compatibility level on the database after moving it to the 2008 server. By default, it will still stay at the old comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/77217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I capitalize the first letter of each word in a string in Perl? What is the easiest way to capitalize the first letter in each word of a string? A: $string =~ s/(\w+)/\u$1/g; should work just fine A: As @brian is mentioning in the comments the currently accepted answer by @piCookie is wrong! $_="what's th...
{ "language": "en", "url": "https://stackoverflow.com/questions/77226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Query points epsilon-close to a cut plane in point cloud using the GPU I am trying to solve the current problem using GPU capabilities: "given a point cloud P and an oriented plane described by a point and a normal (Pp, Np) return the points in the cloud which lye at a distance equal or less than EPSILON from the pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/77258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can operator>> read an int hex AND decimal? Can I persuade operator>> in C++ to read both a hex value AND and a decimal value? The following program demonstrates how reading hex goes wrong. I'd like the same istringstream to be able to read both hex and decimal. #include <iostream> #include <sstream> int main(int...
{ "language": "en", "url": "https://stackoverflow.com/questions/77266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I package my Perl script to run on a machine without Perl? People also often ask "How can I compile Perl?" while what they really want is to create an executable that can run on machines even if they don't have Perl installed. There are several solutions, I know of: * *perl2exe of IndigoStar It is commerc...
{ "language": "en", "url": "https://stackoverflow.com/questions/77278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do you set up an API key system for your website? Let say that I have a website with some information that could be access externally. Those information need to be only change by the respected client. Example: Google Analytic or WordPress API key. How can I create a system that work like that (no matter the prog...
{ "language": "en", "url": "https://stackoverflow.com/questions/77280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Trouble having a modal dialog to open a secondary dialog I have a modal dialog form which has some "help links" within it which should open other non-modal panels or dialogs on top of it (while keeping the main dialog otherwise modal). However, these always end up behind the mask. YUI seems to be recognizing the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/77287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is an easy way to create a MessageBox with custom button text in Managed C++? I would like to keep the overhead at a minimum. Right now I have: // Launch a Message Box with advice to the user DialogResult result = MessageBox::Show("This may take awhile, do you wish to continue?", "Warning", MessageBoxButtons::Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/77293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Infopath 2007 - How do I perform data validation on the current view ONLY? I have an infopath 2007 form that I am developing which uses 3 different views. The 3 different views are basically the same form, but have different text boxes shown, depending upon what button the user selects. I run into a problem where 'v...
{ "language": "en", "url": "https://stackoverflow.com/questions/77317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why has XSLT never seen the popularity of many other languages that came out during the internet boom? The use of XSLT (XML Stylesheet Language Transform) has never seen the same popularity of many of the other languages that came out during the internet boom. While it is in use, and in some cases by large successf...
{ "language": "en", "url": "https://stackoverflow.com/questions/77342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Extending/Merging VB Arrays I have a class with a public array of bytes. Lets say its Public myBuff as byte() Events within the class get chunks of data in byte array. How do i tell the event code to stick the get chunk on the end? Lets say Private Sub GetChunk Dim chunk as byte '... get stuff in chunk Me.myB...
{ "language": "en", "url": "https://stackoverflow.com/questions/77382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }