text
stringlengths
8
267k
meta
dict
Q: How can I capture all exceptions from a wxPython application? I'm writing a little debug app for a bit of kit we're developing and I'd like to roll it out to a few users to see if they can provoke any crashes. Does anyone know a way of effectively wrapping a wxPython app to catch any and all unhandled exceptions tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/166198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to convert a DB2 date-time string into an Excel Date I'll regularly get an extract from a DB/2 database with dates and timestaps formatted like this: 2002-01-15-00.00.00.000000 2008-01-05-12.36.05.190000 9999-12-31-24.00.00.000000 Is there an easier way to convert this into the Excel date format than decomposin...
{ "language": "en", "url": "https://stackoverflow.com/questions/166210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Software development process for small teams I might be an exception here but I have never worked on a team with more than three developers and / or five people. Still we could manage to get the job done (somehow). Is there a software development process which fits this "extreme" scenario? And, if you work as a stan...
{ "language": "en", "url": "https://stackoverflow.com/questions/166212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Rails named_scopes with joins I'm trying to create a named_scope that uses a join, but although the generated SQL looks right, the result are garbage. For example: class Clip < ActiveRecord::Base named_scope :visible, { :joins => "INNER JOIN series ON series.id = clips.owner_id INNER JOIN shows on shows....
{ "language": "en", "url": "https://stackoverflow.com/questions/166217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Restore Eclipse subversion project connection I have a project in subversion, which I'm developing using Eclipse. I did the original checkout from the svn repository from inside Eclipse. All was well for some weeks then for some unknown reason, Eclipse (specifically: subclipse in Ganymede) no longer recognizes my pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/166220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: How can I upload files asynchronously with jQuery? I would like to upload a file asynchronously with jQuery. $(document).ready(function () { $("#uploadbutton").click(function () { var filename = $("#file").val(); $.ajax({ type: "POST", url: "addFile.do", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3119" }
Q: Can't merge undo disks on Virtual Server 2005 Error message: "Virtual Server was unable to commit the changes made during the current session of "". A likely cause of this problem is the parent virtual hard disk cannot be opened for read/write or it might be in use or the user has no read/write/modify permissions. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/166226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tcl/Tk examples? Tcl/Tk is a simple way to script small GUIs. Can anyone give a nice example with a button and a text widget. When the button is pressed should a shell command be executed and the output piped to the text widget. If you have other nice and clean examples for useful tasks, please add them too. A: Som...
{ "language": "en", "url": "https://stackoverflow.com/questions/166231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to remotely run a DTSX package from bat file? I am trying to remotely run a DTSX package from a bat file with this command: DTEXEC /DTS "\File System\MY_PACKAGE_NAME" /SERVER MY_SERVER_NAME /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING V This is working fine locally but failing remotely (I do have admin ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I make an array of constants in a NSIS install script? I have a large number of NSIS install scripts (.nsi files) that simply define a bunch of constants and then the main installer logic resides an include file (.nsh) which is common to each of the installers. One of the include files looks like this: !ifde...
{ "language": "en", "url": "https://stackoverflow.com/questions/166256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to configure an assembly in Global Assembly Cache? Is there a way to configure an assembly in GAC? I want to add a custom configuration to my assembly with System.Configuration. Mher A: If I understand your question right, no, there is no way to do this. An assembly uses the configuration file of the applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/166258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle instant client with OraOLE DB provider? Is it possible to use oracle instant client for application that use oraoledb driver for connecting to oracle 9i DB. A: I don't believe so. The Instant Client FAQ states What can Instant Client be used for? Instant Client can be used to run your OCI, OCCI, ProC, JD...
{ "language": "en", "url": "https://stackoverflow.com/questions/166270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Disabling a EventTrigger\Storyboard Dynamically <Grid.Triggers> <EventTrigger RoutedEvent="Border.Loaded"> <EventTrigger.Actions > <BeginStoryboard> <Storyboard x:Name="MyStoryboard" AutoReverse="True" RepeatBehavior="Forever"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Differences between JDK and Java SDK Is there any substantial difference between those two terms?. I understand that JDK stands for Java Development Kit that is a subset of SDK (Software Development Kit). But specifying Java SDK, it should mean the same as JDK. A: Taken from the Java EE 6 SDK Installer, shows what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: jQuery slideToggle jumps around I'm using the jQuery slideToggle function on a site to reveal 'more information' about something. When I trigger the slide, the content is gradually revealed, but is located to the right by about 100 pixels until the end of the animation when it suddenly jumps to the correct position...
{ "language": "en", "url": "https://stackoverflow.com/questions/166299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: .Net Localization problem I am currently building an Excel 2007 Add-in using VSTO (latest version + sp1) and .Net 3.5 The code simply takes the position a chart using the Top and Left properties and stores it in an XML file. The problem im facing is that when the xml is generated using a Vista Ultimate + Excel 2007 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Query which returns a table where each row represents a date in a given range Is it possible to create a SQL query which will return one column which contains the dates from a given date range (e.g. all dates from last year till today). E.g. dat ---- 2007-10-01 2007-10-02 2007-10-03 2007-10-04 ... I am wonderin...
{ "language": "en", "url": "https://stackoverflow.com/questions/166321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: obtain current svn revision in webapp what is the best way of displaying/using the revision number in a java webapp? we just use ant to build our .war archive, no buildserver or such. i'd hope there was some kind if $ref that i could write in a resource file, but this is only updated when the file in question is com...
{ "language": "en", "url": "https://stackoverflow.com/questions/166322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is Microsoft's official stance on using WCF with Visual Studio 2005? I noticed last night that the WCF extensions for Visual Studio 2005 aren't available on their site any longer. I've read that they want people to use Visual Studio 2008 for WCF/WF/WPF. Have they made an official statement regarding this? edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/166324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parameterized Sql queries This is a nut I'm cracking these days Application I'm working on has some advanced processing towards SQL. One of the operations selects various metadata on the objects in the current context from different tables, based on the item names in the collection. For this, a range of "select...fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/166330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to build and deploy Python web applications I have a Python web application consisting of several Python packages. What is the best way of building and deploying this to the servers? Currently I'm deploying the packages with Capistrano, installing the packages into a virtualenv with bash, and configuring the ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/166334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What is an effective way to insert ads into web app? Is AdSense suitable? Since content of web applications is dynamically generated it would appear that AdSense is not going to produce relevant ads. Is there a way to increase relevancy of the AdSense ads for the web application? Is it possible to achieve Gmail-like...
{ "language": "en", "url": "https://stackoverflow.com/questions/166339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Recommendations on a free library to be used for zipping files I need to zip and password-protect a file. Is there a good (free) library for this? This needs to be opened by a third party, so the password protection needs to work with standard tools. A: You can try Zip4j, a pure java library to handle zip file. It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: How do I use Ruby for shell scripting? I have some simple shell scripting tasks that I want to do For example: Selecting a file in the working directory from a list of the files matching some regular expression. I know that I can do this sort of thing using standard bash and grep but I would be nice to be able to...
{ "language": "en", "url": "https://stackoverflow.com/questions/166347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "170" }
Q: Experiences using software load balancing vs. a hardware load balancer? The ASP.NET application that I am currently responsible for at my day job has hit its limit in terms of its ability to scale inside a single server. Obviously we are working toward moving session out of process and the test and hopefully deploy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Calculate Throughput I have a the following scenarios. I am trying to calculate throughput of the java's XSLT transformer. I have 10 threrads, each iterates 1000 times. The task of the thread is to read the XML and XSLT file and trasnform it and write to a new file. I want to calculate the TPS. Can you please sugge...
{ "language": "en", "url": "https://stackoverflow.com/questions/166354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are some best practices for OpenGL coding (esp. w.r.t. object orientation)? This semester, I took a course in computer graphics at my University. At the moment, we're starting to get into some of the more advanced stuff like heightmaps, averaging normals, tesselation etc. I come from an object-oriented backgrou...
{ "language": "en", "url": "https://stackoverflow.com/questions/166356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Writing a generic class to handle built-in types Not too practical maybe, but still interesting. Having some abstract question on matrix multiplication I have quickly implemented a matrix for ints, then tested my assumptions. And here I noticed that just int matrix is not good, if I occasionally want to use it with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can you control whether a variable's type is dynamic or static in VB9? I would like to use VB9 but am not sure what syntax to use to say that I want a variable to be statically typed as in C#'s: var foo = new Whatever(); In previous versions of VB: Dim foo = New Whatever() created a dynamically typed variable. Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Django, mod_python, apache and wacky sessions I am running a Django through mod_python on Apache on a linux box. I have a custom authentication backend, and middleware that requires authentication for all pages, except static content. My problem is that after I log in, I will still randomly get the log in screen now...
{ "language": "en", "url": "https://stackoverflow.com/questions/166364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What deployment directories do you use for Rails applications (deploying to a debian box)? I wonder what's the best deployment directory for Rails apps? Some developers use directories such as /u/apps/#{appname}. Are there any advantages when using /u/apps/#{appname} instead of /var/www/#{appname} or other OS defaul...
{ "language": "en", "url": "https://stackoverflow.com/questions/166370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Immutable functional objects in highly mutable domain I'm currently learning functional programming in my spare time with Scala, and I have an idle newbie question. I can see the elegance of having immutable objects when doing something like calculating a Haar wavelet transform - i.e. when the data itself being repr...
{ "language": "en", "url": "https://stackoverflow.com/questions/166379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Retrieve list of defined roles in java ee 5 I was wondering if it would be possible to retrieve the complete list of security roles defined in a web.xml file in the java code? And if so how to do it? I am aware of the 'isUserInRole' method but I also want to handle cases where a role is requested but not defined (or...
{ "language": "en", "url": "https://stackoverflow.com/questions/166411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you handle multiple selection in a drop down style control? I have a WinForms application with a view where the user selects a single time span from a list of predefined time spans in a ComboBox, with it's DropDownStyle property set to DropDownList. Now, the requirements have changed. The users are going to n...
{ "language": "en", "url": "https://stackoverflow.com/questions/166417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: mod_python on CentOS under httpd and hsphere I have asked our hosting provider to add mod_python to our httpd server. The server appears to be in an hsphere cluster and they appear to use yum to administer it. He is reporting some dependencies missing and I do't quite understand how that could have come about. ver...
{ "language": "en", "url": "https://stackoverflow.com/questions/166418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I build a webpage for printing so it won't split badly over pages? I have a web application that generates a long report and I need to print it. If I just print the page it will break at the end of the physical page. How can I calculate where to make a break in the web page so that the page breaks line up wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/166424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: additional fields in NHibernate many-to-many relation tables when i have a many-to.many relation with nhibernate and let nhibernate generate my db schema, it adds an aditional table that contains the primary keys of the related entities. is it possible to add additional fields to this and access them without having ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Clearing a list I find it annoying that I can't clear a list. In this example: a = [] a.append(1) a.append(2) a = [] The second time I initialize a to a blank list, it creates a new instance of a list, which is in a different place in memory, so I can't use it to reference the first, not to mention it's inefficien...
{ "language": "en", "url": "https://stackoverflow.com/questions/166431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What would a Log4Net Wrapper class look like? I have been looking for a logging framework for .net (c#) and decided to give log4net a go after reading up on a few question/answer threads here on stackoverflow. I see people mentioning over and over that they use a wrapper class for log4net and I am wonder what that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/166438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Performance of System.IO.ReadAllxxx / WriteAllxxx methods Is there any performance comparison of System.IO.File.ReadAllxxx / WriteAllxxx methods vs StreamReader / StremWriter classes available on web. What you think is the best way(from a performance perspective) to read/write text files in .net 3.0? When I checked ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use Maven Modules without svn:externals? I have never quite understood how/why I would use Maven modules (reactor builds). We have tens of libraries that we share (as dependencies) among our products, and between libraries as well. If we were to switch to making them Maven modules, how would we set it up, bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/166472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: msbuild: set a specific preprocessor #define in the command line In a C++ file, I have a code like this: #if ACTIVATE # pragma message( "Activated" ) #else # pragma message( "Not Activated") #endif I want to set this ACTIVE define to 1 with the msbuild command line. It tried this but it doesn't work: msbuild /p...
{ "language": "en", "url": "https://stackoverflow.com/questions/166474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: PHP - Custom error handling. Redirected 404 is being hijacked by AVG Anti-Virus. How to stop? I have a website which uses the custom 404 error handling in PHP/Apache to display specific pages. e.g. http://metachat.org/recent I've a feeling this is a bad way of doing this, but it's code I inherited... Although the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/166482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: detect svn changes in a .bat I have a .bat and inside the .bat i would like to execute a special code if there's some modification inside the svn repository (for example, compile). A: For Win 2000 and later, this would assign the last output row from the svn status commmand to the svnOut variable and then test if t...
{ "language": "en", "url": "https://stackoverflow.com/questions/166491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How can I wrap a call to an .exe (with arguments) with another .exe? I have a Windows executable (say program.exe) and I want to provide users with 2 launchers that will pass different arguments to it. program.exe -a program.exe -b I can easily do this with 2 batch files, but I would rather provide users with 2 .ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/166493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UTF-8 in Windows How do I set the code page to UTF-8 in a C Windows program? I have a third party library that uses fopen to open files. I can use wcstombs to convert my Unicode filenames to the current code page, however if the user has a filename with a character outside the code page then this breaks. Ideally...
{ "language": "en", "url": "https://stackoverflow.com/questions/166503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Finding local IP addresses using Python's stdlib How can I find local IP addresses (i.e. 192.168.x.x or 10.0.x.x) in Python platform independently and using only the standard library? A: I'm afraid there aren't any good platform independent ways to do this other than connecting to another computer and having it sen...
{ "language": "en", "url": "https://stackoverflow.com/questions/166506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "684" }
Q: Unix shell events? Is there any way so that i can echo password when asked for in unix shell without use of external binaries ? Something like simple function triggered when password prompt is displayed A: Are you aware of Expect? Perhaps this falls in the "external binaries" category, but if it does, then your que...
{ "language": "en", "url": "https://stackoverflow.com/questions/166508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server 2005 Computed Column Result From Aggregate Of Another Table Field's Value Sorry for the long question title. I guess I'm on to a loser on this one but on the off chance. Is it possible to make the calculation of a calculated field in a table the result of an aggregate function applied to a field in anothe...
{ "language": "en", "url": "https://stackoverflow.com/questions/166518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does NetworkStream.DataAvailable see buffered data? Does NetworkStream.DataAvailable know whether the sender's send buffer is empty? Or does it simply indicate whether the receiver's read buffer has data? My assumption is the latter... Specifically, for some socket work involving an ongoing conversation, I currently...
{ "language": "en", "url": "https://stackoverflow.com/questions/166530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using boost in embedded system with memory limitation We are using c++ to develop an application that runs in Windows CE 4 on an embedded system. One of our constraint is that all the memory used by the application shall be allocated during startup only. We wrote a lot of containers and algorithms that are using onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/166542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Reuse Edit Control as Command Window This is a GUI application (actually MFC). I need a command window with the ability to display a prompt like such: Name of favorite porn star: The user should be able to enter text after the prompt like such: Name of favorite porn star: Raven Riley But I need to prevent the us...
{ "language": "en", "url": "https://stackoverflow.com/questions/166544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding a public facing IP address in Python? How can I find the public facing IP for my net work in Python? A: whatismyip.org is better... it just tosses back the ip as plaintext with no extraneous crap. import urllib ip = urllib.urlopen('http://whatismyip.org').read() But yeah, it's impossible to do it easily wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/166545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: What to put in the IF block and what to put in the ELSE block? This is a minor style question, but every bit of readability you add to your code counts. So if you've got: if (condition) then { // do stuff } else { // do other stuff } How do you decide if it's better like that, or like this: if (!condition)...
{ "language": "en", "url": "https://stackoverflow.com/questions/166550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: A good database modeling tool? Could you guys recommend me a good db modeling tool? Mainly for SQL Server... thanks! A: If your employer is paying, ER Studio is fantastic. I don't know how other people can function without it. It easily makes me 50% more productive. A: StarUML has a module that allows for the cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/166557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: HTTP response splitting I'm trying to handle this possible exploit and wondering what is the best way to do it? should i use apache's common-validator and create a list of known allowed symbols and use that? A: From the wikipedia article: The generic solution is to URL-encode strings before inclusion into HTTP hea...
{ "language": "en", "url": "https://stackoverflow.com/questions/166565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flash IDE - Find a symbol in the library I've inherited a flash project (my first) that has many existing symbols in the library. They are organized in a large complex hierarchy of folders. Often, I find a reference to a symbol in actionscript code, but can't find the symbol in the library. The "Find" feature only s...
{ "language": "en", "url": "https://stackoverflow.com/questions/166575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java date format incompatible with xquery xs:date format, how to fix? In java, when using SimpleDateFormat with the pattern: yyyy-MM-dd'T'HH:mm:ss.SSSZ the date is outputted as: "2002-02-01T18:18:42.703-0700" In xquery, when using the xs:dateTime function, it gives the error: "Invalid lexical value [err:FORG0001]"...
{ "language": "en", "url": "https://stackoverflow.com/questions/166600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I find the version of Apache running without access to the command line? I need to either find a file in which the version is encoded or a way of polling it across the web so it reveals its version. The server is running at a host who will not provide me command line access, although I can browse the install ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: Can I add a PHP array key without an assigned value in a class variable? I am currently plowing my way through IBM's tutorial on CakePHP At one point I run into this snippet of code: <?php class Dealer extends AppModel { var $name = 'Dealer'; var $hasMany = array ( 'Product' => array( 'cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/166615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "CURLE_OUT_OF_MEMORY" error when posting via https I am attempting to write an application that uses libCurl to post soap requests to a secure web service. This Windows application is built against libCurl version 7.19.0 which, in turn, is built against openssl-0.9.8i. The pertinent curl related code follows: FI...
{ "language": "en", "url": "https://stackoverflow.com/questions/166617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: PHP utf8 problem I have some problems comparing an array with Norwegian characters with a utf8 character. All characters except the special Norwegian characters(æ, ø, å) works fine. function isNorwegianChar($Char) { $aNorwegianChars = array('a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F', 'g', 'G', 'h...
{ "language": "en", "url": "https://stackoverflow.com/questions/166623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I repeat a string a variable number of times in C++? I want to insert 'n' spaces (or any string) at the beginning of a string in C++. Is there a direct way to do this using either std::strings or char* strings? E.g., in Python you could simply do >>> "." * 5 + "lolcat" '.....lolcat' A: You should write you...
{ "language": "en", "url": "https://stackoverflow.com/questions/166630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "166" }
Q: What kind of damage could one do with a payment gateway API login and transaction key? Currently, I'm in the process of hiring a web developer who will be working on a site that processes credit cards. While he won't have the credentials to log into the payment gateway's UI he will have access to the API login and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/166639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is using size() for the 2nd expression in a for construct always bad? In the following example should I expect that values.size() will be called every time around the loop? In which case it might make sense to introduce a temporary vectorSize variable. Or should a modern compiler be able to optimize the calls away b...
{ "language": "en", "url": "https://stackoverflow.com/questions/166641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to make some NAnt tasks quiet? I am using MailLogger to send a message about a failed/successful release. I would like to make the mail body simple and easy to read. How can I suppress output for some particular tasks? A: Would it be too simple if you'd call nant with the -quiet switch? EDIT: and for the tasks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Agent-based modeling resources I would like to know what kind of toolkits, languages, libraries exist for agent-based modeling and what are the pros/cons of them? Some examples of what I am thinking of are Swarm, Repast, and MASS. A: I found a survey from June 2009 that answer your question: Survey of Agent Based ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Extracting PNG images from Delphi 2009 imagelist The TImageList of Delphi 2009 has support for PNG images by adding them in the imagelist editor. Is there any way to extract a TPngImage from a TImagelist and preserving the alpha channel? What I want to do is actually to extract the images from one TImageList, make a...
{ "language": "en", "url": "https://stackoverflow.com/questions/166676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best standard to use for business document exchange (invoices, POs etc)? If I need to implement sending and receiving of business documents from system to system (invoices, POs, remittance advice, etc) what standard would you recommend for best interop and why? It could be XML or otherwise. A: UBL (Uni...
{ "language": "en", "url": "https://stackoverflow.com/questions/166692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it possible to select a specific tab in OSX Terminal.app using keyboard shortcuts? I know I can cycle through my tabs using cmd+{ or cmd+}, but is it possible to select a specific tab (i.e. cmd+3 for the third tab in iTerm) in Leopards' Terminal.app? A: This is an option. Tab Switching in Terminal A: Yes it is...
{ "language": "en", "url": "https://stackoverflow.com/questions/166695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How to combine cascading updates/deletes between SQL Server and NHibernate? I am writing an application with a hand-crafted domain model (classes) and a hand-crafted data model (tables/relationships), and letting NHibernate take care of the mapping. Is it best to tell the database to perform cascading updates or del...
{ "language": "en", "url": "https://stackoverflow.com/questions/166708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to show the loading indicator in the top status bar I have noticed that some apps like Safari and Mail show a loading indicator in the status bar (the bar at the very top of the phone) when they are accessing the network. Is there a way to do the same thing in SDK apps, or is this an Apple only thing? A: You ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/166712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: Unable to serialize a property on a control Background I am trying to create a copy of a business object I have created in VB.NET. I have implemented the ICloneable interface and in the Clone function, I create a copy of the object by serializing it with a BinaryFormatter and then de-serializing straight back out i...
{ "language": "en", "url": "https://stackoverflow.com/questions/166718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you find which database a table is located in, of which you know the name (e.g. dbo.mytable1), in Microsoft SQL Server Management Studio 2005? I know the name of the table I want to find. I'm using Microsoft SQL Server Management Studio 2005, and I want to search all databases in the database server that I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/166722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Beginner: Fastest way to cast/copy byte() into single() I've got a byte() array returned as result of directx sound capture, but for other parts of my program I want to treat the results as single(). Is trundling down the array item by item the fastest way of doing it or is there a clever way to do it ? The code th...
{ "language": "en", "url": "https://stackoverflow.com/questions/166739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Robot simulation environments I would like to make a list of remarkable robot simulation environments including advantages and disadvantages of them. Some examples I know of are Webots and Player/Stage. A: ROS will visualize your robot and any data you've recorded from it. Packages to check out would rviz and nav_...
{ "language": "en", "url": "https://stackoverflow.com/questions/166742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Best Linux distribution for running Mono I'm a .Net developer and would like to investigate building and running our framework on Mono. If the initial project is successful I will happily invest in an OS learning curve, but right now I want to focus on getting things up and running and seeing the code working. Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/166744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Should I have a dedicated primary key field? I'm designing a small SQL database to be used by a web application. Let's say a particular table has a Name field for which no two rows will be allowed to have the same value. However, users will be able to change the Name field at any time. The primary key from this tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/166750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: C# compiler number literals Does anyone know the full list of C# compiler number literal modifiers? By default declaring '0' makes it an Int32 and '0.0' makes it a 'Double'. I can use the literal modifier 'f' at the end to ensure something is treated as a 'Single' instead. For example like this... var x = 0; // x...
{ "language": "en", "url": "https://stackoverflow.com/questions/166752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Why must endpoints manage conversions between bytes sent and received TSNs sent and received in SCTP congestion control? As stated in RFC 3286: "...endpoints must manage the conversion between bytes sent and received and TSNs sent and received, since TSN is per chunk rather than per byte". How does this affect the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/166757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compare view with stream I use ClearCase. I have a snapshot view. Is there a way to compare this view with stream to find changed files? In TortoiseSVN this is called "Check for modifications" and shows all difference between local copy and what we have in the repo. A: I'm not sure about Clear Case's own possibili...
{ "language": "en", "url": "https://stackoverflow.com/questions/166764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using sIFR in nyroModal lightbox I'm using sIFR in a page that's being popped up in a nyroModal lightbox, but when the page is displayed, the sIFR objects aren't being shown. What do I need to do to get them to show? A: The idea will be to use the endShowContent callback from nyroModal to sIFR your text. $.fn.nyroM...
{ "language": "en", "url": "https://stackoverflow.com/questions/166768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update Firefox 2 compatible extensions using IFRAME to Firefox 3? I am trying to update a custom firefox extension that I created for some tasks at work. Basically it is a sidebar that pulls up one of our webpages in an iframe for various purposes. When moving to Firefox 3 the iframe won't appear at all. Belo...
{ "language": "en", "url": "https://stackoverflow.com/questions/166772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you manage .vcproj files in source control which are changed by multiple developers? We use Subversion as our source control system and store the VisualStudio project files (vcproj) in the source control system as is normal I think. With Subversion we don't use any form of file locking, so if two developers a...
{ "language": "en", "url": "https://stackoverflow.com/questions/166796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Windows Form Designer: Could not load file or assembly Has anyone ever had the issue where trying to "View Designer" on a windows form in Visual Studio .NET causes the error: "Could not load file or assembly…" ? In this case, the assembly in question was XYZ.dll. I managed to fix this by adding XYZ.dll and all its r...
{ "language": "en", "url": "https://stackoverflow.com/questions/166802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Java: Newbie-ish inheritance question Suppose I have a base class B, and a derived class D. I wish to have a method foo() within my base class that returns a new object of whatever type the instance is. So, for example, if I call B.foo() it returns an object of type B, while if I call D.foo() it returns an object ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why is "The referenced component 'X' could not be found." considered a warning? I wonder, why the hell... did the VS team consider that NOT finding a project reference as a non crucial thing? The referenced component 'X' could not be found. should be considered an error... and nothing else. Is there a way (without t...
{ "language": "en", "url": "https://stackoverflow.com/questions/166831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Separating Demo data in Live system If we put aside the rights and wrongs of putting demo data into a live system for a minute (that's a whole separate discussion!), we are being asked to store some demo data in our live system so that it can be credibly demonstrated without the appearance of smoke + mirrors (we wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/166836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XML add hyperlink I have a xml blob that's checked against a schema in sql 2005. My website uses xsl to transform and display the blob. How do I add a hyperlink to the xml (in any node) without the sql 2005 schema complaining a node was found in the wrong place? Or the xsl thinking that the hyperlink is a valid xml...
{ "language": "en", "url": "https://stackoverflow.com/questions/166841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Architecture for easy update of application I have a system in place which applies calculations to a set of numbers (the specifics aren't really relevant). There are a number of sets of calculations which can be applied by the system users and new sets are added frequently. Currently when a new set of calculations n...
{ "language": "en", "url": "https://stackoverflow.com/questions/166843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to wait on another process's status in .NET? I'm working on an integration testing project in .NET. The testing framework executable starts a service and then needs to wait for the service to complete an operation. What is the best approach for the exe to wait on the service to complete its task (the service its...
{ "language": "en", "url": "https://stackoverflow.com/questions/166844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# preg_replace? What is the PHP preg_replace in C#? I have an array of string that I would like to replace by an other array of string. Here is an example in PHP. How can I do something like that in C# without using .Replace("old","new"). $patterns[0] = '/=C0/'; $patterns[1] = '/=E9/'; $patterns[2] = '/=C9/'; $re...
{ "language": "en", "url": "https://stackoverflow.com/questions/166855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best place to put application data? Possible Duplicate: VS2008 Setup Project: Shared (By All Users) Application Data Files? Please can someone advice what is the best place (path) to put some application data which should be accessible and editable by all users. This is considering both Windows XP and Windows Vis...
{ "language": "en", "url": "https://stackoverflow.com/questions/166876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Array versus linked-list Why would someone want to use a linked-list over an array? Coding a linked-list is, no doubt, a bit more work than using an array and one may wonder what would justify the additional effort. I think insertion of new elements is trivial in a linked-list but it's a major chore in an array. Are...
{ "language": "en", "url": "https://stackoverflow.com/questions/166884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "216" }
Q: Different dependencies for different build profiles Is it possible to have a different set of dependencies in a maven pom.xml file for different profiles? e.g. mvn -P debug mvn -P release I'd like to pick up a different dependency jar file in one profile that has the same class names and different implementations o...
{ "language": "en", "url": "https://stackoverflow.com/questions/166895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "133" }
Q: Formatting a double in JSF I have a problem similar to the one found here : JSF selectItem label formatting. What I want to do is to accept a double as a value for my and display it with two decimals. Can this be done in an easy way? I've tried using but that seems to be applied on the value from the inputText t...
{ "language": "en", "url": "https://stackoverflow.com/questions/166897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to get Selenium working with PHP/Firefox3 on Linux I am trying to get Selenium RC working with Firefox 3 on Linux with PHP/Apache but am experiencing problems. Here's what I've done: * *I have installed the Firefox Selenium-IDE extension. *On the web server (which in my case is actually the same machine run...
{ "language": "en", "url": "https://stackoverflow.com/questions/166941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Calling Python in PHP I have a Python script I recently wrote that I call using the command line with some options. I now want a very thin web interface to call this script locally on my Mac. I don't want to go through the minor trouble of installing mod_python or mod_wsgi on my Mac, so I was just going to do a syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/166944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "87" }
Q: WinDbg outputs characters to console nonstop I'm developing a POS application that is used in about 200 locations as of right now using .Net 2.0, WCF and SyncFusion components for the GUI. Two days ago we installed the application in a new location, and it has been suffering sudden termination of the application. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/166945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Release COM Components Is it really necessary to release COM components from Office PIA, when you don't need them anymore by invoking Marshal.ReleaseComObject(..)? I found various and contradictory advices on this topic on the web. In my opinion, since Outlook PIA is always returning a new references to its interfac...
{ "language": "en", "url": "https://stackoverflow.com/questions/166962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }