text
stringlengths
8
267k
meta
dict
Q: How to instantiate a Java array given an array type at runtime? In the Java collections framework, the Collection interface declares the following method: <T> T[] toArray(T[] a) Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array....
{ "language": "en", "url": "https://stackoverflow.com/questions/77387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What is the best way to handle URL mappings between an RIA version and plain old HTML version of a site? So if you have a RIA version (Silverlight or Flash) and a standard HTML version (or AJAX even), should you have the same URL for both, or is it ok to have a different one for the RIA app and just redirect accordi...
{ "language": "en", "url": "https://stackoverflow.com/questions/77428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's a good JavaScript plugin color picker? I make a lot of web applications and from time to time I need a color picker. What's one that I can use like an API and doesn't require a lot of code to plug in? I also need it to work in all browsers. A: I haven't personally implemented this, but I have heard good thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/77431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to access the last value in a vector? Suppose I have a vector that is nested in a dataframe with one or two levels. Is there a quick and dirty way to access the last value, without using the length() function? Something ala PERL's $# special var? So I would like something like: dat$vec1$vec2[$#] instead of: d...
{ "language": "en", "url": "https://stackoverflow.com/questions/77434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "353" }
Q: Ant is not able to delete some files on windows I have an ant build that makes directories, calls javac and all the regular stuff. The issue I am having is that when I try to do a clean (delete all the stuff that was generated) the delete task reports that is was unable to delete some files. When I try to delete the...
{ "language": "en", "url": "https://stackoverflow.com/questions/77436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Database Backup/Restore Process The backup and restore process of a large database or collection of databases on sql server is very important for disaster & recovery purposes. However, I have not found a robust solution that will guarantee the whole process is as efficient as possible, 100% reliable and easily main...
{ "language": "en", "url": "https://stackoverflow.com/questions/77473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What are the relative strengths and weaknesses of Git, Mercurial, and Bazaar? What do folks here see as the relative strengths and weaknesses of Git, Mercurial, and Bazaar? In considering each of them with one another and against version control systems like SVN and Perforce, what issues should be considered? In pla...
{ "language": "en", "url": "https://stackoverflow.com/questions/77485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "141" }
Q: C# Datatype for large sorted collection with position? I am trying to compare two large datasets from a SQL query. Right now the SQL query is done externally and the results from each dataset is saved into its own csv file. My little C# console application loads up the two text/csv files and compares them for differ...
{ "language": "en", "url": "https://stackoverflow.com/questions/77503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are your favourite ZX Spectrum development tools? What are your favourite assemblers, compilers, environments, interpreters for the good old ZX Spectrum? A: I always used to use Roybot Assembler - which had you enter your program using the BASIC editor and REM statements. It comes with a decent debugger/disa...
{ "language": "en", "url": "https://stackoverflow.com/questions/77507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Multithreaded Debugger GDB has severe issues when debugging with multiple threads (pthreads). Are there any other good multi-threaded debuggers for C/C++ on *nix? A: I've personally not had any GDB specific issues when debugging a multi-threaded application, so it may helpful for you to elaborate on exactly what "i...
{ "language": "en", "url": "https://stackoverflow.com/questions/77522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you run CMD.exe under the Local System Account? I'm currently running Vista and I would like to manually complete the same operations as my Windows Service. Since the Windows Service is running under the Local System Account, I would like to emulate this same behavior. Basically, I would like to run CMD.EXE u...
{ "language": "en", "url": "https://stackoverflow.com/questions/77528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "173" }
Q: Where do I enter the Windows Server 2008 key after installing it? When I installed Windows Server 2008 I didn't have the (activation) key. Now that I have it I can't find where to enter it. Anybody know? A: Go to Control Panel\System and then under Windows Activation click "Change Product Key". A: I know in Vista ...
{ "language": "en", "url": "https://stackoverflow.com/questions/77531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wsdl.exe Error: Unable to import binding '...' from namespace '...' When running wsdl.exe on a WSDL I created, I get this error: Error: Unable to import binding 'SomeBinding' from namespace 'SomeNS'. * *Unable to import operation 'someOperation'. *These members may not be derived. I'm using the document-litera...
{ "language": "en", "url": "https://stackoverflow.com/questions/77534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Need gcc/g++ working on SCO6 Has anyone found a way to get gcc to build/install on SCO6? With 2.95 and 4.3 I get to the point where it needs to use (2.95) or find (4.3) the assembler and that's where it fails. If anyone has figured this out I would appreciate the info! Thanks A: You probably need to install GNU bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/77535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 'id' is a bad variable name in Python Why is it bad to name a variable id in Python? A: id is a built-in function that gives the identity of an object (which is also its memory address in CPython). If you name one of your functions id, you will have to say builtins.id to get the original (or __builtins__.id in CPyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/77552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "199" }
Q: How can I use the PHP File api to write raw bytes? I want to write a raw byte/byte stream to a position in a file. This is what I have currently: $fpr = fopen($out, 'r+'); fseek($fpr, 1); //seek to second byte fwrite($fpr, 0x63); fclose($fpr); This currently writes the actually string value of "99" starting at byt...
{ "language": "en", "url": "https://stackoverflow.com/questions/77558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Test framework for black box regression testing I am looking for a tool for regression testing a suite of equipment we are building. The current concept is that you create an input file (text/csv) to the tool specifying inputs to the system under test. The tool then captures the outputs from the system and records t...
{ "language": "en", "url": "https://stackoverflow.com/questions/77582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there an integrated Eclipse plugin to debug Jython? JyDT is a good Jython Eclipse plugin. However, it doesn't allow Jython debugging in the Debug perspective. Jython provides a command-line debugger (Pdb) but it operates outside Eclipse. A: Pydev has worked well for me.
{ "language": "en", "url": "https://stackoverflow.com/questions/77587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting java and flash to talk to each other I have an application written in java, and I want to add a flash front end to it. The flash front end will run on the same computer as the java app in the stand alone flash player. I need two way communication between the two parts, and have no idea how to even start goin...
{ "language": "en", "url": "https://stackoverflow.com/questions/77598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Performance Testing We are developing automated regression tests using VMWare and NUnit. We have divided tests into steps and now I would like to see each step be examined for performance regression. Simply timing the tests, as NUnit does, does not seem reliable. I have figured in a acceptance factor of about 15% bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/77603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is cool about generics, why use them? I thought I'd offer this softball to whomever would like to hit it out of the park. What are generics, what are the advantages of generics, why, where, how should I use them? Please keep it fairly basic. Thanks. A: The best benefit to Generics is code reuse. Lets say that...
{ "language": "en", "url": "https://stackoverflow.com/questions/77632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "94" }
Q: SWFAddress Deeplinks and C# library? Is there a C# class for interacting with SWFAddress deeplink URL strings (reading deeplink parameters, building SWFAddress URLs, etc.)? Planning to write one myself otherwise; but I wanted to make sure I wasn't reinventing the wheel first. A: If you're trying to read those deep...
{ "language": "en", "url": "https://stackoverflow.com/questions/77637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When is it right for a constructor to throw an exception? When is it right for a constructor to throw an exception? (Or in the case of Objective C: when is it right for an init'er to return nil?) It seems to me that a constructor should fail -- and thus refuse to create an object -- if the object isn't complete. I.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/77639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "248" }
Q: Best practice: How to handle concurrency of browser and website navigation It is a well known problem to every web developer. As far as I tried to find a good solution to this problem - there was none (or at least I could not find it). Lets assume the following: The user does not behave, as he was expected to. The a...
{ "language": "en", "url": "https://stackoverflow.com/questions/77645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Blocking dialogs in .NET WebBrowser control I have a .NET 2.0 WebBrowser control used to navigate some pages with no user interaction (don't ask...long story). Because of the user-less nature of this application, I have set the WebBrowser control's ScriptErrorsSuppressed property to true, which the documentation in...
{ "language": "en", "url": "https://stackoverflow.com/questions/77659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: SQL Server compatibility mode We're currently running a server on Compatibility mode 8 and I want to update it. * *What are the implications of just going in and changing it? *What is likely to break? *Is there anything that checks the data will survive before I perform it? *Can I rollback to mode 8 withou...
{ "language": "en", "url": "https://stackoverflow.com/questions/77664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a specification-based testing framework for C# .Net 2.0? For example, Reductio (for Java/Scala) and QuickCheck (for Haskell). The kind of framework I'm thinking of would provide "generators" for built-in data types and allow the programmer to define new generators. Then, the programmer would define a test...
{ "language": "en", "url": "https://stackoverflow.com/questions/77683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Java Applet - Partially Signed? Is it possible to sign only part of an applet? Ie, have an applet that pops up no security warnings about being signed, but if some particular function is used (that requires privileges) then use the signed jar? From what I can tell, some (perhaps most) browsers will pop up the warni...
{ "language": "en", "url": "https://stackoverflow.com/questions/77686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to quickly theme a view? I've defined a view with the CCK and View 2 modules. I would like to quickly define a template specific to this view. Is there any tutorial or information on this? What are the files I need to modify? Here are my findings: (Edited) In fact, there are two ways to theme a view: the "field...
{ "language": "en", "url": "https://stackoverflow.com/questions/77694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: How do I set up a local CPAN mirror? What do I need to set up and maintain a local CPAN mirror? What scripts and best practices should I be aware of? A: Besides the other answers, check out Leon's CPAN::Mini::Webserver, which gives you a CPAN Search interface to your local CPAN copy. If you want to do more fancy th...
{ "language": "en", "url": "https://stackoverflow.com/questions/77695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: BugzScout in hosted Fogbugz Is it possible to use BugzScout in the fogcreek-hosted version of Fogbugz? A: Yes, you can! The documentation is on the FogBugz Knowledge Exchange. The sample code that ships for the for-your-server version of FogBugz is available for download here.
{ "language": "en", "url": "https://stackoverflow.com/questions/77697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why doesn't Java offer operator overloading? Coming from C++ to Java, the obvious unanswered question is why didn't Java include operator overloading? Isn't Complex a, b, c; a = b + c; much simpler than Complex a, b, c; a = b.add(c);? Is there a known reason for this, valid arguments for not allowing operator overlo...
{ "language": "en", "url": "https://stackoverflow.com/questions/77718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "467" }
Q: Xml or Sqlite, When to drop Xml for a Database? I really like Xml for saving data, but when does sqlite/database become the better option? eg, when the xml has more than x items or is greater than y MB? I am coding an rss reader and I believe I made the wrong choice in using xml over a sqlite database to store a cac...
{ "language": "en", "url": "https://stackoverflow.com/questions/77726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: iBATIS for Python? At my current gig, we use iBATIS through Java to CRUD our databases. I like the abstract qualities of the tool, especially when working with legacy databases, as it doesn't impose its own syntax on you. I'm looking for a Python analogue to this library, since the website only has Java/.NET/Ruby v...
{ "language": "en", "url": "https://stackoverflow.com/questions/77731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I change the text color in the windows command prompt I have a command line program, which outputs logging to the screen. I want error lines to show up in red. Is there some special character codes I can output to switch the text color to red, then switch it back to white? I'm using ruby but I imagine this w...
{ "language": "en", "url": "https://stackoverflow.com/questions/77744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Mongrel hangs with 100% CPU / EBADF (Bad file descriptor) We have a server with 10 running mongrel_cluster instances with apache in front of them, and every now and then one or some of them hang. No activity is seen in the database (we're using activerecord sessions). Mysql with innodb tables. show innodb status sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/77748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Way to read Windows EventLog with Java Does anyone have any pointers on how to read the Windows EventLog without using JNI? Or if you have to use JNI, are there any good open-source libraries for doing so? A: JNA 3.2.8 has both an implementation for all event logging functions and a Java iterator. Read this. EventL...
{ "language": "en", "url": "https://stackoverflow.com/questions/77813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C++ runtime knowledge of classes I have multiple classes that all derive from a base class, now some of the derived classes will not be compiled depending on the platform. I have a class that allows me to return an object of the base class, however now all the names of the derived classes have been hard coded. Is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/77817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP: $_SESSION - What are the pros and cons of storing temporarily used data in the $_SESSION variable One thing I've started doing more often recently is retrieving some data at the beginning of a task and storing it in a $_SESSION['myDataForTheTask']. Now it seems very convenient to do so but I don't know anythin...
{ "language": "en", "url": "https://stackoverflow.com/questions/77826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How to make any arbitrary SECTION of ANY aspx webpage available as an Ajax popup I wonder if anyone can think of a good technique to enable any arbitrary section of an aspx page (say, the contents within a specified DIV tag) to be able to be called and displayed in an ajax modal popup? (So, only a certain section of...
{ "language": "en", "url": "https://stackoverflow.com/questions/77833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I solve this error: "Class PHPUnit_Extensions_SeleniumTestCase could not be found" I am trying to run a SeleniumTestCase with phpunit but I cannot get it to run with the phpunit.bat script. My goal is to use phpunit with Selenium RC in CruiseControl & phpUnderControl. This is what the test looks like: requir...
{ "language": "en", "url": "https://stackoverflow.com/questions/77835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I clip a line segment against a frustum? Given two vectors A and B which form the line segment L = A-B. Furthermore given a view frustum F which is defined by its left, right, bottom, top, near and far planes. How do I clip L against F? That is, test for an intersection and where on L that intersection occur...
{ "language": "en", "url": "https://stackoverflow.com/questions/77836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Filling PDF Forms with PHP Are there PHP libraries which can be used to fill PDF forms and then save (flatten) them to PDF files? A: A big +1 to the accepted answer, and a little tip if you run into encoding issues with the fdf file. If you generate the fields.fdf and upon running file -bi fields.fdf you get appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/77873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Interpreting Stacks in Windows Minidumps As someone who is just starting to learn the intricacies of computer debugging, for the life of me, I can't understand how to read the Stack Text of a dump in Windbg. I've no idea of where to start on how to interpret them or how to go about it. Can anyone offer direction to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/77887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: In Delphi, How do I get an enumerator from LocalPolicy.CurrentProfile.GloballyOpenPorts in the Firewall API I am writing some code to see if there is a hole in the firewall exception list for WinXP and Vista for a specific port used by our client software. I can see that I can use the NetFwMgr.LocalPolicy.CurrentPr...
{ "language": "en", "url": "https://stackoverflow.com/questions/77890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What emails clients are being used out there? This is not "exactly" a programming question, but it's highly related. We are writing an app that sends out email invitations for a client (no, it's not spam). Their designer gave us an HTML and CSS template to use which is fine. The problem is that it looks like crap...
{ "language": "en", "url": "https://stackoverflow.com/questions/77891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to convert all controls on an aspx webform to a read-only equivalent Has anyone ever written a function that can convert all of the controls on an aspx page into a read only version? For example, if UserDetails.aspx is used to edit and save a users information, if someone with inappropriate permissions enter th...
{ "language": "en", "url": "https://stackoverflow.com/questions/77900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Failures caused by logrotate on Apache 2 with passphrase protected SSL key I have an Apache 2 installation on Debian with mod_ssl installed. The server private key is protected by a passphase that needs to be entered on start-up. The error and access logs are subject to logrotate on a weekly basis. I find that Ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/77914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I display an image with ltk? I have written code to read a windows bitmap and would now like to display it with ltk. How can I construct an appropriate object? Is there such functionality in ltk? If not how can I do it directly interfacing to tk? A: It has been a while since I used LTK for anything, but the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/77934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the best way to calculate a 3D (or n-D) centroid? As part of a project at work I have to calculate the centroid of a set of points in 3D space. Right now I'm doing it in a way that seems simple but naive -- by taking the average of each set of points, as in: centroid = average(x), average(y), average(z) wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/77936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How can you get Perl to stop when referencing an undef value? How do you get Perl to stop and give a stack trace when you reference an undef value, rather than merely warning? It seems that use strict; isn't sufficient for this purpose. A: Include this: use Carp (); Then include one of these lines at the top of yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/77954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Visual Studio keeps adding blank lines I'm using Visual Studio 2008 for an ASP .Net application, and Visual Studio keeps adding blank lines to my aspx file whenever I save, switch to design mode and back to code view, switch to split mode, or switch between files. Before I save, I will have: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/77957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What to put in a session variable I recently came across a ASP 1.1 web application that put a whole heap of stuff in the session variable - including all the DB data objects and even the DB connection object. It ends up being huge. When the web session times out (four hours after the user has finished using the appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/77960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Esc and Enter keys in Cocoa dialog How can I dismiss dialog in Cocoa application when user presses Esc or Enter key? I have OK button, is it possible to make it default button? A: If you present the alert panel using the NSAlert class or, NSRunAlertPanel family of functions, or the NSBeginAlertSheet family of funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/77982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Redraw screen in terminal How do some programs edit whats being displayed on the terminal (to pick a random example, the program 'sl')? I'm thinking of the Linux terminal here, it may happen in other OS's too, I don't know. I've always thought once some text was displayed, it stayed there. How do you change it with...
{ "language": "en", "url": "https://stackoverflow.com/questions/77990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How can you disable the Windows' "X" close button in the upper right-hand corner for a web-based program that is displayed in IE7? We are using a software program at our school to enter IEPs (Individualized Education Programs). When entering goals and objectives for a student, users are provided with a Save and a C...
{ "language": "en", "url": "https://stackoverflow.com/questions/77993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom events in C++? Is it possible to create custom events in C++? For example, say I have the variable X, and the variable Y. Whenever X changes, I would like to execute a function that sets Y equal to 3X. Is there a way to create such a trigger/event? (triggers are common in some databases) A: Boost signals...
{ "language": "en", "url": "https://stackoverflow.com/questions/77996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How should I start when developing a system based on modules or plugins? I intend to develop a system that is entirely based on modules. The system base should have support for finding out about plugins, starting them up and being able to provide ways for those modules to communicate. Ideally, one should be able to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Executing different set of MSBuild tasks for each user? In our development environment each developer has their own dev server. Often times they do not actually develop on that server but develop from their local machine, deploy to their dev server, and then attach with the remote debugger to do debugging. My quest...
{ "language": "en", "url": "https://stackoverflow.com/questions/78018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rich User Interface on Embedded Linux Device I'm designing a user interface for a large touchscreen device running Linux. What would be the best toolkit/developer kit/SDK to use? The only requirement is that its able to run on a semi-low performace device, and that there is a Linux version. Nice-to-haves would be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Spatial Data Structures in C I do work in theoretical chemistry on a high performance cluster, often involving molecular dynamics simulations. One of the problems my work addresses involves a static field of N-dimensional (typically N = 2-5) hyper-spheres, that a test particle may collide with. I'm looking to opti...
{ "language": "en", "url": "https://stackoverflow.com/questions/78045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Best way to detect an application crash and restart it? What's the best way to detect an application crash in XP (produces the same pair of 'error' windows each time - each with same window title) and then restart it? I'm especially interested to hear of solutions that use minimal system resources as the system in q...
{ "language": "en", "url": "https://stackoverflow.com/questions/78048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Publishing multiple sites on a single instance of umbraco I am looking to setup a parallel site to one already that already uses umbraco for its content management system. The new site would share admins, templates, macros, and media resources, but not any content. If I setup multiple host headers pointing to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to iterate over all the page breaks in an Excel 2003 worksheet via COM I've been trying to retrieve the locations of all the page breaks on a given Excel 2003 worksheet over COM. Here's an example of the kind of thing I'm trying to do: Excel::HPageBreaksPtr pHPageBreaks = pSheet->GetHPageBreaks(); long count = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Chart controls for MFC application? I would like to have some suggestions about which third-part controls can we use in our Visual C++ MFC application? A: We've deployed IOComp's Plot Pack in both ActiveX and .Net flavors with great success. Great API, incredibly flexible, provides a toolbar that lets users pan/z...
{ "language": "en", "url": "https://stackoverflow.com/questions/78061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SSRS 2005 Matrix and border styles when exporting to XLS The Matrix in SSRS (SQL Server Reporting Services 2005) seems to have issues with certain the border styles when exporting to XLS (but not PDF or web view; maybe other formats, not sure?). For example: Create a matrix and set the Matrix border style to Black S...
{ "language": "en", "url": "https://stackoverflow.com/questions/78062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error code or Exception - which is the best practice for an ASP.Net web service? I've read this thread for WCF has inbuilt Custom Fault codes and stuff. But what is the best practice for ASP.Net web services? Do I throw exceptions and let the client handle the exception or send an Error code (success, failure etc) t...
{ "language": "en", "url": "https://stackoverflow.com/questions/78064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Any good PowerShell MSBuild tasks? Anyone know of any good MSBuild tasks that will execute a PowerShell script and pass it different parameters? I was able to find B# .NET Blog: Invoking PowerShell scripts from MSBuild, but I'm hoping for something that is a little more polished. If I can't find anything I will of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/78069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Alphanumeric Sorting What is the best/fastest way to sort Alphanumeric fields? A: You don't specify your target language, but whatever it is, it should have reliable, built-in sorting methods, so use one of them! For PHP... Load into an array and sort($array); php sort... $fruits = array("lemon", "orange", "banan...
{ "language": "en", "url": "https://stackoverflow.com/questions/78077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I capture the stdin and stdout of system command from a Perl script? In the middle of a Perl script, there is a system command I want to execute. I have a string that contains the data that needs to be fed into stdin (the command only accepts input from stdin), and I need to capture the output written to std...
{ "language": "en", "url": "https://stackoverflow.com/questions/78091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a difference between apache module vs cgi (concerning security)? E.g. Is it more secure to use mod_php instead of php-cgi? Or is it more secure to use mod_perl instead of traditional cgi-scripts? I'm mainly interested in security concerns, but speed might be an issue if there are significant differences. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/78108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Why can't I convert 'char**' to a 'const char* const*' in C? The following code snippet (correctly) gives a warning in C and an error in C++ (using gcc & g++ respectively, tested with versions 3.4.5 and 4.2.1; MSVC does not seem to care): char **a; const char** b = a; I can understand and accept this. The C++ solut...
{ "language": "en", "url": "https://stackoverflow.com/questions/78125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: CGPathAddArc vs CGPathAddArcToPoint Apple's CoreGraphics library defines two functions for describing an arc. * *CGPathAddArc adds an arc based on a center point, radius, and pair of angles. *CGPathAddArcToPoint adds an arc based on a radius and a pair of tangent lines. The details are explained in the CGPath ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Calling base.Dispose() automatically from derived classes Edit - New Question Ok lets rephrase the question more generically. Using reflection, is there a way to dynamically call at runtime a base class method that you may be overriding. You cannot use the 'base' keyword at compile time because you cannot be sure i...
{ "language": "en", "url": "https://stackoverflow.com/questions/78141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cross platform RTF control? Does anyone know of an RTF control that can be used on Linux/Windows/Mac? It's unfortunate that I have to mention it, but it actually has to be able to save and open rtf files... unlike wxWidgets wxRichTextCtrl for instance. Edit: Thanks to HappySmileMan for his reply. Better still if it'...
{ "language": "en", "url": "https://stackoverflow.com/questions/78153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bursty writes to SD/USB stalling my time-critical apps on embedded Linux I'm working on an embedded Linux project that interfaces an ARM9 to a hardware video encoder chip, and writes the video out to SD card or USB stick. The software architecture involves a kernel driver that reads data into a pool of buffers, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Assistance porting commctrl commands to C# In a C++ app, I have an hWnd pointing to a window running in a third party process. This window contains controls which extend the COM TreeView control. I am interested in obtaining the CheckState of this control. I use the hWnd to get an HTREEITEM using TreeView_GetRoot(hw...
{ "language": "en", "url": "https://stackoverflow.com/questions/78161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using C/Pthreads: do shared variables need to be volatile? In the C programming language and Pthreads as the threading library; do variables/structures that are shared between threads need to be declared as volatile? Assuming that they might be protected by a lock or not (barriers perhaps). Does the pthread POSIX st...
{ "language": "en", "url": "https://stackoverflow.com/questions/78172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How do you get a string from a MemoryStream? If I am given a MemoryStream that I know has been populated with a String, how do I get a String back out? A: Why not make a nice extension method on the MemoryStream type? public static class MemoryStreamExtensions { static object streamLock = new object(); pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/78181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "597" }
Q: How do I create RAW TCP/IP packets in C++? I'm a beginning C++ programmer / network admin, but I figure I can learn how to do this if someone points me in the right direction. Most of the tutorials are demonstrated using old code that no longer works for some reason. Since I'm on Linux, all I need is an explanation...
{ "language": "en", "url": "https://stackoverflow.com/questions/78184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: What tools are there for timed batch processes in Java EE? My employer just asked me to run a timed batch process in a Java EE WebSphere application they have running. It's supposed to run a certain class at 11:30 pm everyday. I'm not very familiar with Java EE nor WebSphere server (or tomcat, in the development env...
{ "language": "en", "url": "https://stackoverflow.com/questions/78194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Managing large user databases for single-signon How would you implement a system with the following objectives: * *Manage authentication, authorization for hundreds of thousands of existing users currently tightly integrated with a 3rd party vendor's application (We want to bust these users out into something we ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Compiling mxml files with ant and flex sdk I am just getting started with flex and am using the SDK (not Flex Builder). I was wondering what's the best way to compile a mxml file from an ant build script. A: I would definitely go with the ant tasks that are included with Flex, they make your build script so much c...
{ "language": "en", "url": "https://stackoverflow.com/questions/78230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: XML to Excel (2007) Ideas using Windows XP, and C#.Net I have a dataset that I have modified into an xml document and then used a xsl sheet to transform into an Excel xml format in order to allow the data to be opened programatically from my application. I have run into two problems with this: * *Excel is not th...
{ "language": "en", "url": "https://stackoverflow.com/questions/78233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OPENGL User Interface Programming I'm developing a graphical application to present data (not a game but a real workhorse app). It needs to be cross platform, so I have chosen: * *python *openGL (I need 3D, blending, textures etc) *pyopengl *wx/pywx - windowing, dialogs etc. The last component - WX - raises ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dictionary webservice recommendation Lot of googling did not help me! Are there any good dictionary web based available? I am looking for a site which can send me the meaning of words if we pass the word through query string! A: There also exists the dict protocol which has been around for a long time. One of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: What workarounds/coping-strategies have you implemented to deal with multiple tabs v. two connection limit issues? The two connection limit can be particularly troublesome when you have multiple tabs open simultaneously. Besides "ignore the problem," what coping mechanisms have you seen used to get multiple tabs bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/78262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to fix a corrupt Delphi 2009 Install I installed both the Delphi 2009 trial and actual release via the web installer when I received them and experienced the same errors when installing both. Both times it appears that the core web installer failed when it went to spawn the additional install packages for boost,...
{ "language": "en", "url": "https://stackoverflow.com/questions/78263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to guarantee 64-bit writes are atomic? When can 64-bit writes be guaranteed to be atomic, when programming in C on an Intel x86-based platform (in particular, an Intel-based Mac running MacOSX 10.4 using the Intel compiler)? For example: unsigned long long int y; y = 0xfedcba87654321ULL; /* ... a bunch of other...
{ "language": "en", "url": "https://stackoverflow.com/questions/78277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Clean implementation of the strategy pattern in Perl How do I write a clean implementation of the strategy pattern in Perl? I want to do it in a way that leverages Perl's features. A: It really depends on what you mean by "clean implementation". As in any other language, you can use Perl's object system with polymo...
{ "language": "en", "url": "https://stackoverflow.com/questions/78278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Reading files in use and system files on Windows XP & Vista using .NET I have this idea for a free backup application. The largest problem I need to solve at the moment is how to access files which are being used or are system files. I would like the application to be able to perform a full backup of files (i.e. not...
{ "language": "en", "url": "https://stackoverflow.com/questions/78282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the reasons why PHP would echo errors, even with error_reporting(0)? What are some reasons why PHP would force errors to show, no matter what you tell it to disable? I have tried error_reporting(0); ini_set('display_errors', 0); with no luck. A: To prevent errors from displaying you can * *Write in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/78296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Remoting facilities on Visual Studio 2008 I'm toying with my first remoting project and I need to create a RemotableType DLL. I know I can compile it by hand with csc, but I wonder if there are some facilities in place on Visual Studio to handle the Remoting case, or, more specificly, to tell it that a specific file...
{ "language": "en", "url": "https://stackoverflow.com/questions/78303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hard drive device name on Solaris I need to figure out the hard drive name for a solaris box and it is not clear to me what the device name is. On linux, it would be something like /dev/hda or /dev/sda, but on solaris I am getting a bit lost in the partitions and what the device is called. I think that entries lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/78336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Font rendering libraries for C# / dot-NET? Are there any free, third-party libraries for rendering arbitrarily scaled and rotated text in dot-NET applications? Although native GDI+ allows for text scaling and rotation, its methods for determining the rendered text's dimensions are not sufficiently precise and the di...
{ "language": "en", "url": "https://stackoverflow.com/questions/78351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What runs in a C heap vs a Java heap in HP-UX environment JVMs? I've been running into a peculiar issue with certain Java applications in the HP-UX environment. The heap is set to -mx512, yet, looking at the memory regions for this java process using gpm, it shows it using upwards of 1.6GBs of RSS memory, with 1.1...
{ "language": "en", "url": "https://stackoverflow.com/questions/78352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fighting with Protected Mode in Vista Our application commonly used an ActiveX control to download and install our client on IE (XP and prior), however as our user base has drifted towards more Vista boxes with "Protected Mode" on, we are required to investigate. So going forward, is it worth the headache of trying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RhinoMocks: Correct way to mock property getter I'm new to RhinoMocks, and trying to get a grasp on the syntax in addition to what is happening under the hood. I have a user object, we'll call it User, which has a property called IsAdministrator. The value for IsAdministrator is evaluated via another class that chec...
{ "language": "en", "url": "https://stackoverflow.com/questions/78389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to install php-gtk in the Acer Aspire One? I have an application that works pretty well in Ubuntu, Windows and the Xandros that come with the Asus EeePC. Now we are moving to the Acer Aspire One but I'm having a lot of trouble making php-gtk to compile under the Fedora-like (Linpus Linux Lite) Linux that come wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/78392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Many Network Connections Can a Computer Support? When writing a custom server, what are the best practices or techniques to determine maximum number of users that can connect to the server at any given time? I would assume that the capabilities of the computer hardware, network capacity, and server protocol woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/78422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }